NIST SP 800-22 Statistical Randomness Results
The NIST SP 800-22 battery run against entropy sampled from real IBM Quantum hardware.
ibm_cloudDate run: 2026-07-02 · Job ID:
d93ip2i47v0s738221l0Instance:
crn:v1:bluemix:public:quantum-computing:us-east:a/7d1f564e636d4b7d9d0c77957b2852d3:788a3fc1-...Sampled: 127 qubits × 800 shots = 101,600 raw measured bits (measured ones fraction 0.4933)
01→0 and 10→1 pairs and discarding the rest. The second
table below is the same hardware sample after that conditioning.
1. Raw IBM hardware bits
| Test | Result | p-value |
|---|---|---|
| Monobit (Frequency) | FAIL | 8.5 × 10⁻⁶ |
| Frequency Within Block | PASS | 0.0351 |
| Runs | n/a | ineligible (bias > NIST threshold) |
| Longest Run of Ones | PASS | 0.0637 |
| Binary Matrix Rank | PASS | 0.0520 |
| Discrete Fourier Transform | FAIL | ≈ 0 |
| Non-Overlapping Template | FAIL | ≈ 0 |
| Serial | FAIL | ≈ 0 |
| Approximate Entropy | FAIL | ≈ 0 |
| Cumulative Sums | PASS | 0.9994 |
| Random Excursion | FAIL | failed sub-states |
| Random Excursion Variant | FAIL | ≈ 0 |
2. Von Neumann–extracted bits
| Test | Result | p-value |
|---|---|---|
| Monobit (Frequency) | PASS | 0.0673 |
| Frequency Within Block | PASS | 0.5636 |
| Runs | PASS | 0.2139 |
| Longest Run of Ones | PASS | 0.7710 |
| Discrete Fourier Transform | PASS | 0.1932 |
| Non-Overlapping Template | PASS | 0.9997 |
| Serial | PASS | 0.5287 |
| Approximate Entropy | PASS | 0.1072 |
| Cumulative Sums | PASS | 0.8161 |
| Random Excursion | FAIL | 0.0670 (marginal) |
| Random Excursion Variant | PASS | 0.3046 |
What These Tests Mean
The NIST SP 800-22 battery is a standard set of statistical tests that check whether a stream of bits looks genuinely random — with no detectable patterns a computer could exploit. Each test targets a different way randomness can fail. A test “passes” when its p-value is at or above 0.01.
Monobit (Frequency) — Are there roughly as many 1s as 0s? A biased source fails here (as the raw run did).
Frequency Within Block / Longest Run — Is that balance and streak behaviour held within smaller chunks?
Runs — Do streaks of identical bits occur as often as true randomness predicts?
DFT / Serial / Approximate Entropy / Templates — Are there hidden periodicities or repeated patterns?
Cumulative Sums / Random Excursions — Treating the bits as a random walk, does the path behave like an unbiased one?
We publish the raw and extracted results together so you can judge the source for yourself, rather than take our word for it.