Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3508352.3549405acmconferencesArticle/Chapter ViewAbstractPublication PagesiccadConference Proceedingsconference-collections
research-article

QCIR: Pattern Matching Based Universal Quantum Circuit Rewriting Framework

Published: 22 December 2022 Publication History

Abstract

Due to multiple limitations of quantum computers in the NISQ era, quantum compilation efforts are required to efficiently execute quantum algorithms on NISQ devices Program rewriting based on pattern matching can improve the generalization ability of compiler optimization. However, it has rarely been explored for quantum circuit optimization, further considering physical features of target devices.
In this paper, we propose a pattern-matching based quantum circuit optimization framework QCIR with a novel pattern description format, enabling the user-configured cost model and two categories of patterns, i.e., generic patterns and folding patterns. To get better compilation latency, we propose a DAG representation of quantum circuit called QCir-DAG, and QVF algorithm for subcircuit matching. We implement continuous single-qubit optimization pass constructed by QCIR, achieving 10% and 20% optimization rate for benchmarks from Qiskit and ScaffCC, respectively. The practicality of QCIR is demonstrated by execution time and experimental results on the quantum simulator and quantum devices.

References

[1]
Originqc. https://www.originqc.com.cn/.
[2]
Ibm q. https://www.research.ibm.com/ibm-q/, cited in Jan. 2019.
[3]
Nabila Abdessaied, Matthias Soeken, Robert Wille, and Rolf Drechsler. Exact template matching using boolean satisfiability. In 2013 IEEE 43rd International Symposium on Multiple-Valued Logic, pages 328--333. IEEE, 2013.
[4]
Ali Javadi Abhari, Shruti Patil, Daniel Kudrow, Jeff Heckey, Alexey Lvov, Frederic T. Chong, and Margaret Martonosi. ScaffCC: A framework for compilation and analysis of quantum computing programs. In 11th CF, pages 1:1--1:10, New York, NY, USA, 2014. ACM.
[5]
JavadiAbhari Ali, Nation Paul, and Gambetta Jay. Qiskit - write once, target multiple architectures. IBM Research Blog, https://www.ibm.com/blogs/research/2019/11/qiskit-for-multiple-architectures/, November 2019.
[6]
Frank Arute, Kunal Arya, et al. Quantum supremacy using a programmable superconducting processor. Nature, 574:505--510, 2019.
[7]
Amazon Braket. Azure Quantum - Quantum Service: Microsoft Azure. https://azure.microsoft.com/en-us/services/quantum/, Accessed May. 2022.
[8]
H-J Briegel, Tommaso Calarco, Dieter Jaksch, Juan Ignacio Cirac, and Peter Zoller. Quantum computing with neutral atoms. Journal of modern optics, 47(2--3):415--451, 2000.
[9]
A. Chi-Chih Yao. Quantum circuit complexity. In Proceedings of 1993 IEEE 34th Annual Foundations of Computer Science, pages 352--361, 1993.
[10]
Luigi P Cordella, Pasquale Foggia, Carlo Sansone, and Mario Vento. A (sub) graph isomorphism algorithm for matching large graphs. IEEE transactions on pattern analysis and machine intelligence, 26(10):1367--1372, 2004.
[11]
Andrew W. Cross, Lev S. Bishop, John A. Smolin, and Jay M. Gambetta. Open quantum assembly language. arXiv:1707.03429, 2017.
[12]
S. Debnath, N. M. Linke, C. Figgatt, K. A. Landsman, K. Wright, and C. Monroe. Demonstration of a small programmable quantum computer with atomic qubits. Nature, 536:63--66, 2016.
[13]
Haowei Deng, Yu Zhang, and Quanxi Li. Codar: a contextual duration-aware qubit mapping for various NISQ devices. In 2020 57th ACM/IEEE Design Automation Conference (DAC), pages 1--6. IEEE, 2020.
[14]
Simon J. Devitt. Performing quantum computing experiments in the cloud. 94, 2016.
[15]
IBM. QISKit. https://qiskit.org/, visited in Jan 2019.
[16]
Raban Iten, Romain Moyard, Tony Metger, David Sutter, and Stefan Woerner. Exact and practical pattern matching for quantum circuit optimization. ACM Transactions on Quantum Computing, 3(1), jan 2022.
[17]
Kazuo Iwama, Yahiko Kambayashi, and Shigeru Yamashita. Transformation rules for designing cnot-based quantum circuits. In Proceedings of the 39th annual Design Automation Conference, pages 419--424, 2002.
[18]
Sangil Kwon, Akiyoshi Tomonaga, Gopika Lakshmi Bhai, Simon J Devitt, and Jaw-Shen Tsai. Gate-based superconducting quantum computing. Journal of Applied Physics, 129(4):041102, 2021.
[19]
Gushu Li, Yufei Ding, and Yuan Xie. Tackling the qubit mapping problem for NISQ-era quantum devices. In Proceedings of the Twenty-Fourth International Conference on Architectural Support for Programming Languages and Operating Systems, pages 1001--1014, 2019.
[20]
Chris Lomont. Quantum circuit identities. arXiv preprint quant-ph/0307111, 2003.
[21]
Dmitri Maslov. Advantages of using relative-phase toffoli gates with an application to multiple control toffoli optimization. Physical Review A, 93(2):022311, 2016.
[22]
Giulia Meuli, Mathias Soeken, and Giovanni De Micheli. Xor-and-inverter graphs for quantum compilation. npj Quantum Information, 8(1):1--11, 2022.
[23]
D Michael Miller, Dmitri Maslov, and Gerhard W Dueck. A transformation based algorithm for reversible logic synthesis. In Proceedings 2003. design automation conference (ieee cat. no. 03ch37451), pages 318--323. IEEE, 2003.
[24]
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 International Conference on Architectural Support for Programming Languages and Operating Systems, pages 1015--1029, 2019.
[25]
Prakash Murali, Norbert Matthias Linke, Margaret Martonosi, Ali Javadi Abhari, Nhung Hong Nguyen, and Cinthia Huerta Alderete. Full-stack, real-system quantum computer studies: architectural comparisons and design insights. In Proceedings of the 46th International Symposium on Computer Architecture, pages 527--540, 2019.
[26]
Prakash Murali, David C McKay, Margaret Martonosi, and Ali Javadi-Abhari. Software mitigation of crosstalk on noisy intermediate-scale quantum computers. In Proceedings of the Twenty-Fifth International Conference on Architectural Support for Programming Languages and Operating Systems, pages 1001--1016, 2020.
[27]
Yun Seong Nam, Neil J Ross, Yuan Su, Andrew M Childs, and Dmitri Maslov. Automated optimization of large quantum circuits with continuous parameters. npj Quantum Information, 4(1):23, 2018.
[28]
T. Nguyen and A. Mccaskey. Enabling pulse-level programming, compilation, and execution in XACC. IEEE Transactions on Computers, pages 1:1--14, 2021.
[29]
Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J Love, Alán Aspuru-Guzik, and Jeremy L O'brien. A variational eigenvalue solver on a photonic quantum processor. Nature communications, 5:4213, 2014.
[30]
Md Mazder Rahman, Gerhard W Dueck, and Joseph D Horton. An algorithm for quantum template matching. ACM Journal on Emerging Technologies in Computing Systems (JETC), 11(3):1--20, 2014.
[31]
Seyon Sivarajah, Silas Dilkes, Alexander Cowtan, Will Simmons, Alec Edgington, and Ross Duncan. t|ket>: A retargetable compiler for NISQ devices. Quantum Science and Technology, 6(1):014003, 2021.
[32]
IBM Q team. IBM Q Eagle Quantum Processor. https://research.ibm.com/blog/127-qubit-quantum-processor-eagle, 2021.
[33]
James D Whitfield, Jacob Biamonte, and Alán Aspuru-Guzik. Simulation of electronic structure hamiltonians using quantum computers. Molecular Physics, 109(5):735--750, 2011.

Cited By

View all

Index Terms

  1. QCIR: Pattern Matching Based Universal Quantum Circuit Rewriting Framework
        Index terms have been assigned to the content through auto-classification.

        Recommendations

        Comments

        Information & Contributors

        Information

        Published In

        cover image ACM Conferences
        ICCAD '22: Proceedings of the 41st IEEE/ACM International Conference on Computer-Aided Design
        October 2022
        1467 pages
        ISBN:9781450392174
        DOI:10.1145/3508352
        Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

        Sponsors

        In-Cooperation

        • IEEE-EDS: Electronic Devices Society
        • IEEE CAS
        • IEEE CEDA

        Publisher

        Association for Computing Machinery

        New York, NY, United States

        Publication History

        Published: 22 December 2022

        Permissions

        Request permissions for this article.

        Check for updates

        Author Tags

        1. circuit optimization
        2. pattern matching
        3. quantum computing

        Qualifiers

        • Research-article

        Funding Sources

        • Fundamental Research Funds for the Central Universities
        • Innovation Program for Quantum Science and Technology

        Conference

        ICCAD '22
        Sponsor:
        ICCAD '22: IEEE/ACM International Conference on Computer-Aided Design
        October 30 - November 3, 2022
        California, San Diego

        Acceptance Rates

        Overall Acceptance Rate 457 of 1,762 submissions, 26%

        Contributors

        Other Metrics

        Bibliometrics & Citations

        Bibliometrics

        Article Metrics

        • Downloads (Last 12 months)50
        • Downloads (Last 6 weeks)2
        Reflects downloads up to 11 Jan 2025

        Other Metrics

        Citations

        Cited By

        View all

        View Options

        Login options

        View options

        PDF

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader

        Media

        Figures

        Other

        Tables

        Share

        Share

        Share this Publication link

        Share on social media