qblox#

Python dataclasses for compilation to Qblox hardware.

Module Contents#

Classes#

BoundedParameter

Specifies a certain parameter with a fixed max and min in a certain unit.

StaticHardwareProperties

Specifies the fixed hardware properties needed in the backend.

OpInfo

Data structure describing a pulse or acquisition and containing all the information

LOSettings

Dataclass containing all the settings for a generic LO instrument.

BaseModuleSettings

Shared settings between all the Qblox modules.

BasebandModuleSettings

Settings for a baseband module.

PulsarSettings

Global settings for the Pulsar to be set in the InstrumentCoordinator component.

RFModuleSettings

Global settings for the module to be set in the InstrumentCoordinator component.

SequencerSettings

Sequencer level settings.

QbloxBaseDescription

Base class for a Qblox hardware description.

ComplexChannelDescription

Information needed to specify an complex input/output in the QbloxHardwareCompilationConfig.

RealChannelDescription

Information needed to specify a real input/output in the QbloxHardwareCompilationConfig.

DigitalChannelDescription

Information needed to specify a digital (marker) output (for MarkerPulse) in the QbloxHardwareCompilationConfig.

QRMDescription

Information needed to specify a QRM in the QbloxHardwareCompilationConfig.

QCMDescription

Information needed to specify a QCM in the QbloxHardwareCompilationConfig.

QRMRFDescription

Information needed to specify a QRM-RF in the QbloxHardwareCompilationConfig.

QCMRFDescription

Information needed to specify a QCM-RF in the QbloxHardwareCompilationConfig.

ClusterDescription

Information needed to specify a Cluster in the CompilationConfig.

PulsarQCMDescription

Information needed to specify a Pulsar QCM in the CompilationConfig.

PulsarQRMDescription

Information needed to specify a Pulsar QRM in the CompilationConfig.

RealInputGain

Input gain settings for a real input connected to a port-clock combination.

ComplexInputGain

Input gain settings for a real input connected to a port-clock combination.

OutputAttenuation

Output attenuation setting for a port-clock combination.

InputAttenuation

Input attenuation setting for a port-clock combination.

SequencerOptions

Configuration options for a sequencer.

QbloxHardwareOptions

Datastructure containing the hardware options for each port-clock combination.

Attributes#

ClusterModuleDescription

QbloxHardwareDescription

Specifies a piece of Qblox hardware and its instrument-specific settings.

class BoundedParameter[source]#

Specifies a certain parameter with a fixed max and min in a certain unit.

min_val: float[source]#

Min value allowed.

max_val: float[source]#

Max value allowed.

units: str[source]#

Units in which the parameter is specified.

class StaticHardwareProperties[source]#

Specifies the fixed hardware properties needed in the backend.

instrument_type: str[source]#

The type of instrument.

max_sequencers: int[source]#

The amount of sequencers available.

max_awg_output_voltage: Optional[float][source]#

Maximum output voltage of the awg.

mixer_dc_offset_range: BoundedParameter[source]#

Specifies the range over which the dc offsets can be set that are used for mixer calibration.

valid_ios: List[str][source]#

Specifies the complex/real output identifiers supported by this device.

default_marker: int = 0[source]#

The default marker value to set at the beginning of programs. Important for RF instruments that use the marker to enable the RF output.

output_map: Dict[str, int][source]#

A mapping from output name to marker setting. Specifies which marker bit needs to be set at start if the output (as a string ex. complex_output_0) contains a pulse.

class OpInfo[source]#

Bases: dataclasses_json.DataClassJsonMixin

Data structure describing a pulse or acquisition and containing all the information required to play it.

property duration: float[source]#

The duration of the pulse/acquisition.

property is_acquisition: bool[source]#

Returns True if this is an acquisition, False otherwise.

property is_real_time_io_operation: bool[source]#

Returns True if the operation is a non-idle pulse (i.e., it has a waveform), False otherwise.

property is_offset_instruction: bool[source]#

Returns True if the operation describes a DC offset operation, corresponding to the Q1ASM instruction set_awg_offset.

property is_parameter_update: bool[source]#

Return True if the operation is a parameter update, corresponding to the Q1ASM instruction upd_param.

property is_loop: bool[source]#
property is_return_stack: bool[source]#
name: str[source]#

Name of the operation that this pulse/acquisition is part of.

data: dict[source]#

The pulse/acquisition info taken from the data property of the pulse/acquisition in the schedule.

timing: float[source]#

The start time of this pulse/acquisition. Note that this is a combination of the start time “t_abs” of the schedule operation, and the t0 of the pulse/acquisition which specifies a time relative to “t_abs”.

class LOSettings[source]#

Bases: dataclasses_json.DataClassJsonMixin

Dataclass containing all the settings for a generic LO instrument.

power: Dict[str, float][source]#

Power of the LO source.

frequency: Dict[str, Optional[float]][source]#

The frequency to set the LO to.

classmethod from_mapping(mapping: Dict[str, Any]) LOSettings[source]#

Factory method for the LOSettings from a mapping dict. The required format is {“frequency”: {parameter_name: value}, “power”: {parameter_name: value}}. For convenience {“frequency”: value, “power”: value} is also allowed.

Parameters

mapping – The part of the mapping dict relevant for this instrument.

Returns

Instantiated LOSettings from the mapping dict.

class BaseModuleSettings[source]#

Bases: dataclasses_json.DataClassJsonMixin

Shared settings between all the Qblox modules.

offset_ch0_path0: Optional[float][source]#

The DC offset on the path 0 of channel 0.

offset_ch0_path1: Optional[float][source]#

The DC offset on the path 1 of channel 0.

offset_ch1_path0: Optional[float][source]#

The DC offset on path 0 of channel 1.

offset_ch1_path1: Optional[float][source]#

The DC offset on path 1 of channel 1.

in0_gain: Optional[int][source]#

The gain of input 0.

in1_gain: Optional[int][source]#

The gain of input 1.

class BasebandModuleSettings[source]#

Bases: BaseModuleSettings

Settings for a baseband module.

Class exists to ensure that the cluster baseband modules don’t need special treatment in the rest of the code.

classmethod extract_settings_from_mapping(mapping: Dict[str, Any], **kwargs: Optional[dict]) BasebandModuleSettings[source]#

Factory method that takes all the settings defined in the mapping and generates a BasebandModuleSettings object from it.

Parameters
  • mapping – The mapping dict to extract the settings from

  • **kwargs – Additional keyword arguments passed to the constructor. Can be used to override parts of the mapping dict.

class PulsarSettings[source]#

Bases: BaseModuleSettings

Global settings for the Pulsar to be set in the InstrumentCoordinator component. This is kept separate from the settings that can be set on a per sequencer basis, which are specified in SequencerSettings.

ref: str = 'internal'[source]#

The reference source. Should either be "internal" or "external", will raise an exception in the instrument coordinator component otherwise.

classmethod extract_settings_from_mapping(mapping: Dict[str, Any], **kwargs: Optional[dict]) PulsarSettings[source]#

Factory method that takes all the settings defined in the mapping and generates a PulsarSettings object from it.

Parameters
  • mapping – The mapping dict to extract the settings from

  • **kwargs – Additional keyword arguments passed to the constructor. Can be used to override parts of the mapping dict.

class RFModuleSettings[source]#

Bases: BaseModuleSettings

Global settings for the module to be set in the InstrumentCoordinator component. This is kept separate from the settings that can be set on a per sequencer basis, which are specified in SequencerSettings.

lo0_freq: Optional[float][source]#

The frequency of Output 0 (O0) LO. If left None, the parameter will not be set.

lo1_freq: Optional[float][source]#

The frequency of Output 1 (O1) LO. If left None, the parameter will not be set.

out0_att: Optional[int][source]#

The attenuation of Output 0.

out1_att: Optional[int][source]#

The attenuation of Output 1.

in0_att: Optional[int][source]#

The attenuation of Input 0.

classmethod extract_settings_from_mapping(mapping: Dict[str, Any], **kwargs: Optional[dict]) RFModuleSettings[source]#

Factory method that takes all the settings defined in the mapping and generates an RFModuleSettings object from it.

Parameters
  • mapping – The mapping dict to extract the settings from

  • **kwargs – Additional keyword arguments passed to the constructor. Can be used to override parts of the mapping dict.

class SequencerSettings[source]#

Bases: dataclasses_json.DataClassJsonMixin

Sequencer level settings.

In the Qblox driver these settings are typically recognized by parameter names of the form "{module}.sequencer{index}.{setting}" (for allowed values see https://qblox-qblox-instruments.readthedocs-hosted.com/en/master/api_reference/sequencer.html). These settings are set once and will remain unchanged after, meaning that these correspond to the “slow” QCoDeS parameters and not settings that are changed dynamically by the sequencer.

These settings are mostly defined in the hardware configuration under each port-clock key combination or in some cases through the device configuration (e.g. parameters related to thresholded acquisition).

nco_en: bool[source]#

Specifies whether the NCO will be used or not.

sync_en: bool[source]#

Enables party-line synchronization.

io_name: str[source]#

Specifies the io identifier of the hardware config (e.g. complex_output_0).

connected_outputs: Optional[Union[Tuple[int], Tuple[int, int]]][source]#

Specifies which physical outputs this sequencer produces waveform data for.

connected_inputs: Optional[Union[Tuple[int], Tuple[int, int]]][source]#

Specifies which physical inputs this sequencer collects data for.

io_mode: quantify_scheduler.backends.qblox.enums.IoMode[source]#

Specifies the type of input/output this sequencer is handling.

init_offset_awg_path_0: float = 0.0[source]#

Specifies what value the sequencer offset for AWG path 0 will be reset to before the start of the experiment.

init_offset_awg_path_1: float = 0.0[source]#

Specifies what value the sequencer offset for AWG path 1 will be reset to before the start of the experiment.

init_gain_awg_path_0: float = 1.0[source]#

Specifies what value the sequencer gain for AWG path 0 will be reset to before the start of the experiment.

init_gain_awg_path_1: float = 1.0[source]#

Specifies what value the sequencer gain for AWG path 0 will be reset to before the start of the experiment.

modulation_freq: Optional[float][source]#

Specifies the frequency of the modulation.

mixer_corr_phase_offset_degree: float = 0.0[source]#

The phase shift to apply between the I and Q channels, to correct for quadrature errors.

mixer_corr_gain_ratio: float = 1.0[source]#

The gain ratio to apply in order to correct for imbalances between the I and Q paths of the mixer.

integration_length_acq: Optional[int][source]#

Integration length for acquisitions. Must be a multiple of 4 ns.

sequence: Optional[Dict[str, Any]][source]#

JSON compatible dictionary holding the waveforms and program for the sequencer.

seq_fn: Optional[str][source]#

Filename of JSON file containing a dump of the waveforms and program.

thresholded_acq_threshold: Optional[float][source]#

The sequencer discretization threshold for discretizing the phase rotation result.

thresholded_acq_rotation: Optional[float][source]#

The sequencer integration result phase rotation in degrees.

ttl_acq_input_select: Optional[int][source]#

Selects the input used to compare against the threshold value in the TTL trigger acquisition path.

ttl_acq_threshold: Optional[float][source]#

“Sets the threshold value with which to compare the input ADC values of the selected input path.

ttl_acq_auto_bin_incr_en: Optional[bool][source]#

Selects if the bin index is automatically incremented when acquiring multiple triggers.

classmethod initialize_from_config_dict(sequencer_cfg: Dict[str, Any], io_name: str, connected_outputs: Optional[Union[Tuple[int], Tuple[int, int]]], connected_inputs: Optional[Union[Tuple[int], Tuple[int, int]]], io_mode: quantify_scheduler.backends.qblox.enums.IoMode) SequencerSettings[source]#

Instantiates an instance of this class, with initial parameters determined from the sequencer configuration dictionary.

Parameters
  • sequencer_cfg (dict) – The sequencer configuration dict.

  • io_name – Specifies the io identifier of the hardware config (e.g. complex_output_0).

  • connected_outputs – The outputs connected to the sequencer.

  • connected_inputs – The inputs connected to the sequencer.

  • io_mode – The type of input/output this sequencer is handling.

Returns

A SequencerSettings instance with initial values.

Return type

SequencerSettings

class QbloxBaseDescription(**data: Any)[source]#

Bases: quantify_scheduler.backends.types.common.HardwareDescription

Base class for a Qblox hardware description.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

ref: Union[Literal[internal], Literal[external]][source]#

The reference source for the instrument.

sequence_to_file: bool = False[source]#

Write sequencer programs to files for (all modules in this) instrument.

align_qasm_fields: bool = False[source]#

If True, make QASM program more human-readable by aligning its fields.

class ComplexChannelDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify an complex input/output in the QbloxHardwareCompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

marker_debug_mode_enable: bool = False[source]#

Setting to send 4 ns trigger pulse on the marker located next to the I/O port along with each operation. The marker will be pulled high at the same time as the module starts playing or acquiring.

mix_lo: bool = True[source]#

Whether IQ mixing with a local oscillator is enabled for this channel. Effectively always True for RF modules.

downconverter_freq: Optional[float][source]#

Downconverter frequency that should be taken into account when determining the modulation frequencies for this channel. Only relevant for users with custom Qblox downconverter hardware.

class RealChannelDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify a real input/output in the QbloxHardwareCompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

marker_debug_mode_enable: bool = False[source]#

Setting to send 4 ns trigger pulse on the marker located next to the I/O port along with each operation. The marker will be pulled high at the same time as the module starts playing or acquiring.

class DigitalChannelDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify a digital (marker) output (for MarkerPulse) in the QbloxHardwareCompilationConfig.

This datastructure is currently empty, since no extra settings are needed/allowed for a digital output.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

class QRMDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify a QRM in the QbloxHardwareCompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[QRM][source]#

The instrument type of this module.

sequence_to_file: bool = False[source]#

Write sequencer programs to files, for this module.

complex_output_0: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to ports O1 and O2.

complex_input_0: Optional[ComplexChannelDescription][source]#

Description of the complex input channel on this QRM, corresponding to ports I1 and I2.

real_output_0: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O1.

real_output_1: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O2.

real_input_0: Optional[RealChannelDescription][source]#

Description of the real input channel on this QRM, corresponding to port I1.

real_input_1: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port I2.

digital_output_0: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M1.

digital_output_1: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M2.

digital_output_2: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M3.

digital_output_3: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M4.

class QCMDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify a QCM in the QbloxHardwareCompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[QCM][source]#

The instrument type of this module.

sequence_to_file: bool = False[source]#

Write sequencer programs to files, for this module.

complex_output_0: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to ports O1 and O2.

complex_output_1: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to ports O3 and O4.

real_output_0: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O1.

real_output_1: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O2.

real_output_2: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O3.

real_output_3: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O4.

digital_output_0: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M1.

digital_output_1: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M2.

digital_output_2: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M3.

digital_output_3: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M4.

class QRMRFDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify a QRM-RF in the QbloxHardwareCompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[QRM_RF][source]#

The instrument type of this module.

sequence_to_file: bool = False[source]#

Write sequencer programs to files, for this module.

complex_output_0: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to port O1.

complex_input_0: Optional[ComplexChannelDescription][source]#

Description of the complex input channel on this QRM, corresponding to port I1.

digital_output_0: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M1.

digital_output_1: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M2.

class QCMRFDescription(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Information needed to specify a QCM-RF in the QbloxHardwareCompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[QCM_RF][source]#

The instrument type of this module.

sequence_to_file: bool = False[source]#

Write sequencer programs to files, for this module.

complex_output_0: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to port O1.

complex_output_1: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to port O2.

digital_output_0: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M1.

digital_output_1: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M2.

ClusterModuleDescription[source]#
class ClusterDescription(**data: Any)[source]#

Bases: QbloxBaseDescription

Information needed to specify a Cluster in the CompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[Cluster][source]#

The instrument type, used to select this datastructure when parsing a CompilationConfig.

modules: Dict[int, ClusterModuleDescription][source]#

Description of the modules of this Cluster, using slot index as key.

class PulsarQCMDescription(**data: Any)[source]#

Bases: QbloxBaseDescription

Information needed to specify a Pulsar QCM in the CompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[Pulsar_QCM][source]#

The instrument type, used to select this datastructure when parsing a CompilationConfig.

complex_output_0: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to ports O1 and O2.

complex_output_1: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to ports O3 and O4.

real_output_0: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O1.

real_output_1: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O2.

real_output_2: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O3.

real_output_3: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O4.

digital_output_0: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M1.

digital_output_1: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M2.

digital_output_2: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M3.

digital_output_3: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M4.

class PulsarQRMDescription(**data: Any)[source]#

Bases: QbloxBaseDescription

Information needed to specify a Pulsar QRM in the CompilationConfig.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

instrument_type: Literal[Pulsar_QRM][source]#

The instrument type, used to select this datastructure when parsing a CompilationConfig.

complex_output_0: Optional[ComplexChannelDescription][source]#

Description of the complex output channel on this QRM, corresponding to ports O1 and O2.

complex_input_0: Optional[ComplexChannelDescription][source]#

Description of the complex input channel on this QRM, corresponding to ports I1 and I2.

real_output_0: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O1.

real_output_1: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port O2.

real_input_0: Optional[RealChannelDescription][source]#

Description of the real input channel on this QRM, corresponding to port I1.

real_input_1: Optional[RealChannelDescription][source]#

Description of the real output channel on this QRM, corresponding to port I2.

digital_output_0: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M1.

digital_output_1: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M2.

digital_output_2: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M3.

digital_output_3: Optional[DigitalChannelDescription][source]#

Description of the digital (marker) output channel on this QRM, corresponding to port M4.

QbloxHardwareDescription[source]#

Specifies a piece of Qblox hardware and its instrument-specific settings.

class RealInputGain[source]#

Bases: int

Input gain settings for a real input connected to a port-clock combination.

This gain value will be set on the QRM input ports that are connected to this port-clock combination.

Initialize self. See help(type(self)) for accurate signature.

class ComplexInputGain(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Input gain settings for a real input connected to a port-clock combination.

This gain value will be set on the QRM input ports that are connected to this port-clock combination.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

gain_I: int[source]#

Gain setting on the input receiving the I-component data for this port-clock combination.

gain_Q: int[source]#

Gain setting on the input receiving the Q-component data for this port-clock combination.

class OutputAttenuation[source]#

Bases: int

Output attenuation setting for a port-clock combination.

This attenuation value will be set on each control-hardware output port that is connected to this port-clock combination.

Initialize self. See help(type(self)) for accurate signature.

class InputAttenuation[source]#

Bases: int

Input attenuation setting for a port-clock combination.

This attenuation value will be set on each control-hardware output port that is connected to this port-clock combination.

Initialize self. See help(type(self)) for accurate signature.

class SequencerOptions(**data: Any)[source]#

Bases: quantify_scheduler.structure.model.DataStructure

Configuration options for a sequencer.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

init_offset_awg_path_0: float = 0.0[source]#

Specifies what value the sequencer offset for AWG path 0 will be reset to before the start of the experiment.

init_offset_awg_path_1: float = 0.0[source]#

Specifies what value the sequencer offset for AWG path 1 will be reset to before the start of the experiment.

init_gain_awg_path_0: float = 1.0[source]#

Specifies what value the sequencer gain for AWG path 0 will be reset to before the start of the experiment.

init_gain_awg_path_1: float = 1.0[source]#

Specifies what value the sequencer gain for AWG path 0 will be reset to before the start of the experiment.

ttl_acq_threshold: Optional[float][source]#

Threshold value with which to compare the input ADC values of the selected input path.

qasm_hook_func: Optional[Callable][source]#

Function to inject custom qasm instructions after the compiler inserts the footer and the stop instruction in the generated qasm program.

instruction_generated_pulses_enabled: bool = False[source]#

(deprecated) Generate certain specific waveforms from the pulse library using a more complicated series of sequencer instructions, which helps conserve waveform memory.

Note: this setting is deprecated and will be removed in a future version. Long square pulses and staircase pulses can be generated with the newly introduced StitchedPulseBuilder

_init_setting_limits(init_setting)[source]#
class QbloxHardwareOptions(**data: Any)[source]#

Bases: quantify_scheduler.backends.types.common.HardwareOptions

Datastructure containing the hardware options for each port-clock combination.

Create a new model by parsing and validating input data from keyword arguments.

Raises ValidationError if the input data cannot be parsed to form a valid model.

input_gain: Optional[Dict[str, Union[RealInputGain, ComplexInputGain]]][source]#

Dictionary containing the input gain settings (values) that should be applied to the inputs that are connected to a certain port-clock combination (keys).

output_att: Optional[Dict[str, OutputAttenuation]][source]#

Dictionary containing the attenuation settings (values) that should be applied to the outputs that are connected to a certain port-clock combination (keys).

input_att: Optional[Dict[str, InputAttenuation]][source]#

Dictionary containing the attenuation settings (values) that should be applied to the inputs that are connected to a certain port-clock combination (keys).

sequencer_options: Optional[Dict[str, SequencerOptions]][source]#

Dictionary containing the options (values) that should be set on the sequencer that is used for a certain port-clock combination (keys).