quantcore-circuits
quantcore-circuits is Quantcore's design loop for superconducting-qubit chips, built on
KQCircuits. You draw a chip in KLayout or in Python, check it, estimate
its frequencies and couplings from a lumped circuit model (the LOM), simulate it in HFSS or Q3D, compare the two, tune
the geometry towards your targets and export the fab mask. One file, design.json, carries the chip through every
step. The command line is qcc.
Design philosophy
Start cheap, spend solver time only where it pays, and let every result feed the next geometry:
LAYOUT → LOM → EIGENMODE (per component) → FEM on the eigenmode's mesh → extract and analyse → feedback
- Layout. Draw the chip from real components with pins. The layout is the source of truth.
- LOM. The layout becomes a lumped circuit in seconds (f_q, α, f_r, g, χ, κ). Fix the gross errors here.
- Eigenmode, component by component. Cut each qubit–readout group out of the chip and solve its eigenmodes with the junctions as lumped inductors. Small boxes converge fast.
- FEM on the same mesh. Reuse the eigenmode set-up for the driven and capacitance runs.
- Extract and analyse. Read the results back, fill the LOM with the FEM values and compute the Hamiltonian parameters next to the LOM's estimates.
- Feedback. Compare with the targets, propose the next geometry, rebuild, and repeat. Then export the fab mask.
Install
You need Python 3.11 or newer. SQcircuit (in the analysis extra) needs PyTorch, so install the CPU build first:
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install "quantcore-circuits[all]"
qcc kqc-files # once: KQCircuits' simulation scripts and label font (not in its PyPI package)
qcc selftest
qcc kqc-files downloads KQCircuits' own simulation scripts and label font for the installed kqcircuits version
from its GitHub release (the PyPI package does not include them; the HFSS / Q3D / Elmer export copies the scripts
into every job, and KQC's chip-frame labels use the font).
qcc selftest takes about half a minute. It checks the imports of every extra and builds, checks and exports a small
chip. Read any [FAIL] line it prints.
| Extra | Adds |
|---|---|
| (none) | KLayout Python package, KQCircuits, the library and the qcc command |
analysis |
Quantum Metal, pyEPR, scqubits, QuTiP, SQcircuit, QuCat |
sim |
gmsh, PyAEDT, scikit-rf |
notebook |
Jupyter kernel, notebook runner, matplotlib |
all |
analysis + sim + notebook |
dev |
pytest, ruff, pre-commit (see CONTRIBUTING.md) |
The FEM solves need Ansys AEDT 2024 R1 or newer on Windows. Everything else (layout, DRC, LOM, analysis, the fab mask) runs without it. Elmer and Palace input files are written, but solving with them is a future goal. A machine without internet can use the offline wheelhouse, see the simulation PC page.
The KLayout plugin
You need KLayout 0.30 or newer. In KLayout open Tools → Manage Packages → Install New Packages, search for
quantcore-circuits and install it. Restart KLayout: a Quantcore menu appears next to Help. If qcc is not on
your PATH, open Quantcore → Settings… and set qcc executable to the full path of qcc (for example
C:\Users\<you>\miniconda3\envs\myenv\Scripts\qcc.exe). More:
the plugin guide and the
plugin branch of this repository.
Quick start
This builds a feedline with two bond pads, one Xmon qubit and a readout resonator, checks it and makes its lumped
circuit. It writes build/my_chip.oas (open it in KLayout) and my_chip.json into the folder you run it from.
from quantcore_circuits.designer import Designer
d = Designer("my_chip", box=(0, 0, 7500, 7500), live=False) # live=True redraws KLayout after every change
pw = d.add("PAD_W", "BondPad", at=(1125, 3750), rot=270, edge="auto")
pe = d.add("PAD_E", "BondPad", at=(6375, 3750), rot=90, edge="auto")
fl = d.route("FL", pw.a, pe.a) # the feedline
q1 = d.add("Q1", "Xmon", at=(2975, 2200), cross_length=300, junction={"Lj_nH": 12, "Cj_fF": 2})
d.route("R1", q1.claw_n, fl.hanger(s=2000, length=300, side="right"), meander=4200) # the readout resonator
d.show() # build the layout: build/my_chip.oas
d.save("my_chip.json") # the design file
print(d.drc()) # connectivity checks
print(list(d.lom().model.branches)) # the lumped circuit's elements
Next steps: the five tutorial notebooks in
examples/tutorials
(start with tutorial 0), and the
68 design notebooks that
rebuild published chips (IBM, Google, Qiskit Metal, KQC and more).
Documentation
The docs are at https://quantcore-technologies.github.io/Quantcore-Circuits/.
Repository layout
| Folder | What |
|---|---|
src/ |
The quantcore_circuits package: components, PDK, routing, LOM, simulation export, analysis, the qcc CLI |
kplugin/ |
The KLayout plugin (also published as a Salt package) |
examples/ |
Tutorials, 68 design notebooks, templates and example design.json files |
docs/ |
The documentation (Sphinx + MyST) |
tests/ |
The pytest suite (no GUI or solver needed for the fast tier) |
reviewer/ |
Source of the live dashboard (Vite + React); the built app ships inside the package |
scripts/ |
Docs generators, notebook checker, wheel and wheelhouse builders, install scripts |
requirements/ |
Pinned dependency versions the tests run with |
Contributing
Issues and pull requests are welcome. See CONTRIBUTING.md and the changelog.
License
GPL-3.0-or-later, see LICENSE. The package builds on KQCircuits, which is GPL-3.0, so everything that links to it is distributed under the GPL.
Acknowledgements
quantcore-circuits is a thin layer over excellent open-source work: KQCircuits (geometry, routing, simulation export), Qiskit Metal / Quantum Metal (LOM), scqubits, QuTiP, pyEPR, SQcircuit, QuCat, PyAEDT, gmsh and KLayout.
Metadata
Release files for quantcore-circuits 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| quantcore_circuits-0.0.1.tar.gz | 3.3 MB | With provenance | Details for quantcore_circuits-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| quantcore_circuits-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for quantcore_circuits-0.0.1-py3-none-any.whl |
Total release size: 6.5 MB
Release files / quantcore_circuits-0.0.1.tar.gz
| Download URL | quantcore_circuits-0.0.1.tar.gz |
|---|---|
| Size | 3.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d42f2678b17731c26d4b1ef9f984270f0d44af992e9a84db41a8498170bf8efd
|
|
BLAKE2b-256 checksum How to use checksums |
4ac680bb924ca56fe1f32c36945bc5dc1aa465ebd345229b9784d4c08b4ffe83
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / quantcore_circuits-0.0.1-py3-none-any.whl
| Download URL | quantcore_circuits-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e023daa5291f1882ba85de17cda0d9dd4479ed13eed3f7df621879a7887c34c0
|
|
BLAKE2b-256 checksum How to use checksums |
f46ecfcfbfaf1ab38ab0fe6663cc3d006577c23392b0e82a20f078b0f4faede6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for quantcore-circuits 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for quantcore_circuits-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.