CHAPTER 12
Fourier transforms and phase estimation
Learning goals. Calculate a quantum Fourier transform, track bit reversal, derive the phase-estimation distribution, and account for controlled powers.
12.1 The QFT is a unitary change of amplitudes
For , define
The inverse uses the negative sign in the exponent. To verify unitarity, take the overlap of columns x and x’:
For x≠x’, the ratio obeys but r≠1, so the geometric sum vanishes.
Worked example.
The four probabilities are equal. The transform has encoded x in relative phases. Measuring immediately in Z does not reveal those phases or return a table of classical Fourier coefficients.
For , the output amplitudes are . A QFT circuit can transform a register with O(n²) elementary controlled-phase and Hadamard gates, but generic amplitude loading and complete output readout can cost exponentially in n. Comparing this operation directly with an FFT that writes all N coefficients is an input-output mismatch.
12.2 Building the circuit and tracking order
Write x in binary. Factoring the phase across output bits gives tensor factors with binary-fraction phases. One standard construction applies H to a wire, controlled phase rotations from later wires, repeats down the register, and finally reverses wire order with swaps.
For two qubits in our most-significant-first convention, a forward QFT is: H on ; controlled phase between and ; H on ; then SWAP. The controlled phase multiplies only by i. Omitting final swaps implements a bit-reversed output convention, not the exact defined above.
Small controlled rotations can sometimes be omitted for an approximate QFT with a bounded error. A valid approximation statement specifies the norm or algorithmic success criterion, not just the number of gates removed.
Laboratory L16 — Fourier transform. Prepare a basis state or an editable periodic amplitude pattern. Inspect complex output amplitudes, switch forward/inverse sign, and apply the inverse to verify recovery.
12.3 Phase estimation derives a measurable phase
Suppose , with . Use an m-qubit control register, , prepared uniformly. Controlled powers act from control wire j under our ordering. Phase kickback gives
Apply to the controls. The amplitude of y is
If exactly, orthogonality gives output y=k with certainty. Otherwise let . The geometric sum gives
using the continuous limiting value one when is an integer. The distribution peaks near y/Q≈φ, including wraparound near zero.
Worked exact phase. Let m=3 and . The phase-kicked control amplitudes are . Inverse QFT returns integer three, bit string 011. The eigentarget stays in .
For a target superposition , linearity creates correlated phase-register and eigenstate branches. Resolvable eigenphases appear with probabilities approximately . Phase estimation does not generally return the expectation of U’s phase; it samples eigencomponents.
Laboratory L17 — Phase estimation. Adjust φ and control precision. Inspect the phase-kicked amplitudes, inverse-QFT distribution, sampled estimates, and circular error. Compare exactly representable and nearby phases.
12.4 Precision has a physical cost
m control qubits provide grid spacing . But the controlled powers collectively use U a total of times if implemented by repetition. Thus increasing precision is not free because the QFT has only polynomial gate count.
Sometimes controlled powers can be implemented more efficiently using known structure, as in modular arithmetic. For Hamiltonian evolution, long controlled evolution time remains a resource. Iterative phase estimation can reduce simultaneous ancilla qubits by using repeated experiments and feed-forward, but does not remove the fundamental need for sufficient phase information [18, 19].
The eigenphase is only defined modulo one. When converting a Hamiltonian energy E using , modulo one. The energy range and evolution time must avoid ambiguity or supply a known offset. A phase estimate without its sign and units is incomplete.
12.5 Exercises
12.1. Calculate .
Show solution / guidance
The phases are , so the amplitudes are .
12.2. What does inverse QFT do to a uniform state?
Show solution / guidance
It returns , since the sum of all nontrivial roots of unity vanishes.
12.3. For m=4 and , give the certain bit string in our convention.
Show solution / guidance
Integer 11 is 1011. The leftmost bit has weight eight.
12.4. How many repeated U applications implement all controlled powers for m=10?
Show solution / guidance
, excluding control overhead, preparation, QFT, and repetitions.
12.5. A target is with exactly resolvable phases 1/4 and 3/4. What does phase estimation measure?
Show solution / guidance
Each phase occurs with probability , and the target is conditioned on the associated eigenstate. It does not return their mean phase 1/2.