JAQSI: Just Another Quantum Simulator
quant-ph
Submitted: 2026-10-04
Updated: 2026-10-04
Code: https://github.com/cirKITers/jaqsi
License: http://creativecommons.org/licenses/by-sa/4.0/
The gist: Classical simulation supports the development and validation of quantum algorithms through full-state inspection, controlled noise models and backpropagation, albeit for small quantum systems.
Abstract
Classical simulation supports the development and validation of quantum algorithms through full-state inspection, controlled noise models and backpropagation, albeit for small quantum systems. Existing frameworks offer gate-level execution, differentiable pulse-level dynamics or optimised hardware execution. Just another quantum simulator (JAQSI) combines gate- and pulse-level simulation in one differentiable circuit model built upon JAX. Circuits are represented as pure functions of numerical inputs which support vectorised batches and JIT compilation. Within a single circuit, matrix-defined operations, gates synthesised from Hamiltonian time evolution and noise channels can be composed freely. For a fast simulation, gate and channel fusion reduces passes over the state, while adjoint differentiation computes expectation-value gradients with a constant number of statevectors. At pulse level, JAQSI reduces evolution under single-term Hamiltonians to a scalar pulse-area integral and reuses cached execution plans and compiled solvers. In a benchmark we compare JAQSI with PennyLane, Qiskit, Qibo, Qulacs, QuTiP and dynamiqs. At gate level, we observe performance either on par or an order of magnitude faster across statevector, density, noise and gradient simulation than the compared simulators up to 12 qubits. Beyond 18 qubits, JAQSI is on par with PennyLane Lightning in both statevector and gradient simulation. In the statevector and noisy density-matrix pulse benchmarks, it is at least 5 times faster than the other simulators, even with its closed-form solve disabled. Disabling the latter increases its runtime by at most a factor of 1.5. We provide JAQSI as open-source software on GitHub and PyPI.
Sources
- The Magnus expansion and some of its applications
- Qibo: a framework for quantum simulation with hardware acceleration
- Analytic control methods for high fidelity unitary operations in a weakly nonlinear oscillator
- Efficient calculation of gradients in classical simulations of variational quantum algorithms
- On Neural Differential Equations
- Equinox: neural networks in JAX via callable PyTrees and filtered transformations
- Pulse-level noisy quantum circuits with QuTiP
- Simple pulses for elimination of leakage in weakly nonlinear qubits
- Data re-uploading for a universal quantum classifier
- Quantum Computing in the NISQ era and beyond
- The effect of data encoding on the expressive power of variational quantum machine learning models
- Beyond Gates: Pulse Level Quantum Fourier Models
- Unflattening by Flattening -- How Input Distributions Shape Output Variance in Angle-Encoded Circuits
- General parameter-shift rules for quantum gradients
- TensorCircuit: a Quantum Software Framework for the NISQ Era
Related papers
- Reconquering Bell sampling on qudits: stabilizer learning and testing, quantum pseudorandomness bounds, and more
- Encrypted clones can leak: Classification of informative subsets in Quantum Encrypted Cloning
- Polynomial-time classical and quantum simulation of quantum impurity models
- A quasiparticle-protected superconducting qubit
- Theory of quantum-enhanced interferometry with general Markovian light sources
- A convergent hierarchy of spectral gap certificates for qubit Hamiltonians