The Exercise
The five qubit code stores one qubit in five. The exercise is to prepare its encoded , written , by measurement. Five Pauli strings on the five qubits, the four generators of the code and the logical , are measured one after another, each with an ancilla qubit of its own that starts in and is read at the end of its circuit.
Systems and Gates
A quantum system is a physical object whose state space is a finite dimensional complex Hilbert space✦, and the composite system of two systems has as state space the tensor product of theirs.✦ The qudit with levels is the system with state space .✦ The qubit is the qudit with two levels, and a register of qubits is the qudit with levels. The circuit here acts on an ancilla qubit and a register of five qubits, the composite system of the qubit with the qudit of levels.
A pure state of is a unit vector in the state space of , determined physically up to a global phase✦; the basis states and of the qubit are the standard basis vectors of .✦ For pure states of and of , the product is the pure state of whose vector is the tensor product of the two.✦ A state of is a positive operator of unit trace on the state space of ✦, and a pure state determines the state , the projector onto its vector.✦
A unitary of is an operator on the state space of with ✦, and it carries a pure state to the pure state .✦ Two unitaries and of compose to the unitary , first and then .✦ The product unitary of a unitary of and a unitary of is the unitary of whose operator is the tensor product of theirs✦; taking for the identity evolution of gives , the gate on the first factor alone.✦ The Hadamard is the unitary of the qubit with matrix .✦ For a unitary of , the controlled gate is the unitary of the composite of a control qubit with given by (1)✦
Pauli Strings
The Pauli matrices are the four complex matrices (2)✦ For a choice of one Pauli matrix for each of qubits, the Pauli string is the operator on the register whose matrix, with rows and columns labelled by bit strings and , or by the binary numbers they spell on the levels, has the entries (3)✦ A string is written as a word, for .
An observable on is a self adjoint operator on the state space of , .✦ A pure state of is an eigenstate of with eigenvalue , a real number, when .✦ For a real coefficient , the Pauli string observable is the observable on the register that acts as times the Pauli string, a Hermitian matrix.✦ With it squares to the identity, (4)✦
The Preparation Circuit
For a unitary of a system , the measurement circuit of is the unitary of the composite of a control qubit with .✦ The syndrome measuring block of a Pauli string is the measurement circuit of , a unitary of an ancilla qubit and the register.✦
The four generators of the five qubit code and its logical are the Pauli strings (5)✦ each generator the one before it shifted cyclically one place to the right.
The preparation circuit is the sequence of five blocks applied one after another, where for the block is the syndrome measuring block of , (6)✦
An encoded of the five qubit code is a pure state of the register of five qubits that is an eigenstate with eigenvalue of each of the five operators : (7)✦
The Claim
Theorem 1. Let be one of , let be a bit, and let be a pure state of the register that is an eigenstate of with eigenvalue . Then the th block, applied to the ancilla in and the register in , gives (8)✦ Let be an encoded . Then for every block (9)✦ There is an encoded : a pure state of the register with (10)✦ If and are both encoded states, they are the same state: (11)✦
What Is Checked
The claim is stated over the five blocks of (6), with their Hadamard gates on the ancilla and their controlled gates , and over pure states of the register: the eigenstates of the observables , the encoded of (7), their products with the basis states of the ancilla, and the states they determine.