qgym: A Gym for Training and Benchmarking RL-Based Quantum Compilation

Stan van der Linde, Willem de Kok, Tariq Bontekoe, Sebastian Feld
8/1/2023
19 citations
quant-phcs.LG
rl

Official code: QuTech-Delft/qgym (22 stars, Python, Apache-2.0, last commit 2025-11-14).

Abstract

Compiling a quantum circuit for specific quantum hardware is a challenging task. Moreover, current quantum computers have severe hardware limitations.

Show full abstract

To make the most use of the limited resources, the compilation process should be optimized. To improve currents methods, Reinforcement Learning (RL), a technique in which an agent interacts with an environment to learn complex policies to attain a specific goal, can be used. In this work, we present qgym, a software framework derived from the OpenAI gym, together with environments that are specifically tailored towards quantum compilation. The goal of qgym is to connect the research fields of Artificial Intelligence (AI) with quantum compilation by abstracting parts of the process that are irrelevant to either domain. It can be used to train and benchmark RL agents and algorithms in highly customizable environments.

View on arXivView PDF

Code Implementations(1)

QuTech-Delft/qgymOfficial100%
Apache-2.0

Software for RL-based OpenQL

227Python, Jupyter NotebookMar 10, 20221 years agoApache-2.0

Similar Papers

Cite this paper

@article{linde2023qgym,
  title  = {qgym: A Gym for Training and Benchmarking RL-Based Quantum Compilation},
  author = {Stan van der Linde and Willem de Kok and Tariq Bontekoe and Sebastian Feld},
  year   = {2023},
  eprint = {2308.02536},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.02536v1}
}

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/2308.02536.svg)](https://codeofpaper.com/paper/2308.02536)

Discussion