ndarray_linalg::generate

Function random_unitary_using

source
pub fn random_unitary_using<A, R>(n: usize, rng: &mut R) -> Array2<A>
where A: Scalar + Lapack, R: Rng,
Expand description

Generate random unitary matrix using QR decomposition with given RNG

  • Be sure that this it NOT a uniform distribution. Use it only for test purpose.
  • See random_unitary for using default RNG.