BenchRL-QAS: Benchmarking Reinforcement Learning Algorithms for Quantum Architecture Search

Azhar Ikhtiarudin, Aditi Das, Param Thakkar, Akash Kundu

Abstract

We present BenchRL-QAS, a unified benchmarking framework for reinforcement learning (RL) in quantum architecture search (QAS) across a spectrum of variational quantum algorithm tasks on 2- to 8-qubit systems. Our study systematically evaluates 9 different RL agents, including both value-based and policy-gradient methods, on quantum problems such as variational eigensolver (VQE), quantum state diagonalization (VQSD), variational quantum classification (VQC), and state preparation, under both noiseless and noisy execution settings. To ensure fair comparison, we propose a weighted ranking metric that integrates accuracy, circuit depth, gate count, and training time. Results demonstrate that no single RL method dominates universally, with performance depending on task type, qubit count, and noise conditions—providing strong evidence of the "no free lunch" principle in RL-QAS. Notably, a carefully chosen RL algorithm in RL-based VQC outperforms baseline VQCs. BenchRL-QAS establishes the most extensive benchmark for RL-based QAS to date, with code and experimental data made publicly available for reproducibility.

Introduction

Designing quantum circuits for Noisy Intermediate-Scale Quantum (NISQ) computers is a significant challenge. These systems are constrained by low qubit counts, high error rates, and limited connectivity, necessitating "hardware-efficient" circuits that are shallow and use minimal gates. Traditionally, researchers rely on manually designed structures called ansatze. However, as quantum systems scale, manual design becomes a bottleneck.

Quantum Architecture Search (QAS) aims to automate this discovery process using machine learning. Reinforcement Learning (RL) has emerged as a promising approach for QAS, where agents learn to construct circuits step-by-step. Despite its potential, the field has lacked a rigorous, large-scale comparison of different RL algorithms across diverse quantum tasks. BenchRL-QAS addresses this gap by providing a comprehensive benchmarking platform.

The BenchRL-QAS Framework

The framework evaluates nine distinct RL agents, categorized into two primary families:

  1. Value-Based Methods: Including DQN, Double DQN (DDQN), and Dueling DQN, which learn to estimate the value of actions in specific circuit states.
  2. Policy-Gradient Methods: Including A2C, A3C, PPO, and TPPO, which directly optimize the agent's strategy.
Summary of RL algorithms evaluated across various quantum tasks in the BenchRL-QAS framework.

These agents are tested across 325 separate problem instances, covering four major quantum computing tasks: Variational Quantum Eigensolver (VQE) for molecular ground states ($H_2$, $BeH_2$, $H_2O$), Variational Quantum State Diagonalization (VQSD), Variational Quantum Classification (VQC), and GHZ state preparation. Experiments were conducted in both noiseless and noisy environments (incorporating 0.1% single-qubit and 0.01% two-qubit depolarizing noise).

Experimental Methodology

To ensure a fair comparison, BenchRL-QAS utilizes a Weighted Ranking Metric ($S$). This composite score accounts for:

  • Accuracy (50-60% weight): The primary goal of the quantum task.
  • Circuit Complexity: Measured by gate count and circuit depth.
  • Efficiency: Measured by the training time required for the agent to converge.

The "state" for the RL agents is a tensor-based encoding of the current circuit, while the "action space" consists of selecting and placing gates (e.g., RX, RY, RZ, CX) on specific qubits.

Key Findings and Results

The "No Free Lunch" Principle

The most significant insight from BenchRL-QAS is that no single RL agent is universally superior. Performance is highly sensitive to the specific task, qubit count, and noise levels. For instance, value-based agents like DQN and DDQN often excel at complex, deeper tasks like VQE in noiseless settings, whereas policy-gradient agents like A3C and TPPO are frequently more effective for structured problems like VQSD and VQC.

Comparison of circuit complexity (CX, Depth, 1q gates) across different RL algorithms for VQE, VQSD, and VQC tasks.

Performance Highlights

  • VQE Superiority: On the $6-BeH_2$ molecule task, the framework produced circuits with errors three orders of magnitude lower than previous state-of-the-art methods (e.g., TF-QAS), while utilizing less than half the gate count.
  • VQC Accuracy: RL-designed circuits for classification achieved near-perfect accuracy (99.99%), significantly outperforming standard Hardware Efficient Ansatz (HEA) designs, which typically reached only ~92%.
  • Computational Efficiency: PPO emerged as the fastest agent in terms of training time per episode, suggesting it may be the most scalable candidate for larger quantum systems.
  • Noise Resilience: The optimal agent choice shifts under noise. For example, while DDQN may perform best on a 4-qubit system, TPPO often becomes superior for 8-qubit systems under realistic noise conditions.

Conclusion

BenchRL-QAS provides a vital roadmap for navigating the complex landscape of RL-based quantum circuit design. By demonstrating that the choice of RL "brain" must be carefully matched to the quantum "body" of the task, this work moves the field toward more automated and efficient quantum advantage. Future work will explore advanced curriculum learning and more complex hardware constraints to further refine these automated design tools.

Summary updated

BibTeX
@inproceedings{ikhtiarudin2025benchrl,
  author = {Azhar Ikhtiarudin and Aditi Das and Param Thakkar and Akash Kundu},
  title = {{BenchRL-QAS: Benchmarking Reinforcement Learning Algorithms for Quantum Architecture Search}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaaiss.v7i1.36906},
}
Figure