Preparing…
Z-basis qubit X-basis qubit Honest / undetected Cheat detected
⚠ Couldn't load the 3D engineThree.js failed to load from the CDN. Check your connection and reload.

Quantum Coin Flipping: Conjugate-Basis Cheat Detection

Two people who don't trust each other, and no third party — can they still flip a fair coin? Quantum mechanics says yes, and this simulator recreates the exact primitive Bennett and Brassard proposed in their 1984 paper alongside BB84 key distribution. Alice encodes a qubit and sends it to Bob; Bob replies with an independent random guess bit; Alice reveals her declared bit and basis, and the coin result is their XOR. The catch is enforcement: Bob measures the physical qubit he actually received, in the basis Alice just revealed, and checks it against her declaration. An honest qubit — the true eigenstate of the declared basis — always matches. A cheating qubit, sent in the conjugate basis to keep both outcomes open, matches only half the time by the Born rule, so trying to force the coin toward a chosen target carries a real, visible risk of getting caught. Dial in Alice's cheat probability and target, watch the Bloch-sphere arrow collapse on measurement, and track the live bias-versus-detection trade-off across hundreds of rounds.