Skip to content

Testing Quantum Randomness Against a Password Generator

Hypothesis

Genuine quantum measurement randomness would produce meaningfully different entropy characteristics than a standard PRNG, and I wanted to see that difference on real hardware instead of taking it on faith from a textbook.

Outcome

The entropy difference was real but small at the scale I could test. The actual lesson was operational, not theoretical: queue times shared on quantum hardware make 'real-time' quantum randomness impractical for anything latency-sensitive, which is a constraint no algorithms course mentions.

I'd read the theory a dozen times — measurement collapse, true randomness versus deterministic pseudo-randomness — but I wanted to see it, not just accept it. So I built a small password generator that pulled its entropy from qubit measurement outcomes on real quantum hardware instead of a PRNG seed.

The generator itself was the easy part. The interesting part was everything around it: the queue time waiting for hardware access, the calibration drift between runs, the fact that "real quantum randomness" in practice means a much slower and more finicky pipeline than Math.random(). That gap between the clean theory and the messy hardware is the thing I actually walked away with