- Introduced by
- Alexei Kitaev
- Year
- 1995
- Type
- Subroutine algorithm
- Family
- Quantum Algorithm
What does it do?
Quantum Phase Estimation (QPE) is a quantum subroutine that estimates the eigenvalues of a unitary operator.
It is commonly attributed to Alexei Kitaev's 1995 work on the Abelian stabilizer problem, and Cleve et al. (1998) show that several known quantum algorithms are instances of phase estimation. The accuracy of the estimate is set by the number of control qubits, which is the central trade-off in using the method.
The intuition behind the method
Controlled applications of a unitary U to an eigenstate imprint the eigenvalue's phase onto a register of control qubits. Each control qubit is entangled with a different power of U (U, U^2, U^4, and so on), so the register records the phase in binary form. The inverse quantum Fourier transform then converts this phase encoding into a readout state that can be measured. Each additional control qubit halves the target phase resolution, which is why the precision grows exponentially with register size. The cost lies in the largest controlled power, which requires implementing U repeatedly within a single coherent circuit.
History
Kitaev's 1995 paper, Quantum measurements and the Abelian stabilizer problem, is commonly cited as the origin of phase estimation. Cleve, Ekert, Macchiavello and Mosca (1998) later showed that several quantum algorithms are instances of phase estimation. Aspuru-Guzik and co-authors (2005) applied a recursive phase estimation approach to ground-state energies of water and lithium hydride.
When to use it
Choose QPE when the task is to estimate eigenvalues of a unitary operator, such as a molecular Hamiltonian's time evolution or the period-finding step in Shor's algorithm, and when the circuit depth needed for the largest controlled powers of U is feasible on the target hardware. It requires a state that is already close to the eigenstate of interest. It is not a good first choice for near-term, noisy devices where deep controlled-unitary circuits cannot be run reliably; in that setting, variational methods such as VQE are usually considered as shallower alternatives. If the problem is small enough to diagonalise classically, QPE offers no advantage.
Limitations and considerations
- Output quality depends on the input state: QPE needs a state close to an eigenstate, and preparing such a state can be costly.
- Implementing controlled U^(2^k) for the largest k requires deep circuits, because the largest controlled power dominates the depth.
- Phase accuracy depends directly on the number of control qubits, so higher precision requires a larger readout register and more controlled evolution.
- Gate errors accumulate with the depth of the controlled-unitary sequence, which limits the precision achievable on noisy hardware.
- For small eigenvalue problems, classical diagonalisation is usually cheaper and more reliable.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Precision improves exponentially with the number of control qubits: m control qubits resolve the phase to roughly 2^(-m), although a single run is not guaranteed to reach that resolution.
- The same circuit structure applies to any unitary operator, not only to problems with a special form.
- Cleve et al. (1998) show that several known quantum algorithms can be understood as different instances of phase estimation, so the subroutine serves as a common building block.
- Aspuru-Guzik et al. (2005) used a recursive phase estimation variant that reduced the readout register from about 20 qubits to 4 in their molecular energy calculations.
Applications
- Quantum chemistry: estimating molecular ground-state energies, as in the Aspuru-Guzik et al. (2005) calculations.
- Quantum simulation: extracting spectral information from simulated quantum systems.
- Cryptanalysis: the period-finding step in Shor's algorithm for factorisation and discrete logarithms.
- Hamiltonian simulation: estimating the eigenphases associated with time evolution of quantum systems.
How it works
How it works
Prepare the control (counting) qubits in an equal superposition and load the target register with a state intended to be close to an eigenstate of U.
Apply controlled powers of U, with the k-th control qubit controlling U^(2^k), to the target register. For an eigenstate with eigenvalue e^(2πiφ), this writes the phase φ into the control register as a superposition of binary phase encodings.
Apply the inverse quantum Fourier transform to the control register, which maps the encoded phase into a computational basis state.
Measure the control qubits. The outcome is an integer x, giving the binary estimate φ ≈ x/2^m of the phase φ in [0,1). The eigenvalue e^(2πiφ) is then estimated from this value. The estimate is probabilistic: a single run is not guaranteed to fall within about 2^(-m) of the true phase, so the measurement is usually repeated.
Common pitfalls
- Starting from a state that is far from an eigenstate: QPE then returns eigenvalues sampled from the state's overlaps, not the eigenvalue of interest.
- Choosing too few control qubits: the phase resolution is then too coarse for the accuracy the application needs.
- Assuming QPE is faster than classical methods without counting the depth of the controlled powers of U and the cost of state preparation.
- Ignoring the cost of mapping a non-unitary operator, such as a Hermitian Hamiltonian, to a unitary (for example through e^(iH)), which adds circuit cost of its own.
- Treating the cost of state preparation as negligible: for many problems it can dominate total runtime.
- Misreading the readout: the integer gives φ only modulo 1, with φ in [0,1), so the physical eigenvalue must be recovered from e^(2πiφ) using the correct scaling (for example the time used to build U). The sign convention of the circuit also determines whether φ or its negative modulo 1 is obtained. Check the full procedure on a problem with a known answer before use.
Frequently asked questions
Why does QPE reach higher precision than classical methods?
The phase of a unitary's eigenvalue is written into a register of m control qubits, with the k-th control qubit acting through U^(2^k). The inverse quantum Fourier transform then reads this encoding as a binary estimate whose resolution is about 2^(-m). Each extra control qubit halves the phase resolution. A single run is not guaranteed to reach this resolution, so the precision statement is probabilistic. The price is that the largest controlled power, U^(2^(m-1)), must be implemented, so the cost of the controlled evolution grows with the precision required.
What is the phase kickback mechanism?
When a controlled unitary U acts on a control qubit and an eigenstate |ψ⟩ of U with eigenvalue e^(2πiφ), the phase φ is transferred to the control qubit. Repeating with powers of U creates a superposition encoding φ, which can be extracted via the quantum Fourier transform.
How do I choose the number of control qubits?
The number of control qubits m sets the phase resolution to about 2^(-m), and a single run is not guaranteed to reach it. Adding extra ancilla qubits beyond the accuracy target, and repeating the run while examining the distribution of outcomes, both raise confidence in the estimate. The required m depends on the accuracy target and on how the phase maps to the physical quantity of interest, so it must be determined for each problem. Aspuru-Guzik et al. (2005) reported that a recursive phase estimation variant reduced the readout register from about 20 qubits to 4 in their molecular calculations, which shows that register size can be reduced with algorithmic modifications.
Can QPE be used on non-unitary operators?
Not directly. A Hermitian operator is typically mapped to a unitary such as e^(iHt) for a chosen time t. This requires Hamiltonian simulation, whose error and gate cost must be counted separately.
What happens if the initial state is not an eigenstate?
If the state is a superposition of eigenstates, QPE returns one eigenvalue at random. The probability of obtaining a given eigenvalue equals the squared overlap of the input state with the corresponding eigenstate. Repeated runs therefore build up a distribution over the eigenvalues present in the state, rather than a single eigenvalue.
Related methods
Sources
Kitaev, A. Y. (1995). Quantum measurements and the Abelian stabilizer problem. arXiv preprint quant-ph/9511026.
Open publication referenceCleve, R., Ekert, A., Macchiavello, C., Mosca, M. (1998). Quantum algorithms revisited. Proceedings of the Royal Society A, 454, 339–354.
Open DOI referenceAspuru-Guzik, A., Love, P. J., Love, P. J. (2005). Simulated quantum computation of molecular energies. Science, 309, 1704–1707.
Open DOI reference