Unitary Matrix - Definition, Properties, Examples

#Algebra
TL;DR
A unitary matrix is a square matrix of complex numbers whose conjugate transpose equals its inverse — that is, UHU=UUH=IU^H U = U U^H = I. This article covers the definition, the conjugate-transpose test, every property (orthonormal columns, ∣det⁡U∣=1|\det U| = 1, eigenvalues on the unit circle), how unitary generalises the orthogonal matrix to complex numbers, and worked examples
MV
Madhukar VLast updated on July 13, 202610 min read

What Is A Unitary Matrix?

A unitary matrix is a square matrix UU with complex entries whose conjugate transpose is also its inverse. Written as a single condition:

UHU=UUH=IU^H U = U U^H = I

Here UHU^H (read "U-Hermitian," also written U∗U^* or U†U^\dagger) is the conjugate transpose: transpose the matrix, then replace every entry by its complex conjugate. II is the identity matrix.

Variable glossary. A complex conjugate of a+bia + bi is a−bia - bi — flip the sign of the imaginary part. The conjugate transpose UHU^H combines that conjugation with the ordinary transpose. II is the square grid with 1s on the diagonal and 0s elsewhere.

Equivalently, UU is unitary exactly when U−1=UHU^{-1} = U^H. The defining feature is that its inverse costs nothing to compute: you conjugate and transpose, and you are done.

How Do You Check If A Matrix Is Unitary?

The test is direct: compute UHU^H, multiply it by UU, and confirm the result is the identity.

The steps, each on its own line:

  1. Transpose UU to get UTU^T.

  2. Conjugate every entry of UTU^T — flip the sign of each imaginary part — to get UHU^H.

  3. Multiply UHUU^H U.

  4. If the product is II, the matrix is unitary.

A faster reading of the same test: a matrix is unitary when its columns are orthonormal — each column has length 1, and any two distinct columns are perpendicular under the complex inner product. The two views agree, because UHU=IU^H U = I is precisely the statement that column ii dotted with column jj gives 1 when i=ji = j and 0 otherwise.

What Are The Properties Of A Unitary Matrix?

The properties all flow from the single condition UHU=IU^H U = I.

  • It is always square and invertible. A non-square matrix cannot satisfy UHU=UUH=IU^H U = U U^H = I, and the determinant is never zero, so the invertible matrix status is automatic.

  • The inverse is the conjugate transpose: U−1=UHU^{-1} = U^H. No row reduction needed.

  • The determinant has absolute value 1: ∣det⁡U∣=1|\det U| = 1. The determinant is a complex number on the unit circle, not necessarily ±1\pm 1.

  • Eigenvalues lie on the unit circle: every eigenvalue λ\lambda satisfies ∣λ∣=1|\lambda| = 1.

  • The product of two unitary matrices is unitary. If UU and VV are unitary, so is UVUV.

  • The inverse of a unitary matrix is unitary, and so is its conjugate transpose.

  • It preserves length and inner products: ∣Ux∣=∣x∣|Ux| = |x| for every vector xx. This is the geometric heart of the definition.

One caution: the sum of two unitary matrices is generally not unitary. The family is closed under multiplication and inversion, not under addition.

Is A Unitary Matrix The Same As An Orthogonal Matrix?

This is the question that comes up most, and the answer is a clean "almost."

A unitary matrix is the complex-number version of an orthogonal matrix. An orthogonal matrix is a real matrix with ATA=IA^T A = I — its transpose is its inverse. A unitary matrix relaxes "real" to "complex" and replaces the plain transpose with the conjugate transpose.

The relationship is precise:

  • If a unitary matrix happens to have only real entries, conjugation does nothing, so UH=UTU^H = U^T, and the unitary condition collapses to the orthogonal condition.

  • Therefore every real unitary matrix is orthogonal, and every orthogonal matrix is a real special case of unitary.

  • Non-real unitary matrices exist that are not orthogonal — for instance, the diagonal matrix with ii on the diagonal.

So orthogonal sits inside unitary, the way the real numbers sit inside the complex numbers.

Examples Of A Unitary Matrix

Example 1

Show that U=[0i i0]U = \begin{bmatrix} 0 & i \ i & 0 \end{bmatrix} is unitary.

First build UHU^H. Transpose, then conjugate (the conjugate of ii is −i-i):

UT=[0i i0]U^T = \begin{bmatrix} 0 & i \ i & 0 \end{bmatrix}

UH=[0−i −i0]U^H = \begin{bmatrix} 0 & -i \ -i & 0 \end{bmatrix}

Now multiply UHUU^H U:

UHU=[0−i −i0][0i i0]=[(−i)(i)0 0(−i)(i)]=[10 01]U^H U = \begin{bmatrix} 0 & -i \ -i & 0 \end{bmatrix}\begin{bmatrix} 0 & i \ i & 0 \end{bmatrix} = \begin{bmatrix} (-i)(i) & 0 \ 0 & (-i)(i) \end{bmatrix} = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}

Since (−i)(i)=−i2=1(-i)(i) = -i^2 = 1, the product is II.

Final answer: UHU=IU^H U = I, so UU is unitary.

Example 2

Is U=12[11 i−i]U = \dfrac{1}{\sqrt{2}}\begin{bmatrix} 1 & 1 \ i & -i \end{bmatrix} unitary?

The intuitive move is to skip the conjugation and just test UTU=IU^T U = I, treating it like a real orthogonal check.

Wrong attempt. Using the plain transpose UT=12[1i 1−i]U^T = \dfrac{1}{\sqrt 2}\begin{bmatrix} 1 & i \ 1 & -i \end{bmatrix}:

UTU=12[1i 1−i][11 i−i]=12[1+i21−i2 1−i21+i2]=12[02 20]U^T U = \frac{1}{2}\begin{bmatrix} 1 & i \ 1 & -i \end{bmatrix}\begin{bmatrix} 1 & 1 \ i & -i \end{bmatrix} = \frac{1}{2}\begin{bmatrix} 1 + i^2 & 1 - i^2 \ 1 - i^2 & 1 + i^2 \end{bmatrix} = \frac{1}{2}\begin{bmatrix} 0 & 2 \ 2 & 0 \end{bmatrix}

That is not the identity, which would suggest UU is not unitary.

Why it is wrong. The unitary test uses the conjugate transpose, not the plain transpose. With complex entries, skipping the conjugation tests the wrong condition.

Correct method. Conjugate when transposing: UH=12[1−i 1i]U^H = \dfrac{1}{\sqrt 2}\begin{bmatrix} 1 & -i \ 1 & i \end{bmatrix}.

UHU=12[1−i 1i][11 i−i]=12[1+11−1 1−11+1]=[10 01]U^H U = \frac{1}{2}\begin{bmatrix} 1 & -i \ 1 & i \end{bmatrix}\begin{bmatrix} 1 & 1 \ 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}

Here (−i)(i)=1(-i)(i) = 1 contributes the diagonal 2s, and the off-diagonal terms cancel.

Final answer: With the conjugate transpose, UHU=IU^H U = I, so UU is unitary.

Example 3

Confirm [i0 0i]\begin{bmatrix} i & 0 \ 0 & i \end{bmatrix} is unitary and find its determinant.

Conjugate transpose: UH=[−i0 0−i]U^H = \begin{bmatrix} -i & 0 \ 0 & -i \end{bmatrix}.

UHU=[(−i)(i)0 0(−i)(i)]=[10 01]U^H U = \begin{bmatrix} (-i)(i) & 0 \ 0 & (-i)(i) \end{bmatrix} = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}

The determinant of UU is i⋅i=i2=−1i \cdot i = i^2 = -1, and ∣−1∣=1|-1| = 1.

Final answer: UU is unitary, with det⁡U=−1\det U = -1 and ∣det⁡U∣=1|\det U| = 1.

Example 4

Verify a real unitary matrix is just orthogonal, using U=[01 −10]U = \begin{bmatrix} 0 & 1 \ -1 & 0 \end{bmatrix}.

All entries are real, so UH=UT=[0−1 10]U^H = U^T = \begin{bmatrix} 0 & -1 \ 1 & 0 \end{bmatrix}.

UHU=[0−1 10][01 −10]=[10 01]U^H U = \begin{bmatrix} 0 & -1 \ 1 & 0 \end{bmatrix}\begin{bmatrix} 0 & 1 \ -1 & 0 \end{bmatrix} = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}

The test reduces to the orthogonal condition UTU=IU^T U = I, exactly as expected for a real matrix.

Final answer: UU is unitary, and because it is real, it is also orthogonal.

Example 5

Show the product of two unitary matrices is unitary, for unitary UU and VV.

Use the product rule for the conjugate transpose, (UV)H=VHUH(UV)^H = V^H U^H:

(UV)H(UV)=VHUHUV(UV)^H (UV) = V^H U^H U V

Since UU is unitary, UHU=IU^H U = I:

=VHIV=VHV=I= V^H I V = V^H V = I

The last step uses VV unitary.

Final answer: (UV)H(UV)=I(UV)^H(UV) = I, so UVUV is unitary.

Example 6

Check that U=12[1+i1−i 1−i1+i]U = \dfrac{1}{2}\begin{bmatrix} 1+i & 1-i \ 1-i & 1+i \end{bmatrix} is unitary.

Conjugate transpose: conjugate each entry (1+i‾=1−i\overline{1+i} = 1-i) and transpose (the matrix is symmetric, so positions are unchanged):

UH=12[1−i1+i 1+i1−i]U^H = \dfrac{1}{2}\begin{bmatrix} 1-i & 1+i \ 1+i & 1-i \end{bmatrix}

The diagonal of UHUU^H U uses ∣1+i∣2+∣1−i∣2=2+2=4|1+i|^2 + |1-i|^2 = 2 + 2 = 4, scaled by 14\tfrac14 to give 1. The off-diagonal entries combine (1−i)(1−i)+(1+i)(1+i)=−2i+2i=0(1-i)(1-i) + (1+i)(1+i) = -2i + 2i = 0.

UHU=[10 01]U^H U = \begin{bmatrix} 1 & 0 \ 0 & 1 \end{bmatrix}

Final answer: UHU=IU^H U = I, so UU is unitary.

Why Unitary Matrices Matter: "Transformations that never lose information"

A unitary matrix exists to capture the transformations that preserve length and angle in a complex vector space. Stretching, squashing, or collapsing dimensions all destroy information; a unitary transformation does none of those, so it is perfectly reversible — and its reverse is free to write down.

Where that property carries real weight:

  • Quantum mechanics. Every evolution of a quantum state is a unitary transformation, because probabilities must always sum to 1. A non-unitary step would mean probability leaking away, which is physically impossible. The entire formalism rests on this.

  • Signal processing. The discrete Fourier transform is unitary (up to scaling). That is why it can move a signal between the time domain and the frequency domain and back with no loss — the transform's inverse is its conjugate transpose.

  • Numerical stability. Algorithms that decompose a matrix using unitary factors (the QR and SVD methods) stay numerically stable precisely because unitary steps never amplify rounding errors. Length preservation keeps the arithmetic well-behaved.

Where Students Slip On Unitary Matrices (And How To Fix It)

Mistake 1: Using the transpose instead of the conjugate transpose

Where it slips in: Testing a complex matrix with UTUU^T U as if it were real.

Don't do this: Compute UTUU^T U and conclude the matrix is or isn't unitary from that.

The correct way: Use UHUU^H U, the conjugate transpose. The first instinct, especially for someone fresh off orthogonal matrices, is to reach for the plain transpose and skip the conjugation. On real matrices that is fine, because conjugation does nothing — which is exactly why the habit forms and then breaks the moment an ii appears.

Mistake 2: Expecting the determinant to be exactly 1

Where it slips in: Reading "∣det⁡U∣=1|\det U| = 1" as "det⁡U=1\det U = 1."

Don't do this: Reject a valid unitary matrix because its determinant came out as ii or −1-1.

The correct way: The determinant of a unitary matrix is a complex number of modulus 1 — it can be 11, −1-1, ii, or any point on the unit circle. The memorizer who stored "determinant is 1" misses that it is the absolute value that equals 1, not the determinant itself.

Mistake 3: Assuming the sum of unitary matrices is unitary

Where it slips in: Treating unitary like a property that survives addition.

Don't do this: Add two unitary matrices and assume the result is still unitary.

The correct way: The family is closed under multiplication and inversion, not addition. The second-guesser who notices that II and −I-I are both unitary but I+(−I)=0I + (-I) = 0 is not, has spotted the counterexample correctly.

Key Takeaways

  • A unitary matrix is a complex square matrix with UHU=UUH=IU^H U = U U^H = I, so its conjugate transpose is its inverse.

  • To test for unitarity, transpose, conjugate every entry, multiply by the original, and check for the identity — or confirm the columns are orthonormal.

  • A unitary matrix has ∣det⁡U∣=1|\det U| = 1, eigenvalues of modulus 1, and preserves vector length.

  • A real unitary matrix is exactly an orthogonal matrix; orthogonal is the real special case of unitary.

  • Unitary matrices underpin quantum mechanics, the Fourier transform, and numerically stable matrix algorithms.

A Practical Next Step

Practice these to make the conjugate-transpose test automatic, then return to the test section and write UHU^H in full if the conjugation step keeps slipping:

  1. Check whether [i0 0−i]\begin{bmatrix} i & 0 \ 0 & -i \end{bmatrix} is unitary.

  2. Find the determinant of any unitary matrix you build and confirm its modulus is 1.

  3. Take a real rotation matrix and verify it satisfies the unitary condition.

To work through complex matrices with a teacher who builds the geometry first, work with an algebra tutor, a high school math tutor, or through math tutoring. Want a live Bhanzu trainer to walk through more unitary-matrix problems? Book a free demo class.

Read More

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What makes a matrix unitary?
A matrix is unitary when its conjugate transpose is its inverse, written UHU=IU^H U = I. Equivalently, its columns form an orthonormal set under the complex inner product.
What is the difference between a unitary and a Hermitian matrix?
They are different conditions. A unitary matrix satisfies UH=U−1U^H = U^{-1} (conjugate transpose is the inverse); a Hermitian matrix satisfies UH=UU^H = U (it equals its own conjugate transpose). A matrix can be one, both, or neither.
Is every orthogonal matrix unitary?
Yes. An orthogonal matrix is real with ATA=IA^T A = I, and for real matrices the conjugate transpose equals the plain transpose, so the orthogonal condition is just the unitary condition with no imaginary part.
Can a unitary matrix have real entries?
Yes, and when it does it is precisely an orthogonal matrix — for example, any rotation matrix in the plane.
✍️ Written By
Madhukar V
Madhukar V
Math Columnist & Analyst
I see mathematics as more than just numbers and formulas—it is a way of thinking, questioning, and understanding the world around us. I work at the intersection of mathematics, EdTech, technology, and AI-powered learning, I enjoy exploring how mathematical ideas can be made simple, meaningful, and relatable. Through my articles, I aim to present mathematics with curiosity and a practical perspective, helping readers see the beauty and relevance behind every concept in a Bhanzu way.
LinkedIn
Related Articles
Book a FREE Demo ClassBook Now →