Skip to main content

QFit: Interactive Parameter Fitting for Superconducting Circuits

Conda Downloads Conda Version

Notice: This package is currently in beta testing. Bugs and issues are expected. We greatly appreciate your feedback and bug reports to help us improve.

Developers: Tianpu Zhao, Danyang Chen, Jens Koch

UI/UX designer: Tianying Lyu

Overview

QFit is your go-to Python application for extracting parameters of superconducting circuits from measured spectroscopy data. Following the four-step workflow, you can get your circuit parameters in no time:

  1. Calibration: QFit helps to establish the mapping from voltage (your experimental tunable input) to circuit parameters (your simulation ingredients).

  2. Point Extraction: With just a click, you can locate the resonance peak in the spectroscopy data with computer-assistance. The extracted data can be simply grouped as a transition and labeled. QFit even provides filters and coloring options for enhancing data visualization.

  3. Interactive Pre-fit: See your numerical model result and the data on the same plot for intuitive comparison. Adjust the numerical simulator with simple sliders to improve your fit.

  4. Automated Fitting: With one click, let the numerical optimizers do the work. You can easily configure your fitting: adjust which paramters are fixed or free, set their range, and more.

QFit supports a wide variety of circuit quantum electrodynamic systems, thanks to the powerful Python library scqubits as its backend simulator. Once you've extracted your parameters, you can pass them directly to scQubits for any further numerical simulations you need to do.

Join us in refining QFit during its beta phase! Your insights and reports are invaluable in making QFit a robust tool for this community. Dive in and explore what QFit can do for you, and let us know your experience!

Installation

Follow these steps to install QFit:

  1. (Optional but highly Recommended) Create a virtual environment with python (version >= 3.10). If you are using conda, run on terminal
    conda create -n <env name> python=3.10
    conda activate <env name>
  1. Then, install QFit by
    conda install conda-forge::qfit

Once done, the application can be launched in a jupyter notebook session via

    from qfit import Fit
    Fit(<HilbertSpace>)

where <HilbertSpace> is a scqubits.HilbertSpace object, the circuit model you want to fit against.

[!NOTE] While you can install QFit with pip install qfit, this application is unstable on machines with Apple silicons. This is due to compatibility issues with pip-installed scipy. As a workaround, you can run conda install scipy afterward, though using conda for the full installation is preferred.

Usage

Please check out the notebook QFit_Quick_Start.ipynb for a quick tutorial, and QFit_Advanced_Tips.ipynb for further information.

License

license

You are free to use this software, with or without modification, provided that the conditions listed in the LICENSE file are satisfied.

qfit uses Qt library under license GNU Lesser General Public License v3.0.

qfit uses CoreUI icons and Font Awesome icons licensed under CC BY 4.0, and SVG Reop icons licensed under the MIT license.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Metadata

Release files for qfit 3.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for qfit 3.0.5
File Size Uploaded Provenance Actions
qfit-3.0.5.tar.gz 87.8 MB With provenance Details for qfit-3.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qfit 3.0.5
File Interpreter ABI Platform Actions
qfit-3.0.5-py3-none-any.whl Python 3 none any Details for qfit-3.0.5-py3-none-any.whl

Total release size: 95.4 MB

Release files / qfit-3.0.5.tar.gz

Download URL qfit-3.0.5.tar.gz
Size 87.8 MB
Tags Source
SHA-256 checksum
How to use checksums
7cd43e9658aff304401ca62c648a79d0c875b01937f55d898baef7c896fa27d2
BLAKE2b-256 checksum
How to use checksums
fed66f16e76ec49a4a0dd5afdcc92950897989a17ee5c7f1a2c13792c2e719ce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 30, 2026.

Transparency log

Release files / qfit-3.0.5-py3-none-any.whl

Download URL qfit-3.0.5-py3-none-any.whl
Size 7.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
12a8670f5e995af7b93619fce3914e3646fb11388f3d1680e68a0876b54e604d
BLAKE2b-256 checksum
How to use checksums
39fb416e508111fb153a073f33a2bab9458647b1d5398a9e8d8471fc4ca357d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 30, 2026.

Transparency log

Security for qfit 3.0.5

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qfit-3.0.5.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 May 30, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page