The Exercise
The state space of a qubit is , with the orthonormal computational basis , . The Pauli matrices , , and 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 with and each or .
The Computational Basis
The computational basis vector , for equal to or , is the column vector in with entry in position and in the other position: (1)✦
The outer product of two basis vectors is the complex matrix obtained by multiplying the column by the row , the conjugate transpose of .✦ Its entry in row and column is, with the Kronecker delta, equal to if and otherwise, (2)
The Pauli Matrices
The Pauli identity is the identity matrix, (3) and the Pauli matrices , and are the complex matrices (4) where the in is the imaginary unit.
The Claim
By (2), the coefficient of in the expansion of a matrix is the entry of that matrix in row and column .
Theorem 1. The Pauli matrices are the following combinations of outer products of the computational basis vectors: (5)✦ (6)✦ (7)✦ (8)✦
What Is Checked
The claim is stated over the two computational basis vectors (1), their outer products (2), and the four matrices , , and of (3) and (4). The library proves the four identities (5) to (8) about these constructions, each as an equality of complex matrices.