Scientia sine finibus

Linear Algebra / Unit 8, Complex Vector Spaces / Topic 8.3

Units and Topics

Unit 8. Complex Vector Spaces

8.3 Hermitian Matrices

A Hermitian matrix is equal to its conjugate transpose. It is the complex version of a symmetric matrix, and it keeps the good properties of Topic 7.1: its eigenvalues are real, and its eigenvectors for different eigenvalues are orthogonal. In quantum mechanics, each quantity that can be measured is represented by a Hermitian matrix.

You need Topics 5.2, 7.1, and 8.2 for this topic.

1. Hermitian Matrices

A square matrix A is called Hermitian when A† = A. The entry in row j and column i is the conjugate of the entry in row i and column j. Each diagonal entry must be equal to its own conjugate, so the diagonal entries are real.

H = 21 − i1 + i3

This matrix is Hermitian. The two entries off the diagonal are conjugates of each other, and the diagonal entries are real.

  • A real symmetric matrix is Hermitian, because its conjugate transpose is its transpose.
  • A complex matrix that is symmetric is usually not Hermitian. The matrix with the rows 1, i and i, 1 is equal to its transpose, but its conjugate transpose has −i in place of i.

The name honors the French mathematician Charles Hermite.

2. The Number ⟨x, Ax⟩ Is Real

For a Hermitian matrix A and any complex vector x, the inner product ⟨x, Ax⟩ is a real number. The rules of Topic 8.2 show this. Exchanging the two places of an inner product gives the conjugate, and a matrix moves across as its conjugate transpose.

⟨x, Ax⟩* = ⟨Ax, x⟩exchanging the two vectors gives the conjugate⟨x, Ax⟩* = ⟨x, A†x⟩move A to the other side as A†⟨x, Ax⟩* = ⟨x, Ax⟩because A† = A

A number that is equal to its own conjugate is real.

An example

Take the matrix H of Part 1 and x = (1, i).

Hx = 2 + (1 − i)i(1 + i) + 3i = 3 + i1 + 4imultiply⟨x, Hx⟩ = (1)(3 + i) + (−i)(1 + 4i)the conjugates of the components of x times the components of Hx⟨x, Hx⟩ = 3 + i − i + 4 = 7a real number

The vector x and the vector Hx are both complex, and the inner product is the real number 7.

This number is the complex version of the quadratic form of Topic 7.2. In quantum mechanics, for a state x of length 1, it is the average result of many measurements, which is called the expectation value.

3. The Eigenvalues Are Real

Let A be Hermitian, and let Av = λv with an eigenvector v, which is not the zero vector.

⟨v, Av⟩ = ⟨v, λv⟩because Av = λv⟨v, Av⟩ = λ|v|²take λ out of the inner product

From Part 2, the left side is real. The squared length |v|² is real and positive. So λ is real.

This also finishes the proof that Topic 7.1 left open. A real symmetric matrix is Hermitian, so all of its eigenvalues are real, for any size of the matrix.

4. The Eigenvectors Are Orthogonal

Let x and y be eigenvectors of a Hermitian matrix with the different eigenvalues λ₁ and λ₂. Because A† = A, the matrix can act on either place of the inner product.

⟨Ax, y⟩ = ⟨x, Ay⟩

The left side is ⟨λ₁x, y⟩ = λ₁⟨x, y⟩. The scalar in the first place comes out as its conjugate, but λ₁ is real. The right side is λ₂⟨x, y⟩.

(λ₁ − λ₂)⟨x, y⟩ = 0 so ⟨x, y⟩ = 0

This is the proof of Topic 7.1 with the inner product in place of the dot product.

The eigenvectors of H

For the matrix H of Part 1:

tr H = 5the tracedet H = 6 − (1 − i)(1 + i) = 6 − 2 = 4the determinantλ² − 5λ + 4 = 0the characteristic equation(λ − 1)(λ − 4) = 0factor

The eigenvalues are 4 and 1. Both are real.

  • For λ = 4, the first row of H − 4I gives −2x + (1 − i)y = 0. With y = 2, the eigenvector is (1 − i, 2).
  • For λ = 1, the first row of H − I gives x + (1 − i)y = 0. With y = 1, the eigenvector is (−1 + i, 1).
⟨(1 − i, 2), (−1 + i, 1)⟩ = (1 + i)(−1 + i) + (2)(1)the conjugates of the components of the first vector= −2 + 2 = 0the eigenvectors are orthogonal

The two eigenvectors are orthogonal. Their lengths are √6 and √3.

Try it: where the eigenvalues lie

The sliders set a 2 by 2 matrix with the real diagonal entries a and d and the upper right entry b = p + qi. The menu sets the lower left entry. The green rings show the two eigenvalues in the complex plane. For a Hermitian matrix, both rings stay on the real axis.

5. The Pauli Matrices

Three Hermitian matrices appear throughout quantum mechanics. They are called the Pauli matrices, and they describe the spin of an electron.

σx = 0110 σy = 0−ii0 σz = 100−1

Each one is Hermitian, has the trace 0 and the determinant −1, and has the eigenvalues 1 and −1.

MatrixEigenvector for 1Eigenvector for −1
σx(1, 1)(1, −1)
σy(1, i)(1, −i)
σz(1, 0)(0, 1)

Check one line of the table: σy times (1, i) is ((−i)(i), (i)(1)) = (1, i). The eigenvectors of σy are the orthogonal vectors of Topic 8.2. Topic 9.4 studies these matrices.

6. Sums, Multiples, and Products

  • The sum of two Hermitian matrices is Hermitian.
  • A real number times a Hermitian matrix is Hermitian. A complex number times a Hermitian matrix is usually not: (cA)† = c* A.
  • For any square matrix B, the matrices B + B† and B†B are Hermitian.
  • The product of two Hermitian matrices is Hermitian only when the two matrices give the same product in both orders: (AB)† = B†A† = BA. Topic 8.6 studies this condition.

A matrix with A† = −A is called skew-Hermitian. If A is Hermitian, then iA is skew-Hermitian, and the eigenvalues of iA are imaginary numbers.

Quantum mechanics represents each measurable quantity, such as energy, momentum, or spin, by a Hermitian matrix or by its version in infinite dimension. The possible results of a measurement are the eigenvalues. A measured value must be a real number, and the eigenvalues of a Hermitian matrix are real. Topic 9.3 develops this.

Common Mistakes

  • Calling a complex matrix Hermitian because it is symmetric. The entries across the diagonal must be conjugates of each other.
  • Allowing a diagonal entry that is not real.
  • Forgetting the conjugate in ⟨x, Ax⟩, and finding a complex value for a Hermitian matrix.
  • Multiplying a Hermitian matrix by i and expecting a Hermitian matrix.
  • Assuming that the product of two Hermitian matrices is Hermitian.
  • Checking that eigenvectors are orthogonal with the dot product. The inner product, with its conjugates, is the correct test.

Summary

FactStatement
Hermitian matrixA† = A. Real diagonal entries, and conjugate entries across the diagonal
Real caseA real symmetric matrix is Hermitian
⟨x, Ax⟩Real for each vector x
EigenvaluesAll real
EigenvectorsOrthogonal for different eigenvalues
Pauli matricesThree Hermitian matrices with the eigenvalues 1 and −1

Practice

Work each problem on paper first. Then open the answer to check your work.

1. Which of these matrices are Hermitian: 12 + i2 − i5, i112, 0ii0?

Only the first. Its diagonal entries are real, and 2 + i and 2 − i are conjugates.

The second has the diagonal entry i, which is not real. In the third, the entries across the diagonal are equal and not conjugates.

2. Find the entry z that makes 3z4 − 2i1 Hermitian.

The entry in row 1, column 2 must be the conjugate of the entry in row 2, column 1, so z = 4 + 2i.

3. Find the eigenvalues and the eigenvectors of 1i−i1.

trace = 2determinant = 1 − (i)(−i) = 1 − 1 = 0

The eigenvalues are 2 and 0. For 2, the first row gives −x + iy = 0, so the eigenvector is (i, 1). For 0, the first row gives x + iy = 0, so the eigenvector is (−i, 1).

Check:⟨(i, 1), (−i, 1)⟩ = (−i)(−i) + 1 = −1 + 1 = 0

4. Calculate ⟨x, σyx⟩ for x = (1, 0).

σyx = (0, i)⟨x, σyx⟩ = (1)(0) + (0)(i) = 0

The result is real, as it must be.

5. Show that B + B† is Hermitian for any square matrix B.

(B + B†)† = B† + (B†)†(B + B†)† = B† + B

The matrix is equal to its conjugate transpose.

6. A is Hermitian and not the zero matrix. For which complex numbers c is cA Hermitian?

(cA)† = c* A†(cA)† = c* Abecause A is Hermitian

This is equal to cA only when c* = c. So c must be real.

Python Practice

Step 1. Test whether a matrix is Hermitian

From Topic 8.2, H.conj().T is the conjugate transpose of H. The instruction np.allclose compares two matrices and gives True when all of their entries agree.

Python

The conjugate transpose is the matrix H itself, so the result is True. Now test the symmetric matrix with the rows 1, i and i, 1.

Python

The result is False. This matrix is symmetric, but it is not Hermitian.

Step 2. The eigenvalues are real

The instruction np.linalg.eigvalsh of Topic 7.2 also works for a Hermitian matrix. It gives the eigenvalues as real numbers, from the smallest to the largest. The second matrix below is not Hermitian, so the code uses np.linalg.eigvals for it.

Python

The Hermitian matrix has the real eigenvalues 1 and 4, as in Part 4. The symmetric matrix has the eigenvalues 1 + i and 1 − i, which are not real.

Now find the eigenvalues of the Pauli matrix σy, with the rows 0, −i and i, 0.

Python

Step 3. The eigenvectors are orthonormal

The instruction np.linalg.eigh of Topic 7.1 gives the eigenvalues and a matrix V whose columns are orthonormal eigenvectors. For complex vectors, the test for orthonormal columns uses the conjugate transpose: V†V must be the identity matrix.

Python

The last result is the identity matrix. The columns of V are multiples of the eigenvectors (−1 + i, 1) and (1 − i, 2) of Part 4. Python can multiply an eigenvector by a phase factor, so the entries can look different from the entries found by hand.

Step 4. The number ⟨x, Hx⟩

The code below calculates the inner product of x with Hx for the example of Part 2.

Python

The result is 7, written as (7+0j). The imaginary part is zero. Now calculate the same number for the vector x = (1 + i, 2).

Python

The result is again a real number.

Step 5. Build a Hermitian matrix

From Part 6, the matrix B + B† is Hermitian for any square matrix B. The code below starts from a matrix B that is not Hermitian.

Python

The matrix H has a real diagonal and conjugate entries across the diagonal, and its eigenvalues are real.

Quiz

This quiz has 5 questions on this topic. A question asks you either to choose one answer or to type numbers. The page grades your answers and explains each one. A number can be typed as a whole number, a decimal, a fraction such as 1/3, or a calculation such as sqrt(18)/2 or arccos(1/2). The page shows the value of a calculation next to the box. Angles in a calculation are in degrees. The Calculator button under each question opens a calculator. Your answers are saved in your browser, so they are still on the page when you come back to it.

Choose how your answers are checked

1. Which of these matrices is Hermitian?

2. The matrix 13 + 2iz5 is Hermitian. Find z.

3. What is true about the eigenvalues of each Hermitian matrix?

4. Find the eigenvalues of the Hermitian matrix 2i−i2.

5. Let x = (1, i), and let σy = 0−ii0. Find the number ⟨x, σyx⟩.

Next: Topic 8.4, Unitary Matrices