seemps.state.product_state#

seemps.state.product_state(vectors, length=None)[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.