Skip to content

analysis

tergite_autocalibration.lib.nodes.readout.punchout.analysis

Classes:

Name Description
PunchoutNodeAnalysis

This class implements the punchout node analysis, which is used to

PunchoutQubitAnalysis

This class implements the punchout qubit analysis, which is used to

PunchoutNodeAnalysis

PunchoutNodeAnalysis(name, redis_fields)

Bases: BaseAllQubitsAnalysis

This class implements the punchout node analysis, which is used to measure the readout amplitude.

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

PunchoutQubitAnalysis

PunchoutQubitAnalysis(name, redis_fields)

Bases: BaseQubitAnalysis

This class implements the punchout qubit analysis, which is used to measure the readout amplitude.

Methods:

Name Description
analyse_qubit

This method performs the analysis of the qubit data. It extracts the

plot

Plot the fitted values from the analysis

plot_spectroscopies

This method creates a figure with subplots for each resonator

plotter

This method plots the results of the analysis. It creates a 2D

process_qubit

Setup the qubit data and analyze it.

analyse_qubit

analyse_qubit()

This method performs the analysis of the qubit data. It extracts the readout amplitude and frequency from the dataset and performs a resonator spectroscopy analysis for each amplitude. It then selects the best amplitude based on the detected resonator frequency.

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

plot_spectroscopies

plot_spectroscopies(data_path)

This method creates a figure with subplots for each resonator spectroscopy analysis. It highlights the best amplitude with a red rectangle around the corresponding subplot.

plotter

plotter(ax: Axes)

This method plots the results of the analysis. It creates a 2D scatter plot of the detected resonator frequencies against the readout pulse amplitudes. It also highlights the best amplitude with a red cross and adds a colorbar indicating the normalized |S21| 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