Exact and practical pattern matching for quantum circuit optimization
Raban Iten, Romain Moyard, Tony Metger, David Sutter, Stefan Woerner
备注:
Raban Iten and Romain Moyard contributed equally to this work. Major updates: Added numerical analysis of the pattern matching algorithm; fixed two special cases that were missed by our algorithm and updated the worst-case complexity analysis. 10 pages summary + 23 pages main text + 7 pages appendix
发表信息:
ACM Transactions on Quantum Computing, Volume 3, Issue 1, 2022
Quantum computations are typically compiled into a circuit of basic quantum gates. Just like for classical circuits, a quantum compiler should optimize the quantum circuit, e.g. by minimizing the number of required gates. Optimizing quantum circuits is not only relevant for improving the runtime of quantum algorithms in the long term, but is also particularly important for near-term quantum devices that can only implement a small number of quantum gates before noise renders the computation useless. An important building block for many quantum circuit optimization techniques is pattern matching, where given a large and a small quantum circuit, we are interested in finding all maximal matches of the small circuit, called pattern, in the large circuit, considering pairwise commutation of quantum gates.
In this work, we present a classical algorithm for pattern matching that provably finds all maximal matches in time polynomial in the circuit size (for a fixed pattern size). Our algorithm works for both quantum and reversible classical circuits. We demonstrate numerically that our algorithm, implemented in the open-source library Qiskit, scales considerably better than suggested by the theoretical worst-case complexity and is practical to use for circuit sizes typical for near-term quantum devices. Using our pattern matching algorithm as the basis for known circuit optimization techniques such as template matching and peephole optimization, we demonstrate a significant (~30%) reduction in gate count for random quantum circuits, and are able to further improve practically relevant quantum circuits that were already optimized with state-of-the-art techniques.
SMP: A General Hyperedge-Based Framework for Circuit-Level Quantum Error Correction
Tsinghua University(清华大学);Jinan Institute of Quantum Technology and Jinan branch, Hefei National Laboratory(济南量子技术研究院及合肥国家实验室济南分部);Frontier Science Center for Quantum Information(量子信息前沿科学中心)
Practical Log-Depth Quantum State Preparation and Circuit Verification via Tree Tensor Network Compilation
University College London(伦敦大学学院);Centre for Computational Science, Department of Chemistry, University College London(伦敦大学学院化学系计算科学中心);Advanced Research Computing Centre, University College London(伦敦大学学院高级计算研究中心);Informatics Institute, University of Amsterdam(阿姆斯特丹大学信息学研究所)
MPM-QIR: Measurement-Probability Matching for Quantum Image Representation and Compression via Variational Quantum Circuit
Chung Yuan Christian University(中原大学);National Tsing Hua University(国立清华大学);National Center for High-performance Computing, National Institutes of Applied Research(国家应用研究研究院高性能计算中心)
Are Quantum Circuits Better than Neural Networks at Learning Multi-dimensional Discrete Data? An Investigation into Practical Quantum Circuit Generative Models
Resilience Beyond the Light Cone: Error-Detected Primitives for Practical Dynamic Circuits
IBM Quantum, IBM Research Cambridge(IBM量子,IBM剑桥研究院);IBM Quantum, Thomas J. Watson Research Center(IBM量子,托马斯·J·沃森研究中心);University of Wisconsin-Madison(威斯康星大学麦迪逊分校)
Practical block encodings of matrix polynomials that can also be trivially controlled
Technical University of Munich(慕尼黑工业大学);KU Leuven, University of Leuven(荷语鲁汶大学);Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室);Google Quantum AI(谷歌量子人工智能)
Application Scale Quantum Circuit Compilation with Controlled Error
Computational Research Division, Lawrence Berkeley National Laboratory(劳伦斯伯克利国家实验室计算研究部);Department of Electrical Engineering and Computer Science, University of California, Berkeley(加州大学伯克利分校电气工程和计算机科学系);Quantum Algorithms and Applications Collaboratory, Sandia National Laboratories(桑迪亚国家实验室量子算法与应用协作中心)
Nonlinear Feedback in Josephson Circuit Optimization: Application to a Kerr-Reversal JTWPA
Department of Applied Science and Technology, Politecnico di Torino(都灵理工大学应用科学与技术系);Quantum Metrology and Nanotechnology Division, Istituto Nazionale di Ricerca Metrologica(意大利国家计量科学研究院量子计量与纳米技术部);Department of Engineering, University of Palermo(巴勒莫大学工程学院)