TL;DR
Designing compact quantum circuits with Reinforcement Learning (RL) is notoriously expensive, especially when moving from pristine simulators to noisy quantum hardware. Instead of reinventing the RL agent's neural architecture, Kundu and Feld focus on the humble replay buffer—engineering how past experiences are sampled, batched, and transferred. The result? Up to $32\times$ fewer interactions needed to compile circuits, $3\times$ faster training wall-clock times, and an $85\text{--}90\%$ head start when adapting to hardware noise.
What Problem Does This Paper Address?
Quantum computers execute algorithms via sequences of logic gates—quantum circuits. Because current hardware is fragile and noisy, every extra gate invites errors. Finding the shortest, most effective gate sequence is a sequential puzzle well-suited for Reinforcement Learning (RL).
However, applying RL to quantum circuit design hits three painful bottlenecks:
- Unreliable memories: Standard RL agents store past moves in a replay buffer and prioritize learning from "surprising" moments—transitions with high Temporal-Difference (TD) error. Early on, this fuels exploration, but in long, noisy quantum tasks, chasing big surprises often means amplifying noisy, unreliable estimates.
- Evaluations are glacially slow: In Quantum Architecture Search (QAS), adding a single gate typically triggers a full quantum simulation and classical parameter optimization loop. As qubit counts grow, wall-clock time explodes.
- Simulator amnesia: Researchers usually prototype in fast, noiseless simulators. Yet when moving to realistic noisy environments, standard workflows throw away all those hard-earned noiseless memories and retrain from scratch.
Methods
Keeping a standard Deep Q-Network (DQN/DDQN) agent completely fixed, the authors elevate the replay mechanism into the primary algorithmic lever via three techniques:
- ReaPER+ (Annealed Replay): Prioritized Experience Replay (PER) chases big TD-errors (great early on, noisy later), while Reliability-adjusted PER (ReaPER) discounts transitions with unreliable downstream targets (stable later, slow early). ReaPER+ smoothly bridges them using a linear annealing schedule. Early in training, the agent samples aggressively based on surprise; by mid-training, as value estimates mature, it shifts toward reliable targets.
- OptCRLQAS (Amortized Curriculum Learning): Instead of running an expensive quantum-classical parameter optimization after every single gate edit, OptCRLQAS lets the agent make $m$ consecutive edits (typically $m=10$) before evaluating the circuit.
- Lightweight Buffer Transfer: Rather than transferring neural network weights—which bake in biases from a noiseless world—the authors simply copy the raw experience trajectories $(S_t, A_t, R_t, S_{t+1})$ from a noiseless replay buffer directly into a fresh noisy agent's buffer, with zero reward relabeling or weight sharing.
Datasets
Because this is an RL control and synthesis study, there are no static datasets; instead, agents are evaluated across interactive simulation benchmarks:
- Quantum Compiling (Qiskit): Synthesizing $10^5$ Haar-random 1-qubit unitaries (using small-rotation and discrete HRC gate sets) and approximating 2-qubit $ZZ(\pi)$ gates.
- Quantum Architecture Search (Qulacs): Finding ground-state energies for physics and chemistry Hamiltonians: a 5-qubit Heisenberg spin model, 6-qubit $\text{BeH}_2$, and 8- and 12-qubit $\text{H}_2\text{O}$ molecules (plus a 20-qubit proof-of-concept using tensor-network warm-starts), tested under depolarizing and amplitude-damping noise.
- Classical RL Validation: OpenAI Gym’s
LunarLander-v3to test if ReaPER+ works outside quantum physics.
Key Insights and Ideas
- Batching edits sharpens the learning signal: You might expect evaluating every 10th gate (OptCRLQAS) to hurt learning precision. Surprisingly, it helps. When you add just one gate, the classical optimizer tweaks continuous circuit angles to compensate, making single edits produce nearly indistinguishable rewards. Judging blocks of $m$ gates creates stronger reward contrast, letting useful multi-gate motifs take credit as a unit.
- Transfer memories, not brains: Copying neural weights from a noiseless simulator to a noisy environment carries over systematic optimism that breaks under hardware noise. Seeding only the replay buffer gives the fresh agent a map of where good circuits live while letting its value network naturally calibrate to noisy reality—and this advantage actually grows as the quantum system gets larger.
- Annealing replay is a universal trick: Shifting from "curious" (TD-error) to "cautious" (reliability-aware) sampling isn't specific to quantum mechanics; it boosts classical RL (
LunarLander-v3) just as cleanly.
Key Results
- Sample Efficiency & Compactness: On 2-qubit compiling, ReaPER+ hits target fidelity in $2.5 \times 10^4$ episodes—$4\times$ fewer than off-policy baselines (PER, ReaPER, HER) and $32\times$ fewer than on-policy PPO. In 1-qubit compiling, it achieves the highest success rates ($81.4\%$ at $0.9999$ fidelity) with the shallowest circuits:
- 3x Faster Wall-Clock QAS: On 12-qubit $\text{H}_2\text{O}$, OptCRLQAS cuts average episode time by $67.5\%$ without hurting solution accuracy, while ReaPER+ yields substantially more compact circuits ($128$ gates vs. $221$ for fixed ReaPER).
- Massive Noise-Transfer Gains: Warm-starting noisy training with a noiseless buffer cuts steps to reach target accuracy by $47\text{--}58\%$ on 6-qubit $\text{BeH}_2$ (reducing final energy error by up to $90.2\%$), $84.8\%$ on 8-qubit $\text{H}_2\text{O}$, and $88.2\%$ on 12-qubit $\text{H}_2\text{O}$ (while cutting noisy CNOT gates by $57.6\%$).
- Domain Generalization: On
LunarLander-v3, ReaPER+ improves mean success rates by $26.8\%$ over PER and $21.8\%$ over fixed ReaPER.
Limitations and Future Work
While the authors defer their formal "Limitations" section to Appendix A (not included in the main text), several concrete boundaries are noted directly in the paper:
- 20-Qubit Accuracy Ceiling: Extending QAS to 20 qubits via tensor-network warm-starts serves only as a structural proof-of-concept; final energy errors remain an order of magnitude worse than chemical accuracy.
- Speed vs. Accuracy at Scale in Transfer: At 12 qubits under combined noise, buffer transfer dramatically accelerates convergence and shrinks gate counts, but provides $0.0\%$ improvement in the final energy error floor compared to training from scratch.
- Exploration Sensitivity: Buffer transfer is not a plug-and-play free lunch—ablation studies reveal that its success interacts strongly with the agent's initial exploration rate ($\epsilon$), flipping preferences depending on noise intensity.
- Conditional Theory: The mathematical proof that ReaPER+ lowers the asymptotic noise floor compared to PER relies on a specific variance-alignment condition rather than holding unconditionally.
Summary updated