Reinforcement Learning Gym for Quantum Compilation
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).
The publication can be found on computer.org
You can find the preprint of the paper on arxiv.
@inproceedings{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},
booktitle={2023 IEEE International Conference on Quantum Computing and Engineering (QCE)},
volume={2},
pages={26--30},
year={2023},
organization={IEEE}
}
Team
Building qgym is a joint effort.
Core developers
Contributors and Power Users
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file qgym-0.3.0.tar.gz
.
File metadata
- Download URL: qgym-0.3.0.tar.gz
- Upload date:
- Size: 64.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e3fc9998b843b6e27439ab667cd86ecec5c037862ff36e838b29de7be91d8f |
|
MD5 | 0b93645062e1e108e0780db278585ce2 |
|
BLAKE2b-256 | aeb248e02590502ea2abefa2c96c78ebf6ea40219148ef87d652133745538a59 |
File details
Details for the file qgym-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: qgym-0.3.0-py3-none-any.whl
- Upload date:
- Size: 82.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56e5a73d50688f06fd0a36141c5a075f67321c45ce4d14d4dc9e8a6c2c8a7c39 |
|
MD5 | 3402d96005d9a0bf3fa8a80466322e3f |
|
BLAKE2b-256 | 91b054cfeb8c7c3a65ca275222a8bbb3bb71a0a424cc1a64a8f98b9d83b0223b |