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.

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.

Returns:
MPS

A valid matrix-product state approximating this state vector.