SimCATS is a python framework for simulating charge stability diagrams (CSDs) typically measured during the tuning process of qubits.
Project description
SimCATS
Simulation of CSDs for Automated Tuning Solutions (SimCATS) is a Python framework for simulating charge stability
diagrams (CSDs) typically measured during the tuning process of qubits.
Starting with version 2.0, the framework additionally allows simulating sensor scans. This enables to simulate the
(re)configuration of the sensor dot before measuring a CSD.
Installation
The framework supports Python versions 3.7 - 3.11 and installs via pip:
pip install simcats
Alternatively, the SimCATS package can be installed by cloning the GitHub repository, navigating to the folder
containing the setup.py file and executing
pip install .
For the installation in development/editable mode, use the option -e.
Examples / Tutorials
After installing the package, a good starting point is a look into the Jupyter Notebook
example_SimCATS_simulation_class.ipynb, which provides an overview of the usage of the simulation class offered by
the framework.
For more detailed examples and explanations of the geometric ideal CSD simulation using Total Charge Transitions (TCTs),
look at the Jupyter Notebook example_SimCATS_IdealCSDGeometric.ipynb. This notebook also includes a hint regarding the
generation of required labels for training algorithms that might need line labels defined as start and end points or
require semantic information about particular transitions.
Tests
The tests are written for the PyTest framework but should also work with the unittest framework.
To run the tests, install the packages pytest, pytest-cov, and pytest-xdist with
pip install pytest pytest-cov pytest-xdist
and run the following command:
pytest --cov=simcats -n auto --dist loadfile .\tests\
The argument
--cov=simcatsenables a coverage summary of theSimCATSpackage,-n autoenables the test to run with multiple threads (auto will choose as many threads as possible, but can be replaced with a specific number of threads to use), and--dist loadfilespecifies that each file should be executed only by one thread.
Documentation
The official documentation is hosted on ReadtheDocs, but can also be built locally.
To do this, first install the packages sphinx, sphinx-rtd-theme, sphinx-autoapi, myst-nb , and jupytext with
pip install sphinx sphinx-rtd-theme sphinx-autoapi myst-nb jupytext
and then, in the docs folder, execute the following command:
.\make html
To view the generated HTML documentation, open the file docs\build\html\index.html.
Structure of SimCATS
The primary user interface for SimCATS is the class Simulation, which combines all the necessary functionalities to
measure (simulate) a CSD and adjust the parameters for the simulated measurement. The class Simulation and default
configurations for the simulation (default_configs) can be imported directly from simcats. Aside from that,
SimCATS contains the subpackages ideal_csd, sensor, distortions, and support_functions, described in the
following sections.
Module simulation
An instance of the simulation class requires
- an implementation of the
IdealCSDInterfacefor the simulation of ideal CSD data, - an implementation of the
SensorInterfacefor the simulation of the sensor (dot) reaction based on the ideal CSD data, and - (optionally) implementations of the desired types of distortions, which can be implementations from
OccupationDistortionInterface,SensorPotentialDistortionInterface, orSensorResponseDistortionInterface.
With an initialized instance of the Simulation class, it is possible to run simulations using the measure function
(see example_SimCATS_simulation_class.ipynb).
Subpackage ideal_csd
This subpackage contains the IdealCSDInterface used by the Simulation class and an implementation of the
IdealCSDInterface (IdealCSDGeometric) based on our geometric simulation approach. Please have a look at the notebook
example_SimCATS_IdealCSDGeometric.ipynb and the SimCATS paper for detailed explanations regarding the geometric
approach.
Additionally, it contains in the subpackage geometric the functions used by IdealCSDGeometric, including the
implementation of the total charge transition (TCT) definition and functions for calculating the occupations using TCTs.
Subpackage distortions
The distortions subpackage contains the DistortionInterface from which the OccupationDistortionInterface, the
SensorPotentialDistortionInterface, and the SensorResponseDistortionInterface are derived. Distortion functions used
in the Simulation class have to implement these specific interfaces. Implemented distortions included in the
subpackage are:
- white noise, generated by sampling from a normal distribution,
- pink noise, generated using the package colorednoise (https://github.com/felixpatzelt/colorednoise),
- random telegraph noise (RTN), generated using the algorithm described in "Toward Robust Autotuning of Noisy Quantum Dot Devices" by Ziegler et al. (RTN is called sensor jumps there),
- dot jumps, simulated using the algorithm described in "Toward Robust Autotuning of Noisy Quantum Dot Devices" by Ziegler et al. (In the
Simulationclass, this is applied to a whole block of rows or columns, but there is also a function for applying it linewise.), and - lead transition blurring, simulated using Gaussian or Fermi-Dirac blurring.
The implementations also offer the option to set ratios (parameter ratio) for the occurrence of the distortion (e.g.
dot jumps may only happen sometimes and not in every measurement). Moreover, it is also possible to sample the noise
parameters from a given sampling range using an object of type ParameterSamplingInterface. Classes for randomly
sampling from a normal distribution or a uniform distribution within a given range are available in the subpackage
support_functions. In this case, the strength is randomly chosen from the given range for every measurement.
Additionally, it is possible to specify that this range should be a smaller subrange of the provided range. This allows
restricting distortion fluctuations during a simulation while enabling a large variety of different strengths for the
initialization of the objects.
RTN, dot jumps, and lead transition blurring are applied in the pixel domain. However, the jump length or the blurring
strength should be consistent in the voltage domain even if the resolution changes. Therefore, the parameters are given
in the voltage domain and adjusted according to the resolution in terms of pixel per voltage.
For a simulated measurement with a continuous voltage sweep involving an averaging for each pixel, the noise strength of
the white and pink noise should be adjusted if the resolution (volt per pixel) changes, due to smoothing out the noise.
This smoothing depends on the type of averaging used and is not incorporated in the default implementation.
Subpackage sensor
This subpackage contains the SensorInterface that defines how a sensor simulation must be implemented to be used by
the Simulation class. The SensorPeakInterface provides the desired representation for the definition of the Coulomb
peaks the sensor uses. SensorGeneric implements the SensorInterface and offers functions for simulating the sensor
response and potential. It offers the possibility to simulate with a single peak or multiple sensor peaks. Current
implementations of the SensorPeakInterface are SensorPeakGaussian and SensorPeakLorentzian.
Starting with version 2.0, an extension of the SensorInterface called SensorScanSensorInterface is available.
Implementations of this interface allow simulating sensor scans in addition to CSDs. This enables to simulate the
(re)configuration of the sensor dot before measuring a CSD. SensorScanSensorGeneric implements the
SensorScanSensorInterface, modeling the sensor dot as three resistors in series (barrier, dot, barrier). The function
describing the dot is similar to the function in the SensorGeneric, but has an additional final rise of the signal
after the last Coulomb peak (an implementation of the SensorRiseInterface). A new interface called
BarrierFunctionInterface defines how the barrier functions must be implemented. These functions, which basically model
the shape of a pinch-off measurement, are currently implemented using generalized logistic functions
(BarrierFunctionGLF, BarrierFunctionMultiGLF). The potentials for both barriers and the dot itself are calculated
from the applied voltages and provided lever-arms. Then, the barrier and dot functions are applied to calculate the
individual conductances. Finally, these conductances are combined to retrieve the sensor signal (proportional to the
total conductance across the sensor dot).
Subpackage support_functions
This subpackage contains support functions, which are used by the end user and by different functions of the framework.
fermi_filter1dis an implementation of a one-dimensional Fermi-Dirac filter.plot_csdplots one and two-dimensional CSDs. The function can also plot ground truth data (seeexample_SimCATS_simulation_class.ipynbfor examples).rotate_pointssimply rotates coordinates (stored in a (n, 2) shaped array) by a given angle. It is especially used during the generation of the ideal data.ParameterSamplingInterfacedefines an interface for randomly sampled (fluctuated) strengths of distortions.NormalSamplingRangeandUniformSamplingRangeare implementations of theParameterSamplingInterface.
Citations
@article{hader2024simcats,
author={Hader, Fabian and Fleitmann, Sarah and Vogelbruch, Jan and Geck, Lotte and Waasen, Stefan van},
journal={IEEE Transactions on Quantum Engineering},
title={Simulation of Charge Stability Diagrams for Automated Tuning Solutions (SimCATS)},
year={2024},
volume={5},
pages={1-14},
doi={10.1109/TQE.2024.3445967}
}
License, CLA, and Copyright
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Contributions must follow the Contributor License Agreement. For more information, see the CONTRIBUTING.md file at the top of the GitHub repository.
Copyright © 2026 Peter Grünberg Institute - Integrated Computing Architectures (ICA / PGI-4), Forschungszentrum Jülich GmbH
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simcats-2.0.0.tar.gz.
File metadata
- Download URL: simcats-2.0.0.tar.gz
- Upload date:
- Size: 94.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
11748452788b9a32cfef9af00b782e2a5268ae898db89b5881b8b2b52c35ee0a
|
|
| MD5 |
c75179a38561b0e702d7dbb9e33cafe6
|
|
| BLAKE2b-256 |
7343433e327886cc26833b2c3ffd9d99377fcf2129d6156b2eb2f6c31fcc1497
|
File details
Details for the file simcats-2.0.0-py3-none-any.whl.
File metadata
- Download URL: simcats-2.0.0-py3-none-any.whl
- Upload date:
- Size: 118.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db224824df2fb2382a460b1e1c0a9350ec58b8fb8ff53d470b134e25bd4096ca
|
|
| MD5 |
64ccb64104fe28ab13ac254c4508376f
|
|
| BLAKE2b-256 |
84c39cc6db9aa143b28deab4bfb95ed415ce1dbeba9a36fa08e4c9bc88f83b05
|