Unitary Matrix

DOWNLOAD Mathematica Notebook

A square matrix U is a unitary matrix if

 U^(H)=U^(-1),
(1)

where U^(H) denotes the conjugate transpose and U^(-1) is the matrix inverse. For example,

 A=[2^(-1/2) 2^(-1/2) 0; -2^(-1/2)i 2^(-1/2)i 0; 0 0 i]
(2)

is a unitary matrix.

Unitary matrices leave the length of a complex vector unchanged.

For real matrices, unitary is the same as orthogonal. In fact, there are some similarities between orthogonal matrices and unitary matrices. The rows of a unitary matrix are a unitary basis. That is, each row has length one, and their Hermitian inner product is zero. Similarly, the columns are also a unitary basis. In fact, given any unitary basis, the matrix whose rows are that basis is a unitary matrix. It is automatically the case that the columns are another unitary basis.

A matrix m can be tested to see if it is unitary using the Wolfram Language function:

  UnitaryQ[m_List?MatrixQ] :=
    (Conjugate@Transpose @ m . m ==
      IdentityMatrix @ Length @ m)

The definition of a unitary matrix guarantees that

 U^(H)U=I,
(3)

where I is the identity matrix. In particular, a unitary matrix is always invertible, and U^(-1)=U^(H). Note that transpose is a much simpler computation than inverse. A similarity transformation of a Hermitian matrix with a unitary matrix gives

(uau^(-1))^(H)=[(ua)(u^(-1))]^(H)
(4)
=(u^(-1))^(H)(ua)^(H)
(5)
=(u^H)^(H)(a^(H)u^(H))
(6)
=uau^(H)
(7)
=uau^(-1).
(8)

Unitary matrices are normal matrices. If M is a unitary matrix, then the permanent

 |perm(M)|<=1
(9)

(Minc 1978, p. 25, Vardi 1991).

The unitary matrices are precisely those matrices which preserve the Hermitian inner product

 <v,w>=<Uv,Uw>.
(10)

Also, the norm of the determinant of U is |detU|=1. Unlike the orthogonal matrices, the unitary matrices are connected. If detU=1 then U is a special unitary matrix.

The product of two unitary matrices is another unitary matrix. The inverse of a unitary matrix is another unitary matrix, and identity matrices are unitary. Hence the set of unitary matrices form a group, called the unitary group.

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.