Function ndarray_linalg::generate::random_unitary
source ยท pub fn random_unitary<A>(n: usize) -> Array2<A>
Expand description
Generate random unitary matrix using QR decomposition
- Be sure that this it NOT a uniform distribution. Use it only for test purpose.
- This function uses rand::thread_rng. See random_unitary_using for using another RNG.