Giter Site home page Giter Site logo

ahkatlio / qfit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scqubits/qfit

0.0 0.0 0.0 67.07 MB

Interactive Parameter Fitting for Superconducting Circuits

License: BSD 3-Clause "New" or "Revised" License

Shell 0.01% Python 99.04% Jupyter Notebook 0.95%

qfit's Introduction

QFit: Interactive Parameter Fitting for Superconducting Circuits

Tianpu Zhao, Danyang Chen, Jens Koch

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 peak of the spectrum sweep 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.

So, why wait? Dive in and explore what QFit can do for you!

Installation and Usage

Follow these steps to install QFit:

1a. Download source code from GitHub (through Code button on the top right), unzip the source code folder in a <directory>.

OR

1b. Open a terminal, cd <directory> to the directory where you would like to store the source code of QFit, then

    git clone https://github.com/scqubits/qfit
  1. (Optional but highly Recommended) Create a virtual environment with python (python >= 3.8 and <= 3.11 is recommended), e.g. run on terminal
    conda create -n <env name> python=3.11
    conda activate <env name>
  1. On terminal, install QFit by
    cd <directory>/qfit
    conda install requirements.txt --yes --file -c conda-forge
    pip install .

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.

Check out the notebook QFit_Quick_Start.ipynb for a quick intro tutorial.

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 CoreUI icons, licensed under CC BY 4.0.

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.

qfit's People

Contributors

harrinive avatar zhaotianpu avatar jkochnu avatar 99elam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.