Python library for measuring and fitting superconducting resonator data
Project description
scresonators
Welcome to the scresonators repository of the Boulder Cryogenic Quantum Testbed! This is a library for measuring the loss in superconducting resonators.
Importing the Library
- Install the library and its relevant dependencies with
pip install scresonators-fit - Lead your python code with
import fit_resonator.resonator as resonator
Contributing/Modifying
- clone the repository into a folder of your choice with
git clone https://github.com/Boulder-Cryogenic-Quantum-Testbed/scresonators.git - Install the dependencies, we strongly recommend using virtual environments for managing your dependences. To install dependencies run:
pip install -r requirements.txt - If you are running on Windows, install Microsoft Visual Studio before using the library
Using the library
Fitting resonator data will revolve around the resonator class.
Here's an example using some of the data hosted on this repository. Hosted datasets from groups around the world can be found here.
import numpy as np
import fit_resonator.resonator as scres
# The object all following code will be called from
my_resonator = scres.Resonator()
# Load the raw data
url = 'https://raw.githubusercontent.com/Boulder-Cryogenic-Quantum-Testbed/scresonators/master/cryores/test_data/AWR/AWR_Data.csv'
raw = np.loadtxt(url, delimiter=',')
# Can also use our file input system of my_resonator.from_file(url)
# Test with file load into class
my_resonator.from_columns(raw)
# Assign your desired fit method variables
fit_type = 'DCM'
MC_iteration = 10
MC_rounds = 1e3
MC_fix = ['w1']
manual_init = None
# Pass these to your resonator object
my_resonator.fit_method(fit_type, MC_iteration, MC_rounds=MC_rounds, MC_fix=MC_fix, manual_init=manual_init,
MC_step_const=0.3)
# Fit!
my_resonator.fit()
Ane in depth description is given in the fit_resonators folder.
Code Organization
For fitting code collaboration, all code should live in the fit_resonator namespace. This ensures easy integration
with other Python packages, and avoids name collisions; everything is referred
to as e.g. fit_resonator.experiments rather than just experiments.
Project details
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 scresonators-fit-0.6.1.tar.gz.
File metadata
- Download URL: scresonators-fit-0.6.1.tar.gz
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d10fe09666468de19888ec09a187dbd9447361d6f251b7d81207a171a4f779ff
|
|
| MD5 |
eec87ad779e6aaa7b3b48dd3fe525216
|
|
| BLAKE2b-256 |
d5528d9cab88443cde965547bd5f456e350f2444a43ae5696a7db68d94794faa
|
File details
Details for the file scresonators_fit-0.6.1-py3-none-any.whl.
File metadata
- Download URL: scresonators_fit-0.6.1-py3-none-any.whl
- Upload date:
- Size: 27.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ad118fb6b3bdcc881bc9ae3ccf96bd5e9c054ea6744c648513dc51095842e56
|
|
| MD5 |
99ce16c482a31883f59e13009807dc90
|
|
| BLAKE2b-256 |
b7553adaa6f102421681d9191f9c2b7caa7c6e1f980f5578b685f21eba6a31cf
|