The Exercise
A register of qubits is in a state . The quantum Fourier transform on its levels is applied, and then every qubit is measured in the computational basis. The exercise is to obtain the same measurement with no two qubit gate: the qubits are measured one at a time, every gate acts on a single qubit, and a gate may depend on the outcomes already read.
A Register of Qubits
A quantum system is a physical object whose state space is a finite dimensional complex Hilbert space.✦ The qudit with levels is the system whose state space is , and the qubit is the qudit with two levels, the system whose state space is , with computational basis .
A state of is a density operator on the state space of , that is, a positive operator of unit trace. A pure state of is a unit vector in the state space of , and it determines the state , the projector onto that vector. A unitary of is an operator on the state space of with .✦ A unitary of takes a state of to the state and is also called an evolution of ; the identity evolution of is the unitary .
The register of qubits is built by composing one qubit at a time on the left, (1)✦ and its wires are numbered from the left. A string of bits gives the computational basis state of with on wire , (2)✦
An identification of a system with a system is a linear isometric bijection from the state space of onto that of ; it carries a unitary of to the evolution of . The qudit with levels is identified with by the identification that splits off one qubit at a time along , for every ; for it is the identity of the qubit.✦
The Fourier Transform
For a dimension , let be the primitive th root of unity.✦ The Fourier matrix of dimension is the complex matrix with entries (3) and the quantum Fourier transform is the evolution of the qudit with levels whose matrix in the computational basis is (3). On the register the transform is the one on levels carried along , (4)✦
Measurements
A measurement on with a finite set of outcomes is a family of measurement operators on the state space of , one for each outcome , satisfying the completeness relation .✦ The positive operator valued measure of assigns to the outcome the effect .✦ Performed on a state , the measurement gives with the probability (5) and when this probability is not zero the state after the outcome is .
The measurement of every wire of in the computational basis has the bit strings as outcomes, being the bit read on wire .✦ On one qubit it is the measurement in the basis ; on , split as in (1), it reads the first qubit and then performs on the rest.✦
The Semiclassical Transform
The phase gate with angle is the unitary of the qubit that is diagonal in the computational basis, .✦ For a unitary of the qubit and a wire of , the gate on wire is the unitary of that applies to wire and the identity to every other wire.✦ A sequence of wires and angles gives the cascade of phase gates (6)✦
On the wires of take the angles (7)✦ so that is the book’s gate , with . For a bit , the correction on is the identity evolution for and, for , the cascade (6) with on each wire : (8)✦
Write for a measurement performed after a unitary , and for the measurement on that reads wire in the computational basis and, on the outcome , performs a measurement on the remaining register . With the Hadamard gate, the semiclassical measured transform is the measurement on defined by (9)✦ Its outcomes on , the bit read on wire together with an outcome of , are relabelled as strings of bits.
The Claim
Theorem 1. Let , let be a state of and its image under the transform, let be a string of bits, and let and be the operators of and for the outcome . For each bit there are unitaries of the qubit and wires of with (10)✦ If , the state after the outcome of on is (11)✦ The two procedures give the outcome with the same probability, (12)✦ If , the state after the outcome of on is (13)✦
Parts (10) and (12) answer the exercise.
What Is Checked
The claim is stated over the transform of (4), carried to the register from the qudit with levels, the measurement of every wire, the semiclassical transform (9) with its corrections (8), the gates on single wires and the basis states (2), through the probability (5) and the state after an outcome.
About these constructions the library proves that the Fourier matrix is unitary, so that is a unitary of the qudit, and that a unitary carried along an identification is again unitary, which makes one. The phase gate is unitary, as a diagonal operator whose entries have unit modulus, and the effects of a measurement are positive and sum to . Conjugation by a unitary takes density operators to density operators; the state after an outcome of nonzero probability, and the projector onto a unit vector, are density operators as well.