The Exercise
Fix a real number . The gate acts on three qubits: when the first two are both in the state it applies to the third, the rotation by the angle about the axis multiplied by , and otherwise it leaves the three qubits alone.✦ The exercise is to show that is universal for quantum computation whenever is irrational: circuits made of copies of alone approximate any unitary operation on any number of qubits.
Gates on Qubits
A quantum system is given by its state space, a finite dimensional complex Hilbert space, and a pure state of is a unit vector of that space. The composite system of two systems and is the system whose state space is the tensor product of theirs.✦ A unitary of is an operator on the state space of with .✦ For a unitary of , the product unitary is the unitary of whose operator is the tensor product of the two; with the identity, acts on the first factor alone.✦
The qubit is the system with state space , and its computational basis states and are the pure states given by the two standard unit vectors. For a vector in three dimensions, combines the Pauli matrices , , of (1) with the components of as coefficients, and the rotation by an angle about a unit vector is the unitary of the qubit given by the exponential: (1) The rotation about the axis is with , so , and is the unitary of the qubit whose matrix is times that of .
For a unitary of a system , the controlled gate is the unitary of that acts on as the identity when the control qubit is and as when it is ; iterating it gives the doubly controlled gate: (2) The gate of the exercise, the Deutsch gate, is the unitary of (3)✦
The Register
The circuits act on a register of qubits whose wires are split into data wires and ancilla wires. The qudit with levels is the system with state space , and its computational basis is made of the standard unit vectors; a unitary matrix gives the gate of the qudit that acts as in this basis. The register is the qudit with levels, its basis states labelled by the bit strings of its wires. The data register is the qudit with levels, its basis states labelled by the bit strings of the data wires.
Extending a data string by the value on every ancilla wire gives a string of the register.✦ The states span the data subspace, where the data sit beside ancillas all in . A matrix preserves the data subspace when it maps it into itself, (4) and its compression to the data subspace is the matrix (5) The action of a unitary of the register on the data register is the operator on with matrix , where is the matrix of .
Circuits of the Deutsch Gate
A matrix acting block by block on a single wire of the register is fixed by a matrix for each value of the wires other than : the element is when and agree on every wire but , and zero otherwise.✦ For a set of control wires and a matrix , the multiply controlled gate is the one with when for every in , and otherwise.✦ For wires , and , the placed powers of are the gates of the register with controls and and target built from the powers of : (6)✦
A reachable gate is a matrix that preserves the data subspace, (4), and is a limit of the placed powers (6) for some wires , and .✦ The reachable circuits are the finite products of gates of unitary reachable gates, the identity among them as the empty product; they form the set of unitaries of the register.✦
An identification of two systems is a linear isometric bijection between their state spaces, and a unitary is carried along it as . Numbering the basis states of three qubits as identifies three qubits with the qudit with levels and makes a unitary of that qudit.✦ With , sending to the product basis state identifies the register, the qudit with levels, with the composite of the qudits with and levels, and along it becomes a unitary of the register.✦ For an ordered choice of three wires, let be the renumbering of the register’s basis states that puts these wires first, and the unitary of the register that permutes the computational basis by it, .✦ Then is on the chosen wires, the first two its controls, and the identity on the other .
The Claim
Theorem 1. Let the register have at least one data wire and two distinct ancilla wires and .
(i) For every real and every data wire , there is an ordered choice of three wires of the register, with renumbering , for which placed on them is a reachable circuit: (7)✦
(ii) If is irrational, then for every unitary on the data register there is a real phase such that is a limit of actions of reachable circuits on the data register: (8)✦
What Is Checked
The claim is stated over the Deutsch gate of (3), the reachable circuits built from its placed powers, and the action of a circuit on the data register.
About these constructions the library proves that is unitary for every unitary , so that is a unitary of three qubits, and that a unitary carried along an identification, or tensored with another unitary, is again unitary, so that is a unitary of the register. The matrices that preserve the data subspace include the identity and are closed under multiplication.✦