SCCircuits
SCCircuits is a Python package for numerical superconducting-circuit analysis. It focuses on matrix-based black-box quantization, dense Hamiltonian construction, spectroscopy workflows, and small research utilities for superconducting quantum circuits.
Documentation
The user-facing documentation is published at:
https://joanjcaceres.github.io/sccircuits/
Recommended starting points:
- BBQ Overview explains the practical workflow from cQEDraw or circuit matrices to
BBQresults. - BBQ Quickstart gives a runnable matrix example with frequencies and phase ZPFs.
- BBQ Examples collects worked examples and the planned cQEDraw project-download example.
- BBQ Validation explains the code-backed checks behind the matrix reductions and branch conventions.
- BBQ Implementation Notes maps the mathematical derivation to the current
BBQimplementation stages. - BBQ API shows how to call
sccircuits.BBQ, read frequencies and phase ZPFs, and build Hamiltonians. - Circuit Matrix Quantization documents the matrix reductions, mode normalization, units, and branch phase zero-point fluctuations.
The site is intentionally incremental. BBQ is the first fully documented
research workflow because it is currently the most mature path between cQEDraw
and SCCircuits. The rest of the package should be documented through the same
site as those workflows stabilize.
The Markdown source for the website lives in docs/. Build it locally with:
pixi run -e sccircuits docs-build
Companion GUI
cQEDraw is the companion web app for drawing and
analyzing superconducting circuit graphs. A typical workflow is:
- Draw the circuit in cQEDraw.
- Export or copy the generated capacitance matrix, inverse-inductance matrix, and Josephson junction records.
- Pass those matrices and records to
sccircuits.BBQ. - Inspect mode frequencies, branch phase ZPFs, and Hamiltonian spectra in Python.
Installation
Recommended: pip
Researchers should install SCCircuits from PyPI:
python -m pip install sccircuits
This installs the pure-Python SCCircuits package plus NumPy, SciPy, Matplotlib, SymPy, and PyYAML from normal Python wheels. Pixi is not required to use the package.
Optional extras are available for notebook widgets, development, and docs:
python -m pip install "sccircuits[interactive]"
python -m pip install "sccircuits[dev]"
python -m pip install "sccircuits[docs]"
Development: Pixi
Pixi remains the recommended contributor environment because it keeps the NumPy/SciPy stack reproducible while developing and testing the repository.
git clone https://github.com/joanjcaceres/sccircuits.git
cd sccircuits
pixi run -e sccircuits install-dev
pixi run -e sccircuits test
For local editable development without Pixi:
python -m venv .venv
source .venv/bin/activate
python -m pip install -e ".[dev,interactive,docs]"
Performance Baseline
SCCircuits relies on NumPy and SciPy wheels for cross-platform BLAS/LAPACK linear algebra. The first public package does not compile native extensions or require GPU-specific backends.
To record a quick local diagonalization baseline:
python benchmarks/diagonalization_smoke.py
Quick Example
import numpy as np
from sccircuits import BBQ
capacitance_matrix = np.array(
[
[40e-15, -32.9e-15],
[-32.9e-15, 40e-15],
]
)
inverse_inductance_matrix = np.array(
[
[1 / 1.23e-9, 0.0],
[0.0, 1 / 1.23e-9],
]
)
bbq = BBQ(
capacitance_matrix,
inverse_inductance_matrix,
nonlinear_branches=(0, 1),
)
print("Mode frequencies in GHz:", bbq.frequencies_ghz)
print("Branch phase ZPFs:", bbq.branch_phase_zpfs)
For cQEDraw exports with Josephson junction records, pass the records directly:
bbq = BBQ(
capacitance_matrix,
inverse_inductance_matrix,
junctions=junctions,
)
BBQ keeps the junction row order when reporting branch_phase_zpfs and
josephson_energies_ghz, so drawing tools can map results back to the original
branches.
Core Modules
sccircuits.BBQ: black-box quantization from capacitance and inverse-inductance matrices.sccircuits.Circuit: dense superconducting-circuit Hamiltonian construction and diagonalization.sccircuits.TransitionFitter: transition-frequency fitting utilities.sccircuits.PointPicker: interactive point selection for data analysis.
Development
Run the main checks with:
pixi run -e sccircuits test
pixi run -e sccircuits lint
pixi run -e sccircuits docs-build
Check the pip package path with:
python -m build
python -m twine check dist/*
python -m pip install dist/sccircuits-*.whl
python -m pip check
python tests/pip_smoke.py
If dependency resolution becomes inconsistent, recreate the Pixi environment:
pixi clean
pixi run -e sccircuits install-dev
License
This project is licensed under the MIT License. See LICENSE for details.
Contact
Joan Caceres - contact@joanjcaceres.com
Project link: https://github.com/joanjcaceres/sccircuits
Metadata
Release files for sccircuits 0.1.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 |
|---|---|---|---|---|
| sccircuits-0.1.1.tar.gz | 63.2 kB | With provenance | Details for sccircuits-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sccircuits-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for sccircuits-0.1.1-py3-none-any.whl |
Total release size: 119.3 kB
Release files / sccircuits-0.1.1.tar.gz
| Download URL | sccircuits-0.1.1.tar.gz |
|---|---|
| Size | 63.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63b8537d4ef320033c6f1f19e358398cd62d490396e60216736ccb519fa3fcc8
|
|
BLAKE2b-256 checksum How to use checksums |
65e0f63a9aa87a72e48c67a3c52f4f14f8a4db1233ff15512fc4bc9d15311513
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 10, 2026.
Transparency logRelease files / sccircuits-0.1.1-py3-none-any.whl
| Download URL | sccircuits-0.1.1-py3-none-any.whl |
|---|---|
| Size | 56.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ed6f7a8d27357ebd3abe05cea8458faed749839f15129ec62a8a47e3d553683
|
|
BLAKE2b-256 checksum How to use checksums |
fbc628074e2ee155d77f3e32dbd6a481a225a8f7262faf4b9d6019a3ee7a90e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Sep 10, 2026.
Transparency logSecurity for sccircuits 0.1.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 sccircuits-0.1.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 Sep 10, 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.