Abstract
Quantum annealing (QA) is a specialized computing paradigm designed to solve combinatorial optimization problems by finding the ground state of Ising spin-glass models. Despite its potential, physical quantum annealers are susceptible to thermal noise and decoherence, which often lead to sub-optimal, high-energy outputs. This paper presents Simulated Annealing with Reinforcement (SAwR), a classical post-processing method that leverages Graph Neural Networks (GNNs) and Reinforcement Learning (RL) to refine the solutions produced by quantum hardware. Our approach demonstrates zero-shot scalability, successfully generalizing from small training instances to large-scale problems on the D-Wave 2000Q processor without additional training.
Introduction
Many critical optimization challenges—ranging from protein folding to portfolio management—can be mathematically mapped to finding the lowest energy state of an Ising spin-glass. While Quantum Annealing is theoretically capable of finding these global minima, current hardware like the D-Wave 2000Q operates as an open system. Thermal noise and control errors frequently result in "excited" states rather than the true ground state.
Traditional quantum error correction (QEC) techniques mitigate this by encoding one logical qubit into multiple physical qubits. However, this significantly reduces the effective problem size a machine can handle. To preserve the full qubit capacity of the Quantum Processing Unit (QPU), we propose a classical post-processing scheme that algorithmically "corrects" the flawed quantum output.
The SAwR Framework
The proposed method, Simulated Annealing with Reinforcement (SAwR), integrates deep learning heuristics into a classical Simulated Annealing (SA) workflow.
1. Graph Representation and Encoding
The D-Wave hardware topology, known as the Chimera graph, is treated as a mathematical graph $G = (V, E)$. Qubits correspond to nodes, and couplers correspond to edges. We utilize a modified Spin Glass Neural Network (SGNN), a type of GNN, to encode the problem instance. Through message passing, the SGNN embeds external magnetic fields (node weights) and coupling strengths (edge weights) into low-dimensional vectors that capture the local graph structure.
2. Decoding and Reinforcement Learning
A feed-forward neural network acts as a decoder, processing the graph embeddings to output Q-values. These values represent the predicted reward—specifically, the expected reduction in energy—resulting from flipping a particular spin.
3. Hybrid Integration
The RL agent is embedded within a Simulated Annealing loop. At high temperatures, the algorithm follows standard SA procedures. At low temperatures, where traditional SA often gets stuck in local minima, the algorithm performs a single pass of the RL agent’s learned spin-flipping policy to navigate toward a lower energy state.
Experimental Setup
The model was trained on small, randomly generated Chimera instances ($C_3$ architecture, 72 spins) with couplings and biases drawn from a standard normal distribution $\mathcal{N}(0,1)$.
Evaluation was conducted using 500 random instances executed on a physical D-Wave 2000Q quantum annealer. To test scalability, we applied the model trained on $C_3$ to significantly larger systems: $C_4$ (128 spins), $C_8$ (512 spins), $C_{12}$ (1152 spins), and $C_{16}$ (2048 spins).
Key Results and Insights
- Zero-Shot Scalability: The GNN-based architecture allows the RL agent to generalize across different graph sizes. By operating on local message-passing structures, the agent trained on 72 spins effectively corrected errors on a 2048-spin system without retraining.
- Performance Metrics: SAwR achieved a probability of improvement (finding a lower energy state than the initial quantum output) of approximately 39% to 42% across all system sizes. While this was slightly lower than pure Simulated Annealing (~41-43%), the magnitude of energy reduction was higher when SAwR succeeded.
- Hybrid Necessity: Standalone RL performance was poor (1% success rate), confirming that the RL agent functions best as a targeted heuristic within a broader optimization framework like SA.
Conclusion and Future Work
While SAwR demonstrates the potential of using learned heuristics for quantum error correction, it does not yet consistently outperform standard classical baselines on the sparse Chimera topology. Future research will explore decoupled training of the encoder and decoder, more advanced RL algorithms such as Asynchronous Actor-Critic (A3C) or Monte Carlo Tree Search, and testing on newer hardware topologies like D-Wave’s Pegasus and Zephyr graphs.
Summary updated