seemps.state.MPSSum#
- class seemps.state.MPSSum(weights, states, check_args=True)[source]#
Class 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], [ψ, ϕ, ξ]).