Skip to main content

Plain-Language Intuition

Mode: Simple / School
A computer cannot truly flip a coin. Its "random" numbers come from a formula, so anyone who knows the starting value can predict every number that follows. A qubit can do better. A Hadamard gate puts it exactly halfway between 0 and 1. When you measure it, nature picks 0 or 1 with equal probability, and nothing in the universe can predict which. Use one qubit per random bit: three qubits give a random number from 0 to 7. Commercial quantum random number generators that protect encryption keys work on exactly this principle.

Superposition & Measurement

Quantum Random Number Generator: quick reference

Turns superposition into perfectly unbiased random bits: one Hadamard and one measurement per bit.

Topic
Superposition & Measurement
Level
Beginner
Circuit size
3 Qubits
Key result
Randomness guaranteed by physics, not by an algorithm

Concepts covered: Superposition, Born Rule, Measurement, Quantum Randomness

How Quantum Random Number Generator works, step by step

  1. Create an Equal Superposition. A Hadamard on each qubit makes every 3-bit number from 000 to 111 equally likely.
  2. Measure to Obtain Random Bits. Measuring collapses each qubit to 0 or 1 at random. Read the three bits as your random number.

Frequently asked questions

What is Quantum Random Number Generator?

Turns superposition into perfectly unbiased random bits: one Hadamard and one measurement per bit. It is a beginner-level topic in superposition & measurement.

How many qubits does the Quantum Random Numbers circuit use?

The QuanBit tutorial uses a 3 qubits circuit. Key result: Randomness guaranteed by physics, not by an algorithm.

Can I simulate Quantum Random Numbers online for free?

Yes. The interactive Quantum Random Numbers tutorial at https://www.quanbit.tech/learn/qrng runs free in the browser with nothing to install. You can step through the circuit gate by gate, watch the probabilities, statevector and Bloch spheres update, build the circuit yourself and take a short quiz.