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:
- d
int
The dimension of each quantum system
- N
int
The number of quantum systems in this
MPS
- D
int
,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.
- rng
np.random.Generator
,default
=np.random.default_rng
() Random number generator used to create the state. Provide a seeded generator to ensure reproducibility
- d
- Returns:
MPS
A random matrix-product state.