Abstract
Quantum Reinforcement Learning (QRL) has primarily focused on discrete action spaces, leaving continuous control tasks largely unexplored. This paper introduces QuantumSAC, a hybrid quantum-classical algorithm that adapts the Soft Actor-Critic (SAC) framework for continuous domains. By replacing classical policy networks with Variational Quantum Circuits (VQCs) featuring data re-uploading, QuantumSAC achieves performance comparable to state-of-the-art classical models with a 30-fold reduction in learnable parameters.
1. Introduction
While quantum computing has demonstrated potential in optimization and supervised learning, its application to reinforcement learning—specifically continuous control—remains a frontier. Continuous control requires agents to select actions from an infinite range, a task typically handled by deep neural networks. This research aims to bridge the gap between quantum computing and complex control problems by integrating VQCs into the Soft Actor-Critic (SAC) framework, a maximum entropy RL algorithm known for stability and sample efficiency.
2. Methodology
The primary contribution of this work is the development of a hybrid quantum-classical policy network. In this architecture, the traditional deep neural network is replaced by a specialized quantum circuit integrated with a minimal classical component.
2.1 Hybrid Architecture
The policy network consists of three main stages:
- Variational Quantum Circuit (VQC): The "brain" of the policy uses angle embedding to map classical state inputs into quantum states. It employs trainable rotation and entanglement gates to process information.
- Data Re-uploading: To enhance mathematical expressivity, the authors utilize a data re-uploading architecture. Unlike standard VQCs that input data once, this design re-injects classical state information into multiple layers of the circuit.
- Classical Post-processing: A small linear classical layer transforms the quantum measurement results into the final policy parameters: the mean ($\mu$) and standard deviation ($\sigma$) of the action distribution.
2.2 Circuit Design
The data re-uploading mechanism is critical for performance. By repeatedly injecting the state $s$ into the circuit, the VQC can represent more complex functions than a single-pass "vanilla" VQC. The architecture alternates between variational layers and data injection layers to maximize the expressivity of the quantum state.
To maintain focus on the policy's quantum aspects, the action-value (Q) functions remain classical multi-layer perceptrons (MLPs).
3. Experimental Evaluation
The algorithm was evaluated using the Pendulum-v0 environment from OpenAI Gym, a standard benchmark for continuous control. The task involves swinging up a frictionless pendulum and maintaining it in an upright position. The state space is a 3D continuous vector, and the action space is a 1D continuous torque value. This setup allows for a direct comparison between quantum and classical approaches.
4. Results
Experimental results highlight several key advantages of the QuantumSAC approach:
- Parameter Efficiency: QuantumSAC (with data re-uploading) achieved performance parity with the classical SAC baseline using only 41 parameters, compared to the 1,250 parameters required by the classical model.
- Architectural Impact: The "data re-uploading" technique proved essential. While "vanilla" VQCs failed to reach baseline performance even with increased depth, the re-uploading models showed significant performance gains with as few as two layers.
- Stability: Models utilizing data re-uploading exhibited lower variance in average returns, suggesting a more stable learning process compared to vanilla quantum architectures.
5. Conclusion
This study demonstrates that shallow variational quantum circuits can be highly expressive and parameter-efficient for continuous reinforcement learning tasks. The findings suggest that the "quantum advantage" in RL may lie in the ability to represent complex policies with minimal memory footprints. Future research will focus on testing these architectures on physical quantum hardware to assess the impact of noise and decoherence, as well as scaling the approach to higher-dimensional control tasks.
Summary updated