006 Quantum Dice
SimulatorRoll a fair die using quantum coins. Press Roll once, then try 100 rolls.
Simulator running in your browser. Real hardware: coming soon (planned provider: IBM Quantum).
What's happening?
Roll a die with qubits: spin and look at one, two or three simulated quantum coins to get a fair 2, 4 or 8 sided die, then count 100 rolls. Simulator only, not a real quantum random number generator.
You will learn: Superposition, measurement and binary numbers.
The circuit
Every coin starts as Heads (0). A Spin the coin step (the Hadamard gate, H) puts each coin in an equal mix of Heads and Tails. Looking at the coins then gives one random result each. Read the coins as binary digits, with Heads as 0 and Tails as 1, and you get a number from 0 to 2 to the power of the number of coins, minus 1. Add one so the faces start at 1. The circuit for three coins is q0: H, q1: H, q2: H, measure all.
What you are seeing
Because all coins are in an equal mix and independent, all 8 combinations are equally likely, so each face has a one in eight chance. Over 100 rolls the counts stay near 12.5 per face but wobble, exactly like a real die.
Is this real quantum randomness?
No. The simulator calculates the exact odds and then draws results with an ordinary pseudo random number generator. Dedicated quantum random number generators do exist, which measure physical quantum effects, but they are separate hardware products. This page does not use one, and it does not run on a quantum computer.
Related guides: How to roll a fair 6 sided die with qubits and why 100 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.