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:
TypeGuard[UnitaryMatrix|complex128|complex64|int64|int32|float64|float32|Sequence[Sequence[int|float|complex]]]