seemps.state.MPSSum#
- class seemps.state.MPSSum#
Bases:
objectClass representing a weighted sum (or difference) of two or more
MPS.This class is an intermediate representation for the linear combination of MPS quantum states. Assume that \(\psi, \phi\) and \(\xi\) are MPS and \(a, b, c\) some real or complex numbers. The addition \(a \psi - b \phi + c \xi\) can be stored as MPSSum([a, -b, c], [ψ, ϕ, ξ]).
- Parameters:
- copy() MPSSum[source]#
Return a shallow copy of the MPS sum and its data. Does not copy the states, only the list that stores them.
- delete_zero_components() float[source]#
Compute the norm-squared of the linear combination of weights and states and eliminate states that are zero or have zero weight.
- join() MPS[source]#
Create an MPS by combining all tensors from all states in the linear combination.
- Returns:
MPSQuantum state approximating this sum.
- join_canonical(*args, **kwdargs) CanonicalMPS[source]#
Similar to join() but return canonical form