Reuse & Permissions

It is not necessary to obtain permission to reuse this article or its components as it is available under the terms of the Creative Commons Attribution 4.0 International license. This license permits unrestricted use, distribution, and reproduction in any medium, provided attribution to the author(s) and the published article's title, journal citation, and DOI are maintained. Please note that some figures may have been included with permission from other third parties. It is your responsibility to obtain the proper permission from the rights holder directly for these figures.

Export citation

Export citation

Choose format for download:

Download Citation
  • Editors' Suggestion
  • Open Access

Efficient implementation of multicontrolled quantum gates

Ben Zindorf* and Sougato Bose

  • *Contact author: ben.zindorf.19@ucl.ac.uk

Phys. Rev. Applied 24, 044030 – Published 9 October, 2025

DOI: https://doi.org/10.1103/8blx-nfcr

Abstract

We present an implementation of multicontrolled (mc) quantum gates that provides significant reductions of cost compared to state-of-the-art methods. The operator applied on the target qubit is a unitary, special unitary, or the Pauli X operator (multicontrolled Toffoli), and requires one clean ancilla, no ancilla, or one dirty ancilla, respectively. We generalize our methods for any number of target qubits, and provide further cost reductions if additional ancilla qubits are available. For each type of mc gate, we provide implementations for unrestricted (all-to-all) connectivity and for linear-nearest-neighbor (LNN) connectivity. All of the methods use a linear cost of gates from the Clifford+T (fault-tolerant) set. In the context of LNN architecture, the cost and depth of our circuits scale linearly irrespective of the position of the qubits on which the gate is applied. Our methods directly improve the compilation process of many quantum algorithms, providing optimized circuits. Given the scale of our improvements, for example, the quadratic-to-linear controlled-not count for LNN, they will naturally result in a large reduction of errors.

View figure in article

Physics Subject Headings (PhySH)

Article Text

References (76)

  1. M. Lewis, S. Soudjani, and P. Zuliani, Matrix representation of arbitrarily controlled quantum gates, ArXiv:2205.02525.
  2. B. Ömer, Classical concepts in quantum programming, Int. J. Theor. Phys. 44, 943 (2005).
  3. A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. A. Smolin, and H. Weinfurter, Elementary gates for quantum computation, Phys. Rev. A 52, 3457 (1995).
  4. J. M. Arrazola, O. D. Matteo, N. Quesada, S. Jahangiri, A. Delgado, and N. Killoran, Universal quantum circuits for quantum chemistry, Quantum 6, 742 (2022).
  5. J. H. A. De Carvalho, and F. M. D. P. Neto, Parametrized constant-depth quantum neuron, IEEE Trans. Neural Networks Learn. Syst. , 1 (2024).
  6. X.-H. Ni, L.-X. Li, Y.-Q. Song, Z.-P. Jin, S.-J. Qin, and F. Gao, Progressive quantum algorithm for maximum independent set with quantum alternating operator ansatz, Chin. Phys. B 34, 070304 (2025).
  7. R. Iten, R. Colbeck, I. Kukuljan, J. Home, and M. Christandl, Quantum circuits for isometries, Phys. Rev. A 93, 032318 (2016).
  8. E. Malvetti, R. Iten, and R. Colbeck, Quantum circuits for sparse isometries, Quantum 5, 412 (2021).
  9. D. Grinko, A. Burchardt, and M. Ozols, Efficient quantum circuits for port-based teleportation, ArXiv:2312.03188.
  10. A. Tănăsescu, D. Constantinescu, and P. G. Popescu, Distribution of controlled unitary quantum gates towards factoring large numbers on today’s small-register devices, Sci. Rep. 12, 21310 (2022).
  11. D. K. Park, F. Petruccione, and J.-K. K. Rhee, Circuit-based quantum random access memory for classical data, Sci. Rep. 9, 3949 (2019).
  12. A. Peres, Reversible logic and quantum computers, Phys. Rev. A 32, 3266 (1985).
  13. L. K. Grover, Quantum mechanics helps in searching for a needle in a haystack, Phys. Rev. Lett. 79, 325 (1997).
  14. M. B. Ali, T. Hirayama, K. Yamanaka, and Y. Nishitani, Function design for minimum multiple-control Toffoli circuits of reversible adder/subtractor blocks and arithmetic logic units, IEICE Trans. Fundam. Electron. Commun. Comput. Sci. E101.A, 2231 (2018).
  15. A. Shafaei, M. Saeedi, and M. Pedram, Cofactor sharing for reversible logic synthesis, ACM J. Emerg. Technol. Comput. Syst. 11, 1 (2014).
  16. M. A. Nielsen, and I. L. Chuang, Quantum Computation and Quantum Information, 10th Anniversary Edition (Cambridge, England, 2010).
  17. V. V. Shende, S. S. Bullock, and I. L. Markov, in Proceedings of the 2005 Asia and South Pacific Design Automation Conference, ASP-DAC ’05 (Association for Computing Machinery, New York, NY, USA, 2005), p. 272.
  18. L. Isenhower, M. Saffman, and K. Mølmer, Multibit CkNOT quantum gates via Rydberg blockade, Quantum Inf. Process. 10, 755 (2011).
  19. D. Petrosyan, S. Norrell, C. Poole, and M. Saffman, Fast measurements and multiqubit gates in dual-species atomic arrays, Phys. Rev. A 110, 042404 (2024).
  20. S. Jandura, and G. Pupillo, Time-optimal two- and three-qubit gates for Rydberg atoms, Quantum 6, 712 (2022).
  21. M. AbuGhanem, IBM quantum computers: Evolution, performance, and future directions, J. Supercomput. 81, 687 (2025).
  22. M. AbuGhanem, Hardware-aware Toffoli gate decomposition via echoed cross-resonance gates, Quantum Studies: Math. Found. 12, 24 (2025).
  23. X. Xue, M. Russ, N. Samkharadze, B. Undseth, A. Sammak, G. Scappucci, and L. M. K. Vandersypen, Quantum logic with spin qubits crossing the surface code threshold, Nature 601, 343 (2022).
  24. S. Bravyi, and A. Kitaev, Universal quantum computation with ideal Clifford gates and noisy ancillas, Phys. Rev. A 71, 022316 (2005).
  25. M. A. Nielsen, and I. Chuang, Quantum computation and quantum information, Am. J. Phys. 70, 558 (2002).
  26. N. C. Jones, Ph.D. Thesis, Stanford University, California, 2013.
  27. M. Vasmer, and D. E. Browne, Three-dimensional surface codes: Transversal gates and fault-tolerant architectures, Phys. Rev. A 100, 012312 (2019).
  28. F. Butt, S. Heußen, M. Rispler, and M. Müller, Fault-tolerant code-switching protocols for near-term quantum processors, PRX Quantum 5, 020345 (2024).
  29. X. Cheng, Z. Guan, and W. Ding, Mapping from multiple-control Toffoli circuits to linear nearest neighbor quantum circuits, Quantum Inf. Process. 17, 169 (2018).
  30. D. Schoenberger, S. Hillmich, M. Brandl, and R. Wille, Shuttling for scalable trapped-ion quantum computers, IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 44, 2144 (2025).
  31. D. Bluvstein, S. J. Evered, A. A. Geim, S. H. Li, H. Zhou, T. Manovitz, S. Ebadi, M. Cain, M. Kalinowski, D. Hangleiter, J. P. Bonilla Ataides, N. Maskara, I. Cong, X. Gao, P. Sales Rodriguez, T. Karolyshyn, G. Semeghini, M. J. Gullans, M. Greiner, V. Vuletić, and M. D. Lukin, Logical quantum processor based on reconfigurable atom arrays, Nature 626, 58 (2024).
  32. M. Pedram, and A. Shafaei, Layout optimization for quantum circuits with linear nearest neighbor architectures, IEEE Circuits Syst. Mag. 16, 62 (2016).
  33. M. Saeedi, R. Wille, and R. Drechsler, Synthesis of quantum circuits for linear nearest neighbor architectures, Quantum Inf. Process. 10, 355 (2011).
  34. X. He, Z. Guan, and F. Ding, The mapping and optimization method of quantum circuits for Clifford + T gate, J. Appl. Math. Phys. 07, 2796 (2019).
  35. M. H. A. Khan, Cost reduction in nearest neighbour based synthesis of quantum Boolean circuits, Eng. Lett. 16, 1 (2008).
  36. M. Lukac, P. Kerntopf, and M. Kameyama, Optimization of LNN reversible circuits using an analytic sifting method, J. Circ. Syst. Comput. 30, 2150166 (2021).
  37. F. Ding, Z. Guau, and F. Ren, in 2019 IEEE 6th International Conference on Cloud Computing and Intelligence Systems (CCIS) (IEEE, Singapore, 2019), p. 73.
  38. C. Zhang, Z. Guan, Y. Qian, and S. Feng, in 2022 International Conference on Computing, Communication, Perception and Quantum Technology (CCPQT) (IEEE, Xiamen, China, 2022), p. 402.
  39. R. Vale, T. M. D. Azevedo, I. C. S. Araújo, I. F. Araujo, and A. J. da Silva, Circuit decomposition of multicontrolled special unitary single-qubit gates, IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 43, 802 (2024).
  40. Y. He, M.-X. Luo, E. Zhang, H.-K. Wang, and X.-F. Wang, Decompositions of n-qubit Toffoli gates with linear circuit complexity, Int. J. Theor. Phys. 56, 2350 (2017).
  41. S. Balauca, and A. Arusoaie, in Computational Science – ICCS 2022, Lecture Notes in Computer Science, edited by D. Groen, C. de Mulatier, M. Paszynski, V. V. Krzhizhanovskaya, J. J. Dongarra, and P. M. A. Sloot (Springer International Publishing, Cham, 2022), p. 179.
  42. D. Maslov, and M. Saeedi, Reversible circuit optimization via leaving the Boolean domain, IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 30, 806 (2011).
  43. A. Kole, and K. Datta, in 2017 30th International Conference on VLSI Design and 2017 16th International Conference on Embedded Systems (VLSID) (IEEE, Hyderabad, India, 2017), p. 289.
  44. Z. Sasanian, and D. M. Miller, in Proceedings of 2011 IEEE Pacific Rim Conference on Communications, Computers and Signal Processing (IEEE, Victoria, BC, Canada, 2011), p. 567.
  45. L. Biswal, C. Bandyopadhyay, R. Wille, R. Drechsler, and H. Rahaman, in 2016 29th International Conference on VLSI Design and 2016 15th International Conference on Embedded Systems (VLSID) (IEEE, Kolkata, India, 2016), p. 573.
  46. M. B. Ali, T. Hirayama, K. Yamanaka, and Y. Nishitani, in 2015 International Conference on Computational Science and Computational Intelligence (CSCI) (IEEE, Las Vegas, NV, USA, 2015), p. 59.
  47. P. Niemann, A. Gupta, and R. Drechsler, in 2019 IEEE 49th International Symposium on Multiple-Valued Logic (ISMVL) (IEEE, Fredericton, NB, Canada, 2019), p. 108.
  48. J. Leng, F. Yang, and X.-B. Wang, Decomposing (n+1)-qubit Toffoli gate with shallow circuit depth and no ancilla, Adv. Quantum Technol. 7, 2300370 (2024).
  49. N. Abdessaied, M. Amy, M. Soeken, and R. Drechsler, in 2016 IEEE 46th International Symposium on Multiple-Valued Logic (ISMVL) (IEEE, Sapporo, Japan, 2016), p. 150.
  50. V. V. Arsoski, Implementing multicontrolled X gates using the quantum Fourier transform, Quantum Inf. Process. 23, 305 (2024).
  51. V. V. Arsoski, Multi-controlled single-qubit unitary gates based on the quantum Fourier transform and deep decomposition, J. Supercomput. 81, 1202 (2025).
  52. A. Chakrabarti, and S. Sur, Nearest neighbour based synthesis of quantum Boolean circuits, Eng. Lett. 15, 356 (2007).
  53. D. M. Miller, R. Wille, and Z. Sasanian, in 2011 41st IEEE International Symposium on Multiple-Valued Logic (IEEE, Tuusula, Finland, 2011), p. 288.
  54. Y. Li, W. Liu, M. Li, and Y. Li, Quantum circuit compilation for nearest-neighbor architecture based on reinforcement learning, Quantum Inf. Process. 22, 295 (2023).
  55. Y.-y. Tan, X.-y. Cheng, Z.-j. Guan, Y. Liu, and H. Ma, Multi-strategy based quantum cost reduction of linear nearest-neighbor quantum circuit, Quantum Inf. Process. 17, 61 (2018).
  56. J. D. S. Silva, T. M. D. Azevedo, I. F. Araujo, and A. J. da Silva, Linear decomposition of approximate multicontrolled single qubit gates, IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 44, 1304 (2025).
  57. A. J. da Silva, and D. K. Park, Linear-depth quantum circuits for multiqubit controlled gates, Phys. Rev. A 106, 042602 (2022).
  58. M. Saeedi, and M. Pedram, Linear-depth quantum circuits for n-qubit Toffoli gates with no ancilla, Phys. Rev. A 87, 062318 (2013).
  59. C. Gidney, Constructing large controlled Nots, https://algassert.com/circuits/2015/06/05/Constructing-Large-Controlled-Nots.html.
  60. P. M. Q. Cruz, and B. Murta, Shallow unitary decompositions of quantum Fredkin and Toffoli gates for connectivity-aware equivalent circuit averaging, APL Quantum 1, 016105 (2024).
  61. J. Gwinner, M. Briański, W. Burkot, L. Czerwiński, and V. Hlembotskyi, Benchmarking 16-element quantum search algorithms on superconducting quantum processors, ArXiv:2007.06539.
  62. K. M. Nakanishi, T. Satoh, and S. Todo, Decompositions of multiple controlled-Z gates on various qubit-coupling graphs, Phys. Rev. A 110, 012604 (2024).
  63. K. M. Nakanishi, T. Satoh, and S. Todo, Quantum-gate decomposer, ArXiv:2109.13223.
  64. N. A. Nemkov, E. O. Kiktenko, I. A. Luchnikov, and A. K. Fedorov, Efficient variational synthesis of quantum circuits with coherent multi-start optimization, Quantum 7, 993 (2023).
  65. G. Song, and A. Klappenecker, Optimal realizations of controlled unitary gates, Quantum Inf. Comput. 3, 139 (2003).
  66. B. Zindorf, and S. Bose, All you need is pi: Quantum computing with Hermitian gates, ArXiv:2402.12356.
  67. S. Heußen, D. F. Locher, and M. Müller, Measurement-free fault-tolerant quantum error correction in near-term devices, PRX Quantum 5, 010333 (2024).
  68. B. Claudon, J. Zylberman, C. Feniou, F. Debbasch, A. Peruzzo, and J.-P. Piquemal, Polylogarithmic-depth controlled-NOT gates without ancilla qubits, Nat. Commun. 15, 5886 (2024).
  69. J. Nie, W. Zi, and X. Sun, Quantum circuit for multi-qubit Toffoli gate with optimal resource, ArXiv:2402.05053.
  70. C. Figgatt, A. Ostrander, N. M. Linke, K. A. Landsman, D. Zhu, D. Maslov, and C. Monroe, Parallel entangling operations on a universal ion-trap quantum computer, Nature 572, 368 (2019).
  71. J. Liu, M. Bowman, P. Gokhale, S. Dangwal, J. Larson, F. T. Chong, and P. D. Hovland, in 2023 IEEE International Symposium on Circuits and Systems (ISCAS) (IEEE, Monterey, CA, USA, 2023), p. 1.
  72. F. d. Meijer, D. Gijswijt, and R. Sotirov, Exploiting symmetries in optimal quantum circuit design, ArXiv:2401.08262.
  73. B. Giles, and P. Selinger, Exact synthesis of multiqubit Clifford+T circuits, Phys. Rev. A 87, 032332 (2013).
  74. D. Maslov, Advantages of using relative-phase Toffoli gates with an application to multiple control Toffoli optimization, Phys. Rev. A 93, 022311 (2016).
  75. D. Maslov, G. Dueck, and D. Miller, Toffoli network synthesis with templates, IEEE Trans. Comput.-Aided Des. Integr. Circuits Syst. 24, 807 (2005).
  76. D. Maslov, and B. Zindorf, Depth optimization of CZ, CNOT, and Clifford circuits, IEEE Trans. Quantum Eng. 3, 1 (2022).

Outline

Information

Sign In to Your Journals Account

Filter

Filter

Article Lookup

Enter a citation