The Exercise
Shor’s code stores one qubit in nine, grouped in three blocks of three. Its codeword puts every block in the cat state , its codeword puts every block in , and errors are diagnosed by measuring eight syndrome observables : products of on two adjacent qubits of a block, and products of over two adjacent blocks. The exercise takes the product of over all nine qubits as and the product of over all nine as , and asks to show that the two act on the encoded qubit as its Pauli and .
The Nine Qubit Register
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space✦, and any such space is the state space of a system.✦ The qubit is the system whose state space is ✦; its basis states and are the standard basis vectors of .✦ The composite system of systems and is the system whose state space is the tensor product of their state spaces.✦
A pure state of is a unit vector in the state space of .✦ For a nonzero vector in the state space of , the normalized pure state of is the pure state of with vector .✦ For pure states of and of , the product is the pure state of with vector .✦
The three qubit register is the composite of three qubits.✦ Its computational basis states are the products for bits , and .✦ The nine qubit Shor register is the composite of three copies of the three qubit register, one for each block, so that its qubits fall into the blocks , and .✦
The Codewords
For a bit , the block cat vector is the vector in the state space of the three qubit register✦, and the block cat state is the pure state obtained by normalizing it, .✦ For bits , and , the product of three cat blocks is the pure state of the Shor register that puts block in the block cat state of the bit .✦ The Shor codeword , for a bit , is the product of three cat blocks that all carry the bit : (1)✦
Observables and Unitaries
An observable on a system is a self adjoint operator on the state space of , .✦ A pure state of is an eigenstate of with eigenvalue , a real number, when .✦ The identity observable on is the observable whose operator is the identity✦, and for observables on and on the tensor product is the observable on whose operator is the tensor product of their operators.✦
A unitary of a system is an operator on the state space of with .✦ Applied to a pure state of , the unitary gives the pure state with vector .✦ For unitaries of and of , the product unitary is the unitary of whose operator is the tensor product of their operators.✦
The Pauli matrices are (2) and for a real vector the matrix is .✦ For such , the Pauli observable is the observable on the qubit whose operator is the matrix ✦; the observables and are those for the unit vectors and . The Pauli gate, the phase flip, is the unitary of the qubit whose operator is the matrix .✦
The Logical Operators and the Syndromes
Write and for and acting on qubit of a register and as the identity on its other qubits. On the three qubit register, the block observable is the observable that acts as on each qubit✦, and the block gate is the unitary that applies the Pauli gate to each qubit.✦ The bit flip code stores a qubit in the three qubit register, and its two syndrome observables are , which compares the first qubit with the second✦, and , which compares the second with the third.✦
On the Shor register, the logical operator is the product unitary of three block gates✦, and the logical operator is the tensor product of three block observables: (3)✦ The Shor code has eight syndrome observables : the two bit flip syndromes in each block, and the block observable on each pair of adjacent blocks, with the identity observable on the remaining block: (4)
The Claim
Theorem 1. Let and be the Shor codewords (1), and the logical operators (3) and the syndrome observables (4). For each bit , with the sum modulo two, (5)✦ and is an eigenstate of : (6)✦ The two logical operators anticommute, (7)✦ the operator commutes with each syndrome observable, (8)✦ (9)✦ (10)✦ (11)✦ (12)✦ (13)✦ (14)✦ (15)✦ and so does the observable , (16)✦ (17)✦ (18)✦ (19)✦ (20)✦ (21)✦ (22)✦ (23)✦
What Is Checked
The claim is stated over the codewords of the nine qubit Shor register in (1), and over the logical operators and syndrome observables of (3) and (4), all built by tensor products from the Pauli operators and the identity on single qubits.
About these constructions the library proves that the block cat vector is nonzero for either bit ✦, so that it normalizes to a pure state, and that a product of pure states and the image of a pure state under a unitary are again unit vectors. It proves that the matrix is Hermitian for real and the matrix unitary, and that tensor products preserve both properties, so that is a unitary and and are observables.