Home▸Articles▸Quantum Physics

Quantum Random Number Generator: Beam-Splitter Entropy Source (2D)

A quantum device that leverages the inherent randomness of photon detection to generate truly random numbers.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What is a Quantum Random Number Generator

A quantum random number generator (QRNG) harnesses the unpredictable nature of quantum mechanics to produce sequences of numbers that are truly random. Unlike pseudo-random number generators, which rely on deterministic algorithms and thus can be predicted if their initial conditions or seed values are known, a QRNG generates numbers based on inherently uncertain physical processes.

In this simulation, single photons are fired at a beam splitter, where they have an equal probability of being detected by either of the two detectors. The outcome is fundamentally unpredictable, making it ideal for generating random bits.

How It Works

When a photon encounters a 50/50 beam splitter, it has an equal probability of being transmitted or reflected to one of the two detectors. This process is governed by quantum mechanics and cannot be predicted with certainty before the event occurs.

The resulting bitstream from these detections can be analyzed for statistical properties such as bias (the imbalance between the number of 0s and 1s) and min-entropy, which quantifies the unpredictability of the sequence.

live demo · related simulation● LIVE

Why It Matters

The ability to generate truly random numbers is crucial in various fields, including cryptography, where secure keys must be unpredictable. QRNGs provide a means to create such keys that are resistant to prediction and thus enhance security.

In addition, the study of quantum randomness helps us understand the fundamental nature of reality at the quantum level, providing insights into the limits of determinism in physics.

Real-World Applications

QRNGs are used in cryptographic protocols to generate secure keys for encryption and decryption. They ensure that any potential eavesdropper cannot predict the key, thereby maintaining communication security.

Beyond cryptography, QRNGs find applications in fields such as quantum computing, where they can be used to seed random number generators within algorithms, ensuring unbiased results.

Frequently asked questions

How does a beam splitter contribute to randomness?

A 50/50 beam splitter splits an incoming photon into two possible paths with equal probability. Since the outcome of which path the photon takes is inherently unpredictable, it provides a source of true randomness.

What does min-entropy measure in this context?

Min-entropy measures the unpredictability of the bitstream generated by the QRNG. A higher min-entropy indicates that the sequence is more random and less predictable, making it more suitable for cryptographic applications.

Can the randomness be influenced by external factors?

In theory, any external influence could potentially affect the photon's path at the beam splitter. However, in practice, the quantum nature of the process ensures that such influences are negligible and do not compromise the true randomness.

What is Von Neumann debiasing?

Von Neumann debiasing is a method to convert biased sequences into unbiased ones. It involves taking pairs of bits from the sequence, where each pair is treated as a two-bit number. If the number is 0 or 3 (which are equally likely), it is discarded; if it is 1 or 2, the first bit in the pair is used.

Try it live

Everything above runs in your browser — open Quantum Random Number Generator: Beam-Splitter Entropy Source (2D) and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Quantum Random Number Generator: Beam-Splitter Entropy Source (2D) simulation

What did you find?

Add reproduction steps (optional)