Mathwords logoMathwords

Unitary Matrix — Definition, Formula & Examples

A unitary matrix is a complex square matrix that, when multiplied by its conjugate transpose, produces the identity matrix. It is the complex-valued generalization of an orthogonal matrix.

A square matrix UCn×nU \in \mathbb{C}^{n \times n} is unitary if UU=UU=InU^*U = UU^* = I_n, where U=UTU^* = \overline{U}^T denotes the conjugate transpose of UU and InI_n is the n×nn \times n identity matrix. Equivalently, U1=UU^{-1} = U^*.

Key Formula

UU=UU=IU^* U = U U^* = I
Where:
  • UU = A complex square matrix
  • UU^* = The conjugate transpose of U (also written U^\dagger)
  • II = The identity matrix of the same size as U

How It Works

To check whether a complex matrix is unitary, compute its conjugate transpose UU^* by taking the transpose and then replacing every entry with its complex conjugate. Then multiply UUU^*U (or UUUU^*). If the result is the identity matrix, the matrix is unitary. Key properties follow: every eigenvalue of a unitary matrix has absolute value 1, the columns (and rows) form an orthonormal set under the standard complex inner product, and det(U)=1|\det(U)| = 1.

Worked Example

Problem: Verify that the matrix U is unitary, where U = (1/√2) [[1, 1], [i, -i]].
Step 1: Write U explicitly: Express the matrix with its entries.
U=12[11ii]U = \frac{1}{\sqrt{2}}\begin{bmatrix} 1 & 1 \\ i & -i \end{bmatrix}
Step 2: Compute the conjugate transpose U*: Transpose U and take the complex conjugate of each entry. The conjugate of i is -i and vice versa.
U=12[1i1i]U^* = \frac{1}{\sqrt{2}}\begin{bmatrix} 1 & -i \\ 1 & i \end{bmatrix}
Step 3: Multiply U* U: Carry out the matrix multiplication and simplify.
UU=12[11+(i)(i)11+(i)(i)11+ii11+i(i)]=12[1+111111+1]=[1001]U^*U = \frac{1}{2}\begin{bmatrix} 1\cdot1 + (-i)(i) & 1\cdot1 + (-i)(-i) \\ 1\cdot1 + i\cdot i & 1\cdot1 + i(-i) \end{bmatrix} = \frac{1}{2}\begin{bmatrix} 1+1 & 1-1 \\ 1-1 & 1+1 \end{bmatrix} = \begin{bmatrix} 1 & 0 \\ 0 & 1 \end{bmatrix}
Answer: Since U*U = I, the matrix U is unitary.

Why It Matters

Unitary matrices preserve the length of complex vectors, making them essential in quantum mechanics where state transformations must conserve probability. They also appear in numerical linear algebra (QR factorization with complex matrices) and signal processing (the discrete Fourier transform matrix is unitary after proper scaling).

Common Mistakes

Mistake: Using the ordinary transpose instead of the conjugate transpose when checking unitarity.
Correction: For complex matrices, you must conjugate every entry after transposing. Forgetting the conjugation gives incorrect results whenever the matrix has non-real entries.