Quantum phase estimation (QPE) is a quantum algorithm that determines the eigenphase of a unitary operator: given U and an eigenvector |ψ⟩ with U|ψ⟩ = e^{2πiθ}|ψ⟩, it outputs a binary approximation of the phase θ. Among quantum algorithms it is one of the most important building blocks in quantum computing, because many problems reduce to reading an eigenvalue.
QPE is the engine inside Shor’s algorithm for factoring, the HHL method for linear systems, quantum counting and most proposals for fault-tolerant quantum chemistry. It achieves precision ε with a cost that scales as 1/ε uses of the unitary, the so-called Heisenberg limit, which is quadratically better than any method based on repeated independent sampling.
How quantum phase estimation works
The textbook circuit uses two registers. The counting register of t qubits holds the answer, and the target register holds the eigenstate |ψ⟩. The algorithm runs in three stages, each with a clear purpose.
- Prepare a uniform superposition by applying a Hadamard gate to every counting qubit.
- Apply controlled powers of U: counting qubit k controls U raised to 2^k, which writes the phase into the counting register through phase kickback.
- Apply the inverse quantum Fourier transform to the counting register and measure it to read θ in binary.
Phase kickback is the key mechanism. Because |ψ⟩ is an eigenstate, the controlled unitary leaves the target unchanged and instead attaches the factor e^{2πiθ·2^k} to the |1⟩ component of the control qubit. After all controlled operations the counting register holds a Fourier-encoded version of θ, and the inverse transform converts it back into ordinary binary digits.
The resources of the standard circuit are summarized below.
| Resource | Typical requirement | What drives it |
|---|---|---|
| Counting qubits | t ≈ n + log2(2 + 1/(2δ)) | Target bits n and failure probability δ |
| Controlled-U applications | About 2^t in total | Desired precision |
| Inverse QFT gates | On the order of t^2 | Register size, fewer if approximated |
| Success probability | At least 4/π² ≈ 0.405 for exact t bits | Whether θ has an exact t-bit form |
| Circuit depth | Dominated by U^(2^k) | Cost of implementing high powers of U |
Precision, success probability and the eigenstate problem
When θ has an exact t-bit binary expansion, QPE returns it with certainty. Otherwise the output concentrates on the nearest values, and the probability of landing within one unit of the last bit is at least 4/π², about 40 percent, for the closest estimate and higher for a small neighborhood. Adding a few extra counting qubits pushes the success probability toward 1 at modest cost.
QPE assumes the target register starts in an eigenstate, which is rarely available. If the input is a superposition of eigenstates, the algorithm returns phase θj with probability equal to the squared overlap with eigenstate j and projects the target onto that eigenstate. This makes QPE a tool for eigenstate preparation, but it also means that a poor initial guess can make the useful answer exponentially unlikely.
For chemistry this is the central practical concern: estimating a ground-state energy requires an initial state with substantial overlap, typically from a classical method such as Hartree–Fock or a more correlated approximation.
Variants of phase estimation
Researchers have developed several variants that trade qubit count, circuit depth and classical post-processing. The table compares the most common ones.
| Variant | Counting qubits | Key idea | Best suited for |
|---|---|---|---|
| Textbook QPE | t qubits | Parallel controlled powers plus inverse QFT | Fault-tolerant devices |
| Iterative QPE | One ancilla, reused | Reads one bit per round with feedback | Hardware with mid-circuit measurement |
| Kitaev’s method | One ancilla per test | Repeated Hadamard tests at several powers | Robust classical estimation |
| Bayesian QPE | One ancilla | Updates a probability distribution over θ | Noisy early hardware |
| Robust or statistical QPE | One or few | Signal processing on many short circuits | Early fault-tolerant systems |
| QSVT-based estimation | Few ancillas | Polynomial transformations of block encodings | Optimal asymptotic cost |
Iterative phase estimation is often preferred in practice because it replaces the multi-qubit register and the inverse QFT with a single reusable ancilla and classically controlled phase corrections, which reduces width while keeping the same total number of controlled-U calls.
How QPE relates to other quantum algorithms
QPE is less a standalone algorithm than a subroutine that many other methods in the Topic call. The next table shows how it fits into the neighboring algorithms.
| Algorithm | Unitary U | Phase that QPE extracts |
|---|---|---|
| Shor’s algorithm | Modular multiplication by a | s/r, revealing the order r |
| Quantum counting | Grover iterate | Angle that encodes the number of solutions |
| Amplitude estimation | Amplitude amplification operator | Angle tied to the success amplitude |
| HHL algorithm | e^{iAt} for matrix A | Eigenvalues of A used for inversion |
| Energy estimation | e^{−iHt} for Hamiltonian H | Energy eigenvalues of H |
The variational quantum eigensolver is often described as a near-term alternative to QPE. VQE uses shallow circuits but needs many measurements and a classical optimizer, and its precision scales as 1/ε² samples. QPE needs deep coherent circuits but reaches the 1/ε Heisenberg scaling and gives an eigenvalue rather than a variational upper bound.
Costs, limitations and common mistakes
The dominant cost of QPE is rarely the Fourier transform; it is the implementation of controlled U^(2^k). For factoring, modular exponentiation can be computed efficiently, but for a Hamiltonian, e^{−iHt} must be built by Hamiltonian simulation such as Trotterization or qubitization, and its error adds to the phase error. Resource estimates for useful chemistry problems therefore run to millions of physical qubits under surface-code error correction, depending heavily on the molecule and the error budget.
- Ignoring the eigenstate overlap, which can make the target phase rarely observed.
- Confusing precision with accuracy: extra counting bits do not help if Hamiltonian simulation error dominates.
- Running textbook QPE on noisy hardware, where deep controlled powers exceed coherence times.
- Forgetting phase wrap-around, since θ is defined only modulo 1.
The simple explanation
Some quantum operations act on special states by only turning a hidden dial, and the angle of that dial carries valuable information, such as the energy of a molecule. Quantum phase estimation is a way to read that angle precisely.
It works a little like timing a spinning wheel. Watching it for one turn gives a rough idea, watching for two, four and eight turns gives finer detail, and combining the observations reveals the speed digit by digit. QPE does the same with quantum operations and assembles the answer one binary digit at a time.
How it is used in practice
A research group in computational chemistry wants the ground-state energy of a catalyst fragment to within 1.6 millihartree, the usual chemical accuracy threshold. Classical approximations disagree by more than that, so the team designs a QPE workflow for a future fault-tolerant machine. It prepares an initial state from a classical calculation with an estimated overlap of about 0.8 and encodes the Hamiltonian with qubitization.
Resource estimation shows that iterative QPE with one ancilla needs roughly 10^9 to 10^10 logical gates, depending on how the Hamiltonian is factorized. The group uses this result to compare encodings, picks the one with the lowest T-gate count, and validates the whole pipeline on small molecules in a simulator, where QPE reproduces the exact energies. The outcome is a concrete resource budget that tells the team which hardware generation could run the calculation.