Differentiable Quantum Architecture Search for Quantum Reinforcement Learning

Yize Sun, Yunpu Ma, Volker Tresp

Introduction

In the Noisy Intermediate-Scale Quantum (NISQ) era, the design of effective quantum circuits remains a significant bottleneck for practical applications. Most current Quantum Reinforcement Learning (QRL) implementations rely on "ansatz" circuits—manually designed templates that are often sub-optimal for specific tasks. These manual designs are time-consuming to develop and frequently struggle with hardware constraints such as low gate fidelity and the "barren plateau" problem, where vanishing gradients render training impossible.

While Differentiable Quantum Architecture Search (DQAS) has successfully automated circuit design for static datasets in fields like chemistry and image classification, its application to Reinforcement Learning (RL) has been largely unexplored. This paper introduces RL-DQAS, the first framework to apply gradient-based architecture search to the non-stationary data environments inherent in RL.

The Challenge of Non-Stationary Data

Applying DQAS to RL presents a unique challenge: unlike supervised learning, the "dataset" in RL changes constantly as the agent explores its environment. This non-stationarity means that the loss function does not always correlate perfectly with the ultimate goal of maximizing cumulative rewards. RL-DQAS must therefore find architectures that are robust enough to handle shifting data distributions while maintaining stable learning gradients.

Methodology: The RL-DQAS Framework

The authors propose a hybrid framework that integrates quantum circuit design with Deep Q-Learning. The core components include:

  1. The Super-Circuit: Instead of a fixed architecture, the system utilizes a "super-circuit" containing placeholders. Each placeholder can be filled by various quantum gates (such as RY, RZ, or CNOT) from a predefined operation pool.
  2. Differentiable Search: Each candidate gate is assigned a probability weight ($\alpha$). Using gradient descent (specifically the Adam optimizer), the system learns to optimize these weights, effectively "searching" for the most effective gates for the specific RL task.
  3. Quantum Deep Q-Network (QDQN): The quantum circuit serves as the function approximator for Q-values. To stabilize training, the system incorporates classical RL techniques like replay memory and target networks.
  4. Progressive Search and Parameter-Shift Rules: To manage the search space, the algorithm periodically prunes low-performing gate candidates. Gradients for the circuit weights are calculated using parameter-shift rules, ensuring compatibility with quantum hardware and simulators.

Experimental Results

The researchers evaluated RL-DQAS using two classic benchmarks from the OpenAI Gym: Cart Pole v0 (a balancing task) and Frozen Lake v0 (a navigation task). They also tested the resulting architectures on IBM’s ibmq-quito noisy simulator to assess real-world viability.

Performance and Convergence

The automatically designed circuits achieved a 200% performance improvement over manually designed baselines. Furthermore, the search process significantly accelerated convergence. In the Cart Pole environment, the "solving point" (the epoch where the task is mastered) dropped from approximately 800 to 400. Similarly, in Frozen Lake, the solving point was reduced from 1000 to 400 epochs.

Machine vs. Human Design

The architectures discovered by RL-DQAS often defied human intuition. For example, the "Auto-op4" architecture placed CNOT gates in the middle of parameterized blocks and included redundant RZ gates at the end. While a human designer might typically place entangling gates at the boundaries, the machine-designed layout proved superior in mapping agent states to actions.

Noise Resilience

A significant finding was the inherent robustness of the discovered architectures. Circuits optimized in noise-free environments performed remarkably well when transitioned to noisy simulators. This suggests that DQAS may naturally favor structures that are resilient to the interference typical of NISQ-era hardware.

Conclusion and Future Directions

RL-DQAS demonstrates that automated circuit design can significantly outperform manual heuristics in quantum reinforcement learning. While this study utilized a relatively shallow search space (5 blocks), the results suggest that deeper, more complex architectures could yield even greater performance gaps.

Future research will focus on identifying "general architectures"—single quantum circuit designs capable of performing well across multiple different QRL tasks without the need for task-specific redesign. Additionally, addressing the inherent instability of RL during the initial search phase remains a priority for making DQAS more reliable in complex environments.

Summary updated

BibTeX
@inproceedings{sun2023differentiable,
  author = {Yize Sun and Yunpu Ma and Volker Tresp},
  title = {{Differentiable Quantum Architecture Search for Quantum Reinforcement Learning}},
  booktitle = {QCE},
  year = {2023},
  doi = {10.1109/qce57702.2023.10177},
}
Figure