The Exercise
Exercise 2.11 is about the three Pauli matrices , and , which act on the state space 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 , of the eigenvalue times the outer product .
The library answers with the eigenvectors of and of written out as column vectors, the eigenvalue equation of each, and the diagonal representation of all three matrices. is already diagonal in the computational basis, the basis of the column vectors and defined in the next section.
A Qubit
For in , the computational basis ket of the qubit is the column vector of with entry in position and in the other: (1)✦
The Pauli matrices , and are the complex matrices (2) with the imaginary unit.
For a vector of with components and , the outer product is the complex matrix with entries (3)✦ where and is the complex conjugate of .
Four States
Four more states of the qubit are built from the complex number (4)✦
The states and of the qubit are the vectors of with amplitude on and, on , amplitude and respectively: (5) (6)
The states and of the qubit are the vectors of with amplitude on and, on , amplitude and respectively: (7) (8)
The Claim
Theorem 1. The states and are eigenvectors of , (9)✦ (10)✦ and has the diagonal representation (11)✦ The states and are eigenvectors of , (12)✦ (13)✦ and has the diagonal representation (14)✦ In the computational basis, has the diagonal representation (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 .
About these constructions the library proves the four eigenvalue equations and the three diagonal representations of the theorem, (9) to (15).