Abstract
Realistic modelling of qubit systems including noise and constraints imposed by control hardware is required for performance prediction and control optimization of quantum processors. We introduce qopt, a software framework for simulating qubit dynamics and robust quantum optimal control considering common experimental situations. To this end, we model open and closed qubit systems with a focus on the simulation of realistic noise characteristics and experimental constraints. Specifically, the influence of noise can be calculated using Monte Carlo methods, effective master equations or with the efficient filter function formalism, which enables the investigation and mitigation of auto-correlated noise. In addition, limitations of control electronics including finite bandwidth effects can be considered. The calculation of gradients based on analytic results is implemented to facilitate the efficient optimization of control pulses. The software is published under an open source license, well-tested and features a detailed documentation.
Introduction
In the pursuit of high-fidelity quantum gates, a significant gap often exists between theoretical "optimal" control pulses and their performance on actual laboratory hardware. Theoretical models frequently rely on idealized assumptions that fail to account for the practical limitations of control electronics—such as finite bandwidth, nonlinear signal transduction, and crosstalk—as well as the non-Markovian nature of environmental noise (e.g., $1/f$ noise).
qopt is an open-source Python package designed to bridge this gap by integrating "hardware awareness" directly into the quantum optimal control loop. By treating experimental realities as first-class citizens, it enables researchers to design control pulses that are robust and ready for deployment on real-world qubits.
The qopt Framework
The core of qopt is a modular, object-oriented architecture that decouples the physical system model from the optimization algorithms. This flexibility allows users to easily swap components like cost functions or hardware models without restructuring the entire simulation.
Key Technical Features
- Comprehensive Noise Modeling:
qoptsupports three distinct methods for handling noise: Monte Carlo methods for quasi-static noise, Lindblad Master Equations for Markovian decoherence, and the Filter Function Formalism for efficient modeling of auto-correlated, non-Markovian noise. - Hardware Realism: The framework includes "transfer functions" to simulate linear effects like finite bandwidth and "amplitude functions" to capture nonlinear relationships between control signals and the resulting Hamiltonian.
- Efficient Optimization: To accelerate gradient-based optimization (e.g., L-BFGS-B),
qoptimplements analytic gradients rather than relying on slower numerical differentiation. This ensures that even complex pulses can be optimized in seconds.
Results and Discussion
The utility of qopt is demonstrated through the optimization of an $X_{\pi/2}$ gate in a single-qubit Rabi-driving model. The framework was tested against both quasi-static Gaussian noise and auto-correlated pink ($1/f$) noise.
A key finding is the necessity of accounting for the specific noise spectrum during optimization. Pulses optimized solely for quasi-static noise performed poorly when subjected to pink noise. However, by utilizing the filter function formalism within qopt to target the pink noise spectrum specifically, the researchers achieved a six-fold reduction in gate infidelity. Furthermore, the optimization process for these gates was highly efficient, completing in less than 10 seconds on standard hardware.
Conclusion and Future Work
qopt provides a powerful, experiment-oriented toolset for the quantum control community. By making hardware constraints and non-Markovian noise accessible within the optimization loop, it facilitates the development of high-fidelity gates for practical quantum processors.
Future development will focus on improving computational scaling for multi-qubit systems through high-performance compilation tools. Additionally, the authors envision expanding the package to include specialized cost functions for spectral noise analysis, turning optimized pulses into sensors for characterizing qubit environments.
Summary updated