Overview
Every eigenvalue of a unitary has the form . Phase estimation is the task of learning , given the ability to apply (controlled on another qubit) and a state that is, or overlaps with, the corresponding eigenvector. The standard quantum algorithm, introduced in this form by Kitaev and by Cleve, Ekert, Macchiavello and Mosca, reaches accuracy with about applications of — the Heisenberg scaling — where independent repetitions of a single-use experiment would need about .
Phase estimation is the common core of many algorithms: with a modular multiplication it gives order finding and Shor's algorithm; with it measures energies, the main use foreseen in chemistry and materials (Hamiltonian simulation); with a Grover iterate it gives amplitude estimation and counting; and applied to a matrix it is the first step of the HHL linear-systems algorithm (quantum linear algebra).
Intuition
Applying to its eigenvector multiplies the state by a phase, which is invisible. Applying controlled on a qubit in moves that phase onto the control qubit, where an interference experiment can see it: this is phase kickback, and the Hadamard test is the simplest instance. A single control qubit gives to accuracy after repetitions.
To do better, use powers. The controlled- gate kicks back the phase , whose fractional part is with its binary point moved places to the right. Control qubits fed with therefore hold the binary digits of encoded as phases — exactly the product state that the quantum Fourier transform produces from . Undoing the transform writes the digits into the computational basis. The lesson Phase estimation runs this procedure on small examples.
Prerequisites
The quantum Fourier transform, controlled unitaries, and the spectral theorem for unitary matrices.
Mathematical Definitions
Input. A unitary on a target register, given through controlled applications; a target state ; the number of control qubits. Write .
Procedure.
- Prepare the control register in and apply , giving .
- For , apply controlled- with control the control qubit of weight (qubit in the big-endian convention) and target the target register.
- Apply the inverse QFT to the control register.
- Measure the control register in the computational basis, obtaining an integer , and output .
Why it works. If the target is an eigenvector, controlled- leaves it unchanged and multiplies the component of its control by (phase kickback). After step 2 the registers are
If is an integer , this control state is exactly , so step 3 returns and the output is exact. Otherwise the outcome distribution is the phase estimation kernel, concentrated near ; its accuracy is quantified in the accuracy theorem.
Superpositions. If the target is with , the eigenvectors are orthogonal, so the outcome distribution is the mixture with weights of the distributions for each . After outcome the target is proportional to , where is the amplitude of for a single eigenphase; it is close to one eigenvector when the eigenphases are separated by much more than .
Cost. Hadamards, one inverse QFT on qubits ( gates, or fewer approximately), and controlled powers amounting to controlled applications of when each power is implemented by repetition. When can be implemented directly at lower cost, as for modular multiplication in Shor's algorithm, the cost is much smaller.
The eigenvalue-measurement idea is due to Kitaev; the form with an inverse QFT is that of Cleve, Ekert, Macchiavello and Mosca, and section 5.2 of Nielsen and Chuang is a textbook account.
- A controlled version of (with a fixed global phase) is available as a black box or circuit.
- The target register is prepared in an eigenvector with , , or in a superposition of eigenvectors.
After the controlled powers the control register holds . Applying and taking the amplitude of gives a geometric series:
using . The probability depends on only through modulo 1 and is the Fejér kernel. It equals 1 at , vanishes at every other multiple of (so an exactly representable phase is read without error), and for is bounded by , which gives its tails. It is the likelihood function used by Bayesian and maximum-likelihood post-processing; see the accuracy theorem and the derivations in Cleve, Ekert, Macchiavello and Mosca and section 5.2.1 of Nielsen and Chuang.
- Exact gates and an exact eigenvector input, .
- The value at is the limit, .
For a pure target state , controlled- maps to . Projecting the ancilla onto leaves , of squared norm ; projecting onto leaves , of squared norm . Both are affine in , so for a mixed state becomes .
Each run is a random variable with mean (or the imaginary part), so by Hoeffding's inequality runs estimate it to additive error with probability at least . For an eigenvector, : this is the single-ancilla phase measurement of Kitaev, and replacing by yields one bit of information about , the building block of iterative phase estimation. It also appears as the one-control-qubit case of the analysis of Cleve, Ekert, Macchiavello and Mosca. It costs runs, against the uses of of phase estimation.
- The controlled unitary is exactly ; a different global phase of changes the result.
- is any state of the target register; for the -basis version the ancilla is measured in the basis .
Theorems
Run phase estimation with control qubits, , and let be the measured integer.
-
Exact case. If , then with probability 1.
-
Nearest integer. Let be an integer with . Then .
-
Tail bound. Let . For every integer , , where is the distance of to the nearest multiple of .
-
Bits of precision. For and , if
then .
The procedure uses controlled applications of . Since part 4 needs , additive accuracy at constant failure probability costs uses of : the Heisenberg scaling, against the of estimating the phase from independent single-use experiments.
Part 4 is the form given in section 5.2.1 of Nielsen and Chuang; the analysis via the Fourier transform is that of Cleve, Ekert, Macchiavello and Mosca.
- Exact gates; the target register holds an eigenvector with , .
- Distances between phases are taken modulo 1, .
Proof · Proof of the accuracy bounds for phase estimation
By the outcome distribution, the measured integer has amplitude with , and . Both depend on only modulo 1. Two elementary inequalities are used: for , (concavity of on ); and for , (the same inequality with ).
Part 1. If then and every term of the sum for equals 1, so .
Part 2. Choose the representative of with . If we are in Part 1. Otherwise , and gives . Hence
Part 3. Write and label outcomes by modulo with (for ), so that . Then , and this representative satisfies : for , ; for , . Bounding the numerator of the amplitude by and the denominator by ,
Since : for , ; for , . Therefore, for ,
where the middle step uses and the last uses .
Part 4. Put . The hypothesis on gives , and since is a power of 2, . If then
By Part 3 this fails with probability at most , which is at most exactly when , the hypothesis. The cost statement follows from and for the smallest admissible .
Parts 3 and 4 follow the argument of section 5.2.1 of Nielsen and Chuang, written out here with the representatives made explicit.
Lower bounds. Heisenberg scaling is optimal: no strategy that uses a total of times can estimate an unknown phase with error decreasing faster than ; see Giovannetti, Lloyd and Maccone for the general metrological statement. In the query model where the controlled powers are oracles that each cost one query, Bessen proved that queries are needed, matching the controlled powers of the textbook algorithm.
Worked Examples
An irrational-looking phase with three control qubits
Let and , so and is not an integer. By the outcome distribution, with . Because , the numerator is for every , so :
| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
|---|---|---|---|---|---|---|---|---|
| 0 | 0.125 | 0.25 | 0.375 | 0.5 | 0.625 | 0.75 | 0.875 | |
| 0.0156 | 0.0316 | 0.1749 | 0.6878 | 0.0469 | 0.0186 | 0.0126 | 0.0119 |
The nearest grid point appears with probability , above the guaranteed ; the two nearest together have probability ; and the probabilities sum to 1. The tails decay like in the distance from the peak, which is why a few extra control qubits buy a large reduction in failure probability.
Counting control qubits
For correct bits with failure probability , the accuracy theorem asks for control qubits and controlled applications of if the powers are built by repetition. Halving the target error to doubles that count: cost is linear in .
Algorithms and Implementations
Single-ancilla and iterative phase estimation
The QFT-based circuit needs control qubits. Kitaev's original procedure uses Hadamard tests on for each , each repeated a few times, and a classical rule that assembles the digits (Kitaev). In iterative phase estimation one control qubit is reused: the least significant digit is measured first, and each later round applies a phase correction computed from the digits already obtained before measuring. This is the semiclassical QFT applied to the phase-estimation register; a single-ancilla version with arbitrary accuracy was analysed and benchmarked by Dobšíček, Johansson, Shumeiko and Wendin (2007). Higgins, Berry, Bartlett, Wiseman and Pryde (2007) generalised Kitaev's scheme with adaptive measurements and demonstrated Heisenberg-limited scaling in an optical experiment without entangled states.
Robust and Bayesian post-processing
Kitaev-style schemes produce a likelihood function rather than a single integer, and the digits can be estimated with statistical methods that tolerate noise. Kimmel, Low and Yoder (2015) introduced robust phase estimation, which keeps Heisenberg scaling under bounded errors in each experiment, and used it for gate calibration. Wiebe and Granade (2016) gave an efficient Bayesian method that chooses experiments adaptively.
Early fault-tolerant variants
On hardware with few logical qubits and limited circuit depth, it pays to keep one ancilla and short circuits and to move work into classical post-processing. As of 2026-11, three published lines are:
- Lin and Tong (PRX Quantum, 2022) estimate a ground-state energy with Heisenberg-limited precision using one ancilla and Hadamard-test circuits, by reconstructing an approximate cumulative distribution function of the spectral measure of the initial state.
- Ding and Lin (PRX Quantum, 2023) introduce quantum complex exponential least squares (QCELS), whose maximal evolution time is with a prefactor that tends to 0 as the initial state approaches the eigenvector, while the total cost stays .
- Wan, Berta and Campbell (PRL, 2022) give a randomized statistical phase estimation algorithm for whose cost is independent of the number of terms , and in which every error source can be suppressed by taking more samples rather than deeper circuits.
Applications
Order finding and factoring (Shor's algorithm); energy estimation for chemistry and condensed matter, with or a qubitized walk operator (Hamiltonian simulation, quantum signal processing); amplitude estimation and quantum counting (Grover's algorithm); and eigenvalue inversion in the HHL algorithm (quantum linear algebra).
Limitations and Common Pitfalls
- The eigenvector is an assumption. With an input state of overlap with the target eigenvector, a run returns the target phase with probability about . For ground-state energies, preparing a state with non-negligible overlap can be the hardest part of the problem.
- Repetition hides cost. The applications of are sequential. A circuit with needs a coherent evolution times longer than one use of , which is why the early fault-tolerant variants above trade depth for samples.
- Controlled- fixes a global phase. and are the same gate but give different controlled gates and shift every estimated phase by . Compiling controlled- by controlling each gate of a circuit "up to phase" changes the answer.
- Phases live on a circle. and are close; error bounds and averaging must use the distance modulo 1.
- Eigenvalue degeneracy and near-degeneracy. Two eigenvalues closer than are not resolved; the outcome mixes them according to the overlaps.
Related Research
Quantum Fourier transform, quantum signal processing (phase estimation as a polynomial transformation), and the overview of quantum algorithms.