laboneq_applications.contrib.analysis.time_rabi_chevron
¶
This module defines the analysis for a time rabi chevron experiment.
The experiment is defined in laboneq_applications.experiments.
In this analysis, we first interpret the raw data into qubit populations using principal component analysis or rotation and projection on the measured calibration states. Then we plot the data.
analysis_workflow(result, qubits, frequencies, lengths, options=None)
¶
The Time Rabi analysis Workflow.
The workflow consists of the following steps:
Parameters:
Name | Type | Description | Default |
---|---|---|---|
result |
RunExperimentResults
|
The experiment results returned by the run_experiment task. |
required |
qubits |
Qubits
|
The qubits on which to run the analysis. May be either a single qubit or a list of qubits. The UIDs of these qubits must exist in the result. |
required |
frequencies |
QubitSweepPoints
|
The qubit frequencies to sweep over for the qubit drive pulse. If |
required |
lengths |
QubitSweepPoints
|
The lengths to sweep over for each qubit drive pulse. |
required |
options |
TuneUpAnalysisWorkflowOptions | None
|
The options for building the workflow, passed as an instance of [TuneUpAnalysisWorkflowOptions]. |
None
|
Returns:
Name | Type | Description |
---|---|---|
WorkflowBuilder |
None
|
The builder for the analysis workflow. |
Example
options = analysis_workflow.options()
result = analysis_workflow(
results=results
qubits=[q0, q1],
frequencies=[
np.linspace(1.5e9, 2.0e9, 11),
np.linsapce(1.5e9, 2.0e9, 11),
],
lengths=[
np.linspace(10e-9, 100e-9, 11),
np.linspace(10e-9, 100e-9, 11),
],
options=options,
).run()
plot_population(qubits, processed_data_dict, options=None)
¶
Create the time-Rabi plots.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
qubits |
Qubits
|
The qubits on which to run the analysis. May be either a single qubit or a list of qubits. The UIDs of these qubits must exist in the processed_data_dict, fit_results and qubit_parameters. |
required |
processed_data_dict |
dict[str, dict[str, ArrayLike]]
|
the processed data dictionary returned by process_raw_data |
required |
options |
TuneupAnalysisOptions | None
|
The options for processing the raw data. See [TuneupAnalysisOptions], [TuneupExperimentOptions] and [BaseExperimentOptions] for accepted options. Overwrites the options from [TuneupAnalysisOptions], [TuneupExperimentOptions] and [BaseExperimentOptions]. |
None
|
Returns:
Type | Description |
---|---|
dict[str, Figure]
|
dict with qubit UIDs as keys and the figures for each qubit as values. |