Ch. 1 introduced eigenvalues; Ch. 4 noted that unitary matrices always have eigenvalues of the form e^(2πiφ) for some real φ. Quantum Phase Estimation (QPE) is the algorithm that actually measures φ — and it's the one piece standing between everything built so far and Shor's algorithm in Ch. 31.
The setup
You're given a unitary U and one of its eigenvectors |u⟩, with U|u⟩ = e^(2πiφ)|u⟩. The goal: estimate φ. The circuit uses t extra "counting" qubits, each controlling a power of U applied to |u⟩ — qubit k controls U^(2^k). Phase kickback (Ch. 23) deposits a phase onto each counting qubit proportional to φ; collectively, the counting register ends up holding exactly the kind of state Ch. 29's QFT is built to decode.
Exact vs. approximate phases
If φ happens to be exactly representable in t bits (φ = k/2ᵗ for some integer k), QPE recovers it with certainty — probability exactly 1 on the correct outcome, the same all-or-nothing behavior Ch. 26's Deutsch–Jozsa showed for its promise. If φ isn't exactly representable, QPE still gives you the closest t-bit approximation with high probability, and that probability — along with the precision itself — improves as t grows.
AdvancedWhy this specific algorithm is the bridge to Shor
Shor's algorithm needs to find the order r of a number modulo N — the smallest r with aʳ≡1 (mod N). The unitary U:|x⟩↦|ax mod N⟩ has eigenvalues e^(2πis/r) for integers s, and QPE applied to this U is precisely how the order r gets extracted: estimate the phase s/r, then use a classical algorithm called continued fractions to recover r from that fraction. Every single piece is now in place — Ch. 23's kickback, Ch. 29's QFT, and this chapter's phase-reading — for Ch. 31 to assemble them into an algorithm that factors numbers exponentially faster than the best known classical method.
- TextbookNielsen & Chuang, §5.2The full QPE derivation and error analysis this chapter follows.
- ArticleWikipedia — Quantum phase estimation algorithmGeneral reference, including the connection to Shor's algorithm covered next.