Quantum Architecture Search for Solving Quantum Machine Learning Tasks

Michael Kölle, Simon Salfer, Tobias Rohe, Philipp Altmann, Claudia Linnhoff-Popien

TL;DR

This paper introduces RL-QAS, a reinforcement learning framework designed to automate the creation of efficient Parameterized Quantum Circuit Architectures (PQCAs) for quantum machine learning classification tasks. By decoupling architecture search from parameter optimization using a two-loop system, the framework successfully discovers compact, high-accuracy circuits that significantly outperform standard human-designed baselines.

What Problem Does This Paper Address?

Variational Quantum Circuits (VQCs) are a leading approach for utilizing current Noisy Intermediate-Scale Quantum (NISQ) devices because their hybrid quantum-classical nature makes them relatively robust to hardware noise. However, a VQC's performance heavily depends on the design of its parameterized quantum circuit architecture (PQCA), also known as the ansatz.

Manually designing these architectures requires deep interdisciplinary expertise and is highly error-prone. While automated Quantum Architecture Search (QAS) has been explored for quantum chemistry and optimization problems (like VQE or QAOA), its application to Quantum Machine Learning (QML) classification tasks remains largely uncharted territory. The authors address this gap by exploring whether Reinforcement Learning (RL) can effectively navigate the massive discrete search space of quantum circuits to find optimal architectures for machine learning tasks.

Methods

The authors propose RL-QAS, a framework structured as a two-loop system to decouple discrete architecture construction from continuous parameter optimization:

Figure 1: Overall architecture of the RL-QAS framework. The outer loop constructs PQCAs; the inner loop evaluates their performance using a VQC.
  • Outer Loop (Architecture Search): A Proximal Policy Optimization (PPO) reinforcement learning agent constructs candidate PQCAs step-by-step. The circuit is represented as a 3D binary tensor mapping qubits, gates, and circuit depth.
  • Inner Loop (Performance Evaluation): The candidate circuit is passed to the inner loop, where its parameters ($\theta$) are trained using a classical optimizer (Adam) on the target machine learning task. The resulting test accuracy is used to compute a reward for the RL agent.

To make the search efficient, the framework incorporates two key mechanisms:

  1. Illegal Action Mechanism: Prunes invalid or redundant moves during training (such as placing the same gate twice consecutively on the same qubit or exceeding the maximum allowed depth).
  2. Caching Mechanism: Stores the performance of unique circuit tensors in a persistent hash map. If the agent generates a circuit architecture that has been evaluated before, the framework reuses the stored performance metrics, bypassing the costly inner-loop classical optimization.

The reward function is dual-objective, balancing classification accuracy against circuit complexity (gate count and depth) to favor shallow, hardware-friendly designs.

Figure 2: Tensor-based PQCA encoding with a binary 3D tensor of size [2 × 5 × 3] for a 2-qubit PQCA with gate set {Rx, Ry, Rz, CNOT} and maximum depth 3. Adapted from (Kundu 2024).

Datasets

The framework was evaluated on two classification benchmarks:

  • Iris Dataset: Used as a low-dimensional baseline. The authors evaluated all three binary class combinations (Iris 2) as well as the full three-class problem. Features were amplitude-encoded into 2 qubits.
  • Binary MNIST (Digits 0 and 1): A higher-dimensional, more complex task. Dimensionality was reduced from 64 to 32 using Principal Component Analysis (PCA) and amplitude-encoded into 5 qubits.

Key Insights and Ideas

  • Decoupling is Essential: Separating the discrete architecture search (outer loop) from the continuous parameter optimization (inner loop) allows standard classical RL algorithms like PPO to be cleanly applied to quantum circuit design.
  • Simplicity Wins: For linearly separable tasks (like certain binary Iris classes), the RL agent quickly realized it only needed a single rotation gate to achieve 100% accuracy. This demonstrates that the complexity penalty in the reward function successfully prevents over-engineering.
  • Exploration Efficiency: The agent discovered highly performant architectures while exploring only a tiny fraction of the 36 million theoretically possible designs, validating RL's capability to navigate sparse, discrete quantum search spaces without brute-forcing.
  • The Scalability Wall: Moving from the 2-qubit Iris task to the 5-qubit MNIST task caused training instability and a failure to converge. This highlights that quantum state space growth and the resulting rugged cost landscapes severely challenge naive RL search strategies.

Key Results

  • Iris Classification: The RL-QAS agent consistently achieved 100% test accuracy across all binary Iris tasks and the full Iris dataset. Crucially, it did so with massive resource savings compared to a standard human-designed Strongly Entangling Layer (SEL) baseline. For the full Iris task, RL-QAS found a circuit with just 4 gates and a depth of 3 (achieving 100% test accuracy), whereas a 1-layer SEL baseline required 8 gates and only achieved 66% accuracy.
  • MNIST 2: Although the agent did not fully converge due to training instability, the best-discovered architecture achieved 91% test accuracy using 14 gates and a depth of 7, outperforming a 1-layer SEL baseline which achieved 77% accuracy using 20 gates.
  • Caching Benefits: Implementing the persistent hash map cache cut runtimes nearly in half for early runs, proving essential for mitigating the high computational cost of VQC simulations.

Limitations and Future Work

  • Scalability and Stability: The framework struggled to converge on the more complex MNIST dataset, indicating a need for enhanced search strategies, such as curriculum learning or integrating learned performance predictors to replace the expensive inner loop.
  • Idealized Simulations: The evaluation was performed entirely on noise-free simulators. Real-world NISQ deployment will require integrating noise models and hardware-topology constraints directly into the illegal action mask and reward function.
  • Fixed Encoding: The data encoding stage ($U(\vec{x})$) was fixed beforehand. The authors suggest that future iterations should expand the RL agent's action space to co-design the data encoding layer and the ansatz simultaneously.

Summary updated

BibTeX
@misc{kolle2025quantum,
  author = {Michael Kölle and Simon Salfer and Tobias Rohe and Philipp Altmann and Claudia Linnhoff-Popien},
  title = {{Quantum Architecture Search for Solving Quantum Machine Learning Tasks}},
  year = {2025},
  eprint = {2509.11198},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.11198},
}
Figure