Papers
Topics
Authors
Recent
Search
2000 character limit reached

IID-based QPP-RNG: Quantum Permutation Pad RNG

Updated 17 June 2026
  • 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 (NpN_p): Number of random permutations applied until a target configuration is achieved (specifically, the mm-th “success” wherein applied permutations invert the unknown target permutation).
  • Elapsed sorting time (TT): Wall-clock time to perform the NpN_p permutations, accumulating system jitter effects.

The distributions governing these observables are:

  • NpN_p follows a negative-binomial law,

Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!

In the M1M \gg 1 regime, this approaches an exponential distribution, E[Np]ME[N_p] \sim M.

  • TT is a sum of NpN_p i.i.d. samples of permutation execution times (mm0), capturing system-dependent microarchitectural noise:

mm1

The joint state-vector exhibits a formal analogy to quantum superposition, with the marginals mm2 and mm3 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 mm4 of mm5 distinct mm6-bit permutation matrices, yielding entropy mm7 (Kuang et al., 2023). This ensures extremely high entropy for moderate mm8.

2. Modular Reduction: From Heavy-Tailed to Uniform Distributions

Both mm9 and TT0 possess right-skewed, heavy-tailed distributions due to the underlying combinatorial landscape and stochasticity of system execution. Uniform output is achieved via modular reduction:

  • TT1, TT2, with TT3.
  • The composite extractor outputs TT4.

Uniformity arises from the degeneracy of the modular map: each raw value TT5 is folded modulo TT6, with the number of preimages of each residue guaranteed to be nearly equal for TT7 by theorems:

  • Theorem 1: For TT8 with mean TT9, NpN_p0.
  • Theorem 2: If NpN_p1 is a sum of i.i.d. nonlattice times and NpN_p2, NpN_p3.

Thus, NpN_p4 is within NpN_p5 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 NpN_p6, NpN_p7 up to negligible discrepancies (NpN_p8).
  • Inter-cycle decorrelation: Each round, the LCG/QPP-GEN seed is refreshed using jitter-derived residues (typically NpN_p9 or NpN_p0), 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) NpN_p1 Statistic (ideal 256)
QPP-RNG (NpN_p2) NpN_p3–NpN_p4 NpN_p5–NpN_p6 NpN_p7 250–280
ID Quantique QRNG NpN_p8

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 (NpN_p9), 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:

  1. Initialization: Seed an LCG (or fast PRNG) using a pool (e.g., Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!0 bits) of measured system jitter bytes, such as Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!1 for eight consecutive sorting cycles (Kuang et al., 25 Feb 2025).
  2. Ephemeral QPP Pad Generation: Use the seeded LCG to drive Fisher–Yates shuffles on Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!2-element arrays, producing secret permutations per round.
  3. Sorting and Output Extraction: In each round, permutation sorting is repeated Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!3 times (searching for Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!4-th inverse success). The permutation count Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!5 is taken, and the output is Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!6.
  4. Dynamic Jitter Reseeding: Each round, the observed Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!7 is incorporated into the seed via

Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!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 (Pr[Np=k]=(k1m1)(1p)kmpm, with p=1/M,M=mN!\Pr[N_p = k] = \binom{k-1}{m-1} (1-p)^{k-m} p^m, \text{ with } p = 1/M, M = m\cdot N!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 M1M \gg 10; e.g., M1M \gg 11 (Kuang, 12 Sep 2025, Kuang, 1 Aug 2025).
  • High entropy per byte: Empirical min-entropy (M1M \gg 12–M1M \gg 13 bits) exceeds that of commercial quantum RNGs, with Shannon entropy (M1M \gg 14) 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 M1M \gg 15-bit QPP pad provides a key space of M1M \gg 16; 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 M1M \gg 17 and M1M \gg 18 such that M1M \gg 19.
  • Employ high-resolution timers capable of capturing low-level jitter.
  • Use modular reduction for both E[Np]ME[N_p] \sim M0 and E[Np]ME[N_p] \sim M1; 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 E[Np]ME[N_p] \sim M2 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).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to IID-based QPP-RNG.