seemps.evolution.Trotter2ndOrder#
- class seemps.evolution.Trotter2ndOrder#
Bases:
TrotterClass implementing a 2nd order Trotter algorithm.
This class implements a Trotter algorithm in TEBD form for a nearest-neighbor interaction Hamiltonain \(\sum_i h_{i,i+1}\). This second-order formula is a variation of the two-sweep algorithm
\[\prod_{j=1}^{N} \exp(-\frac{i}{2} h_{j,j+1} dt) \prod_{j=N}^{1} \exp(-\frac{i}{2} h_{j,j+1} dt)\]- Parameters:
- H
NNHamiltonian The Hamiltonian with nearest-neighbor interactions generating the unitary transformations.
- dt
float Length of the time step.
- strategy
Strategy Truncation strategy for the application of the unitaries.
- H
- apply(state: MPS) CanonicalMPS[source]#
Apply a Trotter 2nd order unitary approximation onto an MPS state.
- Parameters:
- state
MPS The state to be evolved.
- state
- Returns:
CanonicalMPSA fresh new MPS wih the state evolved by one time step.
- apply_inplace(state: MPS) CanonicalMPS[source]#
Apply a Trotter 2nd order unitary approximation onto an MPS state.
- Parameters:
- state
MPS The state to be evolved.
- state
- Returns:
CanonicalMPSThe same state object modified by the unitary, if it was a
CanonicalMPSOtherwise a fresh new state evolved.