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) -> dict[str, QOI]

Analyze the node and save the results to redis. Args: data_path: Path to the dataset

Returns:

Name Type Description
analysis_results dict[str, QOI]

Dictionary with the analysis results for each qubit

open_dataset

open_dataset() -> Dataset

Open the dataset for the analysis.

Args:

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.

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