Quantum Phase Estimation
Quantum phase estimation is the algorithm that reads a number no classical measurement can see. You are handed a unitary that you may apply — and whose powers you may apply conditionally — together with one of its eigenstates , obeying . The task is to determine the eigenphase . On its own that phase is a global factor multiplying , and a global phase is the one thing quantum mechanics forbids you to observe: measure in any basis and cancels in the Born rule. The information is real but invisible. The escape is to make the phase relative. Attach a register of counting qubits, put them in superposition, and let qubit control the power . By phase kickback the eigenstate is never disturbed, yet each qubit collects the phase — and the geometric ladder is exactly the place-value structure of a binary fraction. What the counting register now holds is the Fourier transform of the number . A single inverse quantum Fourier transform rotates that Fourier state back into the ordinary binary basis, and a measurement reads off the digits of directly. When is an exact -bit fraction the answer is deterministic; otherwise the inverse QFT produces a sharply peaked Dirichlet distribution over the nearest fraction, with accuracy and confidence you can dial by adding qubits. Phase estimation is the most reused subroutine in quantum computing after the QFT itself. Order finding — the engine inside Shor's factoring algorithm — is phase estimation applied to modular multiplication, and the same template of preparing eigenstates, estimating phases, and post-processing classically drives the discrete logarithm algorithm, the abelian hidden subgroup problem, and the quantum-chemistry algorithms that estimate molecular ground-state energies.
- Quantum phase estimation returns the eigenphase of a unitary on one of its eigenstates , where and .
- The circuit is three moves: Hadamard the -qubit counting register, apply the controlled- cascade, then apply the inverse quantum Fourier transform and measure.
- A global phase on an eigenstate is unobservable; controlling turns it into a relative phase, and controlling the powers writes the binary digits of into a Fourier state.
- If terminates in bits the readout is exact; otherwise the nearest -bit fraction wins with probability at least .
- For correct bits at confidence use counting qubits — the extra qubits buy confidence, not resolution.
- Key idea: a global phase on an eigenstate is invisible — but if you control the unitary on a register in superposition, that phase becomes a measurable relative phase, and the inverse QFT converts the resulting Fourier state directly into the binary digits of .
A global phase on an eigenstate is invisible — but if you control the unitary on a register of qubits in superposition, that phase becomes a measurable relative phase, and the inverse QFT converts the resulting Fourier state directly into the binary digits of .
Where this lives today
Phase estimation is the load-bearing beam of the fault-tolerant quantum-computing roadmap. Its most famous use is inside Shor's algorithm, where order finding — phase estimation on the modular-multiplication unitary — reduces integer factoring and discrete logarithms to a polynomial-time quantum routine, the result that made quantum computers a matter of national cryptographic policy. Its most active use today is quantum chemistry: setting makes the eigenphase encode an energy , so phase estimation reads molecular and lattice ground-state energies to chemical accuracy, and small instances (the energies of , , and model Hubbard systems) have been run end to end on superconducting and trapped-ion processors. Because the textbook circuit demands deep, coherent controlled- cascades that today's noisy hardware cannot yet sustain, a family of near-term variants has grown up around it: iterative and Bayesian phase estimation replace the wide register with one recycled qubit and classical feedback; robust phase estimation tolerates calibration error and doubles as a gate-fidelity benchmark; and recent low-depth statistical estimators trade circuit depth for more repetitions. The open frontier is exactly that trade — how cheaply an eigenphase can be estimated on hardware that decoheres before the full cascade completes, and where the true boundary lies between what phase estimation and its variational cousins can each reach.
The physical picture
Picture as a clock whose single hand advances by of a full turn every time it ticks. Read one clock and you learn nothing: an absolute hand position that is the same for every observer carries no relative information, exactly as a global phase carries none. So install a row of observers, each in a superposition of "watching" and "not watching," and let observer watch the clock through exactly ticks. Observer records , observer records , observer records , and so on. No observer disturbs the clock — that is phase kickback, the eigenstate slides through untouched — yet between them the observers now hold the binary odometer reading of , written in the Fourier basis. The inverse QFT is the instrument that rotates that Fourier-encoded odometer back into plain binary you can simply read. The first figure lays the circuit out gate by gate.
The exponent doubling is where the efficiency lives. With controlled operations the register accumulates — precisely the weights of a -digit binary fraction — so operations resolve to one part in , an exponential payoff for a linear number of gates. This is the same place-value logic that builds the QFT, which is why the two are duals: the QFT assembles a Fourier state from digits, and phase estimation reads digits out of a Fourier state. The second figure is the punchline — the measured distribution when the phase does not land on the grid.
The core equations
Everything begins with the promise the algorithm is given: a unitary and one of its eigenstates, with the eigenvalue a pure phase because unitaries preserve length. The unknown to be extracted is that phase, written as a fraction of a full turn.
where: — a unitary supplied as a controllable black box; — a known eigenstate loaded into the target register; — the unknown eigenphase, the number to be estimated. The reading: because is unitary the eigenvalue has modulus one, so it is fully specified by the single real number in — and on alone that number is a global phase, hence invisible. The first move is a Hadamard on every counting qubit, which spreads the register into a uniform superposition over all basis states — the many "observers," each ready to watch a different power of .
where: — number of counting qubits; — computational-basis state with ; — Hadamard, . The reading: the register is now an equal-amplitude sum over every -bit integer , and the target eigenstate rides along untouched — the stage is set for the controlled powers to imprint a -dependent phase. The controlled- cascade acts, and by the eigenvalue relation each branch collects the phase while is returned exactly. This is phase kickback applied bit by bit.
where: — the total power applied, assembled from the controlled triggered by the bits of ; — the accumulated branch phase. The reading: qubit fires only on its component, and the product of those single-bit phases rebuilds because — the binary expansion is doing the bookkeeping. Factoring out the untouched target, the counting register is left in a state that is literally the quantum Fourier transform of the integer nearest to . Naming it this way is what makes the next step obvious.
where: — the counting register after the cascade; — the -qubit quantum Fourier transform; — the phase rescaled so its integer part is the -bit answer. The reading: the phase has been encoded as a Fourier state, so applying the inverse transform must decode it — the algorithm is the QFT run backwards on a state the physics prepared forwards. Applying and expanding both sums gives the pre-measurement amplitude on every possible outcome . The exponent is the residual error of the estimate .
where: — the integer that will be measured; — the inverse-QFT matrix element. The reading: the outcome amplitude is a finite geometric series in , and its magnitude peaks wherever sits closest to . Squaring that geometric sum gives the measured probability — a squared Dirichlet (Fejér) kernel, sharply peaked at zero residual.
where: — probability of measuring the integer ; — the estimate's error. The reading: when exactly the kernel collapses to a Kronecker delta and the readout is certain; otherwise the peak sits on the nearest fraction and the width is one grid spacing. The height of that peak is bounded below by a constant that does not depend on — the guarantee that the nearest estimate is likely on a single run.
where: nearest estimate — the integer with . The reading: even in the worst case one shot lands on the best -bit fraction more than of the time, so a handful of repetitions makes the correct estimate overwhelmingly likely — regardless of how many bits you are extracting. To force both accuracy and confidence, size the register by the rule that trades a few extra qubits for a suppressed failure tail.
where: — number of correct leading bits required; — tolerated failure probability; — total counting qubits. The reading: the first qubits set the resolution , and the extra qubits push the Dirichlet tail below — resolution and confidence are separate budgets.
The goal is to carry the full register — counting qubits plus target — through the three stages of the circuit, the Hadamard fan-out, the controlled-power cascade, and the inverse quantum Fourier transform, and to establish two facts in one pass: that when is an exact -bit fraction the measurement returns it with certainty, and that otherwise the outgoing amplitudes form a squared Dirichlet kernel peaked on the nearest fraction. The strategy is to keep the target eigenstate factored out at every step using kickback, so the entire computation reduces to a single amplitude on the counting register, and then to evaluate that amplitude as a finite geometric series.
Step 1. Superpose: , so the joint state is . Why: the Hadamards create the equal-weight superposition over all counting strings that the controlled powers will each tag with a different phase.
Step 2. Kick back the phase: the controlled- cascade applies conditioned on , and since the state becomes . Why: the eigenvalue relation converts the conditional operation into a pure phase on the counting register while returning intact, so the target factors out and can be ignored from here on.
Step 3. Apply the inverse QFT using , giving the outcome amplitude . Why: the inverse transform is the decoder — it interferes the Fourier components so that amplitude piles up where matches and cancels elsewhere.
Step 4. Exact case: if then , since the geometric sum is when and otherwise. Why: a resonant sum of equally spaced roots of unity is total constructive interference at and total cancellation elsewhere, so the measurement returns and hence with probability one.
Step 5. General case: summing the geometric series gives with . Why: with off the grid the interference is imperfect, and the squared Dirichlet kernel that results is peaked at — so the integer nearest is the most probable outcome, with a spread of about one grid step. *The exact-case collapse to and the Dirichlet-kernel distribution are textbook-standard results; the worked example , gives and , and all eight outcomes sum to .*
Go deeper · Derivation B · 1 minThe accuracy bound and the extra-qubit rule
The aim is to turn the Dirichlet kernel of the previous derivation into two hard guarantees: a lower bound of on the probability of hitting the nearest -bit fraction, independent of , and the sizing rule that delivers correct bits with failure probability at most . The method is to bound the kernel at its peak using elementary sine inequalities, then to bound its tail away from the peak and sum the resulting series, so that resolution and confidence emerge as two separate, controllable budgets. Let be the nearest estimate and .
Step 1. Bound the peak: . Why: on the numerator holds for (here ), and on the denominator always — together they floor the peak at with no dependence on .
Step 2. Bound the tail: for outcomes with error window integers away from , using far from the peak and summing the resulting series. Why: away from resonance the kernel falls off like , so the total tail probability is controlled by a convergent sum set by how many grid steps of slack you allow.
Step 3. Set the accuracy: to guarantee error below in , allow an integer window , so any outcome within it estimates to bits. Why: the physical error is the integer error divided by , so demanding bits of accuracy fixes the window at and thereby ties to .
Step 4. Set the confidence: requiring gives , hence , and rounding up yields the boxed rule. Why: the tail bound becomes a clean inequality for the number of surplus qubits, which shows the extra qubits buy confidence while the first buy resolution. *The floor is the standard Fejér-kernel constant, and for , the sizing rule gives .*
Go deeper · Derivation C · 1 minWhy a controlled unitary turns a global phase into a relative one
The purpose is to prove, from the definition of a controlled operation alone, that controlled- acting on a control qubit and an eigenstate leaves the eigenstate exactly where it started and deposits the eigenvalue as a relative phase between the control's branches. This is the conceptual heart of the whole algorithm — the single step that converts an unobservable global phase into an observable one — and everything downstream is just this identity, iterated over the powers and read out by interference. The plan is to write the controlled gate as a projector sum, act on each control branch, and collect the result.
Step 1. Define the gate: , applying to the target only when the control is . Why: this is the only reversible way to make 's action conditional on a qubit, and its block structure is what routes the eigenvalue onto a single control branch.
Step 2. Act on the eigenstate branch: , while . Why: because is an eigenstate the target is unchanged up to its eigenvalue, and that eigenvalue attaches to the branch alone — the target never moves.
Step 3. Superpose the control: . Why: the phase that was global on — invisible in any measurement — is now a relative phase between and of the control, which is exactly what an interference measurement can detect.
Step 4. Iterate over powers: replacing by gives relative phase on qubit , and the product over is the Fourier state of . Why: kickback applied to the geometric ladder of powers is what spreads the digits of across the register, setting up the inverse QFT to decode them. *The target is an eigenvector of every , so it never entangles with the control — the same kickback mechanism used by Deutsch–Jozsa and Bernstein–Vazirani, there with eigenvalue .*
Limiting cases
The behaviour of phase estimation turns sharply on whether the phase fits the register and on what state you feed in.
| Case | Result | Meaning |
|---|---|---|
| Exact -bit phase | The inverse QFT produces exactly; measurement returns deterministically with probability . | |
| Generic phase | The nearest -bit value is the most likely outcome, and lands within half a grid step with probability above the -independent floor. | |
| Superposition input | The register samples one eigenphase with Born weight and collapses the target onto — spectrum sampling, not deterministic readout. | |
| Costly powers | The speedup needs fast exponentiation: repeated squaring for modular multiplication, but for the cost of grows with simulation time and can dominate. |
Worked examples
1 · An exact phase read out with certainty (confidence builder)
A unitary has eigenstate with eigenphase . Run phase estimation with counting qubits and show the outcome is deterministic.
Step 1. Express in binary. , so — an exact -bit fraction with . Because it terminates in bits, the register can represent it perfectly.
Step 2. After the Hadamards and the controlled-power cascade the counting register is . It is literally the Fourier transform of the integer .
Step 3. Apply the inverse QFT. The outcome amplitude is : a resonant sum of eight roots of unity, equal to when and otherwise. The register collapses to the single string .
Step 4. Measure. and every other outcome has probability ; dividing by recovers exactly. The readout is deterministic — one run, the exact phase, no repetition needed.
2 · A phase off the grid, and the Dirichlet peak (fully worked)
Now , which has no finite binary expansion. With qubits, find the most probable outcome, its probability, and check the guarantee.
Step 1. Locate the target on the grid. , so the nearest integer is , giving the estimate . The residual is , and , so is indeed the best -bit estimate.
Step 2. Evaluate the peak with equation (6). The numerator is , and the denominator is . So .
Step 3. Check the neighbour (estimate ). Here , numerator , denominator , so . The two central bars already carry of the probability. The distribution is a Dirichlet peak straddling the true value .
Step 4. Confirm the guarantee. The best-estimate probability comfortably exceeds the worst-case floor of equation (7). A single run returns the nearest fraction more than two times in three; a few repetitions with a majority vote make it a near-certainty.
3 · Sizing the counting register
You need accurate to bits with failure probability at most . How many counting qubits does that take, and how many applications of ?
Step 1. Apply the sizing rule (8). qubits. The six surplus qubits are not resolution — they suppress the Dirichlet tail below .
Step 2. Count the oracle cost. The cascade applies a total of times. This is only cheap if can be built directly by fast exponentiation — the assumption that separates a polynomial algorithm from an exponential one.
Physics of the portrait
Phase estimation is the point where a physicist's search for a better way to measure — the eigenvalue of an operator — became the master algorithm of quantum computation. The idea, and the topological revolution it grew alongside, belong to one person.
Origins · 1 minAlexei Kitaev and how this was discovered
Alexei Yurievich Kitaev, born in 1963 and trained at the Landau Institute in Moscow before moving to Microsoft Research and then Caltech, reshaped quantum computing twice over. In a 1995 preprint on the abelian stabilizer problem he introduced phase estimation as a general primitive — showing that the ability to measure the eigenvalue of a unitary on one of its eigenstates was enough to reproduce Shor's factoring and discrete-logarithm results, and much else, within one unifying framework. This "eigenvalue estimation" viewpoint reoriented the field: many quantum algorithms are, at heart, spectral measurements, and phase estimation is the instrument that performs them. Kitaev is equally celebrated for founding topological quantum computation: his 1997 toric code showed how anyons — quasiparticles whose braiding is intrinsically fault-tolerant — could store and process quantum information protected by topology, launching a large experimental program. His name attaches to the Kitaev chain of Majorana fermions and, with Sachdev and Ye, to the SYK model of quantum chaos. A recipient of the inaugural Breakthrough Prize in Fundamental Physics (2012) and the Dirac Medal (2015), Kitaev embodies this article's through-line: measuring a phase you were told could never be seen turns out to be the most powerful thing a quantum computer knows how to do.
Going further
Texts. Nielsen & Chuang, Quantum Computation and Quantum Information (10th anniv. ed.), §5.2 (phase estimation) and §5.3 (order finding) · Preskill, Lecture Notes for Physics 219, Ch. 6 · Kitaev, Shen & Vyalyi, Classical and Quantum Computation, §13 · Mermin, Quantum Computer Science, Ch. 3 · Watrous, The Theory of Quantum Information (phase-estimation discussions) · Cleve, Ekert, Macchiavello & Mosca, Proc. R. Soc. Lond. A 454, 339 (1998). Key checkpoints for the equations above: the geometric sum yields the Dirichlet kernel; the exact-case collapse gives ; the peak bound follows from ; and the tail/confidence inequality is . The worked numbers: , gives , (all eight outcomes sum to ); the exact case collapses to ; and , gives with applications of . The constant is the standard Fejér-kernel floor.
Prerequisites. Quantum Fourier Transform · Quantum Parallelism and the Oracle Model · Bernstein–Vazirani Algorithm. Leads to. Order Finding and Period Finding · Shor's Factoring Algorithm · Quantum Discrete Logarithm Algorithm · Hidden Subgroup Problem.
Ask the tutor: ask me to run phase estimation on any φ and t amplitude by amplitude, prove the 4/π² floor or the qubit-count rule line by line, or show exactly how order finding turns this circuit into the engine of Shor's algorithm.
Why does controlling the unitary reveal a phase that is otherwise invisible?
A global phase multiplies the whole state, so it cancels in the Born rule and no measurement of can detect it. Controlled- changes the situation: it applies the phase only to the branch of the control qubit, converting a global phase into a relative phase between and . Relative phases are physical — they govern interference — so a later Hadamard or inverse QFT can turn them into different measurement probabilities. The eigenstate itself never changes (that is phase kickback), which is why it can be reused across all the controlled powers without being disturbed.
What is the role of the inverse QFT, as opposed to the forward QFT?
After the controlled-power cascade the counting register holds , which is exactly the forward QFT of the number . To recover that number you must undo the transform, so you apply the inverse QFT, which maps the Fourier state back to the computational-basis string closest to . This is the sense in which phase estimation and the QFT are duals: the QFT builds a Fourier state out of a set of digits, and phase estimation reads a set of digits out of a Fourier state. Using the forward QFT here would transform in the wrong direction and scramble the answer.
Why is the success probability floor exactly 4/π², and does it depend on t?
It comes from bounding the squared Dirichlet kernel at its peak. For the nearest estimate the residual satisfies , so the numerator obeys , while the denominator obeys . Their ratio, squared and divided by , gives . Crucially the factors cancel, so the floor is completely independent of : whether you extract bits or , one run lands on the nearest fraction more than of the time, and a handful of repetitions makes the majority answer essentially certain.
What actually happens if I run phase estimation on a state that is not an eigenstate?
You do not get an error — you get a random eigenphase. Expand the input in the eigenbasis, . The circuit is linear, so it estimates every in superposition, and the final measurement collapses the counting register onto one estimate with probability , simultaneously projecting the target onto . This is a feature when you exploit it: in order finding the easy-to-prepare state is a uniform superposition of eigenstates, so phase estimation returns a random . It is a bug when you forget it and expected a single deterministic phase — you will instead sample the spectrum.
How is phase estimation the engine inside Shor's algorithm?
For modular multiplication , the eigenstates have eigenphases , where is the order of modulo . Phase estimation returns an estimate of , and the continued-fractions algorithm recovers from it. Because the uniform superposition equals the trivial state , you never need to prepare a specific eigenstate — you run phase estimation on and read off a random . The powers are computed by repeated squaring, keeping the whole routine polynomial, which is why order finding is the quantum heart of factoring.
Why can't I skip the extra qubits and just repeat the circuit more times?
You can, and often you should — but the two knobs do different jobs. The register width sets the resolution: with qubits the outputs live on a grid of spacing , so no amount of repetition can resolve finer than the grid. The surplus qubits in instead sharpen the peak so a single shot is reliable. Repetition with a majority vote is an alternative way to buy confidence at fixed resolution, and it is exactly what iterative phase estimation does — trading a wide coherent register for many runs of a one-qubit circuit with classical feedback, which is far friendlier to near-term hardware.