The Exercise
The exercise is to show that four gates, together with measurement, are universal for quantum computation. The gates are the Hadamard gate and the phase gate on one qubit, the controlled NOT (CNOT) on two qubits and the Toffoli gate on three. Measurement enters through the circuit of Figure 4.17 of the book. A target qubit and two ancillas prepared in pass through Hadamard gates on the ancillas, a Toffoli gate, on the target, a second Toffoli gate and Hadamard gates on the ancillas again; then both ancillas are measured in the computational basis. When both outcomes are , the target has undergone a fixed single qubit gate. Universality asks that every unitary of qubits be approximated, up to a global phase and as closely as one likes, by circuits of these gates and of that measured gate, each placed on any of the qubits.
A Register of Qubits
A quantum system is given by its state space, 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 qubit is the two level system whose state space is , the standard two dimensional complex Euclidean space; its basis states and are the pure states given by the standard basis vectors of .
The composite system of systems and has as its state space the tensor product of their state spaces, and the product of a pure state of and a pure state of is the pure state of whose vector is the tensor product of the two vectors. For a family of systems indexed by a finite set, the composite has the tensor product of all their state spaces as its state space.✦ The tensor power is the composite of copies of , one on each of the wires .✦
Gates with controls act on a register built one qubit at a time. The register of control qubits around a system is the system with (1)✦ and is a register of qubits.
An identification of a system with a system is a linear isometric bijection from the state space of onto that of , and its inverse identifies with .
The reindexing of a composite along a bijection of index sets is the identification that moves the factor at position to position ; on tensor powers it relabels the wires.✦ The split of is the identification of with that divides the wire labels into a first block of and a last block of and sends a product of factors to the product of the first with the product of the last . The register is identified with the tensor power by the identification , defined by recursion: takes the qubit to its tensor power of one factor, and is the identity on the first qubit and on the rest, followed by the inverse of the split of into .✦
Gates
A unitary of a system is an operator on the state space of with ; it carries a pure state of to the pure state . For unitaries and of , after is the unitary , first and then , and the identity evolution is the unitary . For unitaries of and of , the product unitary of is the tensor product of the two operators; is the gate on the first wires and the gate on the last wires. Along an identification of with , a unitary of is carried to the unitary of .✦ A linear isometric bijection of the state space of onto itself is a unitary of .✦
On the qubit, the Hadamard gate, the phase gate and the Pauli are the unitaries with the matrices (2) in the computational basis .
For a unitary of a system , the controlled gate is the unitary of given by (3)✦ with the qubit as control and as target. The CNOT gate is .✦ The doubly controlled gate acts on three qubits, and the Toffoli gate is . With controls, is the unitary of given by and .✦ The NOT gate with controls, , is for , which is since , and for .✦
A single qubit gate acts on wire of , for , as the unitary that applies to the qubit at position and the identity to the others.✦ On it is , and on it is for and for .✦
Gates on several wires are placed on tensor powers. For a permutation of the wires of , the wire permutation gate is the unitary given by the isometry that moves the tensor factor on wire to wire .✦ For a gate of and further wires, the gate on the front block of is on , carried to by the inverse of the split, and for a permutation of the wires the gate of , which applies on the wires , is (4)
The reversible generators of are the NOT, the CNOT and the Toffoli gate on any ordered choice of one, two or three of its qubits, the gates (5)✦ where is a permutation of the wires of (4), relabelled as the wires of . We write for their set.
The Measured Gadget
A measurement on a system with a finite set of outcomes is a family of operators on the state space of , one for each outcome , satisfying the completeness relation .✦ The projective measurement in an orthonormal basis has the operators .✦ A measurement on gives the measurement on the first wires of , with operators , and the measurement on the last wires of , with operators . The cascade of two measurements and on one system, first and then , is the measurement with outcomes and operators .✦
The measurement of the control qubit of is the projective measurement of the qubit in the computational basis on the first wires, with operators .✦ On three qubits, the measurement of the two ancillas measures the first qubit and then the second, and its operator for the outcome is (6)✦
The circuit of Figure 4.17 is the unitary (7)✦ of , the two ancillas followed by the target.
The interference amplitude of the ancilla outcome for the target bit is (8)✦ with the sum modulo .
The circuit of Figure 4.17 followed by the measurement of its two ancillas is the gadget. A single qubit gate is realised by the gadget when there is a complex number with such that, for and , (9)✦ For any target state , the outcome then has probability and leaves the target in .
We write for the set of gates realised by the gadget.
The Claim
The set of gates of reachable with the four gates and measurement consists of the products of generators, namely (10) the empty product being the identity.
Theorem 1. Let be a natural number and a unitary of the register of qubits. Then there is a real number such that is a limit, in the operator norm, of gates of : (11)✦
What Is Checked
The claim is stated over the unitaries of the register and the reachable gates (10), measurement entering through the condition (9) on the circuit (7) and the measurement (6) of its ancillas.
The library proves that the controlled gate of (3) is unitary for every unitary of any system, and with it every gate .✦ It proves as well that a product and a tensor product of unitaries are unitary, and that the cascade of two measurements satisfies the completeness relation.