IID-based QPP-RNG: Quantum Permutation Pad RNG
- IID-based QPP-RNG is a quantum-inspired, cryptographically robust random number generator that combines deterministic permutation sorting with hardware jitter to produce IID uniform outputs.
- It converts heavy-tailed distributions from permutation counts and sorting times into uniform outputs using modular reduction, ensuring nearly identical distribution across cycles.
- Dynamic seed evolution via system jitter guarantees forward secrecy and robust entropy, with empirical benchmarks demonstrating near-maximal Shannon entropy and post-quantum security.
An IID-based QPP-RNG (Quantum Permutation Pad Random Number Generator) is a cryptographically robust random number generator achieving independent and identically distributed (IID), provably uniform random outputs by synthesizing combinatorial complexity via random permutation sorting and harnessing microarchitectural system jitter as an entropy source. This class of generators formalizes a quantum-inspired paradigm in which algorithmically deterministic structures and irreducible hardware unpredictability are mathematically unified. The operating principle centers on (i) two conjugate observables—permutation count and sorting time—whose raw, heavy-tailed distributions are mapped to uniform outputs via modular reduction, and (ii) dynamic seed evolution, where system jitter continually re-randomizes the internal generator state, decoupling output sequences from initial conditions (Kuang, 12 Sep 2025, Kuang et al., 25 Feb 2025, Kuang, 1 Aug 2025).
1. Theoretical Foundations: Conjugate Observables and Quantum Permutation Pads
The QPP-RNG exploits the quantum-inspired Random Permutation Sorting System (RPSS), whose state is specified by a pair of non-commuting observables:
- Permutation count (): Number of random permutations applied until a target configuration is achieved (specifically, the -th “success” wherein applied permutations invert the unknown target permutation).
- Elapsed sorting time (): Wall-clock time to perform the permutations, accumulating system jitter effects.
The distributions governing these observables are:
- follows a negative-binomial law,
In the regime, this approaches an exponential distribution, .
- is a sum of i.i.d. samples of permutation execution times (0), capturing system-dependent microarchitectural noise:
1
The joint state-vector exhibits a formal analogy to quantum superposition, with the marginals 2 and 3 linked via an uncertainty-like tradeoff—fixing one maximizes variance in the other (Kuang, 12 Sep 2025, Kuang, 1 Aug 2025).
The Quantum Permutation Pad (QPP) leverages the combinatorial entropy inherent in the symmetric group 4 of 5 distinct 6-bit permutation matrices, yielding entropy 7 (Kuang et al., 2023). This ensures extremely high entropy for moderate 8.
2. Modular Reduction: From Heavy-Tailed to Uniform Distributions
Both 9 and 0 possess right-skewed, heavy-tailed distributions due to the underlying combinatorial landscape and stochasticity of system execution. Uniform output is achieved via modular reduction:
- 1, 2, with 3.
- The composite extractor outputs 4.
Uniformity arises from the degeneracy of the modular map: each raw value 5 is folded modulo 6, with the number of preimages of each residue guaranteed to be nearly equal for 7 by theorems:
- Theorem 1: For 8 with mean 9, 0.
- Theorem 2: If 1 is a sum of i.i.d. nonlattice times and 2, 3.
Thus, 4 is within 5 of being uniform (Kuang, 12 Sep 2025). Internal degeneracies from the factorial search space ensure effective flattening of output histograms (Kuang, 1 Aug 2025).
3. Proof of IID Uniformity and Empirical Validation
The IID-based QPP-RNG achieves strict independence and identical distribution via two mechanisms:
- Per-cycle uniformity: The modular reduction of heavy-tailed observables yields outputs indistinguishable from uniform. For each cycle 6, 7 up to negligible discrepancies (8).
- Inter-cycle decorrelation: Each round, the LCG/QPP-GEN seed is refreshed using jitter-derived residues (typically 9 or 0), rapidly washing out memory of any initial state. The design accommodates both software-only cycling and integration with true or hardware-based entropy (Kuang, 12 Sep 2025, Kuang et al., 25 Feb 2025).
Empirical benchmarks, including NIST SP 800-90B min-entropy and Shannon entropy assessments, demonstrate output qualities:
| Mode | Shannon Entropy (bits/byte) | Min-Entropy (bits/byte) | 1 Statistic (ideal 256) |
|---|---|---|---|
| QPP-RNG (2) | 3–4 | 5–6 | 7 250–280 |
| ID Quantique QRNG | — | 8 | — |
IID-based QPP-RNG passes all NIST SP 800-90B/22 and ENT suites under desktop and mobile environments, with autocorrelation and spectral coefficients vanishing (9), confirming no detectable statistical dependencies (Kuang et al., 25 Feb 2025, Kuang, 1 Aug 2025).
4. Implementation Protocols and System Jitter Integration
Practical realization is fully software-based:
- Initialization: Seed an LCG (or fast PRNG) using a pool (e.g., 0 bits) of measured system jitter bytes, such as 1 for eight consecutive sorting cycles (Kuang et al., 25 Feb 2025).
- Ephemeral QPP Pad Generation: Use the seeded LCG to drive Fisher–Yates shuffles on 2-element arrays, producing secret permutations per round.
- Sorting and Output Extraction: In each round, permutation sorting is repeated 3 times (searching for 4-th inverse success). The permutation count 5 is taken, and the output is 6.
- Dynamic Jitter Reseeding: Each round, the observed 7 is incorporated into the seed via
8
ensuring fresh entropy injection.
The architecture is robust to adversarial attempts at seed prediction and attacks exploiting initial deterministic bias, as the re-randomization protocol ensures rapid loss of seed state memory and forward secrecy (Kuang et al., 25 Feb 2025).
Microarchitectural jitter contributions originate from sources such as CPU pipeline turbulence, cache and DRAM accesses, frequency scaling, IRQs, context switches, and are measured at nanosecond (or finer) granularity (Kuang, 12 Sep 2025, Kuang et al., 25 Feb 2025).
5. Statistical and Security Properties
The entropy bottleneck is eliminated by (i) the factorial scaling of QPP pad space (9), (ii) the uniformization properties of modular reduction, and (iii) continuous hardware entropy injection. Distinct advantages include:
- Fast entropy convergence: Empirical uniformity is attained once 0; e.g., 1 (Kuang, 12 Sep 2025, Kuang, 1 Aug 2025).
- High entropy per byte: Empirical min-entropy (2–3 bits) exceeds that of commercial quantum RNGs, with Shannon entropy (4) near theoretical maximality.
- Platform independence: Uniformity and independence properties are verified on multiple x86 and ARM platforms, including different OS and timing granularities.
- Post-quantum security: An 5-bit QPP pad provides a key space of 6; Grover-type quantum search does not apply due to the combinatorial explosion of possible pads, and permutation-pad recovery is intractable for Shor-class algorithms (Kuang et al., 25 Feb 2025, Kuang et al., 2023).
IID-based QPP-RNG is suitable for session key generation, quantum-safe nonce construction, seeding of higher-level CSPRNGs, and entropy boosting or whitening for hardware or quantum RNGs (Kuang et al., 2023).
6. Design Recommendations and Typical Performance
Implementation guidelines to ensure provable IID uniformity:
- Select 7 and 8 such that 9.
- Employ high-resolution timers capable of capturing low-level jitter.
- Use modular reduction for both 0 and 1; their combination further boosts output flatness.
- Maintain dynamic seed evolution by incorporating observed jitter into PRNG seeds each cycle.
Achievable throughput is high—modern CPUs exceed 2 GB/s, as each output byte requires only a shuffle, modulo computation, and a seed update.
The unique use of permutation group structure and dynamic system noise establishes a new class of software-only, physics-grounded RNGs, bridging quantum-mechanical concepts and practical entropy extraction without the need for dedicated quantum hardware (Kuang, 12 Sep 2025, Kuang et al., 25 Feb 2025, Kuang, 1 Aug 2025, Kuang et al., 2023).