Skip to content

analysis

tergite_autocalibration.lib.base.analysis

Classes:

Name Description
BaseAllCouplersAnalysis

Base class for the analysis of all couplers in a node

BaseAllQubitsAnalysis

Base class for the analysis of all qubits in a node

BaseAnalysis

Base class for the analysis

BaseCouplerAnalysis

Base class for the analysis of a single coupler

BaseNodeAnalysis

Base class for the analysis

BaseQubitAnalysis

Base class for the analysis of a single qubit

BaseAllCouplersAnalysis

BaseAllCouplersAnalysis(name, redis_fields, **kwargs)

Bases: BaseNodeAnalysis, ABC

Base class for the analysis of all couplers in a node

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) -> 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() -> Dataset

Open the dataset for the analysis.

Args:

Returns:

Type Description
Dataset

xarray.Dataset with measurement results

BaseAllQubitsAnalysis

BaseAllQubitsAnalysis(name: str, redis_fields)

Bases: BaseNodeAnalysis, ABC

Base class for the analysis of all qubits in a node

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

BaseAnalysis

BaseAnalysis()

Bases: ABC

Base class for the analysis

Methods:

Name Description
plotter

Plot the fitted values from the analysis

plotter abstractmethod

plotter() -> None

Plot the fitted values from the analysis

Returns:

Name Type Description
None None

This will just plot the fitted values

BaseCouplerAnalysis

BaseCouplerAnalysis(name, redis_fields, **kwargs)

Bases: BaseAnalysis, ABC

Base class for the analysis of a single coupler

Methods:

Name Description
plotter

Plot the fitted values from the analysis

plotter abstractmethod

plotter() -> None

Plot the fitted values from the analysis

Returns:

Name Type Description
None None

This will just plot the fitted values

BaseNodeAnalysis

BaseNodeAnalysis()

Bases: ABC

Base class for the analysis

Methods:

Name Description
analyze_node

Run the fitting of the analysis function

open_dataset

Open the dataset for the analysis.

analyze_node abstractmethod

analyze_node(data_path: Path) -> dict[str, QOI]

Run the fitting of the analysis function

Returns:

Type Description
dict[str, QOI]

The quantity of interest as QOI wrapped object

open_dataset

open_dataset() -> Dataset

Open the dataset for the analysis.

Args:

Returns:

Type Description
Dataset

xarray.Dataset with measurement results

BaseQubitAnalysis

BaseQubitAnalysis(name, redis_fields)

Bases: BaseAnalysis, ABC

Base class for the analysis of a single qubit

Methods:

Name Description
analyse_qubit

Run the actual analysis function

plot

Plot the fitted values from the analysis

plotter

Plot the fitted values from the analysis

process_qubit

Setup the qubit data and analyze it.

analyse_qubit abstractmethod

analyse_qubit() -> QOI

Run the actual analysis function

Returns:

Type Description
QOI

The quantity of interest as QOI wrapped object

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 abstractmethod

plotter() -> None

Plot the fitted values from the analysis

Returns:

Name Type Description
None None

This will just plot the fitted values

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