UnitaryMatrixQ
UnitaryMatrixQ(U)
returns
True
if a complex square matrixU
is unitary, that is, if its conjugate transposeU^(*)
is also its inverse, that is, ifU^(*).U = U.U^(*) = U.U^(-1) - 1 = I
whereI
is the identity matrix.
See:
Examples
>> u = {{0, I}, {I, 0}};
>> UnitaryMatrixQ(u)True
Implementation status
- ✅ - full supported