Years 11–12 · Week 11 of 12

Grover Search, Noise and Real Hardware

55 minutes 7 possible star points Mathematical Extension for Year 12

Learning goals

By the end, you can…

  • Identify the marked state, phase oracle and diffuser in a small Grover circuit.
  • Explain amplitude amplification without saying that every answer is read.
  • State the approximate square-root oracle-query improvement and its limits.
  • Distinguish gate error, readout error, decoherence, mitigation and correction.

What you already know

Connect to a familiar idea

Interference can reinforce selected amplitudes and cancel others. Grover's algorithm applies this idea repeatedly to a phase-marked basis state.

  • Uniform superposition and relative phase
  • Quantum oracles
  • Multi-qubit measurement histograms

Opening story

Start with something familiar

If a function can recognise a target but does not reveal where it is, the search task is unstructured. Grover's algorithm reduces the number of ideal oracle queries compared with classical exhaustive search, but building and running the full circuit still has costs.

Plain-English explanation

Build the idea carefully

Amplitude amplification and query scaling

For N candidate basis states and one marked state, the phase oracle changes the marked amplitude's sign. The diffuser reflects amplitudes about their mean. Together, one Grover iteration rotates amplitude towards the marked state. Worked two-qubit example: begin with four amplitudes 1/2. After the oracle they are −1/2, 1/2, 1/2, 1/2, whose mean is 1/4. Reflection a→2(mean)−a gives marked amplitude 1 and the other amplitudes 0, so one ideal iteration finds the marked state with probability one.

Noise, compilation and responsible hardware claims

For large N with one marked item, the ideal query count scales on the order of √N rather than N. The number of iterations must be chosen carefully because continuing past the optimum rotates amplitude away again. Oracle construction, qubit count and other gates also matter. Real devices can have gate error, readout error, unwanted coupling and decoherence. Compilation adapts a logical circuit to supported gates and connectivity. Error mitigation estimates or reduces bias without providing full fault tolerance; quantum error correction encodes logical information to detect and correct errors and has substantial overhead.

Try the model

Small Grover and noise comparison

Select a marked state for two or three qubits, step through the oracle and diffuser, then compare ideal probabilities with a labelled simplified noise model.

Interactive teaching model
|00⟩ Choose a gate to begin Measure

Qubit 0 is the least-significant state-vector bit. Displayed basis labels read q(n−1)…q0.

Ready. Adjust a control, then run the model.

What this model shows: Educational state-vector and noise simulation — not execution on real quantum hardware and not a current device-performance claim.

Text alternative for this interactive

Text alternative: for four equal starting amplitudes, oracle sign change followed by reflection about the mean changes the marked amplitude to 1 and each unmarked amplitude to 0 in the ideal model.

Expected observation: With two qubits and one marked state, one ideal Grover iteration concentrates probability on that state; increasing simulated noise spreads the sampled histogram.

Guided activity

Calculate one Grover iteration

  1. Write the four equal amplitudes for a two-qubit uniform state.
  2. Apply a sign change to one selected marked amplitude.
  3. Calculate the new mean and reflect every amplitude about it.
  4. Run ideal and noisy samples and identify which claims the comparison can support.

Evidence to collect: A correct amplitude table ending with one marked amplitude of magnitude one, plus a comparison that labels noise-model results as simulated rather than real hardware data.

Glossary

Words to know

Grover search
A quantum algorithm for unstructured search using amplitude amplification.
phase oracle
A reversible operation that changes the phase of marked basis states.
diffuser
The Grover operation that reflects amplitudes about their mean.
amplitude amplification
A process that increases target measurement probability through interference.
query complexity
The number of calls to an oracle used by an algorithm.
decoherence
Loss of controlled quantum behaviour through unwanted environmental interaction.
error mitigation
Methods that reduce or estimate error effects without full logical error correction.

Short recap

Keep these ideas

  • Grover iterations combine a phase oracle with a diffuser.
  • One ideal iteration solves the one-marked-item, four-state example.
  • The query improvement is problem-specific and approximately square-root, not universal.
  • Noise, connectivity, compilation and correction overhead affect implementations.

Knowledge check

7 clear questions

Choose an answer for immediate feedback. You may retry, and your best submitted score is kept.

1Which statement best answers this lesson's essential question?
2Which idea is supported by the explanation?
3Which result should you look for in the interactive model?
4Which statement correctly fixes the common misconception?
5Where does the helpful analogy stop being exact?
6What evidence should the guided activity collect?
7Which statement belongs in the lesson recap?
Mathematical Extension Optional extension for Year 12

Let sin θ = 1/√N for one marked state. After r Grover iterations, the ideal success probability is sin²((2r+1)θ). Use this finite formula without calculus to compare N = 4 and N = 8 and to see why too many iterations reduce success.

Try this

Calculate the N = 8 success probability after zero, one and two iterations. Compare the query count with a simple classical worst-case search while listing costs the oracle model does not include.

Adult support Teacher and parent notes

Discuss

  • Which operation identifies the marked condition without revealing it directly?
  • Why can too many Grover iterations lower the success probability?
  • How does error mitigation differ from quantum error correction?

Answer guidance

Require students to distinguish amplitude sign from probability and to qualify the √N statement as an oracle-query result. Do not accept unsupported claims about present processors or quantum advantage.

Offline activity

Use four signed amplitude cards. Students calculate the mean and reflect each value, then repeat a second iteration to see overshoot.

Safety

All device behaviour shown is simulated. Do not identify a company, processor size or current performance record without separate dated verification.

Open the full Quantum Computing Foundations adult guide

Sources and further reading

Checked references for this lesson

These sources support the lesson’s main scientific claims. Links open on the source organisation’s site.

  1. Theory of Grover's search algorithm Microsoft Learn · official documentation · checked 2026-08-02
  2. Understanding quantum oracles Microsoft Learn · official documentation · checked 2026-08-02
  3. Quantum information science National Institute of Standards and Technology · government explainer · checked 2026-08-02
  4. Quantum Computation and Quantum Information Cambridge University Press · textbook publisher page · checked 2026-08-02

Content review: Reviewed on 2026-08-02.