SuperGrad is an open-source simulator designed to accelerate the development of superconducting quantum processors by incorporating gradient computation capabilities.
Notice: This package is currently in its early development stages. Please be aware that breaking changes to the API may occur.
Superconducting processors offer significant design flexibility, including various types of qubits and interactions. With the large number of tunable parameters in a processor, gradient optimization becomes crucial. SuperGrad fills the gap in open-source software by providing a tightly integrated library capable of efficient backpropagation for gradient computation.
- Efficient backpropagation for gradient computation based on JAX.
- User-friendly interface for constructing Hamiltonians
- Computation of both static and dynamic properties of composite systems, such as the unitary matrices of simultaneous gates
These features help us to speedup tasks including
- Optimal control
- Design optimization
- Experimental data fitting
We suggest using python version >= 3.9.
pip install supergrad
First, one need to define an interaction graph which describes qubits and their connectivity.
This is done with creating an instance of Networkx.Graph
class.
There is a work-in-progress GUI for creating such graphs available at https://github.com/iqubit-org/supergrad-gui.
We consider Hamiltonians of the form
The parameters about only a single qubit are stored in the nodes of the graph.
These include parameters of superconducting qubits such as
In general, we will use GHz and ns as units for energy and time parameters.
This example is based on Nguyen, L. B. et al. Blueprint for a High-Performance Fluxonium Quantum Processor. PRX Quantum 3, 037001 (2022). We simulate a 6 Fluxonium qubit system from an underlying periodic lattice. Idling hamiltonian of the system is
Hamiltonian of single Fluxonium is
The coupling terms have the form
The couplings are chosen in a way such that the idling
This example is based on Xu, Y. et al. High-Fidelity, High-Scalability Two-Qubit Gate Scheme for Superconducting Qubits. Phys. Rev. Lett. 125, 240503 (2020). We simulate a 5 transmon qubit system, where 3 of them are computational qubits and the other 2 are the couplers. We compute the time-evolution and the Pauli error rates for simultaneous single-qubit X gates.
This is a quite different application compared to above ones. Here we try to infer the parameters of the system from spectrum data from experiments. We will consider the simplest case which is fitting the parameters of one Fluxonium. But the procedure can be applied to more complex systems as well.
If this project is helpful to you in your research, the use of SuperGrad in research publications is appropriately acknowledged by citing:
@misc{supergrad_2024,
title={SuperGrad: a differentiable simulator for superconducting processors},
author={Ziang Wang and Feng Wu and Hui-Hai Zhao and Xin Wan and Xiaotong Ni},
year={2024},
eprint={2406.18155},
archivePrefix={arXiv},
primaryClass={quant-ph}
}
which is also a good introduction to the simulator.