Skip to main content

Quantum Reinforcement Learning library: environments, policies and training loops with PennyLane.

Project description

QRL Logo

PyPI Downloads PyPI version Last Commit License GitHub Repo stars

qrl-qai: The quantum analogue of OpenAI's gym python framework


qrl-qai is a python framework built on top of Gymnasium, PennyLane, and PyTorch to serve as a central platform for everything quantum reinforcement learning.

The current release (0.2.0) offers 5 native quantum RL style environments - BlochSphereV0, CompilerV0, ErrorChannelV0, ExpressibilityV0, ProbabilityV0.

Each significant release has an asssociated Google Colab and Lightning AI Studio template to help users experiment faster (see the table below). Lightning AI Studio has additional Streamlit based webapp for no-code experimentation and is recommended!

You can have a look at the documentation for each version too. However, it is recommended to start with Google Colab or Lightning AI Studio!

Version Google Colab Lightning AI Studio Documentation
0.1.0 - - Read The Docs
0.2.0 Open In Colab Open in Lightning Read The Docs

📑 Table of Contents


🗺 Roadmap

QRL Roadmap


🚀 Installation

Install the package directly from PyPI:

pip install qrl-qai

To save the episodes as mp4 videos, it is essential to have ffmpeg installed on your system. In the absence of ffmpeg, you can run the environments but save the episodes as gif only and not mp4.

To check if you have ffmpeg installed (Windows/Linux/Mac), you can try:

ffmpeg -version

To install ffmpeg, you can follow these steps:

Using Conda

You can also install FFmpeg within a conda environment:

conda install -c conda-forge ffmpeg

Windows

Option 1: Using Chocolatey (Recommended)

If you have Chocolatey installed:

choco install ffmpeg

✅ Option 2: Manual installation

  1. Go to the official FFmpeg site → Click Windows → gyan.dev builds or BtbN builds.

  2. Download the latest release full build ZIP.

  3. Extract it (e.g., to C:\ffmpeg).

  4. Add the bin folder to your PATH:

    4.1 Press Win + R → sysdm.cpl → Advanced → Environment Variables

    4.2 Edit Path → Add new entry: C:\ffmpeg\bin

Linux

Debian / Ubuntu:

sudo apt update
sudo apt install ffmpeg -y

Fedora:

sudo dnf install ffmpeg -y

Arch Linux:

sudo pacman -S ffmpeg

macOS

Using Homebrew:

brew install ffmpeg

🤝 Contributing

Contributions are welcome! 🎉

See our CONTRIBUTING.md for guidelines.

📜 License

This project is licensed under the Apache 2.0 License

📬 Contact

Initiated by Jay Shah

Email: jay.shah@qrlqai.com

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

qrl_qai-0.3.0.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qrl_qai-0.3.0-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file qrl_qai-0.3.0.tar.gz.

File metadata

  • Download URL: qrl_qai-0.3.0.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for qrl_qai-0.3.0.tar.gz
Algorithm Hash digest
SHA256 367ab4c4afe2464a3504cd7a0d0fb5dbdbb4b12d409e0978e19b433c5d8a8c9f
MD5 54bc8ac3903770d3fd2bf684d0803c71
BLAKE2b-256 30333278eef065e69b7e79804e31312d675b718b4fade581764f2e44b9050134

See more details on using hashes here.

File details

Details for the file qrl_qai-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: qrl_qai-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for qrl_qai-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ecf08ad839e352b8375fa3797000f9cd39870c5b01d980af65c82f398cf30118
MD5 7b853ae9a779759644c53e1e41e51b74
BLAKE2b-256 c4ca1de707a7d7dfb49a5f5be8d61446267d6ebdec77810345a1896e47eee9cd

See more details on using hashes here.

Supported by

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