All labs 11

Grover 3-Qubit Search

Quantum

Grover’s algorithm searching an 88-item space with 33 qubits. Uniform superposition, then repeated rounds of oracle (phase-flip the target) and diffusion (invert about the mean) rotate the state vector toward the marked item. Real 88-amplitude linear algebra drives a live bar chart; after the optimal ⌊π8/4⌋=2\lfloor\pi\sqrt{8}/4\rfloor=2 rounds the target probability peaks near 94%94\%.

Live circuit Superposition, P(target) = 12 %
Grover 3-Qubit Search11 components and 12 connections.Q0q0Q1q1Q2q2HH0HHH1HHH2Hi0i1i2o0o1o2UfORACLEUfi0i1i2o0o1o2diffuseDIFFdiffuseM0MM1MM2M
Grover 3-Qubit Search

Toggle the qubits to choose the marked item; step the timeline to watch amplitudes rotate. Click a gate to read it.

Mark one of the eight states, then step the register toward it. Each round is an oracle phase-flip, a mean reflection, and a diffuser rebound. The first 2 rounds amplify the target; the final demonstration round deliberately rotates past it.

∣q2q1q0⟩=∣000⟩\lvert q_2q_1q_0\rangle=\lvert\htmlData{math-slot=value}{\mathtt{000}}\rangle
∣q2q1q0⟩=∣000⟩\lvert q_2q_1q_0\rangle=\lvert\htmlData{math-slot=value}{\mathtt{000}}\rangle

Fault injection

Causal signal trace paused

Uniform superposition Three Hadamards spread one unit of probability evenly across all eight basis states.

Step 1 / 11 Uniform superposition

Notebook: 11 parts and 12 wires, modelled as amplitude amplification over 8 states

Recommended lab 12 of 18

Explain Grover search as amplitude rotation and identify over-rotation.

Builds on: Phase Kickback

Predict, then test

For N=8N=8, apply a third Grover round after the optimal two. What happens to target probability?

Commit before the explanation appears. This is a prediction, not a quiz score.

Governing model
∣s⟩→(D Uf)k∣s⟩,k≈π4N  ⋅  N=8|s\rangle \to (D\,U_f)^k|s\rangle,\quad k \approx \dfrac{\pi}{4}\sqrt{N} \;\cdot\; N = 8
Parts
  • 33-qubit uniform superposition
  • oracle UfU_f (phase flip)
  • diffusion 2∣s⟩⟨s∣−I2|s\rangle\langle s|-I
  • 88-state amplitude readout
Limits of the model
  • N=8N=8 search space
  • optimal k=2k=2 rounds
  • peak P(target)≈0.945P(\mathrm{target})\approx0.945
Diagnosis challenge The fault is hidden. Work it out from the changed outputs first.