PermutationMatrix.is_unitary
- static PermutationMatrix.is_unitary(U, tol=1e-08)
Check if U is a unitary matrix.
- Parameters:
U (
Any
) – The matrix to check.tol (
float
) – The numerical precision of the check.
- Returns:
True if U is a unitary.
- Return type:
bool