Quantum Interference Explained With Three Gates: Spin, Shift, Spin
Amplitudes, not just odds
A qubit is described by two numbers called amplitudes, one for Heads and one for Tails. The chance of a result is the amplitude squared. Amplitudes can be negative, and that is what lets them cancel. This guide uses three gates you can try in the Quantum in 5 minutes lesson and in puzzle level 3.
Step by step arithmetic
Write the coin as (Heads amplitude, Tails amplitude), and let r stand for one over the square root of 2, about 0.707. A coin that is Heads for sure is (1, 0).
- Spin the coin once (Hadamard): (1, 0) becomes (r, r). Each result has chance r squared, which is one half.
- Spin the coin again: the Heads amplitude becomes r times r plus r times r, which is one. The Tails amplitude becomes r times r minus r times r, which is zero. The coin is Heads for sure. The two Tails contributions cancelled.
- Now insert Shift the spin (the Z gate) between the spins: after the first spin the coin is (r, r). Z leaves the Heads amplitude alone and flips the sign of the Tails amplitude, giving (r, minus r).
- Spin the coin a second time: the Heads amplitude is r times r plus r times (minus r), which is zero. The Tails amplitude is r times r minus r times (minus r), which is one. The coin is Tails for sure. This time the Heads contributions cancelled.
What "interference" means here
In step 2 the two routes to Tails have opposite signs and cancel. In step 4 the two routes to Tails have the same sign and add up. The two routes are the coin being Heads or Tails after the first spin. Nobody can tell which route was taken, and that is why the amplitudes combine instead of the probabilities. If you looked at the coin between the two spins, the effect would vanish and you would get 50/50 at the end.
An honest note about the sign
The Z gate changes no probability by itself: right after it, the coin is still 50/50 when looked at. The change shows up only after the second spin. That hidden sign is called a phase, and it is the reason a Shift the spin step is not "visible" in the Lab until a second Spin turns it into a different result.
Why this matters for quantum algorithms
Quantum algorithms are built to make wrong answers cancel and right answers add up. Grover's algorithm uses it to search an unstructured list of N items in about the square root of N steps, and Shor's algorithm uses it to find the hidden period behind factoring. See Grover's Algorithm Explained Step by Step and Shor's Algorithm Explained Step by Step. More qubits do not make this automatic: the circuit has to be designed so the cancelling works out.
Try it
Open the circuit builder and place Spin the coin, then Shift the spin, then Spin the coin on Coin A. Under the heading "What you'll get if you look" you should see Tails 100 of 100. Remove the middle gate and it flips to Heads 100 of 100. The Shift the spin gate is under Advanced gates in the builder.
Sources and further reading
- Wikipedia: Quantum logic gate (Hadamard, Pauli-Z and CNOT definitions)
- Wikipedia: Quantum algorithm (Shor and Grover speedups)
Checked 2026-10-12. The probabilities and memory figures on this page were calculated directly from the formulas shown. This is education, not investment or security advice. QUANTUM (QNT) is an independent community token on Solana and is not affiliated with Quantinuum (Nasdaq: QNT) or Quant Network (QNT on Ethereum).
Frequently asked questions
Why do two Hadamard gates return Heads?
Because the Tails amplitudes from the two routes have opposite signs and cancel, while the Heads amplitudes add up. The Hadamard gate is its own inverse.
What does the Z gate do to a coin?
It leaves the Heads amplitude alone and flips the sign of the Tails amplitude. Probabilities do not change right away, but a later gate can turn the sign into a different result.
Next read
Superposition Explained in Plain EnglishSuperposition lets a qubit hold a blend of 0 and 1. Here is what it really means, what it does not mean, and why it matters.Read nextAlso useful: Quantum Algorithms Explained for Beginners | Grover's Algorithm Explained Step by Step | Shor's Algorithm Explained Step by Step
Educational content, not financial advice. QUANTUM (QNT) is independent of Quantinuum (Nasdaq: QNT) and Quant Network (QNT on Ethereum). Live chart | Token facts