psi = PurificationMPS.from_infiniteT(M.lat.mps_sites(), bc=bc), but it gives me a grand canonical ensemble result. I want to conserve some charges, for example, I want to conserve the total number of boson. But I dont know How to do it. I use Python: Select all
psi.gauge_total_charge([10])Python: Select all
psi.get_total_charge(only_physical_legs = True)Python: Select all
psi.get_total_charge()Python: Select all
for i in range(L): print(psi._B[i].qtotal)