seemps.state.CanonicalMPS.from_vector#
method
- classmethod CanonicalMPS.from_vector(ψ, dimensions, strategy=<seemps.state.core.Strategy object>, normalize=True, center=0, **kwdargs)[source]#
Create an MPS in canonical form starting 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.
- center
int
,default
= 0 Center for the canonical form of this decomposition.
- ψ
- Returns:
CanonicalMPS
A valid matrix-product state approximating this state vector.
See also