The Exercise
The circuit of Figure 10.25 applies the gate to a qubit with the help of an extra qubit in the state . The exercise prepares that state by measuring the observable , where is the phase gate and the bit flip: is the eigenstate of of eigenvalue , and its eigenstate of eigenvalue .
The measurement couples the data qubit, the one carrying the state to be measured, to an ancilla qubit prepared in . The ancilla passes through a Hadamard gate , controls the gate on the data qubit, passes through a second Hadamard gate and is read in the computational basis. The exercise asks which outcome each eigenstate gives, and what a phase flip on the ancilla, between the controlled gate and the last Hadamard gate, does to it.
In the fault tolerant form of the measurement the ancilla is a cat state of several qubits, the equal superposition of the all zeros and the all ones states, each qubit paired with a data qubit and controlling a gate on it. Two more questions belong to this form: what the gate on every qubit does to a cat state of seven qubits, and whether a phase flip on one ancilla qubit reaches the data through the controlled gates.
A Quantum System
A quantum system is a physical system whose state space is a finite dimensional complex Hilbert space.✦ A pure state of is a vector of unit norm in the state space of , .✦ A unitary of is an operator on the state space of with .✦ The unitary applied to a pure state of is the pure state ✦, and after a second unitary of is the unitary of , first then .✦
The composite system of two systems and is the system whose state space is the tensor product of the state spaces of and .✦ Pure states of and of give the product state , the pure state of whose vector is the tensor product of their vectors.✦ Unitaries of and of give in the same way the product unitary of , whose operator is the tensor product of their operators.✦ With the identity evolution of , the unitary whose operator is the identity, on the first wires of is .✦
Gates on a Qubit
The qubit is the two level system whose state space is .✦ The basis states and of the qubit, its computational basis, are the pure states whose vectors are the standard basis vectors and of .✦ A unitary matrix gives the single qubit gate of , the unitary of the qubit that acts on by the matrix in the computational basis.✦
The Hadamard gate and the phase flip are the single qubit gates of the matrices (1) and the bit flip , the phase gate and the gate have the matrices (2) The product , with acting first, is the matrix (3)✦
The gate is the single qubit gate of the matrix , (4)✦ and the gate is the single qubit gate of the product of with , (5)✦
The two eigenstates of are the pure states of the qubit (6)✦ (7)✦
The Measurement Circuit
For a unitary of a system , the controlled gate is the unitary of the composite system of a control qubit and a target with operator (8)✦
The measurement circuit of a unitary of a system is the unitary of the composite system of an ancilla qubit and with operator (9)✦
Theorem 1. With the ancilla in and the data qubit in , the measurement circuit of returns the ancilla to , (10)✦ and with the data qubit in it turns the ancilla to , (11)✦
For a unitary of a system , the measurement circuit of with a error on the ancilla is the unitary of the composite system of an ancilla qubit and with operator (12)✦
Theorem 2. With the ancilla in and the data qubit in , the measurement circuit of with a error turns the ancilla to , (13)✦
The Transversal Circuit
A register of qubits, one for each of the elements of a finite set , is the system whose state space has an orthonormal basis , its computational basis, with one vector for each bit string over .✦ The cat vector of the register is the unnormalized sum of its all zeros and all ones basis vectors.✦ The transversal gate of the register is the unitary that is diagonal in the computational basis with (14)✦ where is the number of ones in .
Theorem 3. On a register of seven qubits, the transversal gate takes the cat vector to (15)✦
For a unitary of a data system , the transversal coupling of is the unitary of three pairs, each an ancilla qubit with a copy of , that applies to every pair with the ancilla as control, .✦ For , the error on ancilla is the unitary of the three pairs that applies to the ancilla of pair and the identity to its data and to the other two pairs.✦
Theorem 4. Let each of three pairs consist of an ancilla qubit and a data qubit, coupled by . For , the error on ancilla commutes with the coupling, (16)✦
What Is Checked
The claims on a single ancilla are stated over the measurement circuit (9) of the gate and its form (12) with a error, acting on the product state of the ancilla in with the data qubit in or . The transversal claims are stated over the transversal gate on seven qubits acting on the cat vector, and over the coupling of three pairs of qubits by with the errors on its ancillas.
About these constructions the library proves that the matrices and are unitary and that the controlled gate of every unitary is unitary✦; the product unitary and after are unitary, and so is the transversal gate. It proves as well that and have unit norm, and that a unitary applied to a pure state, like the product of two pure states, is again a pure state.