Lean, informalized

Nielsen & Chuang · Chapter 2, Introduction to quantum mechanics · p. 69

Exercise 2.11 - Eigenvectors of the Pauli matrices, and each matrix as a difference of two outer products

Eigenvectors and diagonal forms of the Pauli matrices.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Exercise

Exercise 2.11 is about the three Pauli matrices XX, YY and ZZ, which act on the state space ℂ2\mathbb{C}^2 of a qubit. It asks for the eigenvalues and eigenvectors of each matrix, and for its diagonal representation: the matrix written as a sum, over its eigenvectors |λ⟩|\lambda\rangle, of the eigenvalue λ\lambda times the outer product |λ⟩⟨λ||\lambda\rangle\langle\lambda|.

The library answers with the eigenvectors of XX and of YY written out as column vectors, the eigenvalue equation of each, and the diagonal representation of all three matrices. ZZ is already diagonal in the computational basis, the basis of the column vectors |0⟩|0\rangle and |1⟩|1\rangle defined in the next section.

A Qubit

For jj in {0,1}\{0, 1\}, the computational basis ket |j⟩|j\rangle of the qubit is the column vector of ℂ2\mathbb{C}^2 with entry 11 in position jj and 00 in the other: |0⟩=(10),|1⟩=(01).|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \qquad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}.(1)✦

The Pauli matrices XX, YY and ZZ are the complex 2×22 \times 2 matrices X=(0110),Y=(0−ii0),Z=(100−1),X = \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \qquad Y = \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \qquad Z = \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix},(2) with ii the imaginary unit.

For a vector |v⟩|v\rangle of ℂ2\mathbb{C}^2 with components v0v_0 and v1v_1, the outer product |v⟩⟨v||v\rangle\langle v| is the complex 2×22 \times 2 matrix with entries (|v⟩⟨v|)jk=vjvk*,\bigl( |v\rangle\langle v| \bigr)_{jk} = v_j \, v_k^{*},(3)✦ where j,k∈{0,1}j, k \in \{0, 1\} and vk*v_k^{*} is the complex conjugate of vkv_k.

Four States

Four more states of the qubit are built from the complex number 12.\frac{1}{\sqrt{2}}.(4)✦

The states |+⟩|+\rangle and |−⟩|-\rangle of the qubit are the vectors of ℂ2\mathbb{C}^2 with amplitude 1/21/\sqrt{2} on |0⟩|0\rangle and, on |1⟩|1\rangle, amplitude 1/21/\sqrt{2} and −1/2-1/\sqrt{2} respectively: |+⟩=(1/21/2),|+\rangle = \begin{pmatrix} 1/\sqrt{2} \\ 1/\sqrt{2} \end{pmatrix},(5) |−⟩=(1/2−1/2).|-\rangle = \begin{pmatrix} 1/\sqrt{2} \\ -1/\sqrt{2} \end{pmatrix}.(6)

The states |+i⟩|+i\rangle and |−i⟩|-i\rangle of the qubit are the vectors of ℂ2\mathbb{C}^2 with amplitude 1/21/\sqrt{2} on |0⟩|0\rangle and, on |1⟩|1\rangle, amplitude i/2i/\sqrt{2} and −i/2-i/\sqrt{2} respectively: |+i⟩=(1/2i/2),|+i\rangle = \begin{pmatrix} 1/\sqrt{2} \\ i/\sqrt{2} \end{pmatrix},(7) |−i⟩=(1/2−i/2).|-i\rangle = \begin{pmatrix} 1/\sqrt{2} \\ -i/\sqrt{2} \end{pmatrix}.(8)

The Claim

Theorem 1. The states |+⟩|+\rangle and |−⟩|-\rangle are eigenvectors of XX, X|+⟩=|+⟩,X|+\rangle = |+\rangle,(9)✦ X|−⟩=−|−⟩,X|-\rangle = -|-\rangle,(10)✦ and XX has the diagonal representation X=|+⟩⟨+|−|−⟩⟨−|.X = |+\rangle\langle +| - |-\rangle\langle -|.(11)✦ The states |+i⟩|+i\rangle and |−i⟩|-i\rangle are eigenvectors of YY, Y|+i⟩=|+i⟩,Y|+i\rangle = |+i\rangle,(12)✦ Y|−i⟩=−|−i⟩,Y|-i\rangle = -|-i\rangle,(13)✦ and YY has the diagonal representation Y=|+i⟩⟨+i|−|−i⟩⟨−i|.Y = |+i\rangle\langle +i| - |-i\rangle\langle -i|.(14)✦ In the computational basis, ZZ has the diagonal representation Z=|0⟩⟨0|−|1⟩⟨1|.Z = |0\rangle\langle 0| - |1\rangle\langle 1|.(15)✦

What Is Checked

The claim is stated over the Pauli matrices (2), the computational basis kets (1), the four states (5) to (8) with their constant (4), and the outer product (3), all of them explicit complex matrices and vectors of ℂ2\mathbb{C}^2.

About these constructions the library proves the four eigenvalue equations and the three diagonal representations of the theorem, (9) to (15).