Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

arXiv:2611.20222

feedback-grape: A JAX-based Python Package for GPU-Accelerated GRAPE with Feedback

Yousef Elbrolosy, Adrian Bories, Florian Marquardt, Pavlo Bilous

On Aqora:Yousef ElbrolosyYousef Elbrolosy
quant-phSubmitted Nov 15, 2026• Announced Nov 17, 2026• 0 citations
arXivHTMLPDF

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.

Little sign of AI-generated textIncrementalMissing comparison

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

Related papers

Gradient-Ascent Pulse Engineering with Feedback

Riccardo Porotti, Vittorio Peano, Florian Marquardt

Efficient approaches to quantum control and feedback are essential for quantum technologies, from sensing to quantum computation.Open-loop control tasks have been successfully solved using optimization techniques, including methods such as gradient-ascent pulse engineering (GRAPE) , relying on a differentiable model of the quantum dynamics.For feedback tasks, such methods are not directly applicable, since the aim is to discover strategies conditioned on measurement outcomes.In this work, we introduce feedback GRAPE, which borrows some concepts from model-free reinforcement learning to incorporate the response to strong stochastic (discrete or continuous) measurements, while still performing direct gradient ascent through the quantum dynamics.We illustrate its power considering various scenarios based on cavity-QED setups.Our method yields interpretable feedback strategies for state preparation and stabilization in the presence of noise.Our approach could be employed for discovering strategies in a wide range of feedback tasks, from calibration of multiqubit devices to linear-optics quantum computation strategies, quantum enhanced sensing with adaptive measurements, and quantum error correction.

arXiv:2203.04271•PRX Quantum•Jul 13, 2023•61 citations

GRAPE.jl: Gradient Ascent Pulse Engineering in Julia

Michael H. Goerz, Sebastián C. Carrasco, Alastair Marshall +1 more

The GRAPE$.$jl package (https://github.com/JuliaQuantumControl/GRAPE.jl) implements Gradient Ascent Pulse Engineering, a widely used method of quantum optimal control. Its purpose is to find controls that steer a quantum system in a particular way. This is a prerequisite for next-generation quantum technology, such as quantum computing or quantum sensing. GRAPE$.$jl exploits the unique strengths of the Julia programming language to achieve both flexibility and numerical performance. It builds on the QuantumControl$.$jl framework.

quant-pharXiv:2511.01217•The Journal of Open Source Software•Nov 4, 2025•1 citation

Accelerating quantum optimal control through iterative gradient-ascent pulse engineering

Yuquan Chen, Yajie Hao, Ze Wu +6 more

Quantum optimal control, a powerful toolbox for engineering an optimal control field modulation that most precisely implements a desired quantum operation in the best way possible, has evolved into one of the cornerstones for enabling quantum technologies. The gradient ascent pulse engineering (GRAPE) algorithm is a widely used method in quantum optimal control, which has achieved great success in different physical platforms. However, its computational complexity increases exponentially with the number of qubits, making it challenging to be implemented for large-scale quantum systems. To mitigate this issue, we present the iterative GRAPE algorithm (iGRAPE), which reduces the optimization problem into a series of lower-dimensional subproblems by incorporating disentanglement operations. Our numerical simulations on physical platforms such as nuclear magnetic resonance and superconducting quantum systems demonstrate that iGRAPE significantly enhances state preparation speed. Specifically, compared to GRAPE, iGRAPE achieves up to a five-fold acceleration in preparing Greenberger--Horne--Zeilinger states using a 12-qubit implementation, and up to a 13-fold acceleration for arbitrary state preparation with eight qubits. To further validate our findings, we conduct experimental validation of iGRAPE on a four-qubit nuclear magnetic resonance system. Overall, iGRAPE offers an efficient solution for implementing optimal control in large-scale quantum systems, holding great potential for advancing quantum technologies during the noisy intermediate-scale quantum era.

arXiv:2212.02806•Physical Review A•Nov 7, 2023•18 citations

Instrumental distortions in quantum optimal control

Uluk Rasulov, Ilya Kuprov

Quantum optimal control methods, such as gradient ascent pulse engineering (GRAPE), are used for precise manipulation of quantum states. Many of those methods were pioneered in magnetic resonance spectroscopy, where instrumental distortions are often negligible. However, that is not the case elsewhere: the usual jumble of cables, resonators, modulators, splitters, amplifiers, and filters can and would distort control signals. Those distortions may be non-linear; their inverse functions may be ill-defined and unstable; they may even vary from one day to the next and across the sample. Here we introduce the response-aware gradient ascent pulse engineering framework, which accounts for any cascade of differentiable distortions within the GRAPE optimization loop, does not require filter function inversion, and produces control sequences that are resilient to user-specified distortion cascades with user-specified parameter ensembles. The framework is implemented into the optimal control module supplied with versions 2.10 and later of the open-source Spinach library; the user needs to provide function handles returning the actions by the distortions and, optionally, parameter ensembles for those actions.

arXiv:2502.02198•The Journal of Chemical Physics•Apr 25, 2025•12 citations

QuTiP 5: The Quantum Toolbox in Python

Neill Lambert, Eric Giguère, Paul Menczel +15 more

QuTiP, the Quantum Toolbox in Python (Johansson et al., 2012, Johansson et al., 2013), has been at the forefront of open-source quantum software for the past 13 years. It is used as a research, teaching, and industrial tool, and has been downloaded millions of times by users around the world. Here we introduce the latest developments in QuTiP v5, which are set to have a large impact on the future of QuTiP and enable it to be a modern, continuously developed and popular tool for another decade and more. We summarize the code design and fundamental data layer changes as well as efficiency improvements, new solvers, applications to quantum circuits with QuTiP-QIP, and new quantum control tools with QuTiP-QOC. Additional flexibility in the data layer underlying all “quantum objects” in QuTiP allows us to harness the power of state-of-the-art data formats and packages like JAX, CuPy, and more. We explain these new features with a series of both well-known and new examples. The code for these examples is available in a static form on GitHub ( https://github.com/qutip/qutip-paper-v5-examples ) and as continuously updated and documented notebooks in the qutip-tutorials package ( https://github.com/qutip/qutip-tutorials ).

arXiv:2412.04705•Physics Reports•Nov 1, 2025•432 citations

jQMC: A JAX-based ab initio quantum Monte Carlo package designed for GPU-accelerated computing

Kousuke Nakano, Michele Casula

We present jQMC, a Python-based computational package for {\it ab initio} Quantum Monte Carlo (QMC) simulations, designed for modern GPU-accelerated computing environments. jQMC implements two well-established QMC algorithms: Variational Monte Carlo (VMC) and the lattice-regularized variant of Diffusion Monte Carlo (LRDMC). The employed wave function is a Jastrow factor combined with the antisymmetrized geminal power with spin-singlet and spin-triplet pairings, which contains the single Slater determinant as its special lowest-rank case. The wave function can be initialized from external Hartree-Fock/Density Functional Theory calculations through the TREX-IO library (a common wave-function format across electronic-structure packages) and optimized by stochastic reconfiguration and linear-method energy minimization. One of the prominent features of jQMC is its use of JAX, which enables automatic differentiation for wave function optimization and atomic force calculations, and allows the main QMC algorithms to be Just-In-Time (JIT) compiled and portable across CPU and GPU. jQMC is vectorized over walkers at the top level of the QMC algorithms, providing efficient intra-GPU~(CPU) vectorization. The multi-GPU~(CPU) parallelization is also supported through MPI and JAX sharding. To assess the practical performance of this implementation, we benchmarked jQMC performance on NVIDIA GPUs (A100 and H100) and analyzed CUDA kernels. For the test cases analyzed here, with system sizes up to 160 electrons, the current version of jQMC is faster than TurboRVB, a Fortran90 code implementing the same algorithms and wave functions, once jQMC is run on GPUs. In terms of wall-time, the gain can reach an order of magnitude for VMC, while it is more moderate for LRDMC.

arXiv:2607.13781•Jul 15, 2026•0 citations
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.
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 nˉ=1\bar n=1nˉ=1 is driven toward (∣1⟩+∣2⟩+∣3⟩)/3(|1\rangle+|2\rangle+|3\rangle)/\sqrt{3}(∣1⟩+∣2⟩+∣3⟩)/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.10.10.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.
Efficient approaches to quantum control and feedback are essential for quantum technologies, from sensing to quantum computation.Open-loop control tasks have been successfully solved using optimization techniques, including methods such as gradient-ascent pulse engineering (GRAPE) , relying on a differentiable model of the quantum dynamics.For feedback tasks, such methods are not directly applicable, since the aim is to discover strategies conditioned on measurement outcomes.In this work, we introduce feedback GRAPE, which borrows some concepts from model-free reinforcement learning to incorporate the response to strong stochastic (discrete or continuous) measurements, while still performing direct gradient ascent through the quantum dynamics.We illustrate its power considering various scenarios based on cavity-QED setups.Our method yields interpretable feedback strategies for state preparation and stabilization in the presence of noise.Our approach could be employed for discovering strategies in a wide range of feedback tasks, from calibration of multiqubit devices to linear-optics quantum computation strategies, quantum enhanced sensing with adaptive measurements, and quantum error correction.
The GRAPE...jl package (https://github.com/JuliaQuantumControl/GRAPE.jl) implements Gradient Ascent Pulse Engineering, a widely used method of quantum optimal control. Its purpose is to find controls that steer a quantum system in a particular way. This is a prerequisite for next-generation quantum technology, such as quantum computing or quantum sensing. GRAPE...jl exploits the unique strengths of the Julia programming language to achieve both flexibility and numerical performance. It builds on the QuantumControl...jl framework.
Quantum optimal control, a powerful toolbox for engineering an optimal control field modulation that most precisely implements a desired quantum operation in the best way possible, has evolved into one of the cornerstones for enabling quantum technologies. The gradient ascent pulse engineering (GRAPE) algorithm is a widely used method in quantum optimal control, which has achieved great success in different physical platforms. However, its computational complexity increases exponentially with the number of qubits, making it challenging to be implemented for large-scale quantum systems. To mitigate this issue, we present the iterative GRAPE algorithm (iGRAPE), which reduces the optimization problem into a series of lower-dimensional subproblems by incorporating disentanglement operations. Our numerical simulations on physical platforms such as nuclear magnetic resonance and superconducting quantum systems demonstrate that iGRAPE significantly enhances state preparation speed. Specifically, compared to GRAPE, iGRAPE achieves up to a five-fold acceleration in preparing Greenberger--Horne--Zeilinger states using a 12-qubit implementation, and up to a 13-fold acceleration for arbitrary state preparation with eight qubits. To further validate our findings, we conduct experimental validation of iGRAPE on a four-qubit nuclear magnetic resonance system. Overall, iGRAPE offers an efficient solution for implementing optimal control in large-scale quantum systems, holding great potential for advancing quantum technologies during the noisy intermediate-scale quantum era.
Quantum optimal control methods, such as gradient ascent pulse engineering (GRAPE), are used for precise manipulation of quantum states. Many of those methods were pioneered in magnetic resonance spectroscopy, where instrumental distortions are often negligible. However, that is not the case elsewhere: the usual jumble of cables, resonators, modulators, splitters, amplifiers, and filters can and would distort control signals. Those distortions may be non-linear; their inverse functions may be ill-defined and unstable; they may even vary from one day to the next and across the sample. Here we introduce the response-aware gradient ascent pulse engineering framework, which accounts for any cascade of differentiable distortions within the GRAPE optimization loop, does not require filter function inversion, and produces control sequences that are resilient to user-specified distortion cascades with user-specified parameter ensembles. The framework is implemented into the optimal control module supplied with versions 2.10 and later of the open-source Spinach library; the user needs to provide function handles returning the actions by the distortions and, optionally, parameter ensembles for those actions.
QuTiP, the Quantum Toolbox in Python (Johansson et al., 2012, Johansson et al., 2013), has been at the forefront of open-source quantum software for the past 13 years. It is used as a research, teaching, and industrial tool, and has been downloaded millions of times by users around the world. Here we introduce the latest developments in QuTiP v5, which are set to have a large impact on the future of QuTiP and enable it to be a modern, continuously developed and popular tool for another decade and more. We summarize the code design and fundamental data layer changes as well as efficiency improvements, new solvers, applications to quantum circuits with QuTiP-QIP, and new quantum control tools with QuTiP-QOC. Additional flexibility in the data layer underlying all “quantum objects” in QuTiP allows us to harness the power of state-of-the-art data formats and packages like JAX, CuPy, and more. We explain these new features with a series of both well-known and new examples. The code for these examples is available in a static form on GitHub ( https://github.com/qutip/qutip-paper-v5-examples ) and as continuously updated and documented notebooks in the qutip-tutorials package ( https://github.com/qutip/qutip-tutorials ).
We present jQMC, a Python-based computational package for {\it ab initio} Quantum Monte Carlo (QMC) simulations, designed for modern GPU-accelerated computing environments. jQMC implements two well-established QMC algorithms: Variational Monte Carlo (VMC) and the lattice-regularized variant of Diffusion Monte Carlo (LRDMC). The employed wave function is a Jastrow factor combined with the antisymmetrized geminal power with spin-singlet and spin-triplet pairings, which contains the single Slater determinant as its special lowest-rank case. The wave function can be initialized from external Hartree-Fock/Density Functional Theory calculations through the TREX-IO library (a common wave-function format across electronic-structure packages) and optimized by stochastic reconfiguration and linear-method energy minimization. One of the prominent features of jQMC is its use of JAX, which enables automatic differentiation for wave function optimization and atomic force calculations, and allows the main QMC algorithms to be Just-In-Time (JIT) compiled and portable across CPU and GPU. jQMC is vectorized over walkers at the top level of the QMC algorithms, providing efficient intra-GPU~(CPU) vectorization. The multi-GPU~(CPU) parallelization is also supported through MPI and JAX sharding. To assess the practical performance of this implementation, we benchmarked jQMC performance on NVIDIA GPUs (A100 and H100) and analyzed CUDA kernels. For the test cases analyzed here, with system sizes up to 160 electrons, the current version of jQMC is faster than TurboRVB, a Fortran90 code implementing the same algorithms and wave functions, once jQMC is run on GPUs. In terms of wall-time, the gain can reach an order of magnitude for VMC, while it is more moderate for LRDMC.