AI Chat Paper
Note: Please note that the following content is generated by AMiner AI. SciOpen does not take any responsibility related to this content.
{{lang === 'zh_CN' ? '文章概述' : 'Summary'}}
{{lang === 'en_US' ? '中' : 'Eng'}}
Chat more with AI
Article Link
Collect
Submit Manuscript
Show Outline
Outline
Show full outline
Hide outline
Outline
Show full outline
Hide outline
Regular Paper

A Pattern Matching Based Framework for Quantum Circuit Rewriting

Shanghai Key Laboratory of Trustworthy Computing, East China Normal University, Shanghai 200062, China
Show Author Information

Abstract

The realization of quantum algorithms relies on specific quantum compilations according to the underlying quantum processors. However, there are various ways to physically implement qubits and manipulate those qubits in different physical devices. These differences lead to different communication methods and connection topologies, with each vendor implementing its own set of primitive gates. Therefore, quantum circuits have to be rewritten or transformed in order to be transplanted from one platform to another. We propose a pattern matching based framework for rewriting quantum circuits, called QRewriting. It takes advantage of a new representation of quantum circuits using symbolic sequences. Unlike the traditional approach using directed acyclic graphs, the new representation allows us to easily identify the patterns that appear non-consecutively but are reducible. Then, we convert the problem of pattern matching into that of finding distinct subsequences and propose a polynomial-time dynamic programming based pattern matching and replacement algorithm. We develop a rule library for basic optimizations and rewrite the arithmetic and Toffoli circuits from a commonly used gate set to the gate set supported by the Surface-17 quantum processor. Compared with a state-of-the-art quantum circuit optimization framework PaF optimized on the BIGD benchmarks, QRewriting further reduces the depth and the gate count by an average of 26.5% and 17.4%, respectively.

Electronic Supplementary Material

Download File(s)
JCST-2208-12726-Highlights.pdf (197 KB)

References

【1】
【1】
 
 
Journal of Computer Science and Technology
Pages 1312-1327

{{item.num}}

Comments on this article

Go to comment

< Back to all reports

Review Status: {{reviewData.commendedNum}} Commended , {{reviewData.revisionRequiredNum}} Revision Required , {{reviewData.notCommendedNum}} Not Commended Under Peer Review

Review Comment

Close
Close
Cite this article:
Jiang H, Li D-K, Deng Y-X, et al. A Pattern Matching Based Framework for Quantum Circuit Rewriting. Journal of Computer Science and Technology, 2024, 39(6): 1312-1327. https://doi.org/10.1007/s11390-024-2726-3

647

Views

1

Crossref

1

Web of Science

1

Scopus

0

CSCD

Received: 05 August 2022
Accepted: 19 March 2024
Published: 16 January 2025
© Institute of Computing Technology, Chinese Academy of Sciences 2024