Previously I used pyalps in order to calculate energy using DMRG. Could you tell me how to implement this Hubbard ladder alps configuration on TenPy?

There are lots of parameters in TenPy like trunc_params, chi_max and so on.

import pyalps

Code: Select all

```
parameters = [ {
'LATTICE' : "open square lattice", # open boundary conditions parallel to plane
'MODEL' : "fermion Hubbard", #fermionic Hubbard model
'CONSERVED_QUANTUMNUMBERS' : 'Nup, Ndown',
'Nup_total' : 1,
'Ndown_total' : 0,
't' : 1,
'U' : -7,
'SWEEPS' : 8,
'NUMBER_EIGENVALUES' : 2,
'L' : 40,
'W' : 2,
'MAXSTATES' : 800
} ]
input_file = pyalps.writeInputFiles('parm_2_ladder',parameters)
res = pyalps.runApplication('dmrg',input_file,writexml=True)
result = pyalps.getResultFiles(prefix = 'parm_2_ladder')
data = pyalps.loadEigenstateMeasurements(result)
E=data[0][0].y[0]
```

Thank you for your answers