Advanced Quantum Algorithms
MIT OpenCourseWare
Quantum Phase Estimation estimates the eigenvalue of a unitary operator applied to one of its eigenstates. It is the foundational subroutine behind Shor's algorithm, quantum chemistry simulations, and the HHL algorithm for linear systems -- and the clearest example of how quantum computers extract information that classical computers cannot efficiently compute.
Given a unitary operator U and one of its eigenstates |psi>, quantum phase estimation finds the phase theta such that:
Here theta is a real number between 0 and 1. Classical computers cannot efficiently compute this phase for large unitary operators -- the problem is at least as hard as simulating the quantum system itself. QPE extracts theta using quantum parallelism: it encodes the phase into the measurement probabilities of an ancilla register and reads it out using the inverse quantum Fourier transform (QFT).
QPE is a subroutine, not a standalone algorithm. You use it as a component inside larger algorithms whenever you need to extract an eigenvalue. Its output is the phase theta to n bits of precision, where n is the number of ancilla qubits you allocate.
Understanding QPE requires understanding the quantum Fourier transform -- the QFT is the final decoding step that translates phase information from quantum amplitudes into classical measurement outcomes.
The QPE circuit has three stages. You do not need heavy mathematics to understand what each stage is doing.
Prepare n ancilla qubits in the uniform superposition state by applying a Hadamard gate to each. These n qubits are your "measurement register" -- the bits that will ultimately encode the phase theta. The number n determines the precision: you recover theta to n binary decimal places, so the error is at most 1/2^n.
Apply controlled-U^(2^k) for k = 0, 1, ..., n-1, where each ancilla qubit k controls the k-th power of U acting on the target register (the eigenstate |psi>). This step encodes the phase into the ancilla via a mechanism called phase kickback: applying a controlled-U to an eigenstate transfers the eigenvalue phase onto the control qubit's amplitude. After all n controlled operations, the ancilla register holds the phase encoded in its quantum state.
Apply the inverse quantum Fourier transform to the ancilla register. The QFT changes the basis so that the phase encoded in the amplitudes becomes readable as a standard computational-basis measurement outcome. Measuring the ancilla register now gives you the binary representation of theta directly. With n ancilla qubits, you read out n binary digits of the phase.
QPE appears as a component in several of the most significant quantum algorithms:
Uses QPE to find the period of the modular exponentiation function f(x) = a^x mod N. The period, once found, reveals the factors of N via classical number theory. QPE is the quantum heart of Shor's -- the part that provides exponential speedup over classical factoring. See the Shor's algorithm guide.
The ground state energy of a molecule equals the phase of the time-evolution operator e^(-iHt) acting on the ground state, where H is the molecular Hamiltonian. QPE extracts this phase directly, giving the ground state energy to high precision. This is the theoretically preferred method for quantum chemistry, though it requires fault-tolerant hardware.
The HHL algorithm for solving linear systems Ax = b uses QPE to estimate the eigenvalues of the matrix A. These eigenvalues are then used to construct the solution x = A^(-1)b in quantum superposition. QPE gives HHL its exponential speedup over classical direct solvers.
A generalization of Grover's algorithm that uses QPE to estimate the probability amplitude of a quantum state. Used in quantum finance for Monte Carlo estimation with quadratic speedup. Related to Grover's through the structure of the amplitude amplification operator.
QPE and variational algorithms like VQE and QAOA both target problems involving quantum operators, but they approach them from fundamentally different directions. The trade-off is precision versus hardware requirements.
For quantum chemistry: VQE is what you implement today on real hardware. QPE is what fault-tolerant quantum computers will use to compute chemistry more accurately than classical computers can. See the VQE guide for the variational approach.
Quantum computing courses that include quantum phase estimation in their curriculum.
MIT OpenCourseWare
IBM Quantum
Hands-on implementations of quantum phase estimation in Qiskit and other frameworks.