Qiskit Gym

projects

Gymnasium-compatible RL environments for training AI agents to synthesize quantum circuits. The framework that powers the AI transpiler passes achieving state-of-the-art results in qiskit-ibm-transpiler.

Three synthesis environments:

  • Permutation Synthesis — Minimal SWAP gate implementations respecting hardware coupling
  • Linear Function Synthesis — CNOT-optimal decomposition of Boolean linear functions
  • Clifford Synthesis — Hardware-efficient implementations of Clifford group elements

Hardware-aware design matches real quantum device coupling maps. High-performance Rust backend enables fast training. Supports PPO, AlphaZero, and custom policies with built-in TensorBoard visualization.

The agents trained with this framework achieve near-optimal synthesis up to 65 qubits—orders of magnitude faster than SAT solvers.

Juan Cruz-Benito
Authors
Quantum+AI Manager

I research and develop AI-based systems to tackle complex problems in quantum computing and other relevant areas.

My work sits at the intersection of quantum computing, machine learning, and open source. I hold IBM Master Inventor status and have contributed to tools used by millions of developers worldwide.

I have a PhD in Computer Engineering from the University of Salamanca (2018), have authored 80+ publications, and received the 2019 SCIE-BBVA Award for best young researcher in Computer Science in Spain.