Module lattice_qcd_rs::su2
source · Expand description
Module for SU(2) matrix
Constants
- First Pauli matrix.
- Second Pauli matrix.
- Third Pauli matrix.
- List of Pauli matrices, see wikipedia
Functions
- Return
x0 1 + i x_i * \sigma_i
. - Return wether the input matrix is SU(2) up to epsilon.
- Project the matrix to SU(2). Return the identity if the norm after unormalize is subnormal (see
f64::is_normal
). - Take any 2x2 matrix and project it to a matrix
X
such thatX / X.determinant().modulus().sqrt()
is SU(2). - Get an Uniformly random SU(2) matrix.
- Get a radom SU(2) matrix close the 1 or -1.