πŸŽ‰ 75% of content is free forever β€” Unlock Premium from $10/mo β†’
CW
Search courses…
πŸ’Ό Servicesℹ️ Aboutβœ‰οΈ ContactView Pricing Plansfrom $10

Quantum Randomness

Quantum ComputingQuantum Randomness🟒 Free Lesson

Advertisement

Classical vs Quantum Randomness

Classical randomness: produced by deterministic algorithms (PRNGs) or physical processes. Not certifiably random β€” the source might have hidden patterns.

Quantum randomness: produced by quantum measurement. Certifiably random β€” the randomness is guaranteed by the laws of quantum mechanics.

Quantum Random Number Generation (QRNG)

A QRNG produces random bits by measuring a quantum system in superposition:

  1. Prepare a qubit in
  2. Measure in the Z-basis
  3. Result is 0 or 1 with equal probability

The minimum entropy of the output is:

For a perfect qubit: bit per measurement.

Device-Independent QRNG

DI-QNG certifies randomness without trusting the device:

  1. Perform a Bell test (CHSH inequality)
  2. Observe violation
  3. The randomness is certified by the violation magnitude

The amount of certified randomness is:

bits per measurement. At : bits per measurement.

QRNG Implementations

MethodSourceRateQuality
Vacuum fluctuationHomodyne detectionGbpsHigh
Photon countingSingle-photon detectionMbpsHigh
Atomic decayRadioactive sourceskHzPerfect
Beam splittingPhoton arrival timeMbpsHigh

Commercial QRNGs from companies like ID Quantique, Quantis, and Quside achieve Gbps rates with certified randomness.

Applications of QRNG

  1. Cryptography: key generation for one-time pads and QKD
  2. Monte Carlo simulation: unbiased sampling for scientific computing
  3. Lottery and gaming: provably fair random selection
  4. Statistical sampling: random sampling for surveys and experiments
  5. Blockchain: random beacon for consensus protocols

Python: QRNG Simulation

import numpy as np

def qrng_measurement(n_bits):
    # Simulate QRNG using Hadamard measurement.
    bits = np.random.randint(0, 2, n_bits)
    return bits

def certifiable_randomness(chsh_value):
    # Compute certifiably random bits from CHSH violation.
    if chsh_value <= 2:
        return 0
    return np.log2((chsh_value + 2) / 4)

bits = qrng_measurement(1000)
empirical_bias = np.mean(bits)
print(f"QRNG output: {empirical_bias:.3f} (ideal: 0.500)")
print(f"Entropy rate: {np.sum([1 if b==0 or b==1 else 0 for b in bits]) / len(bits):.3f} bits/symbol")

for s in [2.0, 2.4, 2.7, 2*np.sqrt(2)]:
    r = certifiable_randomness(s)
    print(f"CHSH={s:.3f}: {r:.3f} certifiable bits")

Randomness Measures

The amount of certifiable randomness from a Bell test:

CHSH (S)Randomness (r)
2.00 bits
2.40.26 bits
2.70.43 bits
2sqrt20.50 bits

QRNG Speed Records

PlatformRateQualityReference
Vacuum fluctuation43 GbpsMin-entropyID Quantique
Photon counting10 GbpsUniformQuantis
Atomic decay100 kbpsPerfectOfficial standards
Beam splitting1 GbpsUniformCustom implementations

Summary

This topic covers the fundamental concepts and applications in quantum computing. Understanding these concepts is essential for advancing in the field and applying quantum techniques to real-world problems. The mathematical framework provides the foundation for analyzing quantum algorithms and hardware implementations.

Key takeaways include the importance of quantum coherence, the role of entanglement as a resource, and the tradeoffs between different quantum computing architectures. As the field progresses from NISQ to fault-tolerant devices, these foundational concepts will continue to underpin new developments and applications.

Further study should include hands-on implementation using quantum programming frameworks, analysis of recent research papers, and exploration of the connections between quantum computing and other fields such as machine learning, optimization, and simulation.

Randomness Expansion Protocols

Randomness expansion from a small seed:

  1. Start with random bits (seed)
  2. Perform Bell test with measurements
  3. Generate certifiably random bits

The expansion rate depends on the CHSH violation:

where is the certifiability per measurement. At : bits, giving expansion factor for .

Need Expert Quantum Computing Help?

Get personalized tutoring, project support, or professional consulting.

Advertisement