The Exercise
The three qubit phase flip code encodes one qubit into three, with the logical states and . The errors in view are no error at all and a phase flip on one of the three qubits, the set . The exercise is to verify that the code satisfies the quantum error correction conditions for this set of errors.
In the library the code is given by its projector and the errors by four operators , all on the state space of three qubits.
Three Qubits
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space.✦ A pure state of is a unit vector in the state space of , , determined physically up to a global phase.✦ The composite system of two systems and is the system whose state space is the tensor product of their state spaces.✦
The qubit is the two level system whose state space is .✦ Write and for the standard basis vectors of . The states and of the qubit are the pure states of with the vectors (1) the eigenvectors of the Pauli operator with eigenvalues and . Three qubits form the composite system , on which the code below is defined.
The Code
Label the two eigenvectors of by : (2)✦ For labels , the vector of the three qubits is the product (3)✦ The codewords of the phase flip code are the two such vectors with all three labels equal, (4)✦ The code projector of the phase flip code is the operator on the state space of the three qubits that sums the projectors onto the two codewords: (5)✦
Phase Flips
A unitary of a system is a closed system evolution of : an operator on the state space of with .✦ The identity of is the identity operator on the state space of , and it is a unitary of . For unitaries of and of , the product unitary is the unitary of whose operator is the tensor product of the two.✦ A unitary of a system of qubits is also called a gate. With the product unitary is the gate , which acts on the first factor alone; with it is the gate , which acts on the last.
The phase flip is the unitary of the qubit whose matrix is the Pauli matrix (6)✦ Built from it, the four error gates are unitaries of the three qubit system, (7)✦ where each is the identity of the qubits it stands for. The error operators are these four, labelled in this order: (8)✦
The Claim
An operator on the state space of a system, together with a family of operators on the same space, satisfies the quantum error correction conditions when there is a Hermitian complex matrix , with rows and columns labelled like the , such that (9)✦
Theorem 1. Let be the code projector (5) of the phase flip code and the error operators (8). Then and the satisfy the quantum error correction conditions, with a Hermitian matrix as in (9), (10)✦
What Is Checked
The claim is stated over the code projector of (5), built from the codewords and , and over the error operators of (8), the operators of the gates , , , on three qubits.
Of these constructions the library proves that and have unit norm and that the matrix of is unitary. It also proves that the tensor product of two unitaries is unitary, so each error gate is a unitary of the three qubit system.