ArticleslgStudy

computer science

Amplitude amplification

Amplitude amplification is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Amplitude amplification rather than just read about it. In short: Amplitude amplification is a technique in quantum computing that generalizes the idea behind Grover's search algorithm, and gives rise to a family of quantum algorithms. It was discovered by Gilles Brassard and Peter Høyer in 1997, and independently rediscovered by Lov Grover in 1998.

Key takeaways

  • Amplitude amplification belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Amplitude amplification to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Amplitude amplification from memory before moving on to harder problems.

Reference excerpt

Amplitude amplification is a technique in quantum computing that generalizes the idea behind Grover's search algorithm, and gives rise to a family of quantum algorithms. It was discovered by Gilles Brassard and Peter Høyer in 1997, and independently rediscovered by Lov Grover in 1998. In a quantum computer, amplitude amplification can be used to obtain a quadratic speedup over several classical algorithms.

Algorithm The derivation presented here roughly follows the one given by Brassard et al. in 2000. Assume we have an N-dimensional Hilbert space ℋ representing the state space of a quantum system, spanned by the orthonormal computational basis states B:={|k⟩}k=0N−1. Furthermore assume we have a Hermitian projection operator P:ℋ→ℋ. Alternatively, P may be given in terms of a Boolean oracle function χ:ℤ→{0,1} and an orthonormal operational basis Bop:={|ωk⟩}k=0N−1, in which case

P:=∑χ(k)=1|ωk⟩⟨ωk|. P can be used to partition ℋ into a direct sum of two mutually orthogonal subspaces, the good subspace ℋ1 and the bad subspace ℋ0:ℋ1:=ImageP=span⁡{|ωk⟩∈Bop|χ(k)=1},ℋ0:=KerP=span⁡{|ωk⟩∈Bop|χ(k)=0}.In other words, we are defining a "good subspace" ℋ1 via the projector P. The goal of the algorithm is then to evolve some initial state |ψ⟩∈ℋ into a state belonging to ℋ1. Given a normalized state vector |ψ⟩∈ℋ with nonzero overlap with both subspaces, we can uniquely decompose it as

|ψ⟩=sin⁡(θ)|ψ1⟩+cos⁡(θ)|ψ0⟩, where θ=arcsin⁡(|P|ψ⟩|)∈[0,π/2], and |ψ1⟩ and |ψ0⟩ are the normalized projections of |ψ⟩ into the subspaces ℋ1 and ℋ0, respectively. This decomposition defines a two-dimensional subspace ℋψ, spanned by the vectors |ψ0⟩ and |ψ1⟩. The probability of finding the system in a good state when measured is sin2(θ). Define a unitary operator Q(ψ,P):=−SψSP, where

Sψ=I−2|ψ⟩⟨ψ|andSP=I−2P. SP flips the phase of the states in the good subspace, whereas Sψ flips the phase of the initial state |ψ⟩. The action of this operator on ℋψ is given by

Q|ψ0⟩=−Sψ|ψ0⟩=(2cos2(θ)−1)|ψ0⟩+2sin⁡(θ)cos⁡(θ)|ψ1⟩ and Q|ψ1⟩=Sψ|ψ1⟩=−2sin⁡(θ)cos⁡(θ)|ψ0⟩+(1−2sin2(θ))|ψ1⟩. Thus in the ℋψ subspace Q corresponds to a rotation by the angle 2θ:

Q=(cos⁡(2θ)sin⁡(2θ)−sin⁡(2θ)cos⁡(2θ)). Applying Q n times on the state |ψ⟩ gives

Qn|ψ⟩=cos⁡((2n+1)θ)|ψ0⟩+sin⁡((2n+1)θ)|ψ1⟩, rotating the state between the good and bad subspaces. After n iterations the probability of finding the system in a good state is sin2((2n+1)θ).The probability is maximized if we choose

n=⌊π4θ⌋. Up until this point each iteration increases the amplitude of the good states, hence the name of the technique.

Applications Assume we have an unsorted database with N elements, and an oracle function χ which can recognize the good entries we are searching for, and Bop=B for simplicity. If there are G good entries in the database in total, then we can find them by initializing a quantum register |ψ⟩ with n qubits where 2n=N into a uniform superposition of all the database elements N such that

|ψ⟩=1N∑k=0N−1|k⟩ and running the above algorithm. In this case the overlap of the initial state with the good subspace is equal to the square root of the frequency of the good entries in the database, sin⁡(θ)=|P|ψ⟩|=G/N. If sin⁡(θ)≪1, we can approximate the number of required iterations as

n=⌊π4θ⌋≈⌊π4sin⁡(θ)⌋=⌊π4NG⌋=O(N). Measuring the state will now give one of the good entries with high probability. Since each application of SP requires a single oracle query (assuming that the oracle is implemented as a quantum gate), we can find a good entry with just O(N) oracle queries, thus obtaining a quadratic speedup over the best possible classical algorithm. (The classical method for searching the database would be to perform the query for every e∈{0,1,…,N−1} until a solution is found, thus costing O(N) queries.) Moreover, we can find all G solutions using O(GN) queries. If we set the size of the set G to one, the above scenario essentially reduces to the original Grover search.

Quantum counting Suppose that the number of good entries is unknown. We aim to estimate G~ such that (1−δ)G≤G~≤(1+δ)G for small δ>0. We can solve for G~ by applying the quantum phase estimation algorithm on unitary operator Q. Since e2iθ and e−2iθ are the only two eigenvalues of Q, we can let their corresponding eigenvectors be |ψ1⟩ and |ψ2⟩. We can find the eigenvalue e2iθ of |ψ⟩, which in this case is equivalent to estimating the phase θ. This can be done by applying Fourier transforms and controlled unitary operations, as described in the quantum phase estimation algorithm. With the estimate θ~, we can estimate sin⁡θ, which in turn estimates G. Suppose we want to estimate θ with arbitrary starting state |s⟩, instead of the eigenvectors |ψ1⟩ and |ψ2⟩. We can do this by decomposing |s⟩ into a linear combination of |ψ1⟩ and |ψ2⟩, and then applying the phase estimation algorithm.

References

Worked examples

Example 1 — a first encounter with Amplitude amplification

Start with the simplest possible case. Write down what Amplitude amplification claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Amplitude amplification before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Amplitude amplification ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Amplitude amplification

In research
Amplitude amplification appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Amplitude amplification in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Amplitude amplification is common in secondary-school and first-year university syllabi. It links to neighbouring topics Quantum algorithms, Search algorithms, so understanding it makes those chapters shorter.
In everyday life
Look for Amplitude amplification outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Amplitude amplification” →

How to study Amplitude amplification in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Amplitude amplification means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Amplitude amplification out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Amplitude amplification in simple terms?

Amplitude amplification is a technique in quantum computing that generalizes the idea behind Grover's search algorithm, and gives rise to a family of quantum algorithms. It was discovered by Gilles Brassard and Peter Høyer in 1997, and independently rediscovered by Lov Grover in 1998.

Why does Amplitude amplification matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Amplitude amplification?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Amplitude amplification.

Tags

  • Quantum algorithms
  • Search algorithms

Keep exploring