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
adjust_figures

modify the figures dictionary attributed of the current analysis

analyze_node

Analyze the node and save the results to redis.

adjust_figures

adjust_figures()

modify the figures dictionary attributed of the current analysis so the figures have a more standardized appearance

analyze_node

analyze_node(dataset: Dataset) -> dict[str, QOI]

Analyze the node and save the results to redis. Args: dataset: the full configured result dataset

Returns:

Name Type Description
analysis_results dict[str, QOI]

Dictionary with the analysis results for each qubit

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.

analyze_node

analyze_node(dataset: Dataset) -> dict[str, QOI]

Analyze the node and save the results to redis. Args: dataset: the full configured result dataset

Returns:

Name Type Description
analysis_results dict[str, QOI]

Dictionary with the analysis results for each qubit

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

analyze_node abstractmethod

analyze_node(dataset: Dataset) -> dict[str, QOI]

Run the fitting of the analysis function

Returns:

Type Description
dict[str, QOI]

The quantity of interest as QOI wrapped object

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