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.

dimensionsSequence[int]

Sequence of integers representing the dimensions of the quantum systems that form this state.

strategyStrategy, default = DEFAULT_STRATEGY

Default truncation strategy for algorithms working on this state.

normalizebool, default = True

Whether the state is normalized to compensate truncation errors.

centerint, default = 0

Center for the canonical form of this decomposition.

Returns:
CanonicalMPS

A valid matrix-product state approximating this state vector.

See also

from_vector()