Function lattice_qcd_rs::su2::random_su2

source ·
pub fn random_su2<Rng>(rng: &mut Rng) -> CMatrix2where
    Rng: Rng + ?Sized,
Expand description

Get an Uniformly random SU(2) matrix.

Example

for _ in 0..10 {
    assert_matrix_is_su_2!(random_su2(&mut rng), 4_f64 * f64::EPSILON);
}