Skip to main content

Reinforcement Learning Gym for OpenQL

Project description

QGYM – A Gym for Training and Benchmarking RL-Based Quantum Compilation

qgym is a software framework that provides environments for training and benchmarking RL-based quantum compilers. It is built on top of OpenAI Gym and abstracts parts of the compilation process that are irrelevant to AI researchers. qgym includes three environments: InitialMapping, Routing, and Scheduling, each of which is customizable and extensible.

Documentation

We have created an extensive documentation with code snippets. Please feel free to contact us via s.feld@tudelft.nl if you have any questions, or by creating a GitHub issue.

Getting Started

What follows are some simple steps to get you running. You could also have a look at some Jupyter Notebooks that we have created for a tutorial at the IEEE International Conference on Quantum Computing and Engineering (QCE’22).

Installing with pip

To install the qgym use

pip install qgym

If you would also like to use the notebooks, additional packages are required, which can simply be installed by using In this case, use

pip install qgym[tutorial]

Currently qgym has support for Python 3.7, 3.8, 3.9, 3.10 and 3.11.

Publication

The paper on qgym has been presented in the 1st International Workshop on Quantum Machine Learning: From Foundations to Applications (QML@QCE'23). You can find the preprint of the paper on arxiv.

@article{van2023qgym,
  title={qgym: A Gym for training and benchmarking RL-based quantum compilation},
  author={van der Linde, Stan and de Kok, Willem and Bontekoe, Tariq and Feld, Sebastian},
  journal={arXiv preprint arXiv:2308.02536},
  year={2023}
}

Team

Building qgym is a joint effort.

Core developers

Power users

  • Joris Henstra
  • Rares Oancea

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

qgym-0.2.0-py3-none-any.whl (70.5 kB view details)

Uploaded Python 3

File details

Details for the file qgym-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: qgym-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 70.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for qgym-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9797be05457bd1283d4c82167940851e0d503fc1a44dc27e80da9cfdb9bc70d4
MD5 1924c60995cdefaaf01e26e57392813e
BLAKE2b-256 6a4bbeb9e50e16919272ba0362334579858b03a2bd7a0cb69b89ce3e877b9ddd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page