Generic type guard to check if a matrix is unitary (U†U = I within numerical precision). A unitary matrix preserves quantum mechanical probabilities.
Matrix to check
True if matrix is unitary within numerical tolerance
Generic type guard to check if a matrix is unitary (U†U = I within numerical precision). A unitary matrix preserves quantum mechanical probabilities.