The Exercise
The quantum Fourier transform on qubits has a circuit of Hadamard gates and controlled phase gates , with up to , so the phases it calls for shrink to . Suppose each controlled is carried out with its phase off by , and let be the circuit that results. The exercise is to show that the gate error between the two unitaries scales as .
The library builds gate by gate and bounds from above and from below.
A Quantum System
A quantum system is given by its state space, a finite dimensional complex Hilbert space, and every such space is the state space of a system. The qudit with levels is the system whose state space is with its standard inner product and computational basis .✦ The qudit with levels is a register of qubits, its basis states labelled by strings of bits, being the bit on wire .
A unitary of a system is an operator on the state space of with .✦ The gate of a unitary matrix is the unitary of the qudit with levels that acts on state vectors as does in the computational basis.✦
The gate error between two unitaries and of is the operator norm of their difference, (1)✦
The Fourier Transform
The Fourier matrix in dimension is the complex matrix, rows and columns labelled , built on the primitive th root of unity : (2) For the quantum Fourier transform on the qudit with levels is the unitary whose matrix in the computational basis is .✦ On the register of qubits, where , it is the transform of the exercise.
The Circuit
Each gate of the circuit acts on one wire of the register. The single qubit gate of a complex matrix on wire applies to bit and leaves the other bits alone.✦ More generally, when a block is assigned to each pattern of the other bits, the gate on wire block by block applies to that wire whenever the other bits read , and leaves them unchanged.✦ For a complex matrix and a set of control wires, the multiply controlled gate on target wire is the case when every wire of carries a in , and otherwise.✦
A permutation of the bit strings defines a permutation gate, the matrix sending to .✦ The bit reversal reverses the order of the wires, and its gate is written .✦
Two single qubit matrices enter: the Hadamard gate, and for each the phase gate , which shifts the phase of by : (3)
Let be the Hadamard gate on wire , and the controlled phase gate with control wire and target wire . The circuit with phase error reverses the wires and then runs the block of each wire in turn, a Hadamard followed by the controlled gates from the later wires ; with the rightmost factor acting first, its matrix is (4) The approximate Fourier transform with phase error on the register of qubits is the gate of the matrix (4) on that register.
The number of controlled gates is (5)✦
The Claim
Theorem 1. Let be a number of qubits and a real function of with and . Let be the quantum Fourier transform on the register of qubits and the approximate Fourier transform with phase error . Then (6)✦ For every real function on the numbers of qubits, as , (7)✦
What Is Checked
The claim is stated over the register of qubits, the quantum Fourier transform with the matrix (2), the approximate transform given by the circuit (4) at , their gate error (1), and the count (5) of controlled gates.
About these constructions the library proves that the matrix (4) of the circuit is unitary for every number of qubits and every phase error .✦