MPOState¶
- class MPOState(sites, Ws, bc='finite', IdL=None, IdR=None, max_range=None, explicit_plus_hc=False)[source]¶
- 
A mediator class to make TeNPy’s MPO match the Stateinterface.This class simply ensures that a tenpy.networks.mpo.MPOobject can work as aStateinstance.Methods - classmethod initialize_from_lattice(lat, *, conserve=True)[source]¶
- Construct an identity - MPOStateinstance matching the provided lattice shape.- Given a lattice, this method constructs a new MPO identity matching the shape of the lattice. - Parameters:
- lat (Lattice) – the lattice describing the MPO sites. 
- conserve (bool) – whether to conserve - Sz. This is a simplified version of the more elaborate- conserveproperty of- SpinHalfSite. The boolean value simply indicates- Sz(- True) or- Noneconservation (- False)
 
- Returns:
- An identity MPO. 
- Return type:
 
 - overlap(initial_state)[source]¶
- Compute the overlap of this state with the provided initial state. - Warning - This implementation only supports instances of - tenpy.networks.mps.MPSfor- initial_state.