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

Europhysics Letters (EPL)

Exploiting automatic differentiation for quantum optimal control of driven dissipative two-level systems

Hamza Jirari, HERSCHEL A. RABITZ

Published Aug 28, 2024• 0 citations
Publisher

Abstract

Abstract In principle one can use Pontryagin's minimum principle to treat an optimal control problem and derive the gradient for the cost functional. However, for the driven spin-boson model studied here, the response of the system to the variation of the control is determined by the master equation and the equation of motion for the propagator of the coherent system dynamics. As a result, the application of Pontryagin's minimum principle is less straightforward. An alternative to this approach is the technique of automatic differentiation which in principle amounts to doing calculus on the fully discretized form of the optimal control problem. Automatic differentiation tools can be viewed as black boxes taking as input a program computing the cost functional and giving as output another program computing its gradient. First we derive for the polaron transformed Hamiltonian a Born-Markov master equation using the Bloch-Redfield formalism. By combining the latter with automatic differentiation we are able to implement Z -gate and coherent destruction of tunnelling with high fidelity. Optimization of a dissipative quantum gate poses a more complex numerical problem, since it should occur independent of the input state. To overcome this difficulty, we apply optimal control to the concept of resolvent of the master equation which is the generalisation of quantum unitary evolution operator in the case of dissipative dynamics.

DOI
10.1209/0295-5075/ad749b

Related papers

Quantum optimal control of the driven dissipative two-level system

Hamza Jirari, HERSCHEL A. RABITZ

This paper investigates the dynamics of a two-level system coupled to a super-Ohmic boson bath, which is the so-called driven spin-boson model. Using the polaron transformation we derive the Bloch vector of a master equation where the bar tunneling parameter is used as the basis for a perturbation expansion. Our method is based on the canonical quantization provided by the Bloch-Redfield formalism. We apply quantum optimal control theory to the realization of a quantum $Z$ gate and also the coherent destruction of tunneling. To solve our optimal control problem, we use the techniques of automatic differentiation as an alternative to Pontryagin's minimum principle. The latter is less straightforward since the master equation is complex.

Physical Review A•Oct 16, 2024•4 citations

Quantum optimal control theory and dynamic coupling in the spin-boson model

Hamza Jirari, W. Pötz

A Markovian master equation describing the evolution of open quantum systems in the presence of a time-dependent external field is derived within the Bloch-Redfield formalism. It leads to a system-bath interaction which depends on the control field. Optimal control theory is used to select control fields which allow accelerated or decelerated system relaxation, or suppression of relaxation (dissipation) altogether, depending on the dynamics we impose on the quantum system. The control-dissipation correlation and the nonperturbative treatment of the control field are essential for reaching this goal. The optimal control problem is formulated within Pontryagin's minimum principle and the resulting optimal differential system is solved numerically. As an application, we study the dynamics of a spin-boson model in the strong coupling regime under the influence of an external control field. We show how trapping the system in unstable quantum states and transfer of population can be achieved by optimized control of the dissipative quantum system. We also used optimal control theory to find the driving field that generates the quantum $Z$ gate. In several cases studied, we find that the selected optimal field which reduces the purity loss significantly is a multicomponent low-frequency field including higher harmonics, all of which lie below the phonon cutoff frequency. Finally, in the undriven case we present an analytic result for the Lamb shift at zero temperature.

arXiv:cond-mat/0602497•Physical Review A•Aug 7, 2006•76 citations

Time-optimal bang-bang control for the driven spin-boson system

Hamza Jirari

In this paper we investigate the application of optimal control of a single qubit coupled to an ohmic heat bath. For the weak bath coupling regime, we derive a Bloch-Redfield master equation describing the evolution of the qubit state parametrized by vectors in the Bloch sphere. By use of the optimal control methodology we determine the field that generates an arbitrary single qubit rotation in minimum time. In particular we develop an efficient method for solving the time-optimal control problem, namely the implementation of $X$ gate, which consists of a rotation about the $\stackrel{P\vec}{ox}$ axis through angle $\ensuremath{\pi}$. The time-optimal control problem requires a bounded control. If upper and lower bounds are imposed for the external control, the optimal solution is of bang-bang type and switches from the upper to the lower values of the control bounds. We compare our results using the techniques of automatic differentiation to compute the gradient for the cost functional with some known results using Pontryagin's minimum principle. We use an alternative numerical approach for the optimization strategy.

Physical Review A•Jul 16, 2020•10 citations

Quantum Optimal Control via Semi-Automatic Differentiation

Michael H. Goerz, Sebastian Camilo Carrasco, Vladimir S. Malinovsky

We develop a framework of "semi-automatic differentiation" that combines existing gradient-based methods of quantum optimal control with automatic differentiation. The approach allows to optimize practically any computable functional and is implemented in two open source Julia packages, GRAPE.jl and Krotov.jl , part of the QuantumControl.jl framework. Our method is based on formally rewriting the optimization functional in terms of propagated states, overlaps with target states, or quantum gates. An analytical application of the chain rule then allows to separate the time propagation and the evaluation of the functional when calculating the gradient. The former can be evaluated with great efficiency via a modified GRAPE scheme. The latter is evaluated with automatic differentiation, but with a profoundly reduced complexity compared to the time propagation. Thus, our approach eliminates the prohibitive memory and runtime overhead normally associated with automatic differentiation and facilitates further advancement in quantum control by enabling the direct optimization of non-analytic functionals for quantum information and quantum metrology, especially in open quantum systems. We illustrate and benchmark the use of semi-automatic differentiation for the optimization of perfectly entangling quantum gates on superconducting qubits coupled via a shared transmission line. This includes the first direct optimization of the non-analytic gate concurrence.

arXiv:2205.15044•Quantum•Dec 7, 2022•37 citations

Optimal dissipative pathways in open quantum systems: a variational framework for environmental heat dissipation minimization

Sonet Daniel Thomas, Aparna Rajan, Naveen Joy +9 more

Optimal control in open quantum systems is considered, with a focus on a two-level logical qubit system whose time evolution is governed by Markovian dynamics described within the Lindblad (GKSL) formalism. The objective is to minimize the net heat transferred to the environment during the transition while explicitly accounting for the work performed by the external control field. In this context, we formulate a variational optimal control framework for minimizing dissipated heat under fidelity constraints, which establishes existence under standard assumptions of bounded controls and lower semi-continuity of at least one bounded control that minimizes the environmental heat dissipation functional while maintaining the final-state fidelity above a designated threshold. The analysis combines the direct method of the calculus of variations with the Pontryagin Maximum Principle. The direct method in the calculus of variations (in L ∞ spaces) guarantees existence by demonstrating the compactness of admissible controls and the lower semi-continuity of the cost functional. Second, the Pontryagin Maximum Principle for open quantum systems establishes essential optimality conditions, resulting in coupled state–costate equations and switching functions that define optimal controls. We establish a physical foundation for the optimization problem by defining internal energy, heat flow, and work within the Lindblad framework, resulting in a thermodynamically coherent expression for dissipated energy. This formulation allows for both analytical understanding together with a practical numerical approximation based on the MDR-GRAPE algorithm. To demonstrate numerical consistency, we present MDR-GRAPE, a modified gradient-based algorithm that extends GRAPE to dissipative environments, integrating positivity-preserving techniques for density matrices. Numerical experiments demonstrate reproducible convergence across the five independent initializations considered in this study, providing empirical evidence of consistent convergence toward feasible low-dissipation solutions.

Frontiers in Physics•Aug 24, 2026•0 citations

Gradient-based optimal control of open quantum systems using quantum trajectories and automatic differentiation

Mohamed R. Abdelhafez, David Schuster, Jens Koch

We present a gradient-based optimal-control technique for open quantum systems that utilizes quantum trajectories to simulate the quantum dynamics during optimization. Using trajectories allows for optimizing open systems with less computational cost than the regular density matrix approaches in most realistic optimization problems. We introduce an improved-sampling algorithm which minimizes the number of trajectories needed per optimization iteration. Together with employing stochastic gradient descent techniques, this reduces the complexity of optimizing many realistic open quantum systems to the complexity encountered with closed systems. Our optimizer harnesses automatic differentiation to provide flexibility in optimization and to suit the different constraints and diverse parameter regimes of real-life experiments. We utilize the optimizer in a variety of applications to demonstrate how the use of quantum trajectories significantly reduces the computation complexity while achieving a multitude of simultaneous optimization targets. Demonstrated targets include high state-transfer fidelities despite dissipation, faster gate times, and maximization of qubit-readout fidelity while maintaining the quantum nondemolition nature of the measurement and allowing for subsequent fast resonator reset.

arXiv:1901.05541•Physical Review A•May 20, 2019•98 citations
Abstract In principle one can use Pontryagin's minimum principle to treat an optimal control problem and derive the gradient for the cost functional. However, for the driven spin-boson model studied here, the response of the system to the variation of the control is determined by the master equation and the equation of motion for the propagator of the coherent system dynamics. As a result, the application of Pontryagin's minimum principle is less straightforward. An alternative to this approach is the technique of automatic differentiation which in principle amounts to doing calculus on the fully discretized form of the optimal control problem. Automatic differentiation tools can be viewed as black boxes taking as input a program computing the cost functional and giving as output another program computing its gradient. First we derive for the polaron transformed Hamiltonian a Born-Markov master equation using the Bloch-Redfield formalism. By combining the latter with automatic differentiation we are able to implement Z -gate and coherent destruction of tunnelling with high fidelity. Optimization of a dissipative quantum gate poses a more complex numerical problem, since it should occur independent of the input state. To overcome this difficulty, we apply optimal control to the concept of resolvent of the master equation which is the generalisation of quantum unitary evolution operator in the case of dissipative dynamics.
This paper investigates the dynamics of a two-level system coupled to a super-Ohmic boson bath, which is the so-called driven spin-boson model. Using the polaron transformation we derive the Bloch vector of a master equation where the bar tunneling parameter is used as the basis for a perturbation expansion. Our method is based on the canonical quantization provided by the Bloch-Redfield formalism. We apply quantum optimal control theory to the realization of a quantum ZZZ gate and also the coherent destruction of tunneling. To solve our optimal control problem, we use the techniques of automatic differentiation as an alternative to Pontryagin's minimum principle. The latter is less straightforward since the master equation is complex.
A Markovian master equation describing the evolution of open quantum systems in the presence of a time-dependent external field is derived within the Bloch-Redfield formalism. It leads to a system-bath interaction which depends on the control field. Optimal control theory is used to select control fields which allow accelerated or decelerated system relaxation, or suppression of relaxation (dissipation) altogether, depending on the dynamics we impose on the quantum system. The control-dissipation correlation and the nonperturbative treatment of the control field are essential for reaching this goal. The optimal control problem is formulated within Pontryagin's minimum principle and the resulting optimal differential system is solved numerically. As an application, we study the dynamics of a spin-boson model in the strong coupling regime under the influence of an external control field. We show how trapping the system in unstable quantum states and transfer of population can be achieved by optimized control of the dissipative quantum system. We also used optimal control theory to find the driving field that generates the quantum ZZZ gate. In several cases studied, we find that the selected optimal field which reduces the purity loss significantly is a multicomponent low-frequency field including higher harmonics, all of which lie below the phonon cutoff frequency. Finally, in the undriven case we present an analytic result for the Lamb shift at zero temperature.
In this paper we investigate the application of optimal control of a single qubit coupled to an ohmic heat bath. For the weak bath coupling regime, we derive a Bloch-Redfield master equation describing the evolution of the qubit state parametrized by vectors in the Bloch sphere. By use of the optimal control methodology we determine the field that generates an arbitrary single qubit rotation in minimum time. In particular we develop an efficient method for solving the time-optimal control problem, namely the implementation of XXX gate, which consists of a rotation about the $\stackrel{P\vec}{ox}$ axis through angle $\ensuremath{\pi}$. The time-optimal control problem requires a bounded control. If upper and lower bounds are imposed for the external control, the optimal solution is of bang-bang type and switches from the upper to the lower values of the control bounds. We compare our results using the techniques of automatic differentiation to compute the gradient for the cost functional with some known results using Pontryagin's minimum principle. We use an alternative numerical approach for the optimization strategy.
We develop a framework of "semi-automatic differentiation" that combines existing gradient-based methods of quantum optimal control with automatic differentiation. The approach allows to optimize practically any computable functional and is implemented in two open source Julia packages, GRAPE.jl and Krotov.jl , part of the QuantumControl.jl framework. Our method is based on formally rewriting the optimization functional in terms of propagated states, overlaps with target states, or quantum gates. An analytical application of the chain rule then allows to separate the time propagation and the evaluation of the functional when calculating the gradient. The former can be evaluated with great efficiency via a modified GRAPE scheme. The latter is evaluated with automatic differentiation, but with a profoundly reduced complexity compared to the time propagation. Thus, our approach eliminates the prohibitive memory and runtime overhead normally associated with automatic differentiation and facilitates further advancement in quantum control by enabling the direct optimization of non-analytic functionals for quantum information and quantum metrology, especially in open quantum systems. We illustrate and benchmark the use of semi-automatic differentiation for the optimization of perfectly entangling quantum gates on superconducting qubits coupled via a shared transmission line. This includes the first direct optimization of the non-analytic gate concurrence.
Optimal control in open quantum systems is considered, with a focus on a two-level logical qubit system whose time evolution is governed by Markovian dynamics described within the Lindblad (GKSL) formalism. The objective is to minimize the net heat transferred to the environment during the transition while explicitly accounting for the work performed by the external control field. In this context, we formulate a variational optimal control framework for minimizing dissipated heat under fidelity constraints, which establishes existence under standard assumptions of bounded controls and lower semi-continuity of at least one bounded control that minimizes the environmental heat dissipation functional while maintaining the final-state fidelity above a designated threshold. The analysis combines the direct method of the calculus of variations with the Pontryagin Maximum Principle. The direct method in the calculus of variations (in L ∞ spaces) guarantees existence by demonstrating the compactness of admissible controls and the lower semi-continuity of the cost functional. Second, the Pontryagin Maximum Principle for open quantum systems establishes essential optimality conditions, resulting in coupled state–costate equations and switching functions that define optimal controls. We establish a physical foundation for the optimization problem by defining internal energy, heat flow, and work within the Lindblad framework, resulting in a thermodynamically coherent expression for dissipated energy. This formulation allows for both analytical understanding together with a practical numerical approximation based on the MDR-GRAPE algorithm. To demonstrate numerical consistency, we present MDR-GRAPE, a modified gradient-based algorithm that extends GRAPE to dissipative environments, integrating positivity-preserving techniques for density matrices. Numerical experiments demonstrate reproducible convergence across the five independent initializations considered in this study, providing empirical evidence of consistent convergence toward feasible low-dissipation solutions.
We present a gradient-based optimal-control technique for open quantum systems that utilizes quantum trajectories to simulate the quantum dynamics during optimization. Using trajectories allows for optimizing open systems with less computational cost than the regular density matrix approaches in most realistic optimization problems. We introduce an improved-sampling algorithm which minimizes the number of trajectories needed per optimization iteration. Together with employing stochastic gradient descent techniques, this reduces the complexity of optimizing many realistic open quantum systems to the complexity encountered with closed systems. Our optimizer harnesses automatic differentiation to provide flexibility in optimization and to suit the different constraints and diverse parameter regimes of real-life experiments. We utilize the optimizer in a variety of applications to demonstrate how the use of quantum trajectories significantly reduces the computation complexity while achieving a multitude of simultaneous optimization targets. Demonstrated targets include high state-transfer fidelities despite dissipation, faster gate times, and maximization of qubit-readout fidelity while maintaining the quantum nondemolition nature of the measurement and allowing for subsequent fast resonator reset.