qgrad_qutip.rand_unitary¶
-
qgrad_qutip.rand_unitary(N, seed=None)¶ Returns an \(N \times N\) randomly parametrized unitary
- Parameters
N (int) – Size of the Hilbert space
- Returns
- \(N \times N\) parameterized random
unitary matrix
- Return type
jnp.ndarray
Note
JAX provides Psuedo-Random Number Generator Keys (PRNG Keys) that aim to ensure reproducibility. seed integer here is fed as input to a PRNGKey that returns of array of shape (2,) for every different input integer seed. PRNGKey for the same input integer shall sample the same values from any distribution.