001 Quantum Coin Flip

Simulator

Step 1: press Spin the coin. Step 2: press Look at the coin. Watch the arrow.

Simulator running in your browser. Real hardware: coming soon (planned provider: IBM Quantum).

What's happening?

Simulate a quantum coin flip on a Bloch sphere: put one qubit in superposition with a Hadamard gate, measure it, and watch thousands of flips settle near 50/50. Simulator only.

You will learn: Superposition and measurement.

The circuit

One qubit starts at 0, the arrow pointing up on the Bloch sphere. A Hadamard gate (H) swings the arrow to the equator, an equal superposition of 0 and 1. A measurement then collapses it to a definite 0 (arrow up) or 1 (arrow down). The circuit is: q0: H, measure.

What you are seeing

The Bloch sphere is a map of one qubit's state, here a coin: arrow up is Heads (0), arrow down is Tails (1), and an arrow on the equator is a perfect mix of both. After the Spin (the Hadamard gate, H) the chance of each outcome is exactly one half, but each single measurement gives one random result. A few flips wander. After a thousand the split sits close to half and half, though never exactly. Probabilities show up only in the long run, which is also true on real hardware, where programs run many times (shots). The chance of an outcome is the square of its amplitude, called the Born rule.

Guess before you look. The guess game is honest: because each outcome is random with probability one half, nobody can beat 50% over many guesses. A hot streak is luck. A fair classical coin gives the same histogram, so this experiment alone shows nothing a classical computer cannot. It gets interesting when qubits interfere or become entangled, as in experiment 002 and experiment 003. Learn more in what is a qubit and superposition explained.

Related guide: Why 100 quantum coin flips never give exactly 50/50.

Run on real hardware: coming soon. The planned provider is IBM Quantum. It is not connected yet. Every result on this page comes from a simulator running in your browser, not from a quantum computer.

How it works: the simulator keeps the exact quantum state of the qubits as a list of complex numbers, applies each gate to it, and draws random samples from the resulting probabilities. The random numbers are ordinary pseudo random numbers from your browser, and a real device would add noise. No QNT, wallet or account is needed.

Sources

This is an educational simulator, not financial advice. QUANTUM (QNT) is an independent community token on Solana and does not perform quantum computation.

Updated | Free, no account, no token needed