Lean, informalized

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

Exercise 2.9 - Each Pauli matrix expanded in the outer products of the computational basis

The four Pauli matrices as combinations of outer products.

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

The state space of a qubit is ℂ2\mathbb{C}^2, with the orthonormal computational basis |0⟩|0\rangle, |1⟩|1\rangle. The Pauli matrices II, XX, YY and ZZ are operators on this space, given by their matrices in that basis. The exercise asks for each of them in outer product notation, as a linear combination of the four operators |i⟩⟨j||i\rangle\langle j| with ii and jj each 00 or 11.

The Computational Basis

The computational basis vector |i⟩|i\rangle, for ii equal to 00 or 11, is the column vector in ℂ2\mathbb{C}^2 with entry 11 in position ii and 00 in the other position: |0⟩=(10),|1⟩=(01).|0\rangle = \begin{pmatrix} 1 \\ 0 \end{pmatrix}, \qquad |1\rangle = \begin{pmatrix} 0 \\ 1 \end{pmatrix}.(1)✦

The outer product |i⟩⟨j||i\rangle\langle j| of two basis vectors is the complex 2×22 \times 2 matrix obtained by multiplying the column |i⟩|i\rangle by the row ⟨j|\langle j|, the conjugate transpose of |j⟩|j\rangle.✦ Its entry in row kk and column ll is, with δab\delta_{ab} the Kronecker delta, equal to 11 if a=ba=b and 00 otherwise, (|i⟩⟨j|)kl=(|i⟩)k(|j⟩)l¯=δikδjl.\bigl(|i\rangle\langle j|\bigr)_{kl} = (|i\rangle)_k \, \overline{(|j\rangle)_l} = \delta_{ik}\,\delta_{jl}.(2)

The Pauli Matrices

The Pauli identity II is the 2×22 \times 2 identity matrix, I=(1001),I = \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix},(3) and 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},(4) where the ii in YY is the imaginary unit.

The Claim

By (2), the coefficient of |i⟩⟨j||i\rangle\langle j| in the expansion of a 2×22 \times 2 matrix is the entry of that matrix in row ii and column jj.

Theorem 1. The Pauli matrices are the following combinations of outer products of the computational basis vectors: I=|0⟩⟨0|+|1⟩⟨1|,I = |0\rangle\langle 0| + |1\rangle\langle 1|,(5)✦ X=|0⟩⟨1|+|1⟩⟨0|,X = |0\rangle\langle 1| + |1\rangle\langle 0|,(6)✦ Y=−i|0⟩⟨1|+i|1⟩⟨0|,Y = -i\,|0\rangle\langle 1| + i\,|1\rangle\langle 0|,(7)✦ Z=|0⟩⟨0|−|1⟩⟨1|.Z = |0\rangle\langle 0| - |1\rangle\langle 1|.(8)✦

What Is Checked

The claim is stated over the two computational basis vectors (1), their outer products (2), and the four matrices II, XX, YY and ZZ of (3) and (4). The library proves the four identities (5) to (8) about these constructions, each as an equality of complex 2×22 \times 2 matrices.