Skip to main content

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.

Installation

  1. clone the repository into a folder of your choice with git clone https://github.com/Boulder-Cryogenic-Quantum-Testbed/scresonators.git
  2. Install the dependencies, we strongly recommend using virtual environments for managing your dependences. To install dependencies run: pip install -r requirements.txt
  3. If you are running on Windows, install Microsoft Visual Studio before using the library

Using the library

Here's an example using some of the data hosted on this repository. Hosted datasets from groups around the world can be found here.

This particular example code is meant to be run in the root directory.

import numpy as np
import fit_resonator.functions as ff
import fit_resonator.Sdata as fsd
import fit_resonator.resonator as res

url = 'https://raw.githubusercontent.com/Boulder-Cryogenic-Quantum-Testbed/scresonators/master/cryores/test_data/AWR/AWR_Data.csv'

# Load the raw data:
raw = np.loadtxt(url, delimiter=',')

# Choose a fitting method:
fit_type = 'DCM'
MC_iteration = 10
MC_rounds = 1e3
MC_fix = ['w1']
manual_init = None
method = res.FitMethod(fit_type, MC_iteration, MC_rounds=MC_rounds,
                       MC_fix=MC_fix, manual_init=manual_init, MC_step_const=0.3)

# Fit the data:
fsd.fit("output test", method, normalize=10, data_array=raw)

Ane in depth description is given in the fit_resonators folder.

Code Organization

Until the module is officially distributed, 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

scrfit-0.5.4.tar.gz (29.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scrfit-0.5.4-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file scrfit-0.5.4.tar.gz.

File metadata

  • Download URL: scrfit-0.5.4.tar.gz
  • Upload date:
  • Size: 29.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.0

File hashes

Hashes for scrfit-0.5.4.tar.gz
Algorithm Hash digest
SHA256 32ce2249f172daadceb1af053e97d52e79f530d9132caf78e3edbd02488ddc73
MD5 0b9fe85b4d14dacd46fddbfdd393833b
BLAKE2b-256 7672cb10ef3978558c1c347f12c1a423ebde4f63bcbd88fc03399f5999b2db26

See more details on using hashes here.

File details

Details for the file scrfit-0.5.4-py3-none-any.whl.

File metadata

  • Download URL: scrfit-0.5.4-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.7.0

File hashes

Hashes for scrfit-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 03072341ac59a38ff0fb21768e0d52b0c90941126f7706e7a782bda3d1acc712
MD5 031572d1bbe9725212d562ccc8972df6
BLAKE2b-256 16f30cf3266fa67288b765fb7b72dfd94995f19dd41fddb301ad489ca22b7b44

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page