laboneq_applications.experiments.options
¶
Experiment task and workflow options.
T = TypeVar('T')
module-attribute
¶
BaseExperimentOptions
¶
Base options for the experiment.
Attributes:
| Name | Type | Description |
|---|---|---|
count |
int
|
The number of repetitions. Default: A common choice in practice, 1024. |
averaging_mode |
str | AveragingMode
|
Averaging mode to use for the experiment.
Default: |
acquisition_type |
str | AcquisitionType
|
Acquisition type to use for the experiment.
Default: |
repetition_mode |
str | RepetitionMode
|
The repetition mode to use for the experiment.
Default: |
repetition_time |
float | None
|
The repetition time. Default: None. |
reset_oscillator_phase |
bool
|
Whether to reset the oscillator phase. Default: False. |
active_reset |
bool
|
Whether to use active reset. Default: False. |
active_reset_repetitions |
int
|
The number of times to repeat the active resets. Default: 1 |
active_reset_states |
str | tuple | None
|
The qubit states to actively reset. Default: "ge" |
QubitSpectroscopyExperimentOptions
¶
Base options for the qubit spectroscopy experiment.
Attributes:
| Name | Type | Description |
|---|---|---|
spectroscopy_reset_delay |
float
|
How long to wait after an acquisition in seconds. Default: 1e-6. |
ResonatorSpectroscopyExperimentOptions
¶
Base options for the resonator spectroscopy experiment.
Attributes:
| Name | Type | Description |
|---|---|---|
use_cw |
bool
|
Perform a CW spectroscopy where no measure pulse is played. Default: False. |
spectroscopy_reset_delay |
float
|
How long to wait after an acquisition in seconds. Default: 1e-6. |
acquisition_type |
AcquisitionType
|
Acquisition type to use for the experiment. Use
|
TWPASpectroscopyExperimentOptions
¶
Base options for the TWPA spectroscopy experiment.
Attributes:
| Name | Type | Description |
|---|---|---|
use_probe_from_ppc |
bool
|
Use the probe tone from the SHFPPC instead of the QA out. Default: False. |
use_cw |
bool
|
Perform a CW spectroscopy where no measure pulse is played. Default: False. |
spectroscopy_reset_delay |
float
|
How long to wait after an acquisition in seconds. Default: 1e-6. |
acquisition_type |
AcquisitionType
|
Acquisition type to use for the experiment.
Default: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the acquisition_type is not AcquisitionType.SPECTROSCOPY or AcquisitionType.SPECTROSCOPY_PSD. |
TWPATuneUpExperimentOptions
¶
Base options for TWPA Tuneup experiments.
Attributes:
| Name | Type | Description |
|---|---|---|
use_probe_from_ppc |
bool
|
Use the probe tone from the SHFPPC instead of the QA out. Default: False. |
spectroscopy_reset_delay |
float
|
How long to wait after an acquisition in seconds. Default: 1e-6. |
acquisition_type |
AcquisitionType
|
Acquisition type to use for the experiment.
Default: |
averaging_mode |
str | AveragingMode
|
Averaging mode to use for the experiment.
Default: |
do_snr |
bool
|
Whether to run SNR measurement. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the acquisition_type is not AcquisitionType.SPECTROSCOPY or AcquisitionType.SPECTROSCOPY_PSD. |
TWPATuneUpWorkflowOptions
¶
Option class for tune-up experiment workflows.
Attributes:
| Name | Type | Description |
|---|---|---|
do_snr |
bool
|
Whether to run SNR measurement. |
TuneUpWorkflowOptions
¶
Option class for tune-up experiment workflows.
Attributes:
| Name | Type | Description |
|---|---|---|
do_analysis |
bool
|
Whether to run the analysis workflow. Default: True |
evaluate |
bool
|
Whether to evaluate the experiment based on the results from the analysis. Default: False |
update |
bool
|
Whether to update the setup based on the results from the analysis. If the
|
TuneupExperimentOptions
¶
Base options for a tune-up experiment.
Attributes:
| Name | Type | Description |
|---|---|---|
transition |
Literal['ge', 'ef']
|
Transition to perform the experiment on. May be any
transition supported by the quantum operations.
Default: |
use_cal_traces |
bool
|
Whether to include calibration traces in the experiment.
Default: |
cal_states |
str | tuple
|
The states to prepare in the calibration traces. Can be any string or tuple made from combining the characters 'g', 'e', 'f'. Default: same as transition |