English

CleanQRL: Lightweight Single-file Implementations of Quantum Reinforcement Learning Algorithms

Quantum Physics 2025-07-11 v1

Abstract

At the interception between quantum computing and machine learning, Quantum Reinforcement Learning (QRL) has emerged as a promising research field. Due to its novelty, a standardized and comprehensive collection for QRL algorithms has not yet been established. Researchers rely on numerous software stacks for classical Reinforcement Learning (RL) as well as on various quantum computing frameworks for the implementation of the quantum subroutines of their QRL algorithms. Inspired by the CleanRL library for classical RL algorithms, we present CleanQRL, a library that offers single-script implementations of many QRL algorithms. Our library provides clear and easy to understand scripts that researchers can quickly adapt to their own needs. Alongside ray tune for distributed computing and streamlined hyperparameter tuning, CleanQRL uses weights&biases to log important metrics, which facilitates benchmarking against other classical and quantum implementations. The CleanQRL library enables researchers to easily transition from theoretical considerations to practical applications.

Keywords

Cite

@article{arxiv.2507.07593,
  title  = {CleanQRL: Lightweight Single-file Implementations of Quantum Reinforcement Learning Algorithms},
  author = {Georg Kruse and Rodrigo Coelho and Andreas Rosskopf and Robert Wille and Jeanette Miriam Lorenz},
  journal= {arXiv preprint arXiv:2507.07593},
  year   = {2025}
}

Comments

6 pages

R2 v1 2026-07-01T03:54:31.901Z