Abstract
Quantum Reinforcement Learning (QRL) offers a promising path toward leveraging quantum advantages in decision-making tasks, yet it remains hampered by high sampling complexity and slow training speeds. This paper introduces QDQN-DPER, a framework that integrates asynchronous distributed training with prioritized experience replay (PER) to accelerate the training of quantum agents. By employing a novel "matrix loss" function and a distributed architecture, the proposed method demonstrates superior performance and stability compared to classical counterparts in noisy, friction-heavy control environments, even with significantly fewer parameters.
Introduction
Reinforcement Learning (RL) agents typically learn through iterative interactions with an environment, a process that is resource-intensive in classical computing and even more so in the quantum domain. While Variational Quantum Circuits (VQCs) have emerged as powerful function approximators for Q-learning, their practical application is limited by the "single-threaded" nature of most existing QRL methods. Standard experience replay, which samples past transitions uniformly, further slows convergence by failing to prioritize the most informative experiences.
To address these bottlenecks, this work proposes the Quantum Deep Q-Network with Distributed Prioritized Experience Replay (QDQN-DPER). This framework parallelizes the learning process across multiple agents and focuses training on transitions with high predictive error, effectively bridging the gap between theoretical quantum advantage and practical training efficiency.
Methodology
Hybrid VQC Architecture
The core of the QDQN-DPER model utilizes "Dressed VQCs." This hybrid architecture consists of classical neural network layers that preprocess input data before it is encoded into an 8-qubit variational circuit. Following the quantum processing, another classical layer refines the output to generate the final Q-values. This structure allows the model to benefit from quantum representational power while maintaining compatibility with classical input/output requirements.
Distributed Architecture and PER
Unlike traditional distributed RL, which often relies on a centralized shared memory, QDQN-DPER provides each local agent with its own local replay memory. This design reduces communication overhead as agents interact with independent environments in parallel. Agents calculate gradients locally and update a global shared model asynchronously.
To optimize the learning process, the framework incorporates Prioritized Experience Replay (PER). Instead of uniform sampling, transitions are sampled based on their Temporal-Difference (TD) error. By focusing on moments where the agent's predictions are most inaccurate, the system accelerates the refinement of the Q-function.
The Matrix Loss Innovation
A critical technical contribution of this work is the introduction of a modified loss function. Rather than utilizing a standard scalar TD error, the authors define a loss matrix derived from $n$-step trajectories. The mean square of this matrix is used to compute gradients. This "matrix loss" approach proved essential for achieving convergence in complex control tasks where standard loss functions failed.
Experimental Setup
The framework was evaluated using the Cart-Pole benchmark from OpenAI Gym, specifically a modified version termed CartPoleMod. This environment introduces realistic physical constraints, including friction for both the cart and the pole. To test the robustness of the quantum agents, the authors implemented four noise configurations (v0-v3):
- v0-v1: Baseline and low-noise environments.
- v2-v3: High-interference environments featuring up to 10% actuator noise and 5% sensor noise, simulating the imperfections inherent in real-world quantum hardware.
Results and Discussion
Parameter Efficiency and Performance
The QDQN-DPER model achieved high scores using only 48 adjustable parameters. When compared to classical models of similar size, the quantum agent demonstrated higher stability and superior peak performance. This suggests that VQCs can provide a more efficient representation of the state-action space for specific control problems.
Robustness to Noise
One of the most significant findings was the model's resilience to environmental noise. In the v2 and v3 configurations, the combination of PER and the matrix loss function allowed the quantum agent to maintain stable performance. In contrast, simpler models without these components exhibited wild fluctuations or failed to converge entirely within the 50,000-episode training window.
Convergence and Scaling
The inclusion of prioritized sampling led to significantly faster learning curves. By allowing agents to update the global model independently, the framework successfully leverages multi-core or multi-QPU (Quantum Processing Unit) architectures, directly addressing the time-to-solution bottleneck that has historically plagued QRL.
Conclusion and Future Work
QDQN-DPER represents a significant step toward scalable and robust quantum reinforcement learning. By combining distributed processing with prioritized learning and a specialized loss function, the framework achieves high performance in noisy environments with minimal parameters.
Future research will focus on transitioning from numerical simulations to actual Noisy Intermediate-Scale Quantum (NISQ) hardware. Additionally, the authors aim to extend the framework from discrete action spaces to continuous control domains using algorithms such as Deep Deterministic Policy Gradient (DDPG) or Proximal Policy Optimization (PPO).
Summary updated