Quantum Phase Estimation Algorithm - Notes.
Quantum Phase Estimation Algorithm - Notes.
The QPE algorithm involves a complex process characterized by the following key steps:
1. Initialization: The algorithm starts with two registers. The first register is initialized to
a superposition of all possible states using Hadamard gates. The second register is
prepared in the eigenstate of a unitary operator U, whose eigenvalue λ is to be
estimated.
2. Controlled Unitary Operations: The heart of QPE is a series of controlled unitary
operations U^2k applied to the second register, conditioned on the state of the qubits
in the first register. Each of these operations applies the unitary operator a different
number of times, corresponding to powers of 2, effectively encoding the phase
information of U into the quantum state of the first register.
3. Inverse Quantum Fourier Transform (QFT): After applying the controlled operations,
the first register holds a quantum state that is the superposition of states with phases
related to the eigenvalue of U. The inverse Quantum Fourier Transform is then
applied to this register. The QFT is a quantum algorithm that transforms quantum
states in a way analogous to the discrete Fourier transform in classical computing. Its
inverse is used to convert the quantum phase information into a binary representation.
4. Measurement and Phase Estimation: The final step is to measure the first register. The
outcome of this measurement gives an estimate of the phase θ of the eigenvalue λ,
where λ= e2πiθ. The accuracy of the phase estimate depends on the number of qubits
used in the first register and the number of times the controlled unitary operations are
applied."
We are given a unitary operator U and one of its eigenstates |ψ⟩. The operator is unitary, so
we can write: ,
where ϕ is the phase of the eigenvalue (remember, unitaries have eigenvalues with an
absolute value of 1). The goal is to estimate ϕ, hence the name phase estimation.
Where θ is the estimated phase, M is the measured value, and n is the number of counting
qubits. As such from the measurement above: