Efficient quantum compiling tactics greatly enhance the capability of quantum computers to execute complicated quantum algorithms. Due to its fundamental importance, a plethora of quantum compilers has been designed in past years. However, there are several caveats to current protocols, which are low optimality, high inference time, limited scalability, and lack of universality. To compensate for these defects, here we devise an efficient and practical quantum compiler assisted by advanced deep reinforcement learning (RL) techniques, i.e., data generation, deep Q-learning, and AQ* search. In this way, our protocol is compatible with various quantum machines and can be used to compile multi-qubit operators. We systematically evaluate the performance of our proposal in compiling quantum operators with both inverse-closed and inverse-free universal basis sets. In the task of single-qubit operator compiling, our proposal outperforms other RL-based quantum compilers in the measure of compiling sequence length and inference time. Meanwhile, the output solution is near-optimal, guaranteed by the Solovay-Kitaev theorem. Notably, for the inverse-free universal basis set, the achieved sequence length complexity is comparable with the inverse-based setting and dramatically advances previous methods. These empirical results contribute to improving the inverse-free Solovay-Kitaev theorem. In addition, for the first time, we demonstrate how to leverage RL-based quantum compilers to accomplish two-qubit operator compiling. The achieved results open an avenue for integrating RL with quantum compiling to unify efficiency and practicality and thus facilitate the exploration of quantum advantages.
Compiler-R1: Towards Agentic Compiler Auto-tuning with Reinforcement Learning
University of Chinese Academy of Sciences(中国科学院大学);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);Beijing University of Posts and Telecommunications(北京邮电大学);Hangzhou Institute for Advanced Study at UCAS(UCAS杭州高等研究院)
Compiler Optimization for Quantum Computing Using Reinforcement Learning
Technical University of Munich(慕尼黑工业大学);Johannes Kepler University Linz(约翰内斯·开普勒大学林茨分校);Software Competence Center Hagenberg GmbH (SCCH)(哈根伯格软件能力中心有限公司)
Static Neural Compiler Optimization via Deep Reinforcement Learning
Technische Universität Darmstadt Graduate School of Excellence Computational Engineering(达姆施塔特工业大学卓越计算工程研究生院);Iowa State University Department of Computer Science(爱荷华州立大学计算机科学系);Technische Universität Darmstadt Department of Computer Science(达姆施塔特工业大学计算机科学系)
Equivariant Reinforcement Learning for Clifford Quantum Circuit Synthesis
Department of Computer Science, University of Oxford(牛津大学计算机科学系);Quantinuum(Quantinuum公司);College of Computing and Data Science, Nanyang Technological University, Singapore(新加坡南洋理工大学计算科学与数据科学学院)
Resource-Efficient Quantum Reinforcement Learning on NISQ Devices with Dynamic-Circuit Qubit Reuse and Grover-Based Trajectory Search
Graduate School of Science and Technology, Keio University(Keio大学科学技术研究生院);Graduate School of Information Science and Electrical Engineering, Kyushu University(九州大学信息科学与电气工程研究生院);RIKEN Center for Computational Science(理化学研究所计算科学中心)
Reinforcement Learning to Disentangle Multiqubit Quantum States from Partial Observations
Department of Mathematics and Informatics(数学与信息学系);St. Kliment Ohridski University of Sofia(索菲亚圣克莱门特·欧赫里迪斯大学);Joint Quantum Institute(联合量子研究所);Department of Physics(物理系);University of Maryland(马里兰大学);National Quantum Laboratory (QLab)(国家量子实验室(QLab));Institute of Physics(物理研究所);École Polytechnique Fédérale de Lausanne (EPFL)(洛桑联邦理工学院(EPFL));Center for Quantum Science and Engineering(量子科学与工程中心);Quantum Systems Unit(量子系统单元);OIST Graduate University(OIST研究生大学);Duke Quantum Center(杜克量子中心);Max Planck Institute for the Physics of Complex Systems(复杂系统物理研究所)
Reinforcement Learning Generation of 4-Qubits Entangled States
1 Departamento de F\' sica Te\'orica, Universidad Complutense, 28040 Madrid, Spain. 2 CCS-Center for Computational Simulation, Campus de Montegancedo UPM, 28660 Boadilla del Monte, Madrid, Spain.
MLComp: A Methodology for Machine Learning-based Performance Estimation and Adaptive Selection of Pareto-Optimal Compiler Optimization Sequences
Institute of Computer Engineering, Technische Universität Wien (TUWien)(维也纳技术大学计算机工程学院);TU Wien(维也纳技术大学);ABIX GmbH(ABIX有限公司);Division of Engineering, New York University Abu Dhabi(纽约大学阿布扎比分校工程学院)
MLGOPerf: An ML Guided Inliner to Optimize Performance
Huawei Technologies(华为技术有限公司)
在过去的25年里,我们见证了机器学习在选择和相位排序问题中的广泛应用。然而,有限的作品已被上传到最先进的编译器,即,LLVM,将前者无缝集成到编译器的优化管道中,以便用户轻松部署。MLGO是第一个这样的项目之一,它只致力于使用强化学习来减少基于ML的Inliner的二进制代码的大小。本文介绍了MLGOPerf;第一个能够使用LLVM的ML-Inliner优化性能的端到端框架。它采用二级ML模型来生成用于训练重定向强化学习代理的奖励,该代理先前被MLGO用作主要模型。它通过预测被分析函数的内联后加速来实现这一点,并且它为主要模型提供了一个快速训练框架,否则这将是不实用的。实验结果表明,MLGOPerf是能够获得高达1.8%和2.2%,相对于LLVM的优化在O3时,训练的性能在SPEC CPU 2006和Cbench基准,分别。此外,所提出的方法为我们的基准测试提供了高达26%的自动调优代码区域的机会,这可以转化为额外的3.7%的加速值。
t$|$ket$\rangle$ : A Retargetable Compiler for NISQ Devices
我们提出了t $|$ ket $\rangle$,量子软件开发平台由剑桥量子计算有限公司生产的t $|$ ket $\rangle$的心脏是一个语言无关的优化编译器,旨在生成各种NISQ设备的代码,它有几个功能,旨在尽量减少设备错误的影响。该编译器已经过广泛的基准测试,在电路优化和量子位路由方面优于大多数竞争对手。
Shuttling Compiler for Trapped-Ion Quantum Computers Based on Fine-Tuned Large Language Models
Institute of Computer Science, Johannes Gutenberg University(计算机科学研究所,约翰内斯·古特堡大学);Institute of Physics, Johannes Gutenberg University(物理研究所,约翰内斯·古特堡大学);Department of Computer Science, Saarland University(计算机科学系,萨尔兰大学)
MERA: A Mid-Circuit-Measurement Error-Aware Compilation Framework for Quantum Circuits
The Chinese University of Hong Kong(香港中文大学);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));University of Central Florida(中佛罗里达大学);State Key Laboratory of Quantum Information Technologies and Materials (CUHK)(量子信息技术与材料国家重点实验室)