IP Library Granted Patent US 12,307,176
Granted Patent B2
US 12,307,176 · App. 17/532,273 · Granted May 20, 2025

System and method for reducing CNOT count in Clifford+T circuits on connectivity constrained architectures

Inventors: Michele Mosca (Waterloo, CA); Priyanka Mukhopadhyay (Waterloo, CA); Vlad Gheorghiu (Kitchener, CA)
Assignee: softwareQ Inc.
G06F30/327G06N10/00
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,307,176
App. No.
17/532,273
Granted
May 20, 2025
Kind
B2
Abstract

The present application recognizes the problem of reducing the CNOT-count in Clifford+T circuits on connectivity constrained architectures. Here, one can “slice” the circuit at the position of Hadamard (H) gates and “build” the intermediate portions. Two kinds of partitioning are evaluated, namely: (i) a simple method of partitioning the gates of the input circuit based on the locality of H gates, and (ii) a second method of partitioning the phase polynomial of the input circuit. The intermediate {CNOT, T} sub-circuits can be synthesized using Steiner trees, similar to the work of Nash, Gheorghiu, Mosca [NGM20] and Kissinger, de Griend [KdG19]. The following algorithms have certain procedural differences that also help to further reduce the CNOT-count. The performances of the algorithms are compared while mapping different benchmark circuits as well as random circuits to some popular architectures like 9-qubit square grid, 16-qubit square grid, Rigetti 16qubit Aspen, 16-qubit IBM QX5, 20-qubit IBM Tokyo.

Claims (42)

1. A method of partitioning gates of circuits based on the locality of H gates in the circuits, comprising:

partitioning gates of an input circuit according to positions of H gates in the input circuit to obtain a plurality of partitioned circuits;

generating a phase polynomial of each of the partitioned circuits; and

reconstructing an output circuit from the partitioned circuits for which phase Polynomials have been generated, while maintaining connectivity constraints.

2. The method of claim 1 , wherein a linear transformation is determined for each of the partitioned circuits.

3. The method of claim 2 , further comprising determining that an overall linear transformation of the output circuit maps to a final output.

4. The method of claim 1 , further comprising applying a series of transformations such that each parity term occurs at least once in the output circuit.

5. The method of claim 4 , wherein the series of transformations comprise CNOT gates.

6. The method of claim 1 , further comprising imposing connectivity constraints by constructing Steiner trees with terminals being a set of qubits or vertices satisfying certain conditions.

7. The method of claim 1 , further comprising determining edge information and performing a series of CNOT operations to get a desired result according to the edge information.

8. The method of claim 1 , wherein a set of gates that is partitioned corresponds to the phase polynomial of the entire circuit.

9. The method of claim 8 , wherein between two H gates a phase polynomial network circuit is synthesized using gates in the circuit that realize a partial phase polynomial, including terms in the polynomial network that become incomputable after the H gate being placed at an end of the current slice.

10. The method of claim 1 , comprising synthesizing CNOT+Rz circuits using Steiner trees by:

computing a Steiner tree according to Steiner rows and terminal rows;

for each root to leaf path, flipping the role of the root and leaf, such that parity gets accumulated at the root; and

adding up the parities to obtain a desired parity, wherein a matrix is changed according to the unflipped leaf and root to reflect changes due to position of CNOT gates.

11. The method of claim 1 , wherein while synthesizing CNOT+X circuits:

(a) reducing to upper triangle, wherein at least one CNOT is not used to unnecessarily eliminate parities of terminal rows; and

(b) transposing and reducing again to upper triangle without disturbing the zeros in the now lower triangle, wherein the template or recursive procedures are not used, information about the errant rows is obtained from Steiner trees already constructed, and correction procedures are used to correct these rows.

12. A system comprising a processor and memory, the memory comprising computer executable instructions that when executed by the processor cause the system to partition gates of input circuits based on the locality of H gates in the circuits by:

partitioning gates of an input circuit according to positions of H gates in the input circuit to obtain a plurality of partitioned circuits;

generating a phase polynomial of each of the partitioned circuits; and

reconstructing an output circuit from the partitioned circuits for which phase Polynomials have been generated, while maintaining connectivity constraints.

13. The system of claim 12 , wherein a linear transformation is determined for each of the partitioned circuits.

14. The system of claim 13 , further comprising instructions for determining that an overall linear transformation of the output circuit maps to a final output.

15. System of claim 12 , further comprising instructions for applying a series of transformations such that each parity term occurs at least once in the output circuit.

16. The system of claim 15 , wherein the series of transformations comprise CNOT gates.

17. The system of claim 12 , further comprising instructions for imposing connectivity constraints by constructing Steiner trees with terminals being a set of qubits or vertices satisfying certain conditions.

18. The system of claim 12 , further comprising instructions for determining edge information and performing a series of CNOT operations to get a desired result according to the edge information.

19. The system of claim 12 , wherein a set of gates that is partitioned corresponds to the phase polynomial of the entire circuit.

20. The system of claim 19 , wherein between two H gates a phase polynomial network circuit is synthesized using gates in the circuit that realize a partial phase polynomial, including terms in the polynomial network that become incomputable after the H gate being placed at an end of the current slice.

21. The system of claim 12 , comprising instructions for synthesizing CNOT+Rz circuits using Steiner trees by:

computing a Steiner tree according to Steiner rows and terminal rows;

for each root to leaf path, flipping the role of the root and leaf, such that parity gets accumulated at the root; and

adding up the parities to obtain a desired parity, wherein a matrix is changed according to the unflipped leaf and root to reflect changes due to position of CNOT gates.

22. The system of claim 12 , comprising instructions for, while synthesizing CNOT+X circuits:

(a) reducing to upper triangle, wherein at least one CNOT is not used to unnecessarily eliminate parities of terminal rows; and

(b) transposing and reducing again to upper triangle without disturbing the zeros in the now lower triangle, wherein the template or recursive procedures are not used, information about the errant rows is obtained from Steiner trees already constructed, and correction procedures are used to correct these rows.

23. A non-transitory computer readable medium comprising computer executable instructions for partitioning gates of input circuits based on the locality of H gates in the circuits, comprising instructions for:

partitioning gates of an input circuit according to positions of H gates in the input circuit to obtain a plurality of partitioned circuits;

generating a phase polynomial of each of the partitioned circuits; and

reconstructing an output circuit from the partitioned circuits for which phase Polynomials have been generated, while maintaining connectivity constraints.

Assignments (2)
NUNC PRO TUNC ASSIGNMENT Recorded Apr 22, 2025
From: MOSCA, MICHELE
To: SOFTWAREQ INC.
Reel/Frame 070913/0732 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 22, 2021
From: MUKHOPADHYAY, PRIYANKA; GHEORGHIU, VLAD
To: MOSCA, MICHELE
Reel/Frame 058181/0811 →
Continuity (2)
Provisional Application 63198930 · Nov 23, 2020
Related Publication 20220164505A1 · May 26, 2022
References Cited (62)
US 2632058A · Gray · 1953 [cited by applicant]
US 20210406755A1 · Martiel · 2021 [cited by examiner]
Matthew et al. (Polynomial-time T-depth Optimization of Clifford+T circuits via Matroid Partitioning, Institute for Quantum Computing , and Dept. of Combinatorics & Optimization, University of Waterloo, Ontario, Canada,… [cited by examiner]
Matthew Amy, Parsiad Azimzadeh, and Michele Mosca. On the controlled-not complexity of controlled-not-phase circuits. Quantum Science and Technology, 4(1):015002, 2018. [cited by applicant]
Scott Aaronson and Daniel Gottesman. Improved simulation of stabilizer circuits.Physical Review A, 70(5):052328, 2004. [cited by applicant]
Matthew Amy, Dmitri Maslov, and Michele Mosca. Polynomial-time t-depth optimization of clifford+ t circuits via matroid partitioning. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 33(10)… [cited by applicant]
Matthew Amy, Dmitri Maslov, Michele Mosca, and Martin Roetteler. A meet-in-the-middle algorithm for fast synthesis of depth-optimal quantum circuits. IEEE Transactions on Computer-Aided Design of Integrated Circuits and… [cited by applicant]
Debjyoti Bhattacharjee and Anupam Chattopadhyay. Depth-optimal quantum circuit placement for arbitrary topologies. arXiv preprint arXiv:1703.08540, 2017. [cited by applicant]
Jaroslaw Byrka, Fabrizio Grandoni, Thomas Rothvoss, and Laura Sanità. Steiner tree approximation via iterative randomized rounding. Journal of the ACM (JACM), 60(1):1-33, 2013. [cited by applicant]
CJ Ballance, TP Harty, NM Linke, MA Sepiol, and DM Lucas. High-fidelity quantum logic gates using trapped-ion hyperfine qubits. Physical review letters, 117(6):060504, 2016. [cited by applicant]
Stephen Brierley. Efficient implementation of quantum circuits with limited qubit interactions. Quantum Information & Computation, 17(13-14):1096-1104, 2017. [cited by applicant]
Joseph W Britton, Brian C Sawyer, Adam C Keith, C-C Joseph Wang, James Freericks, Hermann Uys, Michael J Biercuk, and John J Bollinger. Engineered twodimensional ising interactions in a trapped-ion quantum simulator wit… [cited by applicant]
Alexander Cowtan, Silas Dilkes, Ross Duncan, Alexandre Krajenbrink, Will Simmons, and Seyon Sivarajah. On the qubit routing problem. arXiv preprint arXiv:1902.08091, 2019. [cited by applicant]
Amlan Chakrabarti, Susmita Sur-Kolay, and Ayan Chaudhury. Linear neighbor synthesis of reversible circuits by graph partitioning. arXiv:1112.0564, 2011. [cited by applicant]
Timothée Goubault de Brugiére, Marc Baboulin, Benoft Valiron, Simon Martiel, and Cyril Allouche. Quantum cnot circuits synthesis for nisq architectures using the syndrome decoding problem. In International Conference on… [cited by applicant]
Christopher M Dawson, Andrew P Hines, Duncan Mortimer, Heny L Haselgrove, Michael A Nielsen, and Tobias J Osborne. Quantum computing and polynomial equations over the finite field z2. Quantum Information & Computation, … [cited by applicant]
Davide Ferrari and Michele Amoretti. Demonstration of envariance and parity learning on the ibm 16 qubit processor. arXiv preprint arXiv:1801.02363, 2018. [cited by applicant]
Richard P Feynman. Simulating physics with computers. Int. J. Theor. Phys, 21(6/7), 1982. [cited by applicant]
Gray Frank. Pulse code communication, Mar. 17, 1953. U.S. Pat. No. 2,632,058. [cited by applicant]
Daniel Gottesman. The heisenberg representation of quantum computers. ArXiv preprint quant-ph/9807006, 1998. [cited by applicant]
John P Gaebler, Ting Rei Tan, Y Lin, Y Wan, R Bowler, Adam C Keith, S Glancy, K Coakley, E Knill, D Leibfried, et al. High-fidelity universal gate set for be 9+ ion qubits. Physical review letters, 117(6):060505, 2016. [cited by applicant]
Yuichi Hirata, Masaki Nakanishi, Shigeru Yamashita, and Yasuhiko Nakashima. An efficient conversion of quantum circuits to a linear nearest neighbor architecture. Quantum Information and Computation, 11(1):142, 2011. [cited by applicant]
WK Hensinger, S Olmschenk, D Stick, D Hucul, M Yeo, M Acton, L Deslauriers, C Monroe, and J Rabchuk. T-junction ion trap array for two-dimensional ion shuttling, storage, and manipulation. Applied Physics Letters, 88(3)… [cited by applicant]
Frank K Hwang and Dana S Richards. Steiner tree problems. Networks, 22(1):55-89, 1992. [cited by applicant]
Kazuo Iwama, Yahiko Kambayashi, and Shigeru Yamashita. Transformation rules for designing cnot-based quantum circuits. In Proceedings of the 39th annual Design Automation Conference, pp. 419-424, 2002. [cited by applicant]
Toshinari Itoko, Rudy Raymond, Takashi Imamichi, Atsushi Matsuo, and Andrew W Cross. Quantum circuit compilers using gate commutation rules. In Proceedings of the 24th Asia and South Pacific Design Automation Conference… [cited by applicant]
Toshinari Itoko, Rudy Raymond, Takashi Imamichi, and Atsushi Matsuo. Optimization of quantum circuit mapping using gate transformation and commutation. Integration, 70:43-50, 2020. [cited by applicant]
Richard M Karp. Reducibility among combinatorial problems. In Complexity of computer computations, pp. 85-103. Springer, 1972. [cited by applicant]
Aleks Kissinger and Arianne Meijer-van de Griend. Cnot circuit extraction for topologically-constrained quantum memories. arXiv preprint arXiv:1904.00633, 2019. [cited by applicant]
Dax E Koh, Mark D Penney, and Robert W Spekkens. Computing quopit clifford circuit amplitudes by the sum-over-paths technique. Quantum Information & Computation, 17(13-14):1081-1095, 2017. [cited by applicant]
Joseph B Kruskal. On the shortest spanning subtree of a graph and the traveling salesman problem. Proceedings of the American Mathematical society, 7(1):48-50, 1956. [cited by applicant]
Prakash Murali, Jonathan M Baker, Ali Javadi-Abhari, Frederic T Chong, and Margaret Martonosi. Noise-adaptive compiler mappings for noisy intermediate-scale quantum computers. In Proceedings of the Twenty-Fourth Interna… [cited by applicant]
Prakash Murali, Ali Javadi-Abhari, Frederic T Chong, and Margaret Martonosi. Formal constraint-based compilation for noisy intermediate-scale quantum systems. Microprocessors and Microsystems, 66:102-112, 2019. [cited by applicant]
Ashley Montanaro. Quantum circuits and low-degree polynomials over. Journal of Physics A: Mathematical and Theoretical, 50(8):084002, 2017. [cited by applicant]
Atsushi Matsuo and Shigeru Yamashita. Changing the gate order for optimal Inn conversion. In International Workshop on Reversible Computation, pp. 89-101. Springer, 2011. [cited by applicant]
Beatrice Nash, Vlad Gheorghiu, and Michele Mosca. Quantum circuit optimizations for nisq architectures. Quantum Science and Technology, 5(2):025010, 2020. [cited by applicant]
Ryan O'Donnell. Analysis of boolean functions. Cambridge University Press, 2014. [cited by applicant]
Alexandru Paler. On the influence of initial qubit placement during nisq circuit compilation. In International Workshop on Quantum Technology and Optimization Problems, pp. 207-217. Springer, 2019. [cited by applicant]
Ketan N Patel, Igor L Markov, and John P Hayes. Optimal synthesis of linear reversible circuits. Quantum Information & Computation, 8(3):282-294, 2008. [cited by applicant]
John Preskill. Quantum computing in the nisq era and beyond. Quantum, 2:79, 2018. [cited by applicant]
Massoud Pedram and Alireza Shafaei. Layout optimization for quantum circuits with linear nearest neighbor architectures. IEEE Circuits and Systems Magazine, 16(2):62-74, 2016. [cited by applicant]
Alexandru Paler, Alwin Zulehner, and Robert Wille. Nisq circuit compilers: search space structure and heuristics. arXiv preprint arXiv:1806.07241, 2018. [cited by applicant]
Daniel Ruffinelli and Benjamín Barán. Linear nearest neighbor optimization in quantum circuits: a multiobjective perspective. Quantum Information Processing, 16(9):220, 2017. [cited by applicant]
Md Mazder Rahman and Gerhard W Dueck. Synthesis of linear nearest neighbor quantum circuits. arXiv preprint arXiv:1508.05430, 2015. [cited by applicant]
Matthew Reagor, Christopher B Osborn, Nikolas Tezak, Alexa Staley, Guenevere Prawiroatmodjo, Michael Scheer, Nasser Alidoust, Eyob A Sete, Nicolas Didier, Marcus P da Silva, et al. Demonstration of universal parametric … [cited by applicant]
Victor J Rayward-Smith and A Clare. 16(3):283-294, 1986. [cited by applicant]
Gabriel Robins and Alexander Zelikovsky. Tighter bounds for graph steiner tree approximation. SIAM Journal on Discrete Mathematics, 19(1):122-134, 2005. [cited by applicant]
Afshin Sadeghi and Holger Fröhlich. Steiner tree methods for optimal sub-network identification: an empirical study. BMC bioinformatics, 14(1):144, 2013. [cited by applicant]
Peter W Shor. Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer. SIAM review, 41(2):303-332, 1999. [cited by applicant]
Vivek V Shende and Igor L Markov. On the cnot-cost of toffoli gates. Quantum Information & Computation, 9(5):461-486, 2009. [cited by applicant]
Vivek V Shende, Aditya K Prasad, Igor L Markov, and John P Hayes. Reversible logic circuit synthesis. In Proceedings of the 2002 IEEE/ACM international conference on Computer-aided design, pp. 353-360, 2002. [cited by applicant]
Marcos Yukio Siraichi, Vinícius Fernandes dos Santos, Sylvain Collange, and Fernando Magno Quintão Pereira. Qubit allocation. In Proceedings of the 2018 International Symposium on Code Generation and Optimization, pp. 1… [cited by applicant]
Alireza Shafaei, Mehdi Saeedi, and Massoud Pedram. Optimization of quantum circuits for interaction distance in linear nearest neighbor architectures. In 2013 50th ACM/EDAC/IEEE Design Automation Conference (DAC), pp. 1… [cited by applicant]
Alireza Shafaei, Mehdi Saeedi, and Massoud Pedram. Qubit placement to minimize communication overhead in 2d quantum architectures. In 2014 19th Asia and South Pacific Design Automation Conference (ASP-DAC), pp. 495-500.… [cited by applicant]
Mehdi Saeedi, Robert Wille, and Rolf Drechsler. Synthesis of quantum circuits for linear nearest neighbor architectures. Quantum Information Processing, 10(3):355-377, 2011. [cited by applicant]
Davide Venturelli, Minh Do, Eleanor Rieffel, and Jeremy Frank. Compiling quantum circuits to realistic hardware architectures using temporal planners. Quantum Science and Technology, 3(2):025004, 2018. [cited by applicant]
Richard Versluis, Stefano Poletto, Nader Khammassi, Brian Tarasinski, Nadia Haider, David J Michalak, Alessandro Bruno, Koen Bertels, and Leonardo DiCarlo. Scalable quantum circuit and control for a superconducting surf… [cited by applicant]
SM Wang. A multiple source algorithm for suboptimum steiner trees in graphs. In Proc. International Workshop on Graphtheoretic Concepts in Computer Science (H. Noltemeier, ed.), Trauner, Wurzburg, pp. 387-396, 1985. [cited by applicant]
Robert Wille, Lukas Burgholzer, and Alwin Zulehner. Mapping quantum circuits to ibm qx architectures using the minimal number of swap and h operations. In 2019 56th ACM/IEEE Design Automation Conference (DAC), pp. 1-6. … [cited by applicant]
Jonathan Welch, Daniel Greenbaum, Sarah Mostame, and Alán Aspuru-Guzik. Efficient quantum circuits for diagonal unitaries without ancillas. New Journal of Physics, 16(3):033040, 2014. [cited by applicant]
Robert Wille, Oliver Keszocze, Marcel Walter, Patrick Rohrs, Anupam Chattopadhyay, and Rolf Drechsler. Look-ahead schemes for nearest neighbor optimization of 1d and 2d quantum circuits. In 2016 21st Asia and South Paci… [cited by applicant]
Alwin Zulehner, Alexandru Paler, and Robert Wille. An efficient methodology for mapping quantum circuits to the ibm qx architectures. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 38(7):… [cited by applicant]