Search found 2 matches

by yixuan
12 Sep 2021, 22:43
Forum: HowTos and FAQ for TeNPy
Topic: MPS.expectation_value_term() not working for iDMRG
Replies: 0
Views: 26

MPS.expectation_value_term() not working for iDMRG

Hi all, I found that the segment_boundaries in the MPS class is only defined for finite DMRG, and I run into this error for iDMRG when calling expectation_value() or its relatives expectation_value_term(), expectation_value_terms_sum() like this: File "iDMRG.py", line 716, in order order +...
by yixuan
20 May 2021, 00:51
Forum: HowTos and FAQ for TeNPy
Topic: Implementation of t-J model
Replies: 3
Views: 456

Re: Implementation of t-J model

Hi Leandro, From my understanding, you may need to define your own sites before constructing the model Hamiltonian as the t-J site is not pre-defined in TeNPy, so something like: class tJSite(Site): def __init__(self, conserve='Sz'): (define conserve quantity, operators, local site degree of freedom...