Back to News
quantum-computing

Automated generation of photonic circuits for Bell tests with homodyne measurements

Quantum Journal
Loading...
24 min read
0 likes
⚡ Quantum Brief
Researchers developed an AI-driven framework combining deep reinforcement learning and quantum optics simulations to automatically design photonic circuits for Bell tests, achieving a CHSH violation of 2.068 with minimal hardware. The system uses homodyne detectors—practical, room-temperature devices operating at telecom wavelengths—unlike bulky setups in previous experiments, enabling real-world quantum communication applications. A key breakthrough is a four-mode circuit with just two squeezed light sources (3.9 dB and 0.008 dB) and two beam splitters, simplifying experimental requirements while maintaining robustness. The design sustains Bell violations over 8 km of optical fiber and tolerates heralding detector inefficiencies, making it viable for loophole-free tests and chip-integrated quantum technologies. This work advances device-independent protocols by demonstrating scalable, loss-resistant photonic architectures, bridging the gap between theory and practical quantum networks.
Automated generation of photonic circuits for Bell tests with homodyne measurements

Summarize this article with:

AbstractNonlocal quantum realizations, certified by the violation of a Bell inequality, are core resources for device-independent quantum information processing. Although proof-of-principle experiments demonstrating device-independent quantum information processing have already been reported, identifying physical platforms that are realistically closer to practical, viable devices remains a significant challenge. In this work, we present an automated framework for designing photonic implementations of nonlocal realizations using homodyne detections and quantum state heralding. Combining deep reinforcement learning and efficient simulations of quantum optical processes, our method generates photonic circuits that achieve significant violations of the Clauser-Horne-Shimony-Holt inequality. In particular, we find an experimental setup, robust to losses, that yields a CHSH violation of $2.068$ with $3.9$ dB and $0.008$ dB squeezed light sources and two beam splitters.Popular summaryQuantum mechanics predicts that two particles can be entangled, allowing them to exhibit correlations that no classical system can reproduce. The existence of such nonlocal correlations can be confirmed through violations of Bell inequalities. Harnessing this nonlocality is essential for secure quantum communication and other device-independent quantum technologies. However, many experimental realizations of Bell tests and device-independent protocols require complex and bulky machinery, making them poorly suited for practical or commercial applications. In this work, we present an automated method that combines search algorithms with efficient quantum optics simulations, to discover photonic circuits capable of violating the CHSH Bell inequality using homodyne detectors ; a particularly practical type of detector that operates at telecom wavelengths and at room temperature. By exploring a wide range of possible circuit configurations, our method identifies several promising designs. Most notably, we report a simple four-mode circuit using two squeezed light sources, two beam splitters, and a heralding mechanism, which yields a CHSH score of $2.068$. This circuit maintains a Bell violation over distances exceeding $8$ kilometers of optical fiber and remains robust to inefficiencies in the heralding detectors, making it a realistic candidate for a first loophole-free Bell test based on homodyne measurements and a promising step toward practical, chip-integrated implementations of device-independent protocols.► BibTeX data@article{Lanore2026automatedgeneration, doi = {10.22331/q-2026-03-10-2021}, url = {https://doi.org/10.22331/q-2026-03-10-2021}, title = {Automated generation of photonic circuits for {B}ell tests with homodyne measurements}, author = {Lanore, Corentin and Grasselli, Federico and Valcarce, Xavier and Bancal, Jean-Daniel and Sangouard, Nicolas}, journal = {{Quantum}}, issn = {2521-327X}, publisher = {{Verein zur F{\"{o}}rderung des Open Access Publizierens in den Quantenwissenschaften}}, volume = {10}, pages = {2021}, month = mar, year = {2026} }► References [1] J. S. Bell. ``On the Einstein Podolsky Rosen paradox''.

Physics Physique Fizika 1, 195–200 (1964). https:/​/​doi.org/​10.1103/​PhysicsPhysiqueFizika.1.195 [2] Nicolas Brunner, Daniel Cavalcanti, Stefano Pironio, Valerio Scarani, and Stephanie Wehner. ``Bell nonlocality''. Rev. Mod. Phys. 86, 419–478 (2014). https:/​/​doi.org/​10.1103/​RevModPhys.86.419 [3] Rotem Arnon-Friedman. ``Device-independent quantum information processing: A simplified analysis''.

Springer International Publishing. (2020). https:/​/​doi.org/​10.1007/​978-3-030-60231-4 [4] Xavier Valcarce. ``Device-independent certification : quantum resources and quantum key distribution''. Theses. Université Paris-Saclay. (2023). url: https:/​/​theses.hal.science/​tel-04132704. https:/​/​theses.hal.science/​tel-04132704 [5] Dominic Mayers and Andrew Yao. ``Self testing quantum apparatus''. Quantum Info. Comput. 4, 273–286 (2004). https:/​/​doi.org/​10.48550/​arXiv.quant-ph/​0307205 arXiv:quant-ph/0307205 [6] Ivan Šupić and Joseph Bowles. ``Self-testing of quantum systems: a review''. Quantum 4, 337 (2020). https:/​/​doi.org/​10.22331/​q-2020-09-30-337 [7] Antonio Acín, Nicolas Brunner, Nicolas Gisin, Serge Massar, Stefano Pironio, and Valerio Scarani. ``Device-independent security of quantum cryptography against collective attacks''. Phys. Rev. Lett. 98, 230501 (2007). https:/​/​doi.org/​10.1103/​PhysRevLett.98.230501 [8] Stefano Pironio, Antonio Acín, Nicolas Brunner, Nicolas Gisin, Serge Massar, and Valerio Scarani. ``Device-independent quantum key distribution secure against collective attacks''. New Journal of Physics 11, 045021 (2009). https:/​/​doi.org/​10.1088/​1367-2630/​11/​4/​045021 [9] Umesh Vazirani and Thomas Vidick. ``Fully device-independent quantum key distribution''. Phys. Rev. Lett. 113, 140501 (2014). https:/​/​doi.org/​10.1103/​PhysRevLett.113.140501 [10] Pavel Sekatski, Jean-Daniel Bancal, Xavier Valcarce, Ernest Y.-Z. Tan, Renato Renner, and Nicolas Sangouard. ``Device-independent quantum key distribution from generalized CHSH inequalities''. Quantum 5, 444 (2021). https:/​/​doi.org/​10.22331/​q-2021-04-26-444 [11] Víctor Zapatero and Marcos Curty. ``Long-distance device-independent quantum key distribution''. Scientific Reports 9, 17749 (2019). https:/​/​doi.org/​10.1038/​s41598-019-53803-0 [12] René Schwonnek, Koon Tong Goh, Ignatius W. Primaatmaja, Ernest Y.-Z. Tan, Ramona Wolf, Valerio Scarani, and Charles C.-W. Lim. ``Device-independent quantum key distribution with random key basis''. Nature Communications 12, 2880 (2021). https:/​/​doi.org/​10.1038/​s41467-021-23147-3 [13] Víctor Zapatero, Tim van Leent, Rotem Arnon-Friedman, Wen-Zhao Liu, Qiang Zhang, Harald Weinfurter, and Marcos Curty. ``Advances in device-independent quantum key distribution''. npj Quantum Information 9, 10 (2023). https:/​/​doi.org/​10.1038/​s41534-023-00684-x [14] Antonio Acín and Lluis Masanes. ``Certified randomness in quantum physics''. Nature 540, 213–219 (2016). https:/​/​doi.org/​10.1038/​nature20119 [15] John F. Clauser, Michael A. Horne, Abner Shimony, and Richard A. Holt. ``Proposed experiment to test local hidden-variable theories''. Phys. Rev. Lett. 23, 880–884 (1969). https:/​/​doi.org/​10.1103/​PhysRevLett.23.880 [16] B. Hensen, H. Bernien, A. E. Dréau, A. Reiserer, N. Kalb, M. S. Blok, J. Ruitenberg, R. F. L. Vermeulen, R. N. Schouten, C. Abellán, W. Amaya, V. Pruneri, M. W. Mitchell, M. Markham, D. J. Twitchen, D. Elkouss, S. Wehner, T. H. Taminiau, and R. Hanson. ``Loophole-free Bell inequality violation using electron spins separated by 1.3 kilometres''. Nature 526, 682–686 (2015). https:/​/​doi.org/​10.1038/​nature15759 [17] B. G. Christensen, K. T. McCusker, J. B. Altepeter, B. Calkins, T. Gerrits, A. E. Lita, A. Miller, L. K. Shalm, Y. Zhang, S. W. Nam, N. Brunner, C. C. W. Lim, N. Gisin, and P. G. Kwiat. ``Detection-loophole-free test of quantum nonlocality, and applications''. Phys. Rev. Lett. 111, 130406 (2013). https:/​/​doi.org/​10.1103/​PhysRevLett.111.130406 [18] Lynden K. Shalm, Evan Meyer-Scott, Bradley G. Christensen, Peter Bierhorst, Michael A. Wayne, Martin J. Stevens, Thomas Gerrits, Scott Glancy, Deny R. Hamel, Michael S. Allman, Kevin J. Coakley, Shellee D. Dyer, Carson Hodge, Adriana E. Lita, Varun B. Verma, Camilla Lambrocco, Edward Tortorici, Alan L. Migdall, Yanbao Zhang, Daniel R. Kumor, William H. Farr, Francesco Marsili, Matthew D. Shaw, Jeffrey A. Stern, Carlos Abellán, Waldimar Amaya, Valerio Pruneri, Thomas Jennewein, Morgan W. Mitchell, Paul G. Kwiat, Joshua C. Bienfang, Richard P. Mirin, Emanuel Knill, and Sae Woo Nam. ``Strong loophole-free test of local realism''. Phys. Rev. Lett. 115, 250402 (2015). https:/​/​doi.org/​10.1103/​PhysRevLett.115.250402 [19] Marissa Giustina, Marijn A. M. Versteegh, Sören Wengerowsky, Johannes Handsteiner, Armin Hochrainer, Kevin Phelan, Fabian Steinlechner, Johannes Kofler, Jan-Åke Larsson, Carlos Abellán, Waldimar Amaya, Valerio Pruneri, Morgan W. Mitchell, Jörn Beyer, Thomas Gerrits, Adriana E. Lita, Lynden K. Shalm, Sae Woo Nam, Thomas Scheidl, Rupert Ursin, Bernhard Wittmann, and Anton Zeilinger. ``Significant-loophole-free test of Bell's theorem with entangled photons''. Phys. Rev. Lett. 115, 250401 (2015). https:/​/​doi.org/​10.1103/​PhysRevLett.115.250401 [20] Yang Liu, Qi Zhao, Ming-Han Li, Jian-Yu Guan, Yanbao Zhang, Bing Bai, Weijun Zhang, Wen-Zhao Liu, Cheng Wu, Xiao Yuan, Hao Li, W. J. Munro, Zhen Wang, Lixing You, Jun Zhang, Xiongfeng Ma, Jingyun Fan, Qiang Zhang, and Jian-Wei Pan. ``Device-independent quantum random-number generation''. Nature 562, 548–551 (2018). https:/​/​doi.org/​10.1038/​s41586-018-0559-3 [21] Lijiong Shen, Jianwei Lee, Le Phuc Thinh, Jean-Daniel Bancal, Alessandro Cerè, Antia Lamas-Linares, Adriana Lita, Thomas Gerrits, Sae Woo Nam, Valerio Scarani, and Christian Kurtsiefer. ``Randomness extraction from Bell violation with continuous parametric down-conversion''. Phys. Rev. Lett. 121, 150402 (2018). https:/​/​doi.org/​10.1103/​PhysRevLett.121.150402 [22] Wenjamin Rosenfeld, Daniel Burchardt, Robert Garthoff, Kai Redeker, Norbert Ortegel, Markus Rau, and Harald Weinfurter. ``Event-ready Bell test using entangled atoms simultaneously closing detection and locality loopholes''. Phys. Rev. Lett. 119, 010402 (2017). https:/​/​doi.org/​10.1103/​PhysRevLett.119.010402 [23] Simon Storz, Josua Schär, Anatoly Kulikov, Paul Magnard, Philipp Kurpiers, Janis Lütolf, Theo Walter, Adrian Copetudo, Kevin Reuer, Abdulkadir Akin, Jean-Claude Besse, Mihai Gabureac, Graham J. Norris, Andrés Rosario, Ferran Martin, José Martinez, Waldimar Amaya, Morgan W. Mitchell, Carlos Abellan, Jean-Daniel Bancal, Nicolas Sangouard, Baptiste Royer, Alexandre Blais, and Andreas Wallraff. ``Loophole-free Bell inequality violation with superconducting circuits''. Nature 617, 265–270 (2023). https:/​/​doi.org/​10.1038/​s41586-023-05885-0 [24] D. P. Nadlinger, P. Drmota, B. C. Nichol, G. Araneda, D. Main, R. Srinivas, D. M. Lucas, C. J. Ballance, K. Ivanov, E. Y.-Z. Tan, P. Sekatski, R. L. Urbanke, R. Renner, N. Sangouard, and J.-D. Bancal. ``Experimental quantum key distribution certified by Bell's theorem''. Nature 607, 682–686 (2022). https:/​/​doi.org/​10.1038/​s41586-022-04941-5 [25] Wei Zhang, Tim van Leent, Kai Redeker, Robert Garthoff, René Schwonnek, Florian Fertig, Sebastian Eppelt, Wenjamin Rosenfeld, Valerio Scarani, Charles C.-W. Lim, and Harald Weinfurter. ``A device-independent quantum key distribution system for distant users''. Nature 607, 687–691 (2022). https:/​/​doi.org/​10.1038/​s41586-022-04891-y [26] Wen-Zhao Liu, Yu-Zhe Zhang, Yi-Zheng Zhen, Ming-Han Li, Yang Liu, Jingyun Fan, Feihu Xu, Qiang Zhang, and Jian-Wei Pan. ``Toward a photonic demonstration of device-independent quantum key distribution''. Phys. Rev. Lett. 129, 050502 (2022). https:/​/​doi.org/​10.1103/​PhysRevLett.129.050502 [27] A. Gilchrist, P. Deuar, and M. D. Reid. ``Contradiction of quantum mechanics with local hidden variables for quadrature phase measurements on pair-coherent states and squeezed macroscopic superpositions of coherent states''. Phys. Rev. A 60, 4259–4271 (1999). https:/​/​doi.org/​10.1103/​PhysRevA.60.4259 [28] W. J. Munro. ``Optimal states for Bell-inequality violations using quadrature-phase homodyne measurements''. Phys. Rev. A 59, 4197–4201 (1999). https:/​/​doi.org/​10.1103/​PhysRevA.59.4197 [29] Jérôme Wenger, Mohammad Hafezi, Frédéric Grosshans, Rosa Tualle-Brouri, and Philippe Grangier. ``Maximal violation of Bell inequalities using continuous-variable measurements''. Phys. Rev. A 67, 012105 (2003). https:/​/​doi.org/​10.1103/​PhysRevA.67.012105 [30] Enky Oudot, Gaël Massé, Xavier Valcarce, and Antonio Acín. ``Realistic Bell tests with homodyne measurements'' (2024). arXiv:2402.01530. arXiv:2402.01530 [31] R. García-Patrón, J. Fiurášek, N. J. Cerf, J. Wenger, R. Tualle-Brouri, and Ph. Grangier. ``Proposal for a loophole-free Bell test using homodyne detection''. Phys. Rev. Lett. 93, 130409 (2004). https:/​/​doi.org/​10.1103/​PhysRevLett.93.130409 [32] Raúl García-Patrón, Jaromír Fiurášek, and Nicolas J. Cerf. ``Loophole-free test of quantum nonlocality using high-efficiency homodyne detectors''. Phys. Rev. A 71, 022105 (2005). https:/​/​doi.org/​10.1103/​PhysRevA.71.022105 [33] Xavier Valcarce, Pavel Sekatski, Davide Orsucci, Enky Oudot, Jean-Daniel Bancal, and Nicolas Sangouard. ``What is the minimum CHSH score certifying that a state resembles the singlet?''. Quantum 4, 246 (2020). https:/​/​doi.org/​10.22331/​q-2020-03-23-246 [34] Jędrzej Kaniewski. ``Analytic and nearly optimal self-testing bounds for the Clauser-Horne-Shimony-Holt and Mermin inequalities''.

Physical Review Letters 117, 070402 (2016). https:/​/​doi.org/​10.1103/​physrevlett.117.070402 [35] S. Tanzilli, A. Martin, F. Kaiser, M.P. De Micheli, O. Alibart, and D.B. Ostrowsky. ``On the genesis and evolution of integrated quantum optics''. Laser & Photonics Reviews 6, 115–143 (2012). https:/​/​doi.org/​10.1002/​lpor.201100010 [36] Emanuele Pelucchi, Giorgos Fagas, Igor Aharonovich, Dirk Englund, Eden Figueroa, Qihuang Gong, Hübel Hannes, Jin Liu, Chao-Yang Lu, Nobuyuki Matsuda, Jian-Wei Pan, Florian Schreck, Fabio Sciarrino, Christine Silberhorn, Jianwei Wang, and Klaus D. Jöns. ``The potential and global outlook of integrated photonics for quantum technologies''.

Nature Reviews Physics 4, 194–208 (2021). https:/​/​doi.org/​10.1038/​s42254-021-00398-z [37] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. ``Human-level control through deep reinforcement learning''. Nature 518, 529–533 (2015). https:/​/​doi.org/​10.1038/​nature14236 [38] Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza, Alex Graves, Tim Harley, Timothy P. Lillicrap, David Silver, and Koray Kavukcuoglu. ``Asynchronous methods for deep reinforcement learning''. In Proceedings of the 33rd International Conference on International Conference on Machine Learning - Volume 48. Page 1928–1937. ICML'16. JMLR.org (2016). https:/​/​doi.org/​10.48550/​arXiv.1602.01783 [39] Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. ``Soft actor-critic algorithms and applications'' (2018). arXiv:1812.05905. arXiv:1812.05905 [40] John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. ``Trust region policy optimization'' (2015). arXiv:1502.05477. arXiv:1502.05477 [41] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. ``Proximal policy optimization algorithms'' (2017). arXiv:1707.06347. arXiv:1707.06347 [42] Giuseppe Carleo, Ignacio Cirac, Kyle Cranmer, Laurent Daudet, Maria Schuld, Naftali Tishby, Leslie Vogt-Maranto, and Lenka Zdeborová. ``Machine learning and the physical sciences''. Rev. Mod. Phys. 91, 045002 (2019). https:/​/​doi.org/​10.1103/​RevModPhys.91.045002 [43] Jacob Biamonte, Peter Wittek, Nicola Pancotti, Patrick Rebentrost, Nathan Wiebe, and Seth Lloyd. ``Quantum machine learning''. Nature 549, 195–202 (2017). https:/​/​doi.org/​10.1038/​nature23474 [44] Vedran Dunjko and Hans J. Briegel. ``Machine learning & artificial intelligence in the quantum domain: a review of recent progress''. Rep. Prog. Phys. 81, 074001 (2018). https:/​/​doi.org/​10.1088/​1361-6633/​aab406 [45] Mario Krenn, Manuel Erhard, and Anton Zeilinger. ``Computer-inspired quantum experiments''.

Nature Reviews Physics 2, 649–661 (2020). https:/​/​doi.org/​10.1038/​s42254-020-0230-4 [46] Mario Krenn, Mehul Malik, Robert Fickler, Radek Lapkiewicz, and Anton Zeilinger. ``Automated search for new quantum experiments''.

Physical Review Letters 116, 090405 (2016). https:/​/​doi.org/​10.1103/​physrevlett.116.090405 [47] Alexey A. Melnikov, Pavel Sekatski, and Nicolas Sangouard. ``Setting up experimental Bell tests with reinforcement learning''. Phys. Rev. Lett. 125, 160401 (2020). https:/​/​doi.org/​10.1103/​PhysRevLett.125.160401 [48] Mario Krenn, Jakob S. Kottmann, Nora Tischler, and Alán Aspuru-Guzik. ``Conceptual understanding through efficient automated design of quantum optical experiments''. Physical Review X 11, 031044 (2021). https:/​/​doi.org/​10.1103/​physrevx.11.031044 [49] X. Valcarce, P. Sekatski, E. Gouzien, A. Melnikov, and N. Sangouard. ``Automated design of quantum-optical experiments for device-independent quantum key distribution''. Phys. Rev. A 107, 062607 (2023). https:/​/​doi.org/​10.1103/​PhysRevA.107.062607 [50] B. S. Tsirel'son. ``Quantum analogues of the bell inequalities. the case of two spatially separated domains''. Journal of Soviet Mathematics 36, 557–570 (1987). https:/​/​doi.org/​10.1007/​BF01663472 [51] John S. Bell. ``EPR correlations and EPW distributions''. Annals of the New York Academy of Sciences 480, 263–266 (1986). https:/​/​doi.org/​10.1111/​j.1749-6632.1986.tb12429.x [52] Michael G. Jabbour and Jonatan Bohr Brask. ``Constructing local models for general measurements on bosonic Gaussian states''. Phys. Rev. Lett. 131, 110202 (2023). https:/​/​doi.org/​10.1103/​PhysRevLett.131.110202 [53] A. Kuzmich, I. A. Walmsley, and L. Mandel. ``Violation of Bell's inequality by a generalized Einstein-Podolsky-Rosen state using homodyne detection''. Phys. Rev. Lett. 85, 1349–1353 (2000). https:/​/​doi.org/​10.1103/​PhysRevLett.85.1349 [54] Mattia Walschaers. ``Non-Gaussian quantum states and where to find them''. PRX Quantum 2, 030204 (2021). https:/​/​doi.org/​10.1103/​PRXQuantum.2.030204 [55] Corentin Lanore, Federico Grasselli, and Xavier Valcarce. code: JuliaReinforcementLearning/​ReinforcementLearning.jl. https:/​/​github.com/​JuliaReinforcementLearning/​ReinforcementLearning.jl [56] Xavier Valcarce. code: xvalcarce/​QuantumOpticalCircuits.jl. https:/​/​github.com/​xvalcarce/​QuantumOpticalCircuits.jl [57] Jun Tian and other contributors. code: JuliaReinforcementLearning/​ReinforcementLearning.jl. https:/​/​github.com/​JuliaReinforcementLearning/​ReinforcementLearning.jl [58] Werner Vogel and Dirk‐Gunnar Welsch. ``Quantum optics''. Wiley. (2006). https:/​/​doi.org/​10.1002/​3527608524 [59] Stefano Pirandola, Alessio Serafini, and Seth Lloyd. ``Correlation matrices of two-mode bosonic systems''. Phys. Rev. A 79, 052327 (2009). https:/​/​doi.org/​10.1103/​PhysRevA.79.052327 [60] Jun Tian and other contributors (2020). code: JuliaReinforcementLearning/​ReinforcementLearning.jl commit:b4c9f40. https:/​/​github.com/​JuliaReinforcementLearning/​ReinforcementLearning.jl/​blob/​b4c9f404be5b921178fbee34f93a00dd143a829a/​src/​ReinforcementLearningZoo/​src/​algorithms/​policy_gradient/​ppo.jl [61] Nicolas Brunner, Nicolas Gisin, Valerio Scarani, and Christoph Simon. ``Detection loophole in asymmetric bell experiments''. Phys. Rev. Lett. 98, 220403 (2007). https:/​/​doi.org/​10.1103/​PhysRevLett.98.220403 [62] Adán Cabello and Jan-Åke Larsson. ``Minimum detection efficiency for a loophole-free atom-photon bell experiment''. Phys. Rev. Lett. 98, 220402 (2007). https:/​/​doi.org/​10.1103/​PhysRevLett.98.220402Cited byCould not fetch Crossref cited-by data during last attempt 2026-03-10 14:52:47: Could not fetch cited-by data for 10.22331/q-2026-03-10-2021 from Crossref. This is normal if the DOI was registered recently. Could not fetch ADS cited-by data during last attempt 2026-03-10 14:52:47: No response from ADS or unable to decode the received json data when getting the list of citing works.This Paper is published in Quantum under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. Copyright remains with the original copyright holders such as the authors or their institutions. AbstractNonlocal quantum realizations, certified by the violation of a Bell inequality, are core resources for device-independent quantum information processing. Although proof-of-principle experiments demonstrating device-independent quantum information processing have already been reported, identifying physical platforms that are realistically closer to practical, viable devices remains a significant challenge. In this work, we present an automated framework for designing photonic implementations of nonlocal realizations using homodyne detections and quantum state heralding. Combining deep reinforcement learning and efficient simulations of quantum optical processes, our method generates photonic circuits that achieve significant violations of the Clauser-Horne-Shimony-Holt inequality. In particular, we find an experimental setup, robust to losses, that yields a CHSH violation of $2.068$ with $3.9$ dB and $0.008$ dB squeezed light sources and two beam splitters.Popular summaryQuantum mechanics predicts that two particles can be entangled, allowing them to exhibit correlations that no classical system can reproduce. The existence of such nonlocal correlations can be confirmed through violations of Bell inequalities. Harnessing this nonlocality is essential for secure quantum communication and other device-independent quantum technologies. However, many experimental realizations of Bell tests and device-independent protocols require complex and bulky machinery, making them poorly suited for practical or commercial applications. In this work, we present an automated method that combines search algorithms with efficient quantum optics simulations, to discover photonic circuits capable of violating the CHSH Bell inequality using homodyne detectors ; a particularly practical type of detector that operates at telecom wavelengths and at room temperature. By exploring a wide range of possible circuit configurations, our method identifies several promising designs. Most notably, we report a simple four-mode circuit using two squeezed light sources, two beam splitters, and a heralding mechanism, which yields a CHSH score of $2.068$. This circuit maintains a Bell violation over distances exceeding $8$ kilometers of optical fiber and remains robust to inefficiencies in the heralding detectors, making it a realistic candidate for a first loophole-free Bell test based on homodyne measurements and a promising step toward practical, chip-integrated implementations of device-independent protocols.► BibTeX data@article{Lanore2026automatedgeneration, doi = {10.22331/q-2026-03-10-2021}, url = {https://doi.org/10.22331/q-2026-03-10-2021}, title = {Automated generation of photonic circuits for {B}ell tests with homodyne measurements}, author = {Lanore, Corentin and Grasselli, Federico and Valcarce, Xavier and Bancal, Jean-Daniel and Sangouard, Nicolas}, journal = {{Quantum}}, issn = {2521-327X}, publisher = {{Verein zur F{\"{o}}rderung des Open Access Publizierens in den Quantenwissenschaften}}, volume = {10}, pages = {2021}, month = mar, year = {2026} }► References [1] J. S. Bell. ``On the Einstein Podolsky Rosen paradox''.

Physics Physique Fizika 1, 195–200 (1964). https:/​/​doi.org/​10.1103/​PhysicsPhysiqueFizika.1.195 [2] Nicolas Brunner, Daniel Cavalcanti, Stefano Pironio, Valerio Scarani, and Stephanie Wehner. ``Bell nonlocality''. Rev. Mod. Phys. 86, 419–478 (2014). https:/​/​doi.org/​10.1103/​RevModPhys.86.419 [3] Rotem Arnon-Friedman. ``Device-independent quantum information processing: A simplified analysis''.

Springer International Publishing. (2020). https:/​/​doi.org/​10.1007/​978-3-030-60231-4 [4] Xavier Valcarce. ``Device-independent certification : quantum resources and quantum key distribution''. Theses. Université Paris-Saclay. (2023). url: https:/​/​theses.hal.science/​tel-04132704. https:/​/​theses.hal.science/​tel-04132704 [5] Dominic Mayers and Andrew Yao. ``Self testing quantum apparatus''. Quantum Info. Comput. 4, 273–286 (2004). https:/​/​doi.org/​10.48550/​arXiv.quant-ph/​0307205 arXiv:quant-ph/0307205 [6] Ivan Šupić and Joseph Bowles. ``Self-testing of quantum systems: a review''. Quantum 4, 337 (2020). https:/​/​doi.org/​10.22331/​q-2020-09-30-337 [7] Antonio Acín, Nicolas Brunner, Nicolas Gisin, Serge Massar, Stefano Pironio, and Valerio Scarani. ``Device-independent security of quantum cryptography against collective attacks''. Phys. Rev. Lett. 98, 230501 (2007). https:/​/​doi.org/​10.1103/​PhysRevLett.98.230501 [8] Stefano Pironio, Antonio Acín, Nicolas Brunner, Nicolas Gisin, Serge Massar, and Valerio Scarani. ``Device-independent quantum key distribution secure against collective attacks''. New Journal of Physics 11, 045021 (2009). https:/​/​doi.org/​10.1088/​1367-2630/​11/​4/​045021 [9] Umesh Vazirani and Thomas Vidick. ``Fully device-independent quantum key distribution''. Phys. Rev. Lett. 113, 140501 (2014). https:/​/​doi.org/​10.1103/​PhysRevLett.113.140501 [10] Pavel Sekatski, Jean-Daniel Bancal, Xavier Valcarce, Ernest Y.-Z. Tan, Renato Renner, and Nicolas Sangouard. ``Device-independent quantum key distribution from generalized CHSH inequalities''. Quantum 5, 444 (2021). https:/​/​doi.org/​10.22331/​q-2021-04-26-444 [11] Víctor Zapatero and Marcos Curty. ``Long-distance device-independent quantum key distribution''. Scientific Reports 9, 17749 (2019). https:/​/​doi.org/​10.1038/​s41598-019-53803-0 [12] René Schwonnek, Koon Tong Goh, Ignatius W. Primaatmaja, Ernest Y.-Z. Tan, Ramona Wolf, Valerio Scarani, and Charles C.-W. Lim. ``Device-independent quantum key distribution with random key basis''. Nature Communications 12, 2880 (2021). https:/​/​doi.org/​10.1038/​s41467-021-23147-3 [13] Víctor Zapatero, Tim van Leent, Rotem Arnon-Friedman, Wen-Zhao Liu, Qiang Zhang, Harald Weinfurter, and Marcos Curty. ``Advances in device-independent quantum key distribution''. npj Quantum Information 9, 10 (2023). https:/​/​doi.org/​10.1038/​s41534-023-00684-x [14] Antonio Acín and Lluis Masanes. ``Certified randomness in quantum physics''. Nature 540, 213–219 (2016). https:/​/​doi.org/​10.1038/​nature20119 [15] John F. Clauser, Michael A. Horne, Abner Shimony, and Richard A. Holt. ``Proposed experiment to test local hidden-variable theories''. Phys. Rev. Lett. 23, 880–884 (1969). https:/​/​doi.org/​10.1103/​PhysRevLett.23.880 [16] B. Hensen, H. Bernien, A. E. Dréau, A. Reiserer, N. Kalb, M. S. Blok, J. Ruitenberg, R. F. L. Vermeulen, R. N. Schouten, C. Abellán, W. Amaya, V. Pruneri, M. W. Mitchell, M. Markham, D. J. Twitchen, D. Elkouss, S. Wehner, T. H. Taminiau, and R. Hanson. ``Loophole-free Bell inequality violation using electron spins separated by 1.3 kilometres''. Nature 526, 682–686 (2015). https:/​/​doi.org/​10.1038/​nature15759 [17] B. G. Christensen, K. T. McCusker, J. B. Altepeter, B. Calkins, T. Gerrits, A. E. Lita, A. Miller, L. K. Shalm, Y. Zhang, S. W. Nam, N. Brunner, C. C. W. Lim, N. Gisin, and P. G. Kwiat. ``Detection-loophole-free test of quantum nonlocality, and applications''. Phys. Rev. Lett. 111, 130406 (2013). https:/​/​doi.org/​10.1103/​PhysRevLett.111.130406 [18] Lynden K. Shalm, Evan Meyer-Scott, Bradley G. Christensen, Peter Bierhorst, Michael A. Wayne, Martin J. Stevens, Thomas Gerrits, Scott Glancy, Deny R. Hamel, Michael S. Allman, Kevin J. Coakley, Shellee D. Dyer, Carson Hodge, Adriana E. Lita, Varun B. Verma, Camilla Lambrocco, Edward Tortorici, Alan L. Migdall, Yanbao Zhang, Daniel R. Kumor, William H. Farr, Francesco Marsili, Matthew D. Shaw, Jeffrey A. Stern, Carlos Abellán, Waldimar Amaya, Valerio Pruneri, Thomas Jennewein, Morgan W. Mitchell, Paul G. Kwiat, Joshua C. Bienfang, Richard P. Mirin, Emanuel Knill, and Sae Woo Nam. ``Strong loophole-free test of local realism''. Phys. Rev. Lett. 115, 250402 (2015). https:/​/​doi.org/​10.1103/​PhysRevLett.115.250402 [19] Marissa Giustina, Marijn A. M. Versteegh, Sören Wengerowsky, Johannes Handsteiner, Armin Hochrainer, Kevin Phelan, Fabian Steinlechner, Johannes Kofler, Jan-Åke Larsson, Carlos Abellán, Waldimar Amaya, Valerio Pruneri, Morgan W. Mitchell, Jörn Beyer, Thomas Gerrits, Adriana E. Lita, Lynden K. Shalm, Sae Woo Nam, Thomas Scheidl, Rupert Ursin, Bernhard Wittmann, and Anton Zeilinger. ``Significant-loophole-free test of Bell's theorem with entangled photons''. Phys. Rev. Lett. 115, 250401 (2015). https:/​/​doi.org/​10.1103/​PhysRevLett.115.250401 [20] Yang Liu, Qi Zhao, Ming-Han Li, Jian-Yu Guan, Yanbao Zhang, Bing Bai, Weijun Zhang, Wen-Zhao Liu, Cheng Wu, Xiao Yuan, Hao Li, W. J. Munro, Zhen Wang, Lixing You, Jun Zhang, Xiongfeng Ma, Jingyun Fan, Qiang Zhang, and Jian-Wei Pan. ``Device-independent quantum random-number generation''. Nature 562, 548–551 (2018). https:/​/​doi.org/​10.1038/​s41586-018-0559-3 [21] Lijiong Shen, Jianwei Lee, Le Phuc Thinh, Jean-Daniel Bancal, Alessandro Cerè, Antia Lamas-Linares, Adriana Lita, Thomas Gerrits, Sae Woo Nam, Valerio Scarani, and Christian Kurtsiefer. ``Randomness extraction from Bell violation with continuous parametric down-conversion''. Phys. Rev. Lett. 121, 150402 (2018). https:/​/​doi.org/​10.1103/​PhysRevLett.121.150402 [22] Wenjamin Rosenfeld, Daniel Burchardt, Robert Garthoff, Kai Redeker, Norbert Ortegel, Markus Rau, and Harald Weinfurter. ``Event-ready Bell test using entangled atoms simultaneously closing detection and locality loopholes''. Phys. Rev. Lett. 119, 010402 (2017). https:/​/​doi.org/​10.1103/​PhysRevLett.119.010402 [23] Simon Storz, Josua Schär, Anatoly Kulikov, Paul Magnard, Philipp Kurpiers, Janis Lütolf, Theo Walter, Adrian Copetudo, Kevin Reuer, Abdulkadir Akin, Jean-Claude Besse, Mihai Gabureac, Graham J. Norris, Andrés Rosario, Ferran Martin, José Martinez, Waldimar Amaya, Morgan W. Mitchell, Carlos Abellan, Jean-Daniel Bancal, Nicolas Sangouard, Baptiste Royer, Alexandre Blais, and Andreas Wallraff. ``Loophole-free Bell inequality violation with superconducting circuits''. Nature 617, 265–270 (2023). https:/​/​doi.org/​10.1038/​s41586-023-05885-0 [24] D. P. Nadlinger, P. Drmota, B. C. Nichol, G. Araneda, D. Main, R. Srinivas, D. M. Lucas, C. J. Ballance, K. Ivanov, E. Y.-Z. Tan, P. Sekatski, R. L. Urbanke, R. Renner, N. Sangouard, and J.-D. Bancal. ``Experimental quantum key distribution certified by Bell's theorem''. Nature 607, 682–686 (2022). https:/​/​doi.org/​10.1038/​s41586-022-04941-5 [25] Wei Zhang, Tim van Leent, Kai Redeker, Robert Garthoff, René Schwonnek, Florian Fertig, Sebastian Eppelt, Wenjamin Rosenfeld, Valerio Scarani, Charles C.-W. Lim, and Harald Weinfurter. ``A device-independent quantum key distribution system for distant users''. Nature 607, 687–691 (2022). https:/​/​doi.org/​10.1038/​s41586-022-04891-y [26] Wen-Zhao Liu, Yu-Zhe Zhang, Yi-Zheng Zhen, Ming-Han Li, Yang Liu, Jingyun Fan, Feihu Xu, Qiang Zhang, and Jian-Wei Pan. ``Toward a photonic demonstration of device-independent quantum key distribution''. Phys. Rev. Lett. 129, 050502 (2022). https:/​/​doi.org/​10.1103/​PhysRevLett.129.050502 [27] A. Gilchrist, P. Deuar, and M. D. Reid. ``Contradiction of quantum mechanics with local hidden variables for quadrature phase measurements on pair-coherent states and squeezed macroscopic superpositions of coherent states''. Phys. Rev. A 60, 4259–4271 (1999). https:/​/​doi.org/​10.1103/​PhysRevA.60.4259 [28] W. J. Munro. ``Optimal states for Bell-inequality violations using quadrature-phase homodyne measurements''. Phys. Rev. A 59, 4197–4201 (1999). https:/​/​doi.org/​10.1103/​PhysRevA.59.4197 [29] Jérôme Wenger, Mohammad Hafezi, Frédéric Grosshans, Rosa Tualle-Brouri, and Philippe Grangier. ``Maximal violation of Bell inequalities using continuous-variable measurements''. Phys. Rev. A 67, 012105 (2003). https:/​/​doi.org/​10.1103/​PhysRevA.67.012105 [30] Enky Oudot, Gaël Massé, Xavier Valcarce, and Antonio Acín. ``Realistic Bell tests with homodyne measurements'' (2024). arXiv:2402.01530. arXiv:2402.01530 [31] R. García-Patrón, J. Fiurášek, N. J. Cerf, J. Wenger, R. Tualle-Brouri, and Ph. Grangier. ``Proposal for a loophole-free Bell test using homodyne detection''. Phys. Rev. Lett. 93, 130409 (2004). https:/​/​doi.org/​10.1103/​PhysRevLett.93.130409 [32] Raúl García-Patrón, Jaromír Fiurášek, and Nicolas J. Cerf. ``Loophole-free test of quantum nonlocality using high-efficiency homodyne detectors''. Phys. Rev. A 71, 022105 (2005). https:/​/​doi.org/​10.1103/​PhysRevA.71.022105 [33] Xavier Valcarce, Pavel Sekatski, Davide Orsucci, Enky Oudot, Jean-Daniel Bancal, and Nicolas Sangouard. ``What is the minimum CHSH score certifying that a state resembles the singlet?''. Quantum 4, 246 (2020). https:/​/​doi.org/​10.22331/​q-2020-03-23-246 [34] Jędrzej Kaniewski. ``Analytic and nearly optimal self-testing bounds for the Clauser-Horne-Shimony-Holt and Mermin inequalities''.

Physical Review Letters 117, 070402 (2016). https:/​/​doi.org/​10.1103/​physrevlett.117.070402 [35] S. Tanzilli, A. Martin, F. Kaiser, M.P. De Micheli, O. Alibart, and D.B. Ostrowsky. ``On the genesis and evolution of integrated quantum optics''. Laser & Photonics Reviews 6, 115–143 (2012). https:/​/​doi.org/​10.1002/​lpor.201100010 [36] Emanuele Pelucchi, Giorgos Fagas, Igor Aharonovich, Dirk Englund, Eden Figueroa, Qihuang Gong, Hübel Hannes, Jin Liu, Chao-Yang Lu, Nobuyuki Matsuda, Jian-Wei Pan, Florian Schreck, Fabio Sciarrino, Christine Silberhorn, Jianwei Wang, and Klaus D. Jöns. ``The potential and global outlook of integrated photonics for quantum technologies''.

Nature Reviews Physics 4, 194–208 (2021). https:/​/​doi.org/​10.1038/​s42254-021-00398-z [37] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A. Rusu, Joel Veness, Marc G. Bellemare, Alex Graves, Martin Riedmiller, Andreas K. Fidjeland, Georg Ostrovski, Stig Petersen, Charles Beattie, Amir Sadik, Ioannis Antonoglou, Helen King, Dharshan Kumaran, Daan Wierstra, Shane Legg, and Demis Hassabis. ``Human-level control through deep reinforcement learning''. Nature 518, 529–533 (2015). https:/​/​doi.org/​10.1038/​nature14236 [38] Volodymyr Mnih, Adrià Puigdomènech Badia, Mehdi Mirza, Alex Graves, Tim Harley, Timothy P. Lillicrap, David Silver, and Koray Kavukcuoglu. ``Asynchronous methods for deep reinforcement learning''. In Proceedings of the 33rd International Conference on International Conference on Machine Learning - Volume 48. Page 1928–1937. ICML'16. JMLR.org (2016). https:/​/​doi.org/​10.48550/​arXiv.1602.01783 [39] Tuomas Haarnoja, Aurick Zhou, Kristian Hartikainen, George Tucker, Sehoon Ha, Jie Tan, Vikash Kumar, Henry Zhu, Abhishek Gupta, Pieter Abbeel, and Sergey Levine. ``Soft actor-critic algorithms and applications'' (2018). arXiv:1812.05905. arXiv:1812.05905 [40] John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. ``Trust region policy optimization'' (2015). arXiv:1502.05477. arXiv:1502.05477 [41] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. ``Proximal policy optimization algorithms'' (2017). arXiv:1707.06347. arXiv:1707.06347 [42] Giuseppe Carleo, Ignacio Cirac, Kyle Cranmer, Laurent Daudet, Maria Schuld, Naftali Tishby, Leslie Vogt-Maranto, and Lenka Zdeborová. ``Machine learning and the physical sciences''. Rev. Mod. Phys. 91, 045002 (2019). https:/​/​doi.org/​10.1103/​RevModPhys.91.045002 [43] Jacob Biamonte, Peter Wittek, Nicola Pancotti, Patrick Rebentrost, Nathan Wiebe, and Seth Lloyd. ``Quantum machine learning''. Nature 549, 195–202 (2017). https:/​/​doi.org/​10.1038/​nature23474 [44] Vedran Dunjko and Hans J. Briegel. ``Machine learning & artificial intelligence in the quantum domain: a review of recent progress''. Rep. Prog. Phys. 81, 074001 (2018). https:/​/​doi.org/​10.1088/​1361-6633/​aab406 [45] Mario Krenn, Manuel Erhard, and Anton Zeilinger. ``Computer-inspired quantum experiments''.

Nature Reviews Physics 2, 649–661 (2020). https:/​/​doi.org/​10.1038/​s42254-020-0230-4 [46] Mario Krenn, Mehul Malik, Robert Fickler, Radek Lapkiewicz, and Anton Zeilinger. ``Automated search for new quantum experiments''.

Physical Review Letters 116, 090405 (2016). https:/​/​doi.org/​10.1103/​physrevlett.116.090405 [47] Alexey A. Melnikov, Pavel Sekatski, and Nicolas Sangouard. ``Setting up experimental Bell tests with reinforcement learning''. Phys. Rev. Lett. 125, 160401 (2020). https:/​/​doi.org/​10.1103/​PhysRevLett.125.160401 [48] Mario Krenn, Jakob S. Kottmann, Nora Tischler, and Alán Aspuru-Guzik. ``Conceptual understanding through efficient automated design of quantum optical experiments''. Physical Review X 11, 031044 (2021). https:/​/​doi.org/​10.1103/​physrevx.11.031044 [49] X. Valcarce, P. Sekatski, E. Gouzien, A. Melnikov, and N. Sangouard. ``Automated design of quantum-optical experiments for device-independent quantum key distribution''. Phys. Rev. A 107, 062607 (2023). https:/​/​doi.org/​10.1103/​PhysRevA.107.062607 [50] B. S. Tsirel'son. ``Quantum analogues of the bell inequalities. the case of two spatially separated domains''. Journal of Soviet Mathematics 36, 557–570 (1987). https:/​/​doi.org/​10.1007/​BF01663472 [51] John S. Bell. ``EPR correlations and EPW distributions''. Annals of the New York Academy of Sciences 480, 263–266 (1986). https:/​/​doi.org/​10.1111/​j.1749-6632.1986.tb12429.x [52] Michael G. Jabbour and Jonatan Bohr Brask. ``Constructing local models for general measurements on bosonic Gaussian states''. Phys. Rev. Lett. 131, 110202 (2023). https:/​/​doi.org/​10.1103/​PhysRevLett.131.110202 [53] A. Kuzmich, I. A. Walmsley, and L. Mandel. ``Violation of Bell's inequality by a generalized Einstein-Podolsky-Rosen state using homodyne detection''. Phys. Rev. Lett. 85, 1349–1353 (2000). https:/​/​doi.org/​10.1103/​PhysRevLett.85.1349 [54] Mattia Walschaers. ``Non-Gaussian quantum states and where to find them''. PRX Quantum 2, 030204 (2021). https:/​/​doi.org/​10.1103/​PRXQuantum.2.030204 [55] Corentin Lanore, Federico Grasselli, and Xavier Valcarce. code: JuliaReinforcementLearning/​ReinforcementLearning.jl. https:/​/​github.com/​JuliaReinforcementLearning/​ReinforcementLearning.jl [56] Xavier Valcarce. code: xvalcarce/​QuantumOpticalCircuits.jl. https:/​/​github.com/​xvalcarce/​QuantumOpticalCircuits.jl [57] Jun Tian and other contributors. code: JuliaReinforcementLearning/​ReinforcementLearning.jl. https:/​/​github.com/​JuliaReinforcementLearning/​ReinforcementLearning.jl [58] Werner Vogel and Dirk‐Gunnar Welsch. ``Quantum optics''. Wiley. (2006). https:/​/​doi.org/​10.1002/​3527608524 [59] Stefano Pirandola, Alessio Serafini, and Seth Lloyd. ``Correlation matrices of two-mode bosonic systems''. Phys. Rev. A 79, 052327 (2009). https:/​/​doi.org/​10.1103/​PhysRevA.79.052327 [60] Jun Tian and other contributors (2020). code: JuliaReinforcementLearning/​ReinforcementLearning.jl commit:b4c9f40. https:/​/​github.com/​JuliaReinforcementLearning/​ReinforcementLearning.jl/​blob/​b4c9f404be5b921178fbee34f93a00dd143a829a/​src/​ReinforcementLearningZoo/​src/​algorithms/​policy_gradient/​ppo.jl [61] Nicolas Brunner, Nicolas Gisin, Valerio Scarani, and Christoph Simon. ``Detection loophole in asymmetric bell experiments''. Phys. Rev. Lett. 98, 220403 (2007). https:/​/​doi.org/​10.1103/​PhysRevLett.98.220403 [62] Adán Cabello and Jan-Åke Larsson. ``Minimum detection efficiency for a loophole-free atom-photon bell experiment''. Phys. Rev. Lett. 98, 220402 (2007). https:/​/​doi.org/​10.1103/​PhysRevLett.98.220402Cited byCould not fetch Crossref cited-by data during last attempt 2026-03-10 14:52:47: Could not fetch cited-by data for 10.22331/q-2026-03-10-2021 from Crossref. This is normal if the DOI was registered recently. Could not fetch ADS cited-by data during last attempt 2026-03-10 14:52:47: No response from ADS or unable to decode the received json data when getting the list of citing works.This Paper is published in Quantum under the Creative Commons Attribution 4.0 International (CC BY 4.0) license. Copyright remains with the original copyright holders such as the authors or their institutions.

Read Original

Tags

photonic-quantum
telecommunications
quantum-communication

Source Information

Source: Quantum Journal