qblox_scheduler.analysis.cosine_analysis#

Module containing an education example of an analysis subclass.

See Tutorial 3. Building custom analyses - the data analysis framework that guides you through the process of building this analysis.

Classes#

CosineAnalysis

Exemplary analysis subclass that fits a cosine to a dataset.

Module Contents#

class CosineAnalysis(dataset: xarray.Dataset | None = None, tuid: quantify_core.data.types.TUID | str | None = None, label: str = '', settings_overwrite: dict | None = None, plot_figures: bool = True)[source]#

Bases: qblox_scheduler.analysis.base_analysis.BaseAnalysis

Exemplary analysis subclass that fits a cosine to a dataset.

process_data()[source]#

In some cases, you might need to process the data, e.g., reshape, filter etc., before starting the analysis. This is the method where it should be done.

See process_data() for an implementation example.

run_fitting()[source]#

Fits a CosineModel to the data.

create_figures()[source]#

Creates a figure with the data and the fit.

analyze_fit_results()[source]#

Checks fit success and populates quantities_of_interest.