Linear Algebra / Unit 8, Complex Vector Spaces / Topic 8.3
Unit 8. Complex Vector Spaces
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.
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 + i3This matrix is Hermitian. The two entries off the diagonal are conjugates of each other, and the diagonal entries are real.
The name honors the French mathematician Charles Hermite.
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† = AA number that is equal to its own conjugate is real.
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 numberThe 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.
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 productFrom 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.
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⟩ = 0This is the proof of Topic 7.1 with the inner product in place of the dot product.
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) = 0factorThe eigenvalues are 4 and 1. Both are real.
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.
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−1Each one is Hermitian, has the trace 0 and the determinant −1, and has the eigenvalues 1 and −1.
| Matrix | Eigenvector for 1 | Eigenvector 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.
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.
| Fact | Statement |
|---|---|
| Hermitian matrix | A† = A. Real diagonal entries, and conjugate entries across the diagonal |
| Real case | A real symmetric matrix is Hermitian |
| ⟨x, Ax⟩ | Real for each vector x |
| Eigenvalues | All real |
| Eigenvectors | Orthogonal for different eigenvalues |
| Pauli matrices | Three Hermitian matrices with the eigenvalues 1 and −1 |
Work each problem on paper first. Then open the answer to check your work.
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.
The entry in row 1, column 2 must be the conjugate of the entry in row 2, column 1, so z = 4 + 2i.
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
σyx = (0, i)⟨x, σyx⟩ = (1)(0) + (0)(i) = 0
The result is real, as it must be.
(B + B†)† = B† + (B†)†(B + B†)† = B† + B
The matrix is equal to its conjugate transpose.
(cA)† = c* A†(cA)† = c* Abecause A is Hermitian
This is equal to cA only when c* = c. So c must be real.
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.
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
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.
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.
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.
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?
A Hermitian matrix has real diagonal entries, and the entries across the diagonal are conjugates of each other. Only the last matrix has i and −i across the diagonal with a real diagonal.
2. The matrix 13 + 2iz5 is Hermitian. Find z.
The entry in row 2, column 1 must be the conjugate of the entry in row 1, column 2. The conjugate of 3 + 2i is 3 − 2i.
3. What is true about the eigenvalues of each Hermitian matrix?
For an eigenvector v of a Hermitian matrix A, the number ⟨v, Av⟩ = λ|v|² is real, and |v|² is real and positive. So λ is real. It can be negative or zero.
4. Find the eigenvalues of the Hermitian matrix 2i−i2.
trace = 4determinant = 4 − (i)(−i) = 4 − 1 = 3λ² − 4λ + 3 = 0the characteristic equation(λ − 1)(λ − 3) = 0factor
5. Let x = (1, i), and let σy = 0−ii0. Find the number ⟨x, σyx⟩.
σyx = ((−i)(i), (i)(1)) = (1, i)this is x itself⟨x, σyx⟩ = ⟨x, x⟩ = 1 + 1 = 2It is real, as it must be for a Hermitian matrix.