Hubbry Logo
Quantum phase estimation algorithmQuantum phase estimation algorithmMain
Open search
Quantum phase estimation algorithm
Community hub
Quantum phase estimation algorithm
logo
7 pages, 0 posts
0 subscribers
Be the first to start a discussion here.
Be the first to start a discussion here.
Contribute something
Quantum phase estimation algorithm
Quantum phase estimation algorithm
from Wikipedia

In quantum computing, the quantum phase estimation algorithm is a quantum algorithm to estimate the phase corresponding to an eigenvalue of a given unitary operator. Because the eigenvalues of a unitary operator always have unit modulus, they are characterized by their phase, and therefore the algorithm can be equivalently described as retrieving either the phase or the eigenvalue itself. The algorithm was initially introduced by Alexei Kitaev in 1995.[1][2]: 246 

Phase estimation is frequently used as a subroutine in other quantum algorithms, such as Shor's algorithm,[2]: 131  the quantum algorithm for linear systems of equations, and the quantum counting algorithm.

Overview of the algorithm

[edit]

The algorithm operates on two sets of qubits, referred to in this context as registers. The two registers contain and qubits, respectively. Let be a unitary operator acting on the -qubit register. The eigenvalues of a unitary operator have unit modulus, and are therefore characterized by their phase. Thus if is an eigenvector of , then for some . Due to the periodicity of the complex exponential, we can always assume .

The goal is producing a good approximation for with a small number of gates and a high probability of success. The quantum phase estimation algorithm achieves this assuming oracular access to , and having available as a quantum state. This means that when discussing the efficiency of the algorithm we only worry about the number of times needs to be used, but not about the cost of implementing itself.

More precisely, the algorithm returns with high probability an approximation for , within additive error , using qubits in the first register, and controlled-U operations. Furthermore, we can improve the success probability to for any by using a total of uses of controlled-U, and this is optimal.[3]

Detailed description of the algorithm

[edit]
The circuit for quantum phase estimation.

State preparation

[edit]

The initial state of the system is:

where is the -qubit state that evolves through . We first apply the n-qubit Hadamard gate operation on the first register, which produces the state:Note that here we are switching between binary and -ary representation for the -qubit register: the ket on the right-hand side is shorthand for the -qubit state , where is the binary decomposition of .

Controlled-U operations

[edit]

This state is then evolved through the controlled-unitary evolution whose action can be written as for all . This evolution can also be written concisely as which highlights its controlled nature: it applies to the second register conditionally to the first register being . Remembering the eigenvalue condition holding for , applying to thus gives where we used .

To show that can also be implemented efficiently, observe that we can write , where denotes the operation of applying to the second register conditionally to the -th qubit of the first register being . Formally, these gates can be characterized by their action asThis equation can be interpreted as saying that the state is left unchanged when , that is, when the -th qubit is , while the gate is applied to the second register when the -th qubit is . The composition of these controlled-gates thus gives with the last step directly following from the binary decomposition .

From this point onwards, the second register is left untouched, and thus it is convenient to write , with the state of the -qubit register, which is the only one we need to consider for the rest of the algorithm.

Apply inverse quantum Fourier transform

[edit]

The final part of the circuit involves applying the inverse quantum Fourier transform (QFT) on the first register of :The QFT and its inverse are characterized by their action on basis states as It follows that

Decomposing the state in the computational basis as the coefficients thus equalwhere we wrote with is the nearest integer to . The difference must by definition satisfy . This amounts to approximating the value of by rounding to the nearest integer.

Measurement

[edit]

The final step involves performing a measurement in the computational basis on the first register. This yields the outcome with probability It follows that if , that is, when can be written as , one always finds the outcome . On the other hand, if , the probability reads From this expression we can see that when . To see this, we observe that from the definition of we have the inequality , and thus:[4]: 157 [5]: 348 

We conclude that the algorithm provides the best -bit estimate (i.e., one that is within of the correct answer) of with probability at least . By adding a number of extra qubits on the order of and truncating the extra qubits the probability can increase to .[5]

Toy examples

[edit]

Consider the simplest possible instance of the algorithm, where only qubit, on top of the qubits required to encode , is involved. Suppose the eigenvalue of reads , . The first part of the algorithm generates the one-qubit state . Applying the inverse QFT amounts in this case to applying a Hadamard gate. The final outcome probabilities are thus where , or more explicitly, Suppose , meaning . Then , , and we recover deterministically the precise value of from the measurement outcomes. The same applies if .

If on the other hand , then , that is, and . In this case the result is not deterministic, but we still find the outcome as more likely, compatibly with the fact that is closer to 1 than to 0.

More generally, if , then if and only if . This is consistent with the results above because in the cases , corresponding to , the phase is retrieved deterministically, and the other phases are retrieved with higher accuracy the closer they are to these two.

See also

[edit]

References

[edit]
Revisions and contributorsEdit on WikipediaRead on Wikipedia
from Grokipedia
The quantum phase estimation algorithm (QPE) is a cornerstone quantum algorithm that estimates the phase ϕ\phi (where 0ϕ<10 \leq \phi < 1) corresponding to an eigenvalue e2πiϕe^{2\pi i \phi} of a unitary operator UU, given access to controlled powers of UU and an eigenvector ψ|\psi\rangle such that Uψ=e2πiϕψU |\psi\rangle = e^{2\pi i \phi} |\psi\rangle. It achieves an mm-bit approximation of ϕ\phi with success probability at least 8/π20.818/\pi^2 \approx 0.81 using mm ancillary qubits, and the probability can be amplified to 1ϵ1 - \epsilon by increasing the number of qubits to m+O(log(1/ϵ))m + O(\log(1/\epsilon)). The algorithm proceeds by preparing a superposition state y=02m1yψ\sum_{y=0}^{2^m - 1} |y\rangle \otimes |\psi\rangle, applying controlled-U2jU^{2^j} operations for j=0j = 0 to m1m-1 to encode the phase into the ancillary register, and then performing an inverse quantum Fourier transform followed by measurement to extract the phase estimate. Introduced by Alexei Kitaev in 1995 as a key subroutine for solving the Abelian stabilizer problem—which includes integer factoring and the discrete logarithm—it leverages quantum measurements to efficiently extract phase information that would be computationally infeasible classically. Kitaev's original formulation relied on iterative phase measurements, but in 1998, Richard Cleve, Artur Ekert, Chiara Macchiavello, and Michele Mosca provided a non-iterative version using the quantum Fourier transform, which reduced the query complexity and highlighted connections to other quantum algorithms. This development established QPE as a versatile primitive, capable of estimating phases with exponential speedup over classical methods for certain unitaries. QPE serves as a building block in numerous advanced quantum algorithms, including Peter Shor's 1994 factoring algorithm, where it estimates the order of elements in multiplicative groups to break RSA encryption. It also underpins the Harrow-Hassidim-Lloyd (HLL) algorithm for solving linear systems exponentially faster than classical methods, enabling applications in quantum machine learning and optimization. Additionally, QPE facilitates Hamiltonian simulation by estimating energy eigenvalues, which is crucial for quantum chemistry and materials science simulations. Ongoing research focuses on resource-efficient variants, such as those reducing the dependence on the full quantum Fourier transform or mitigating errors in noisy intermediate-scale quantum devices.

Background

Unitary operators and eigenvalues

In quantum mechanics and quantum computing, a unitary operator UU is defined as a linear operator acting on a Hilbert space that satisfies the condition UU=IU^\dagger U = I, where UU^\dagger is the Hermitian adjoint of UU and II is the identity operator. This property ensures that unitary operators preserve the inner product and thus the norm of quantum states, which is essential for maintaining the probabilistic nature of quantum measurements. The eigenvalues of any unitary operator lie on the unit circle in the complex plane, meaning they can be expressed as e2πiθe^{2\pi i \theta} for some real number θ\theta. Consequently, if ψ|\psi\rangle is an eigenvector of UU with eigenvalue λ\lambda, then Uψ=e2πiθψ,U |\psi\rangle = e^{2\pi i \theta} |\psi\rangle, where θ[0,1)\theta \in [0, 1). The phase θ\theta represents the argument of the eigenvalue and is the primary quantity targeted for estimation in quantum phase estimation algorithms, as it captures the essential rotational information while being confined to a standard interval. Unitary operators play a crucial role in quantum algorithms because they model key physical and computational processes. For instance, in quantum simulation, the time evolution of a quantum system is governed by a unitary operator U(t)=eiHt/U(t) = e^{-i H t / \hbar}, where HH is the system's Hamiltonian; estimating the phases of such operators enables the computation of energy eigenvalues and dynamical properties. Similarly, in Shor's algorithm for integer factorization, phase estimation is applied to a unitary operator implementing modular exponentiation, whose eigenvalues encode information about the period of the function, facilitating efficient factoring. The foundational concepts of unitary operators trace back to the early development of quantum mechanics in the 1920s and 1930s. The quantum phase estimation algorithm, which specifically targets the estimation of these phases, was first formalized by Alexei Kitaev in 1995 as part of his work on quantum measurements and the Abelian stabilizer problem.

Quantum Fourier transform

The quantum Fourier transform (QFT) is a unitary linear transformation that acts on the computational basis states of an n-qubit quantum register, serving as the quantum analogue of the classical discrete Fourier transform. For an n-qubit system where q=2nq = 2^n, the QFT maps a basis state j|j\rangle (with 0j<q0 \leq j < q) to the superposition state 1qk=0q1e2πijk/qk.\frac{1}{\sqrt{q}} \sum_{k=0}^{q-1} e^{2\pi i j k / q} |k\rangle.
Add your contribution
Related Hubs
Contribute something
User Avatar
No comments yet.