Skip to content

analysis

tergite_autocalibration.lib.nodes.characterization.t1.analysis

Module containing a class that fits and plots data from a T1 experiment.

Classes:

Name Description
T1NodeAnalysis

Class for T1 analysis node, which uses T1QubitAnalysis for each qubit

T1QubitAnalysis

Class for T1 analysis of a single qubit, which fits the data from a T1 experiment

T1NodeAnalysis

T1NodeAnalysis(name, redis_fields)

Bases: BaseAllQubitsAnalysis

Class for T1 analysis node, which uses T1QubitAnalysis for each qubit

Methods:

Name Description
analyze_node

Analyze the node and save the results to redis.

open_dataset

Open the dataset for the analysis.

analyze_node

analyze_node(data_path: Path, index: int = 0) -> QOI

Analyze the node and save the results to redis. Args: data_path: Path to the dataset index: Index of the dataset to be analyzed

Returns:

Name Type Description
analysis_results QOI

Dictionary with the analysis results for each qubit

open_dataset

open_dataset(index: int = 0) -> Dataset

Open the dataset for the analysis.

Parameters:

Name Type Description Default
index int

By default 0 for most of the measurements, can be set to load multiple datasets.

0

Returns:

Type Description
Dataset

xarray.Dataset with measurement results

T1QubitAnalysis

T1QubitAnalysis(name, redis_fields)

Bases: BaseQubitAnalysis

Class for T1 analysis of a single qubit, which fits the data from a T1 experiment and plots the results.

Methods:

Name Description
analyse_qubit

Perform the analysis of the T1 data for a single qubit.

plot

Plot the fitted values from the analysis

plotter

Plot the results of the T1 analysis on the provided axes.

process_qubit

Setup the qubit data and analyze it.

rotate_to_probability_axis

Rotates the S21 IQ points to the real - normalized axis

analyse_qubit

analyse_qubit()

Perform the analysis of the T1 data for a single qubit. Returns: QOI: A QOI object containing the analysis results.

plot

plot(primary_axis)

Plot the fitted values from the analysis Args: primary_axis: The axis object from matplotlib to be plotted Returns: None, will just plot the fitted values

plotter

plotter(ax: Axes)

Plot the results of the T1 analysis on the provided axes. Args: ax: The axes on which to plot the results.

process_qubit

process_qubit(dataset, qubit_element) -> QOI

Setup the qubit data and analyze it. Args: dataset: xarray dataset with the qubit data qubit_element: name of the qubit element Returns: QOI: Quantity of interest as QOI wrapped object

rotate_to_probability_axis

rotate_to_probability_axis(complex_measurement_data)

Rotates the S21 IQ points to the real - normalized axis that describes the |0> - |1> axis. !!! It Assumes that complex_measurement_data[-2] corresponds to the |0> and complex_measurement_data[-1] corresponds to the |1>