[!WARNING] quchip is an alpha-stage 0.x project. Minor releases may change public APIs. Pin an exact version when reproducibility matters.
Website · Documentation · Paper
quchip is an open-source Python toolkit for modelling superconducting quantum chips.
A predictive chip model needs more than a Hamiltonian. Device physics, control-line transformations, frames, approximations, dissipation, and measured observables all need explicit places in the model. Gain, delay, and crosstalk remain properties of the control chain instead of being folded into Hamiltonian coefficients by hand.
Declare the chip once, then use the same model for dressed-state analysis, model reduction, control sequences, open-system simulation, parameter sweeps, and JAX gradients.
QuTiP is the default simulation backend. The optional dynamiqs backend is JAX-native and keeps declared device and control parameters differentiable through a solve. The scqubits integration imports and exports selected device and composite models.
quchip uses GHz for ordinary frequencies, ns for time, and mK for temperature. The implemented conventions and approximations are documented in the physics guide.
Install
quchip requires Python 3.11 or newer.
python -m pip install quchip
Install optional support for dynamiqs, graph visualization, or scqubits as needed:
python -m pip install 'quchip[dynamiqs]'
python -m pip install 'quchip[viz]'
python -m pip install 'quchip[scqubits]'
Extras can be combined. To install the current source instead:
git clone https://github.com/quchip/quchip.git
cd quchip
python -m pip install .
Define and inspect a chip
from quchip import RWA, Capacitive, Chip, DuffingTransmon, Resonator
qubit = DuffingTransmon(
freq=5.0,
anharmonicity=-0.30,
levels=6,
label="q",
)
readout = Resonator(
freq=6.8,
levels=10,
quality_factor=6800,
label="r",
)
coupling = Capacitive(qubit, readout, g=0.060, label="qr")
chip = Chip(
[qubit, readout],
couplings=[coupling],
frame="rotating",
approximation=RWA(),
)
authored_hamiltonian = chip.unresolved_hamiltonian()
resolved_hamiltonian = chip.hamiltonian()
f01 = chip.freq(qubit)
f12 = chip.transition_frequency(qubit, 1, 2)
fr0 = chip.freq(readout, when={qubit: 0})
fr1 = chip.freq(readout, when={qubit: 1})
chi = (fr1 - fr0) / 2
unresolved_hamiltonian() preserves the local device and coupling expressions you declared. hamiltonian() applies the chip's basis, frame, and approximation. Both return inspectable symbolic expressions; call .matrix(t=...) when a resolved expression is time-dependent and you need its numerical array.
The remaining calls read dressed transition frequencies and the resonator frequency conditioned on the qubit state. Their half-difference gives the dispersive shift $\chi$.
The defining and inspecting a chip guide continues from this example with LaTeX output, term inspection, frame transformations, projections, and graph views.
Add dynamics and readout
The dynamics guide adds control lines and pulse sequences to the chip above. It compares short and selective Gaussian qubit drives in the full multilevel model, then simulates conditional resonator readout.
Guides
- Define and inspect a chip: build a model, inspect its Hamiltonian, and see how frames and approximations change it.
- Statics and parameter studies: read dressed observables, sweep parameters, and follow states through an avoided crossing.
- Dynamics, pulses, observables, and readout: build pulse schedules, batch experiments, inspect states, and simulate resonator readout.
- Chip transformations: rebind, serialize, partition, eliminate, fit, and replay reduced models.
- Differentiability: differentiate static and dynamic losses, fit a published fluxonium spectrum, and combine experiments that share parameters.
- Extension guide: define new devices, couplings, drives, envelopes, dissipation, local spaces, and interoperability mappings.
- Cookbook: the conventions used throughout quchip's examples.
- From the SQA 2026 talk: short, runnable entry points into the main topics.
Project status and contributing
Report bugs and model requests through GitHub Issues. Use Discussions for questions and open-ended proposals. Read the contributing guide before making code or physics changes.
Paper and citation
The accompanying paper is quchip: A Differentiable Toolkit for Modeling Quantum Devices (arXiv:2607.17081).
The interactive walkthrough follows one five-device model through declaration, crosstalk identification and correction, adiabatic reduction from 576 to 16 dimensions, and gradient-based recovery of four directed crosstalk parameters.
If you use quchip in your work, please cite:
@misc{alyousef2026quchip,
title={quchip: A Differentiable Toolkit for Modeling Quantum Devices},
author={Ibraheem AlYousef},
year={2026},
eprint={2607.17081},
archivePrefix={arXiv},
primaryClass={quant-ph},
doi={10.48550/arXiv.2607.17081},
url={https://arxiv.org/abs/2607.17081},
}
Citation metadata for the software is also available in CITATION.cff.
License
quchip is distributed under the Apache License 2.0. See LICENSE.
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 quchip-0.2.1.tar.gz.
File metadata
- Download URL: quchip-0.2.1.tar.gz
- Upload date:
- Size: 4.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
72ed26c9dd9e67bb41474b81645dad19f8bf86b7f997cf61893afa40f6258d14
|
|
| MD5 |
d4980a522cb871da7f2e7d25a6067cc4
|
|
| BLAKE2b-256 |
5590f3fd1d24cb9b13ad61ce9633f673cc6409f0044c66e7dce4bf2e15a26eab
|
Provenance
The following attestation bundles were made for quchip-0.2.1.tar.gz:
Publisher:
release.yml on quchip/quchip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quchip-0.2.1.tar.gz -
Subject digest:
72ed26c9dd9e67bb41474b81645dad19f8bf86b7f997cf61893afa40f6258d14 - Sigstore transparency entry: 2627029093
- Sigstore integration time:
-
Permalink:
quchip/quchip@972ddfbea98ec5fcdecb4c3005bb59fcaaf2f53c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/quchip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@972ddfbea98ec5fcdecb4c3005bb59fcaaf2f53c -
Trigger Event:
push
-
Statement type:
File details
Details for the file quchip-0.2.1-py3-none-any.whl.
File metadata
- Download URL: quchip-0.2.1-py3-none-any.whl
- Upload date:
- Size: 461.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0519cb9edfa67840f12381ba56d89506888805b959399e890fc9aac5b2c9aa2
|
|
| MD5 |
75b06e87432a881437de8c937a7e8e3f
|
|
| BLAKE2b-256 |
50823fbc5e5a48064c5e5aec1d05abd46e4014053bba608a0883887eea5c60d7
|
Provenance
The following attestation bundles were made for quchip-0.2.1-py3-none-any.whl:
Publisher:
release.yml on quchip/quchip
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
quchip-0.2.1-py3-none-any.whl -
Subject digest:
a0519cb9edfa67840f12381ba56d89506888805b959399e890fc9aac5b2c9aa2 - Sigstore transparency entry: 2627029101
- Sigstore integration time:
-
Permalink:
quchip/quchip@972ddfbea98ec5fcdecb4c3005bb59fcaaf2f53c -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/quchip
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@972ddfbea98ec5fcdecb4c3005bb59fcaaf2f53c -
Trigger Event:
push
-
Statement type: