Reinforcement Learning for Quantum Control under Physical Constraints

Jan Ole Ernst, Aniket Chatterjee, Tim Franzmeyer, Axel Kuhn

Abstract

Quantum control is concerned with the realisation of desired dynamics in quantum systems, serving as a linchpin for advancing quantum technologies and fundamental research. Analytic approaches and standard optimisation algorithms do not yield satisfactory solutions for more complex quantum systems, and especially not for real world quantum systems which are open and noisy. We devise a physics-constrained Reinforcement Learning (RL) algorithm that restricts the space of possible solutions. We incorporate priors about the desired time scales of the quantum state dynamics - as well as realistic control signal limitations - as constraints to the RL algorithm. These constraints improve solution quality and enhance computational scaleability. We evaluate our method on three broadly relevant quantum systems and incorporate real-world complications, arising from dissipation and control signal perturbations. We achieve both higher fidelities - which exceed 0.999 across all systems - and better robustness to time-dependent perturbations and experimental imperfections than previous methods. Lastly, we demonstrate that incorporating multi-step feedback can yield solutions robust even to strong perturbations. Our implementation can be found at https://github.com/jan-o-e/RL4qcWpc.

Introduction

Precise control of quantum states via time-dependent signals, such as lasers or microwaves, is fundamental to the advancement of quantum computing and sensing. However, traditional optimal control algorithms (e.g., GRAPE or Krotov) and standard RL often struggle in real-world scenarios. They frequently produce mathematically optimal but physically unfeasible signals—pulses requiring infinite bandwidth or instantaneous jumps. Furthermore, simulating open, noisy quantum systems is computationally intensive. Erratic control signals force ODE solvers to take extremely small steps, creating a significant bottleneck for RL training. This work addresses these challenges by introducing a physics-constrained RL framework that ensures smooth, realistic control signals while drastically accelerating training.

Methodology

The proposed approach utilizes Proximal Policy Optimization (PPO) within a continuous bandit RL framework. The core innovation lies in the physical constraints applied to the agent's action space:

  1. Solver Step Constraint ($N_{max}$): A hard limit is placed on the maximum number of ODE solver steps. This forces the agent to find smooth, adiabatic dynamics, as erratic signals would exceed the step limit and be rejected. This constraint acts as both a physical prior and a computational optimization.
  2. Hardware-Informed Reward Shaping: Gaussian convolution filters are applied to ensure finite rise times in control pulses. The reward function further penalizes high-frequency bandwidth and non-coherent dynamics, aligning the agent's goals with hardware limitations.
  3. End-to-End JAX Acceleration: The entire pipeline—environment, quantum solver, and RL loop—is implemented in JAX, enabling massive parallelization on a single GPU.
Impact of solver step constraint $N_{max}$ on infidelity (red) and simulation time (blue) across three quantum systems. Restricting $N_{max}$ forces the agent toward smoother, more efficient solutions.

Experimental Evaluation

The method was evaluated on three physically realistic simulated environments incorporating noise and dissipation:

  • Multi-level $\Lambda$ System: Population transfer relevant to quantum dots and color centers.
  • Two-Photon Rydberg Gate: Entangling C-Z gates for neutral atom quantum computers.
  • Transmon Qubit Reset: Fast ground-state reset for superconducting qubits.

Results and Discussion

The constrained RL approach achieved fidelities exceeding 0.999 across all systems, meeting the threshold for fault-tolerant operations. Notably, the constrained PPO reached high fidelity up to 100x faster than vanilla RL baselines such as TD3 and DDPG.

Comparison of mean infidelity over RL update steps. Constrained PPO significantly outperforms vanilla RL baselines in both convergence speed and final fidelity.

Beyond performance metrics, the agent discovered novel physics. For the Transmon reset, it generated a "Heaviside-Corrected Gaussian Square" waveform that compensates for amplitude-induced Stark shifts, outperforming existing experimental pulses by an order of magnitude in fidelity (0.9997 vs 0.983). The policies also proved robust to time-dependent noise; in high-noise scenarios, a multi-step RL setup further halved the infidelity by allowing the agent to react to observations in real-time.

Conclusion

By incorporating physical constraints directly into the RL loop, this work bridges the gap between theoretical optimization and experimental reality. While strict smoothness constraints might overlook some ultra-fast non-adiabatic strategies, the resulting pulses are directly deployable on standard laboratory hardware. Future work will focus on extending this approach to multi-qubit systems and direct hardware implementation.

Summary updated

BibTeX
@inproceedings{ernst2025reinforcement,
  author = {Jan Ole Ernst and Aniket Chatterjee and Tim Franzmeyer and Axel Kuhn},
  title = {{Reinforcement Learning for Quantum Control under Physical Constraints}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Etc912C6AR},
}
Figure