Grover 3-Qubit Search
QuantumGrover’s algorithm searching an -item space with 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 -amplitude linear algebra drives a live bar chart; after the optimal rounds the target probability peaks near .
11 components · 12 connections · amplitude amplification over 8 states
the ahaYou cannot find the needle faster by looking harder — but you can rotate the entire haystack until the needle is all that remains.
- -qubit uniform superposition
- oracle (phase flip)
- diffusion
- -state amplitude readout
- search space
- optimal rounds
- peak
-
Choose a target and apply one Grover round.
The oracle flips the target’s sign; diffusion turns that into height. One round already lifts the target bar well above the uniform . -
Apply the second round — the optimum.
For the optimal count is . The target probability peaks near . This is scaling made visible: two rounds, not four guesses. -
Over-rotate, or point the oracle at the wrong state.
A third round rotates past the target and the bar shrinks — more work, worse answer. A miswired oracle amplifies the wrong item entirely. The geometry is unforgiving.
Uniform superposition Three Hadamards spread one unit of probability evenly across all eight basis states.
step 1 / 8 Uniform superposition