JOURNAL ARTICLE

Exact and Practical Pattern Matching for Quantum Circuit Optimization

Raban ItenRomain MoyardTony MetgerDavid SutterStefan Woerner

Year: 2022 Journal:   ACM Transactions on Quantum Computing Vol: 3 (1)Pages: 1-41   Publisher: Association for Computing Machinery

Abstract

Quantum computations are typically performed as a sequence of basic operations, called quantum gates. Different gate sequences, called quantum circuits, can implement the same overall quantum computation. Since every additional quantum gate takes time and introduces noise into the system, it is important to find the smallest possible quantum circuit that implements a given computation, especially for near-term quantum devices that can execute only a limited number of quantum gates before noise renders the computation useless. An important building block for many quantum circuit optimization techniques is pattern matching: given a large and small quantum circuit, we would like to find all maximal matches of the small circuit, called a pattern , in the large circuit, considering pairwise commutation of quantum gates. In this work, we present the first classical algorithm for pattern matching that provably finds all maximal matches and is efficient enough to be practical for circuit sizes typical for near-term devices. We demonstrate numerically 1 that combining our algorithm with known pattern-matching-based circuit optimization techniques reduces the gate count of a random quantum circuit by ∼ 30% and can further improve practically relevant quantum circuits that were already optimized with state-of-the-art techniques.

Keywords:
Quantum circuit Quantum computer Quantum algorithm Computer science Quantum gate Algorithm Quantum phase estimation algorithm Quantum error correction Quantum Theoretical computer science Physics Quantum mechanics

Metrics

35
Cited By
6.07
FWCI (Field Weighted Citation Impact)
35
Refs
0.95
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Quantum Computing Algorithms and Architecture
Physical Sciences →  Computer Science →  Artificial Intelligence
Quantum Information and Cryptography
Physical Sciences →  Computer Science →  Artificial Intelligence
Machine Learning and Algorithms
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

JOURNAL ARTICLE

Quantum Resonators Circuit for EEG Signals Pattern Matching

H. Biswas

Journal:   INTERANTIONAL JOURNAL OF SCIENTIFIC RESEARCH IN ENGINEERING AND MANAGEMENT Year: 2025 Vol: 09 (04)Pages: 1-9
JOURNAL ARTICLE

Quantum‐based exact pattern matching algorithms for biological sequences

Kapil Kumar SoniAkhtar Rasool

Journal:   ETRI Journal Year: 2021 Vol: 43 (3)Pages: 483-510
JOURNAL ARTICLE

A Pattern Matching Based Framework for Quantum Circuit Rewriting

Hui JiangD. M. LiYuxin DengMing Xu

Journal:   Journal of Computer Science and Technology Year: 2024 Vol: 39 (6)Pages: 1312-1327
© 2026 ScienceGate Book Chapters — All rights reserved.