laboneq_applications.analysis.spectroscopy_two_dimensional_plotting
¶
This module defines the plotting analysis workflow for 2D spectroscopy experiments.
spectroscopy experiment workflows such as
- laboneq_applications.experiments.resonator_spectroscopy_amplitude
- laboneq_applications.experiments.qubit_spectroscopy_amplitude
In this analysis, we have the option to plot the raw data and the signal magnitude and phase.
Spectroscopy2DPlottingWorkflowOptions
¶
analysis_workflow(result, qubits, sweep_points_1d, sweep_points_2d, label_sweep_points_1d, label_sweep_points_2d, scaling_sweep_points_2d=1.0, options=None)
¶
The analysis Workflow for plotting spectroscopy 2D data.
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
|
QuantumElements
|
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 |
sweep_points_1d
|
QubitSweepPoints
|
The sweep points corresponding to the innermost sweep.
If |
required |
sweep_points_2d
|
QubitSweepPoints
|
The sweep points corresponding to the outermost sweep.
If |
required |
label_sweep_points_1d
|
str
|
The label that will appear on the axis of the 1D sweep points.
Passed to the |
required |
label_sweep_points_2d
|
str
|
The label that will appear on the axis of the 2D sweep points.
Passed to the |
required |
scaling_sweep_points_2d
|
float
|
The scaling factor of the 2D sweep points.
Passed to the |
1.0
|
options
|
Spectroscopy2DPlottingWorkflowOptions | None
|
The options for building the workflow, passed as an instance of Spectroscopy2DPlottingWorkflowOptions. See the docstring of this class for more details. |
None
|
Returns:
| Name | Type | Description |
|---|---|---|
WorkflowBuilder |
None
|
The builder for the analysis workflow. |
Example
analysis_result = analysis_workflow(
result=result,
qubits=[q0, q1],
sweep_points_1d=[np.linspace(6.0, 6.3, 301), np.linspace(5.8, 6.1, 301)],
sweep_points_2d=[np.linspace(0, 1, 11), np.linspace(0, 1, 11)],
label_sweep_points_1d="Qubit Frequency (Hz)",
label_sweep_points_2d="Spectroscopy-Drive Amplitude (a.u.)",
).run()