- Open Access
On-Chip Semi-Device-Independent Quantum Random Number Generator Exploiting Contextuality
PRX Quantum 7, 033022 – Published 4 August, 2026
DOI: https://doi.org/10.1103/62lv-gmsz
Abstract
We present a semi-device-independent quantum random number generator (QRNG) based on the violation of a contextuality inequality, implemented by the integration of two silicon photonic chips. Our system combines a heralded single-photon source with a reconfigurable interferometric mesh to implement qutrit state preparation, transformations, and measurements suitable for testing a KCBS contextuality inequality. This architecture enables the generation of random numbers from the intrinsic randomness of single-photon interference in a complex optical network, while simultaneously allowing a quantitative certification of their security without requiring entanglement. We observe a contextuality violation exceeding the classical bound by more than , unambiguously confirming non-classical behavior. From this violation, we certify a conditional min-entropy per experimental round of , derived via a tailored semidefinite-programming-based security analysis. Each measurement outcome therefore contains at least of extractable genuine randomness, corresponding to an asymptotic generation rate of . These results establish a viable route toward semi-device-independent quantum random number generators compatible with practical integrated photonic quantum networks.
Physics Subject Headings (PhySH)
Popular Summary
True randomness is the cornerstone of security, yet certifying it without trusting every hardware component remains a challenge. We report an on-chip quantum random number generator that exploits quantum contextuality, i.e., the quantum property in which measurement outcomes depend on their experimental context. By manipulating photonic qutrits on a silicon chip, we observed a 10-standard-deviation violation of the KCBS inequality and provided a rigorous mathematical certification of randomness. This work successfully combines foundational quantum tests with scalable silicon photonics, offering a path toward integrating semi-device quantum random generators into future quantum photonic networks.
Article Text
Supplemental Material
References (59)
- P. L’Ecuyer, Random numbers for simulation, Commun. ACM 33, 85 (1990).
- R. L. Harrison, Introduction to Monte Carlo simulation, AIP Conf. Proc. 1204, 17 (2010).
- Y. Makovoz, Random approximants and neural networks, J. Approx. Theory 85, 98 (1996).
- N. Gisin, G. Ribordy, W. Tittel, and H. Zbinden, Quantum cryptography, Rev. Mod. Phys. 74, 145 (2002).
- P. L’Ecuyer, Random Number Generation (Springer, New York, 2012).
- L.-Y. Deng, N. Kumar, H. H.-S. Lu, and C.-C. Yang, Random Number Generators for Computer Simulation and Cyber Security: Design, Search, Theory, and Application (Springer Nature, New York, 2025).
- M. M. Jacak, P. Jóźwiak, J. Niemczuk, and J. E. Jacak, Quantum generators of random numbers, Sci. Rep. 11, 16108 (2021).
- G. Vallone, D. G. Marangon, M. Tomasin, and P. Villoresi, Quantum randomness certified by the uncertainty principle, Phys. Rev. A 90, 052327 (2014).
- J. Aldama, S. Sarmiento, I. H. L. Grande, S. Signorini, L. T. Vidarte, and V. Pruneri, Integrated QKD and QRNG photonic technologies, J. Lightwave Technol. 40, 7498 (2022).
- Y.-Q. Nie, L. Huang, Y. Liu, F. Payne, J. Zhang, and J.-W. Pan, The generation of 68 Gbps quantum random number by measuring laser phase fluctuations, Rev. Sci. Instrum. 86, 063105 (2015).
- C. Gabriel, C. Wittmann, D. Sych, R. Dong, W. Mauerer, U. L. Andersen, C. Marquardt, and G. Leuchs, A generator for unique quantum random numbers based on vacuum states, Nat. Photonics 4, 711 (2010).
- S. Pironio, A. Acín, S. Massar, A. B. de La Giroday, D. N. Matsukevich, P. Maunz, S. Olmschenk, D. Hayes, L. Luo, T. A. Manning, and C. Monroe, Random numbers certified by Bell’s theorem, Nature (London) 464, 1021 (2010).
- L. K. Shalm, Y. Zhang, J. C. Bienfang, C. Schlager, M. J. Stevens, M. D. Mazurek, C. Abellán, W. Amaya, M. W. Mitchell, M. A. Alhejji et al., Device-independent randomness expansion with entangled photons, Nat. Phys. 17, 452 (2021).
- Y. Liu, Q. Zhao, M.-H. Li, J.-Y. Guan, Y. Zhang, B. Bai, W. Zhang, W.-Z. Liu, C. Wu, X. Yuan et al., Device-independent quantum random-number generation, Nature (London) 562, 548 (2018).
- S. Gupta, D. Saha, Z.-P. Xu, A. Cabello, and A. S. Majumdar, Quantum contextuality provides communication complexity advantage, Phys. Rev. Lett. 130, 080802 (2023).
- M. Um, X. Zhang, J. Zhang, Y. Wang, S. Yangchao, D.-L. Deng, L.-M. Duan, and K. Kim, Experimental certification of random numbers via quantum contextuality, Sci. Rep. 3, 1627 (2013).
- T. Gehring, C. Lupo, A. Kordts, D. Solar Nikolic, N. Jain, T. Rydberg, T. B. Pedersen, S. Pirandola, and U. L. Andersen, Homodyne-based quantum random number generator at 2.9 Gbps secure against quantum side-information, Nat. Commun. 12, 605 (2021).
- A. Kulikov, S. Storz, J. D. Schär, M. Sandfuchs, R. Wolf, F. Berterottière, C. Hellings, A. Wallraff, and R. Renner, Experimental randomness amplification, Nature (London) 653, 1033 (2026).
- G. Jäger, H. Läuchli, B. Scarpellini, and V. Strassen, Die logik nicht gleichzeitig entscheidbarer aussagen, in Ernst Specker Selecta (1990), pp. 175–182.
- G. Jäger, H. Läuchli, B. Scarpellini, and V. Strassen, The problem of hidden variables in quantum mechanics, in Ernst Specker Selecta (1990), pp. 235–263.
- R. Lapkiewicz, P. Li, C. Schaeff, N. K. Langford, S. Ramelow, M. Wieśniak, and A. Zeilinger, Experimental non-classicality of an indivisible quantum system, Nature (London) 474, 490 (2011).
- Y. Meng, D. Saha, M. T. Mikkelsen, C. Henke, Y. Wang, N. Bart, A. Ludwig, A. Cabello, and L. Midolo, Contextuality-based quantum key distribution with deterministic single-photon sources, arXiv:2510.12761.
- A. Crespi, M. Bentivegna, I. Pitsios, D. Rusca, D. Poderini, G. Carvacho, V. D’Ambrosio, A. Cabello, F. Sciarrino, and R. Osellame, Single-photon quantum contextuality on a chip, ACS Photonics 4, 2807 (2017).
- “See supplemental material at http://link.aps.org/supplemental/10.1103/62lv-gmsz for details on the experimental setup, photonic-circuit implementation, quantum contextuality construction, quantum state tomography, compatibility analysis, randomness extraction, NIST tests, and semi-device-independent security proof.” Includes Refs. [25–30].
- D. F. V. James, P. G. Kwiat, W. J. Munro, and A. G. White, Measurement of qubits, Phys. Rev. A 64, 052312 (2001).
- S. Brierley, S. Weigert, and I. Bengtsson, All mutually unbiased bases in dimensions two to five, Quant. Inf. Comput. 10, 0803 (2010).
- J. Szangolies, M. Kleinmann, and O. Gühne, Tests against noncontextual models with measurement disturbances, Phys. Rev. A 87, 050101 (2013).
- M. Zahidy, D. Ribezzo, R. Müller, J. Riebesehl, A. Zavatta, M. Galili, L. K. Oxenløwe, and D. Bacco, Single-photon-based clock analysis and recovery in quantum key distribution, AVS Quantum Sci. 5, 041403 (2023).
- E. Barker, L. Bassham, A. Calis, C. Celi, and T. Hall, Random bit generation rbg, https://csrc.nist.gov/projects/random-bitgeneration/documentation-and-software.
- W. Hoeffding, Probability inequalities for sums of bounded random variables, J. Am. Stat. Assoc. 58, 13 (1963).
- J. B. Spring, P. S. Salter, B. J. Metcalf, P. C. Humphreys, M. Moore, N. Thomas-Peter, M. Barbieri, X.-M. Jin, N. K. Langford, W. S. Kolthammer, M. J. Booth, and I. A. Walmsley, On-chip low loss heralded source of pure single photons, Opt. Express 21, 13522 (2013).
- J. W. Silverstone, D. Bonneau, K. Ohira, N. Suzuki, H. Yoshida, N. Iizuka, M. Ezaki, C. M. Natarajan, M. G. Tanner, R. H. Hadfield, V. Zwiller, G. D. Marshall, J. G. Rarity, J. L. O’Brien, and M. G. Thompson, On-chip quantum interference between silicon photon-pair sources, Nat. Photonics 8, 104 (2014).
- D. Perez, I. Gasulla, F. J. Fraile, L. Crudgington, D. J. Thomson, A. Z. Khokhar, K. Li, W. Cao, G. Z. Mashanovich, and J. Capmany, Silicon photonics rectangular universal interferometer, Laser Photon. Rev. 11, 1700219 (2017).
- S. Paesani, Y. Ding, R. Santagati, L. Chakhmakhchyan, C. Vigliar, K. Rottwitt, L. K. Oxenløwe, J. Wang, M. G. Thompson, and A. Laing, Generation and sampling of quantum states of light in a silicon chip, Nat. Phys. 15, 925 (2019).
- J. Wang, S. Paesani, Y. Ding, R. Santagati, P. Skrzypczyk, A. Salavrakos, J. Tura, R. Augusiak, L. Mancinska, D. Bacco et al., Multidimensional quantum entanglement with large-scale integrated optics, Science 360, 285 (2018).
- M. Borghi, N. Tagliavacche, F. A. Sabattoli, H. E. Dirani, L. Youssef, C. Petit-Etienne, E. Pargon, J. Sipe, M. Liscidini, C. Sciancalepore, M. Galli, and D. Bajoni, Reconfigurable silicon photonic chip for the generation of frequency-bin-entangled qudits, Phys. Rev. Appl. 19, 064026 (2023).
- S. Congia, M. Borghi, E. Brusaschi, F. A. Sabattoli, H. E. Dirani, L. Youssef, E. Pargon, C. Petit-Etienne, C. Sciancalepore, M. Liscidini, J. Rothman, S. Olivier, M. Galli, and D. Bajoni, Generation of hyperentangled photon pairs in the time and frequency domain on a silicon photonic chip, Opt. Lett. 50, 5117 (2025).
- M. Kues, C. Reimer, P. Roztocki, L. R. Cortés, S. Sciara, B. Wetzel, Y. Zhang, A. Cino, S. T. Chu, B. E. Little et al., On-chip generation of high-dimensional entangled quantum states and their coherent control, Nature (London) 546, 622 (2017).
- C. Bruynsteen, T. Gehring, C. Lupo, J. Bauwelinck, and X. Yin, 100-Gbit/s integrated quantum random number generator based on vacuum fluctuations, PRX Quantum 4, 010330 (2023).
- G. Ferranti, F. Raffaelli, D. H. Mahler, P. Sibson, J. E. Kennard, A. Santamato, G. Sinclair, D. Bonneau, M. G. Thompson, and J. C. F. Matthews, An on-chip homodyne detector for measuring quantum states, in 2018 IEEE Photonics Society Summer Topical Meeting Series (SUM) (2018), pp. 139–140.
- B. Haylock, D. Peace, F. Lenzini, C. Weedbrook, and M. Lobino, Multiplexed quantum random number generation, Quantum 3, 141 (2019).
- Z. Bisadi, F. Acerbi, G. Fontana, N. Zorzi, C. Piemonte, G. Pucker, and L. Pavesi, Compact quantum random number generator with silicon nanocrystals light emitting device coupled to a silicon photomultiplier, Front. Phys. 6, 9 (2018).
- T. Giordani, R. Wagner, C. Esposito, A. Camillini, F. Hoch, G. Carvacho, C. Pentangelo, F. Ceccarelli, S. Piacentini, A. Crespi et al., Experimental certification of contextuality, coherence, and dimension in a programmable universal photonic processor, Sci. Adv. 9, eadj4249 (2023).
- A. A. Klyachko, M. A. Can, S. Binicioğlu, and A. S. Shumovsky, Simple test for hidden variables in spin-1 systems, Phys. Rev. Lett. 101, 020403 (2008).
- European Health and Digital Executive Agency, Quantum communication infrastructure (euroqci).
- B. Huttner, R. Alléaume, E. Diamanti, F. Fröwis, P. Grangier, H. Hübel, V. Martin, A. Poppe, J. A. Slater, T. Spiller et al., Long-range QKD without trusted nodes is not possible with current technology, npj Quantum Inf. 8, 108 (2022).
- S. Wehner, D. Elkouss, and R. Hanson, Quantum internet: A vision for the road ahead, Science 362, eaam9288 (2018).
- J. Carolan, C. Harrold, C. Sparrow, E. Martín-López, N. J. Russell, J. W. Silverstone, P. J. Shadbolt, N. Matsuda, M. Oguma, M. Itoh, G. D. Marshall, M. G. Thompson, J. C. F. Matthews, T. Hashimoto, J. L. O’Brien, and A. Laing, Universal linear optics, Science 349, 711 (2015).
- H. Krawczyk, New hash functions for message authentication, in Advances in Cryptology—EUROCRYPT ’95, Edited by L. C. Guillou and J.-J. Quisquater (Springer Berlin Heidelberg, Berlin, Heidelberg, 1995), p. 310.
- A. Gajda, L. Zimmermann, M. Jazayerifar, G. Winzer, H. Tian, R. Elschner, T. Richter, C. Schubert, B. Tillack, and K. Petermann, Highly efficient CW parametric conversion at 1550 nm in SOI waveguides by reverse biased p-i-n junction, Opt. Express 20, 13100 (2012).
- J. F. Tasker, J. Frazer, G. Ferranti, and J. C. F. Matthews, A Bi-CMOS electronic photonic integrated circuit quantum light detector, Sci. Adv. 10, eadk6890 (2024).
- O. Gühne, M. Kleinmann, A. Cabello, J.-A. Larsson, G. Kirchmair, F. Zähringer, R. Gerritsma, and C. F. Roos, Compatibility and noncontextuality for sequential measurements, Phys. Rev. A 81, 022121 (2010).
- P. Xue, L. Xiao, G. Ruffolo, A. Mazzari, T. Temistocles, M. T. Cunha, and R. Rabelo, Synchronous observation of bell nonlocality and state-dependent contextuality, Phys. Rev. Lett. 130, 040201 (2023).
- Y. Ding, C. Peucheret, H. Ou, and K. Yvind, Fully etched apodized grating coupler on the SOI platform with coupling efficiency, Opt. Lett. 39, 5348 (2014).
- H. Wang, H. Yuan, Q. Zeng, L. Zhou, H. Ma, and Z. Yuan, Bright heralded single-photon source with ideal purity based on silicon chip via spontaneous four wave mixing, in CLEO (Optica Publishing Group, 2024), p. AW4H.3.
- S. A. Ghoreishi, G. Scala, R. Renner, L. L. Tacca, J. Bouda, S. P. Walborn, and M. Pawłowski, The future of secure communications: Device independence in quantum key distribution, Phys. Rep. 1149, 1 (2025).
- M. Kessler and R. Arnon-Friedman, Device-independent randomness amplification and privatization, IEEE J. Sel. Areas Inf. Theory 1, 568 (2020).
- R. Colbeck and A. Kent, Private randomness expansion with untrusted devices, J. Phys. A 44, 095305 (2011).
- J. R. Rausell-Campo, D. Pérez-López, and J. C. Francoy, Universal unitary transformations on a programmable integrated photonic processor, in 2024 IEEE Photonics Society Summer Topicals Meeting Series (SUM) (IEEE, 2024), pp. 1–2.
