arXiv:2611.20222
feedback-grape: A JAX-based Python Package for GPU-Accelerated GRAPE with Feedback
Yousef Elbrolosy, Adrian Bories, Florian Marquardt, Pavlo Bilous
Abstract
Modern quantum technology applications require accurate control of quantum systems, including a feedback loop in the control process. While open-loop control can be performed using well established gradient methods like GRadient Ascent Pulse Engineering (GRAPE), it was until recently unclear how to combine these with feedback from measurements, which are inherently non-differentiable. Recent work has successfully demonstrated how feedback can be incorporated into GRAPE using machine learning, resolving this issue. Following this progress, we have developed an efficient Python package implementing the method of ``feedback GRAPE''. In this hands-on tutorial, we discuss the package in detail based on concrete examples. Built on the GPU-accelerated JAX platform, our package offers a user-friendly interface inspired by the widely-used QuTiP library, including simplified treatment of multi-component systems.
AI Summary
The paper presents `feedback-grape`, a Python package for optimizing measurement-conditioned quantum control using an existing feedback-GRAPE method. It addresses implementation of joint control and measurement optimization when a differentiable dynamical model is available but sampled measurement outcomes prevent ordinary end-to-end differentiation. The implementation uses JAX automatic differentiation, vectorized trajectory batches and GPU execution. Gradients combine the derivative of the reward along each sampled trajectory with a likelihood-ratio term accounting for parameter-dependent measurement probabilities. Feedback policies are represented by lookup tables or recurrent neural networks (RNNs). The package provides parametrized control and binary-measurement gates, Lindblad evolution through Dynamiqs, QuTiP-like utilities, composite-system helpers and open-loop GRAPE. Two numerical tutorials illustrate its use. A cavity initially thermal with mean occupation $\bar n=1$ is driven toward $(|1\rangle+|2\rangle+|3\rangle)/\sqrt{3}$ using five feedback steps and 3,000 training iterations; convergence depends on initialization and learning rate. A five-qubit GHZ state is stabilized against independent amplitude damping and dephasing, each with rate–idle-time product $0.1$. RNNs trained over three steps are evaluated over 20; the illustrated stabilization succeeds only when rewards include fidelity at all three training steps. No quantitative speedup benchmarks are reported. The current implementation restricts measurements to binary outcomes and objectives to fidelity, purity or their combination. Custom rewards, initial-state ensembles needed for subspace stabilization or error-correction optimization, additional solvers and broader composite-system support are identified as future extensions. Decoherence during control can be approximated by interleaving control with discrete decay gates.
Error found: The package is described as efficient and as offering significant GPU acceleration, but the paper reports no timing or scaling benchmarks demonstrating those performance benefits.
Written by gpt-6.1-sol from the paper's full text. Automated: it can be wrong.
- DOI
- 10.48550/arxiv.2611.20222
- Comments
- 23 pages, 5 figures, 4 tables. Submitted to SciPost Physics Codebases. Code available at https://github.com/YousefElbrolosy/feedbackGRAPE