seemps.state.MPS.from_vector#
method
- classmethod MPS.from_vector(ψ, dimensions, strategy=<seemps.state.core.Strategy object>, normalize=True, center=-1, **kwdargs)[source]#
Create a matrix-product state from a state vector.
- Parameters:
- ψ
VectorLike Real or complex vector of a wavefunction.
- dimensions
Sequence[int] Sequence of integers representing the dimensions of the quantum systems that form this state.
- strategy
Strategy,default=DEFAULT_STRATEGY Default truncation strategy for algorithms working on this state.
- normalizebool,
default=True Whether the state is normalized to compensate truncation errors.
- ψ
- Returns:
MPSA valid matrix-product state approximating this state vector.