Quantum Phase Estimation (QPE)
Track: Quantum Algorithms · Difficulty: Intermediate · Est: 15 min
Quantum Phase Estimation (QPE)
Overview
Quantum Phase Estimation (QPE) is the standard quantum method for extracting an eigenphase from a unitary operation.
In simplified terms:
- You have a unitary .
- You have an eigenstate such that where is a number in .
Goal: estimate efficiently.
Why it matters:
- Many problems reduce to “learn something about an eigenvalue.”
- QPE is the engine behind algorithms for simulation, phase-related estimation tasks, and the period-finding backbone of Shor’s algorithm.
Most importantly for intuition: QPE explains how phase becomes measurable information.
Intuition
Phase is invisible if you only measure immediately in the computational basis. If a state picks up a global phase, you can’t detect it.
QPE makes phase observable by:
- creating a superposition of different “time steps” (different powers of )
- letting each branch accumulate a different amount of phase
- interfering those branches so the phase shows up as a measurable bitstring
A good mental model:
- Controlled- gates “write phase” into a control register.
- The control register is then processed to turn that phase pattern into a readable number.
So QPE is a phase-to-bits converter.
Algorithm Structure
High-level steps:
- Prepare two registers:
- an -qubit phase (control) register
- a target register containing an eigenstate
- Put the phase register into a uniform superposition (Hadamards on all qubits).
- Apply controlled powers of the unitary:
- controlled-, controlled-, ..., controlled-
- Apply an inverse-QFT-like interference step on the phase register (conceptually: convert phase into binary digits).
- Measure the phase register to obtain an -bit estimate of .
We won’t derive the inverse-QFT here. You just need to understand its role: it is the decoding step.
Formal Description
Eigenstates make QPE clean
QPE assumes the target is an eigenstate:
Then applying repeatedly just multiplies by a phase:
This is exactly what QPE exploits.
What the controlled powers accomplish
Each control qubit effectively asks:
- “What happens if I apply this many times?”
Because the phase register is in superposition, the circuit builds a structured phase pattern across the register.
The inverse-QFT stage then converts that structured phase pattern into a computational-basis bitstring.
Key point in words:
- The target register stays (approximately) in .
- The phase information migrates into the phase register as something you can measure.
If the target is not exactly an eigenstate
If the target is a superposition of eigenstates, QPE behaves like:
- it “samples” one eigenphase according to the state’s overlap with each eigenstate
That is useful in some contexts, but the cleanest story is the eigenstate case.
Worked Example
Use a 1-qubit unitary with a known eigenstate, and estimate a simple phase.
Suppose has an eigenstate with eigenvalue where . That means applying multiplies the eigenstate by .
Take phase qubits. The ideal output should be the 2-bit binary approximation of , which is:
- in binary
So QPE should output the bitstring 01 with high probability.
Interpretation:
- The controlled- powers create phase shifts that depend on .
- The decoding step maps those shifts to the binary digits of .
- Measurement reads the digits.
Turtle Tip
QPE is the standard answer to “How do I measure a phase?” It doesn’t measure phase directly; it creates interference so the phase appears as a measurable bitstring.
Common Pitfalls
- Confusing eigenvalue and eigenstate. QPE estimates the eigenphase only when the target register is (approximately) an eigenstate.
- Treating the inverse-QFT as optional. The controlled powers write a phase pattern, but you still need a decoding interference step.
- Expecting exact answers with few qubits. More phase qubits means finer resolution.
Quick Check
- What does QPE estimate: a state or a number?
- Why does QPE require controlled powers of ?
- What is the role of the final decoding (inverse-QFT-like) step?
What’s Next
QPE is a core primitive. Next we use it to explain, at a high level, why Shor’s algorithm can factor integers: factoring is reduced to period finding, and period finding is powered by phase estimation and Fourier-style interference.
