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
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 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 |
PunchoutQubitAnalysis
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. |
rotate_to_probability_axis |
Rotates the S21 IQ points to the real - normalized axis |
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 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
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
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