Compiler Optimization for Quantum Computing Using Reinforcement Learning

Nils Quetschlich, Lukas Burgholzer, Robert Wille
12/8/2022
48 citations
quant-phcs.ETcs.LG
rl

Official code: munich-quantum-toolkit/predictor (90 stars, Python, MIT, last commit 2026-11-15).

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.

Show full abstract

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 (https://github.com/cda-tum/MQTPredictor) as part of the Munich Quantum Toolkit (MQT).

View on arXivView PDF

Code Implementations(1)

MIT

MQT Predictor - A Tool for Automatic Device Selection with Device-Specific Circuit Compilation for Quantum Computing

9023PythonMar 8, 20222 weeks agoMIT
mqtqiskitquantum-compilationreinforcement-learningsupervised-machine-learning+1 more

Similar Papers

Cite this paper

@article{quetschlich2022compiler,
  title  = {Compiler Optimization for Quantum Computing Using Reinforcement Learning},
  author = {Nils Quetschlich and Lukas Burgholzer and Robert Wille},
  year   = {2022},
  eprint = {2212.04508},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.04508}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.04508.svg)](https://codeofpaper.com/paper/2212.04508)

Discussion