Compiler Optimization for Quantum Computing Using Reinforcement Learning

Nils Quetschlich,Lukas Burgholzer,Robert Wille
DOI: https://doi.org/10.1109/DAC56929.2023.10248002
2023-04-04
Abstract:Any quantum computing application, once encoded as a quantum circuit, must be compiled before being executable on a quantum computer. Similar to classical compilation, quantum compilation is a sequential process with many compilation steps and numerous possible optimization passes. Despite the similarities, the development of compilers for quantum computing is still in its infancy -- lacking mutual consolidation on the best sequence of passes, compatibility, adaptability, and flexibility. In this work, we take advantage of decades of classical compiler optimization and propose a reinforcement learning framework for developing optimized quantum circuit compilation flows. Through distinct constraints and a unifying interface, the framework supports the combination of techniques from different compilers and optimization tools in a single compilation flow. Experimental evaluations show that the proposed framework -- set up with a selection of compilation passes from IBM's Qiskit and Quantinuum's TKET -- significantly outperforms both individual compilers in 73% of cases regarding the expected fidelity. The framework is available on GitHub (<a class="link-external link-https" href="https://github.com/cda-tum/MQTPredictor" rel="external noopener nofollow">this https URL</a>) as part of the Munich Quantum Toolkit (MQT).
Quantum Physics,Emerging Technologies,Machine Learning
What problem does this paper attempt to address?