- Open Access
Automated design of photonic two-qubit quantum gates and circuits via optimization and pruning
APS Open Sci. 1, 000115 – Published 31 August, 2026
DOI: https://doi.org/10.1103/xjrz-csmx
Abstract
We develop an algorithm to automatically design photonic gates and circuits that is based on a combination of optimization and pruning methods. It starts with a general ansatz for optical circuits with tunable parameters that are then subjected to optimization. The algorithm simplifies the final circuit by pruning its unnecessary elements following predefined criteria. We demonstrate the algorithm by producing both approximate and numerically exact implementations of the cnot gate and Deutsch-Jozsa, Grover, and Fourier transform two-qubit quantum circuits. All implementations of the different gates and circuits can be integrated into larger quantum information protocols.
Physics Subject Headings (PhySH)
Article Text
References (33)
- M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information (Cambridge University Press, Cambridge, UK, 2010).
- T. D. Ladd, F. Jelezko, R. Laflamme, Y. Nakamura, C. Monroe, and J. L. O’Brien, Quantum computers, Nature (London) 464, 45 (2010).
- J. Preskill, Quantum computing in the NISQ era and beyond, Quantum 2, 79 (2018).
- E. Knill, R. Laflamme, and G. J. Milburn, A scheme for efficient quantum computation with linear optics, Nature (London) 409, 46 (2001).
- C. R. Myers and R. Laflamme, Linear optics quantum computation: An overview, in Proceedings of the International School of Physics “Enrico Fermi”, edited by G. Casati, D. L. Shepelyansky, P. Zoller, and G. Benenti, Volume 162: Quantum Computers, Algorithms and Chaos (IOS Press / Sage Publishing, Amsterdam, The Netherlands, 2006), pp. 45–93.
- P. Kok, W. J. Munro, K. Nemoto, T. C. Ralph, J. P. Dowling, and G. J. Milburn, Linear optical quantum computing with photonic qubits, Rev. Mod. Phys. 79, 135 (2007).
- J. L. O’Brien, A. Furusawa, and J. Vučković, Photonic quantum technologies, Nat. Photon. 3, 687 (2009).
- T. C. Ralph and G. J. Pryde, Optical quantum computation, in Progress in Optics (Elsevier, 2010), Vol. 54, Chap. 4, pp. 209–269.
- J. L. O’Brien, Optical quantum computing, Science 318, 1567 (2007).
- Q. Zhang, M. Li, Y. Chen, X. Ren, R. Osellame, Q. Gong, and Y. Li, Femtosecond laser direct writing of an integrated path-encoded cnot quantum gate, Opt. Mater. Express 9, 2318 (2019).
- J. Wang, D. Bonneau, M. Villa, J. W. Silverstone, R. Santagati, S. Miki, T. Yamashita, M. Fujiwara, M. Sasaki, H. Terai, M. G. Tanner, C. M. Natarajan, R. H. Hadfield, J. L. O’Brien, and M. G. Thompson, Chip-to-chip quantum photonic interconnect by path-polarization interconversion, Optica 3, 407 (2016).
- G. J. Milburn, Quantum optical Fredkin gate, Phys. Rev. Lett. 62, 2124 (1989).
- W. R. Clements, P. C. Humphreys, B. J. Metcalf, W. S. Kolthammer, and I. A. Walmsley, Optimal design for universal multiport interferometers, Optica 3, 1460 (2016).
- S. A. Fldzhyan, M. Y. Saygin, and S. P. Kulik, Optimal design of error-tolerant reprogrammable multiport interferometers, Opt. Lett. 45, 2632 (2020).
- J. Eisert, Optimizing linear optics quantum gates, Phys. Rev. Lett. 95, 040502 (2005).
- M. Krenn, J. S. Kottmann, N. Tischler, and A. Aspuru-Guzik, Conceptual understanding through efficient automated design of quantum optical experiments, Phys. Rev. X 11, 031044 (2021).
- M. Krenn, M. Malik, R. Fickler, R. Lapkiewicz, and A. Zeilinger, Automated search for new quantum experiments, Phys. Rev. Lett. 116, 090405 (2016).
- Stochastic optical quantum circuit simulator (SOQCS), GitHub, 2023, https://github.com/SOQCSAdmin/SOQCS, accessed: 15 August 2013.
- J. Osca and J. Vala, SOQCS: A stochastic optical quantum circuit simulator, SoftwareX 25, 101603 (2024).
- S. Khatri, R. LaRose, A. Poremba, L. Cincio, A. T. Sornborge, and P. J. Coles, Quantum-assisted quantum compiling, Quantum 3, 140 (2019).
- L. Madden and A. Simonetto, Best approximate quantum compiling problems, ACM Trans. Quantum Comput. 3, 1 (2022).
- X. Qiang, X. Zhou, J. Wang, C. M. Wilkes, T. Loke, S. O’Gara, L. Kling, G. D. Marshall, R. Santagati, T. C. Ralph, J. B. Wang, J. L. O’Brien, M. G. Thompson, and J. C. F. Matthews, Large-scale silicon quantum photonics implementing arbitrary two-qubit processing, Nat. Photon. 12, 534 (2018).
- X. Gao, M. Erhard, A. Zeilinger, and M. Krenn, Computer-inspired concept for high-dimensional multipartite quantum gates, Phys. Rev. Lett. 125, 050501 (2020).
- T. C. Ralph, N. K. Langford, T. B. Bell, and A. G. White, Linear optical controlled-NOT gate in the coincidence basis, Phys. Rev. A 65, 062324 (2002).
- J. L. O’Brien, G. J. Pryde, A. G. White, T. C. Ralph, and D. Branning, Demonstration of an all-optical quantum controlled-NOT gate, Nature (London) 426, 264 (2003).
- C. Zhu, R. H. Byrd, P. Lu, and J. Nocedal, Algorithm 778: L-BFGS-B: Fortran subroutines for large-scale bound-constrained optimization, ACM Trans. Math. Software 23, 550 (1997).
- E. Knill, Approximation by quantum circuits, arXiv:quant-ph/9508006.
- P. Lundow and K. Markström, Efficient computation of permanents, with applications to boson sampling and random matrices, J. Comput. Phys. 455, 110990 (2022).
- E. Knill, Quantum gates using linear optics and postselection, Phys. Rev. A 66, 052306 (2002).
- D. David and J. Richard, Rapid solution of problems by quantum computation, Proc. R. Soc. London A 439, 553 (1992).
- L. K. Grover, in Proceedings of the 28th Annual ACM Symposium on Theory of Computing, STOC ’96 (Association for Computing Machinery, New York, 1996), pp. 212–219.
- P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, SIAM J. Comput. 26, 1484 (1997).
- M. Treinish, J. Lishman, L. Bello, J. Gambetta, D. M. Rodríguez, M. Marques, J. Gacon, P. Nation, C. J. Wood, Ewinston, et al., Qiskit/qiskit: Qiskit 2.3.0, https://www.ibm.com/quantum/qiskit, accessed: 1 December 2025.