QuantumToolbox.jl: An efficient Julia framework for simulating open quantum systems
Alberto Mercurio ∗, Yi-Te Huang †, Li-Xun Cai, Yueh-Nan Chen, Vincenzo Savona, Franco Nori · 2025
Read QuantumToolbox.jl: An efficient Julia framework for simulating open quantum systems by Alberto Mercurio ∗, Yi-Te Huang †, Li-Xun Cai, Yueh-Nan Chen, Vincenzo Savona, Franco Nori (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2504-21440.txt.
Introduction
Alberto Mercurio and five co-authors release a software toolbox for simulating quantum systems that leak energy to their surroundings. The package, written in the Julia language, mimics the feel of a beloved Python toolbox while tapping Julia's speed. It ships solvers for time evolution that can spread work across machines and graphics cards, opening the door to large systems. It also plugs into automatic differentiation, the machinery behind gradient-based tuning.
That link suits tasks like quantum optimal control, where settings are nudged uphill by their gradients. Benchmarks show large speed gains over existing frameworks. The authors aim the tool at both theory work and practical quantum technology. It is open source, and its design leaves room to grow with the field's needs.
Catalog record
| CREATOR | Alberto Mercurio ∗, Yi-Te Huang †, Li-Xun Cai, Yueh-Nan Chen, Vincenzo Savona, Franco Nori |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 81 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2504-21440
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
QuantumToolbox.jl: An efficient Julia framework for simulating open quantum systems Alberto Mercurio ∗, Yi-Te Huang †, Li-Xun Cai, Yueh-Nan Chen, Vincenzo Savona, Franco Nori Abstract We present QuantumToolbox.jl , an open-source Julia package for simulating open quantum systems. Designed with a syntax familiar to users of QuTiP (Quantum Toolbox in Python), it harnesses Julia’s high-performance ecosystem to deliver fast and scalable simulations. The package includes a suite of time-evolution solvers supporting distributed computing and GPU acceleration, enabling efficient simulation of large-scale quantum systems. We also show how QuantumToolbox.jl can integrate with automatic differentiation tools, making it well-suited for gradient-based optimization tasks such as quantum optimal control. Benchmark comparisons demonstrate substantial performance gains over existing frameworks. With its flexible design and computational efficiency, QuantumToolbox.jl serves as a powerful tool for both theoretical studies and practical applications in quantum science. GitHub: https://github.com/qutip/QuantumToolbox.jl 1 Introduction The simulation of quantum systems is a fundamental task in many areas of physics, including quantum optics, condensed matter physics, and quantum information science. The development of efficient numerical methods and software packages for simulating these systems has become increasingly important due to their growing complexity and the need for accurate predictions of their behavior. Although the simulation of these systems generally requires standard linear algebra operations, the computational complexity grows exponentially with the number of degrees of freedom. This makes it challenging to simulate large-scale quantum systems, especially when considering the effects of interactions with the environment. In many-body physics, approximate techniques render intractable problems accessible. Tensor network methods exploit locality of entanglement to efficiently represent wavefunctions [ 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 ] . Quantum Monte Carlo utilizes stochastic sampling [ 10 , 11 ] , while the dynamical mean field theory approximate many-body systems as effective impurity problems [ 12 , 13 ] . Moreover, variational approaches [ 14 , 15 , 16 , 17 , 18 ] , including neural quantum states [ 19 , 20 , 21 ] , have recently emerged as powerful methods. Additionally, quantum cumulant expansions [ 22 , 23 ] and phase space representations [ 24 ] offer complementary insights into the quantum correlations and nonclassical features of the system. Although these techniques have demonstrated great success, the simulation of quantum systems without approximation remains an important challenge. Therefore, exploring the computational efficiency of different implementations on different programming languages optimized for various hardware architectures is crucial. Since 1999, several software packages have been developed to this purpose, including QOToolbox [ 25 ] in Matlab [ 26 ] , QuTiP [ 27 , 28 , 29 , 30 ] and dynamiqs [ 31 ] in Python [ 32 ] , as well as QuantumOptics.jl [ 33 ] in Julia [ 34 , 35 ] . A common limitation of most existing Python-based packages is their strict dependency on a specific numerical backend (e.g., SciPy or JAX ). The addition of GPU and automatic differentiation support has required major restructuring of these code bases. Moreover, while the JAX backend provides excellent automatic differentiation, it restricts computations to JAX-compatible operations, limiting flexibility in data structures and control flows. These architectural choices imply that, if a new and superior numerical backend emerges in the future, adopting it would again require substantial refactoring of the code. In this work, we introduce QuantumToolbox.jl (Quantum Toolbox in Julia), a fully open-source software package written in Julia [ 34 , 35 ] . The package has been designed from the ground up to overcome these structural limitations, providing a backend-agnostic and extensible platform for simulating open quantum systems. The package can be used with a syntax similar to that of QuTiP and relies on the Julia design philosophy: one can have machine performance without sacrificing human convenience [ 34 ] . It combines the simplicity and efficiency of Julia with advanced features like distributed computing [ 35 ] and GPU acceleration [ 36 ] , making simulation of quantum systems more accessible and efficient. Furthermore, by wrapping some functions from other Julia packages [ 37 , 38 ] , we could further optimize the computational efficiency of simulations and achieve a significant speedup with respect to the corresponding methods in other packages [ 27 , 28 , 30 , 33 , 31 ] . Julia is a high-level, dynamic programming language designed for high-performance scientific computing. It was created in 2012 with the goal to combine the speed of C [ 39 ] , the flexibility of Ruby [ 40 ] , the ease of use of Python [ 32 ] , and the statistical and numerical computing capabilities of R [ 41 ] and Matlab [ 26 ] . Its performance advantage comes from a just-in-time (JIT) compiler [ 42 ] , which translates source code into machine code before execution, ensuring both efficiency and speed. Recently, Julia has gained increasing attention in research communities, particularly in fields requiring intensive computation, such as open quantum system dynamics [ 33 , 43 , 23 , 44 , 45 ] , quantum algorithms [ 46 ] , and quantum information [ 47 ] . Moreover, Julia supports UTF-8 variable names, allowing the usage of Greek and mathematical symbols, and thus, making the equations in code more readable and intuitive. One can easily install QuantumToolbox.jl by running the following commands inside Julia’s interactive session: ⬇ import Pkg Pkg . add ( "QuantumToolbox" ) To load the package and check the version information, one can run the following commands: ⬇ using QuantumToolbox QuantumToolbox . versioninfo () Note that all examples and code snippets presented in the following sections are tested with QuantumToolbox.jl version 0.34.1. The entire ecosystem of QuantumToolbox.jl package is summarized in Fig. 1 . Figure 1: Ecosystem of the QuantumToolbox.jl package. (a) The quantum object structure encapsulates the properties of generic quantum objects through three main fields: type , dimensions , and data . The type field specifies the category of the quantum object, the dimensions field defines the Hilbert space structure for composite systems, and the data field supports arbitrary array types in Julia. (b) Various time evolution solvers are available for studying open quantum system dynamics. (c) All quantum objects support fundamental arithmetic and linear algebra operations. (d) QuantumToolbox.jl also provides a variety of utility functions for analyzing the properties and physical quantities of a given quantum object. (e) Logo of the QuantumToolbox.jl package. 2 Package architecture and design philosophy. In this Section, we summarize the main structure of the package and the most relevant user-accessible functions of QuantumToolbox.jl . A schematic is shown in Fig. 1 and a complete list of available functions is shown in Appendix C . By taking advantage of the Julia programming language features (e.g., multiple dispatch, metaprogramming, and distributed computing [ 34 , 35 ] ) and other powerful Julia packages [ 36 , 37 , 38 ] , simulating large-scale open quantum system dynamics becomes very easy and efficient. As shown in Fig. 1 (a), the QuantumObject (or its abbreviated synonym Qobj ) serves as a fundamental structure in QuantumToolbox.jl , representing quantum states, operators, and superoperators in a unified manner. The design of Qobj is