seemps.state.product_state#

seemps.state.product_state(vectors: TypeAliasForwardRef('~seemps.typing.VectorLike') | Iterable[TypeAliasForwardRef('~seemps.typing.VectorLike')], length: int | None = None) MPS[source]#

Create a product state MPS.

Parameters:
vectorsVectorLike | list[VectorLike]

This may be a list of wavefunctions, or a single state vector that is repeated on all sites.

lengthint, optional

If vectors is a single wavefunction, we need to know the size of the MPS, given as an integer value here.

Returns:
MPS

The quantum state in matrix-product state form.