This paper explores the intersection of quantum computing and reinforcement learning (RL), specifically demonstrating how a quantum annealer can be used as a sampling engine to train an RL agent. By leveraging the D-Wave 2000Q quantum processor, researchers show that "Quantum Boltzmann Machines" (QBMs) can effectively approximate the utility functions needed for an agent to navigate a grid-world environment.
The Challenge of Q-Function Estimation
In reinforcement learning, an agent learns to make decisions by interacting with an environment to maximize rewards. A core challenge is estimating the Q-function, which represents the expected future reward for taking a specific action in a given state.
A classical approach to this is Free Energy-based Reinforcement Learning (FERL). In this framework, the Q-function is approximated by the negative "free energy" of a Boltzmann Machine—a type of generative neural network. While Restricted Boltzmann Machines (RBMs) allow for straightforward free energy calculations, more complex General Boltzmann Machines (GBMs) are NP-hard to sample from classically. This research investigates whether QBMs—which incorporate quantum effects like tunneling—can be efficiently utilized by actual quantum hardware to solve RL tasks.
Methods: Quantum-to-Classical Mapping
The authors utilize a D-Wave 2000Q quantum annealer, which naturally implements a Transverse-Field Ising Model (TFIM). To bridge the gap between quantum measurements and classical learning, they employed several key innovations:
- Replica Stacking (Suzuki–Trotter decomposition): Quantum annealers typically provide measurements in a single basis (the z-basis), losing information about the transverse field. By mapping a $d$-dimensional quantum system to a $(d+1)$-dimensional classical system and "stacking" multiple samples (replicas), the researchers approximated the free energy of the quantum Hamiltonian.
- Virtual Parameter Tuning: Because the physical state of a quantum annealer "freezes out" at an unknown point, the authors performed a grid search to find "virtual" values for inverse temperature ($\beta$) and transverse field strength ($\Gamma$) that best represent the hardware's output.
- TD(0) Learning: The agent uses a standard Temporal Difference (TD) update rule to adjust the weights of the QBM based on environmental rewards.
Experimental Setup: The Grid-World Task
The method was evaluated on a 3 × 5 Grid-World problem. The environment consists of a starting point, an obstacle (wall), a penalty cell ($P$), and a reward cell ($R$). The agent's goal is to learn the optimal path to the reward while avoiding the penalty and the wall.
Performance was measured using Fidelity, defined as the percentage of states where the agent's learned policy matches the known optimal policy.
Key Results and Comparative Performance
The D-Wave-powered agent successfully learned the optimal policy for the grid-world task. The grid search identified $\Gamma = 0.5$ and $\beta = 2.0$ as the most effective virtual parameters for the hardware.
Key insights from the results include:
- Sample Efficiency: FERL methods (both classical and quantum) often converge much faster than standard Deep Q-Networks (DQNs) in the very early stages of training. The QBM-based approach "gets the idea" of the environment with fewer interactions.
- Quantum Richness: Numerical simulations suggest that the many-body system of the TFIM provides a richer representation than classical Ising models, potentially leading to better learning efficiency.
- Hardware as a Proxy: The study confirms that samples from a physical, noisy quantum annealer can be treated as approximations of a Boltzmann distribution for RL tasks.
Limitations and Future Outlook
While successful, the study noted that the sparse "Chimera" graph connectivity of the D-Wave 2000Q limits the complexity of the Boltzmann machines that can be natively mapped. Classical simulations of Boltzmann machines with higher connectivity (like fully connected Deep Boltzmann Machines) currently perform better.
Future work will focus on scaling these methods to high-dimensional state spaces and utilizing newer quantum architectures, such as the Pegasus graph, which offer higher qubit connectivity. Additionally, automating the calibration of "virtual" parameters during training remains a significant goal for making quantum RL more practical.
Summary updated