seemps.state.random_uniform_mps#

seemps.state.random_uniform_mps(d, N, D=1, truncate=True, complex=False, rng=None)[source]#

Create a random state with N elements of dimension d and bond dimension D.

Parameters:
dint

The dimension of each quantum system

Nint

The number of quantum systems in this MPS

Dint, default = 1

The maximum bond dimension

truncatebool, default = True

Do not reach D for tensors that do not require it.

complexbool, default = False

If true, return states with complex wavefunctions.

rngnp.random.Generator, default = np.random.default_rng()

Random number generator used to create the state. Provide a seeded generator to ensure reproducibility

Returns:
MPS

A random matrix-product state.