quantify_scheduler.backends.types.zhinst
Python dataclasses for quantify-scheduler json-schemas.
Module Contents
Classes
Enum of device types. |
|
The definition class for zhinst channel properties. |
|
The device definition class for zhinst devices. |
|
The CommandTable header definition. |
|
A CommandTable entry definition with a value. |
|
The command table waveform properties. |
|
The definition of a single CommandTable entry. |
|
The CommandTable definition for ZI HDAWG. |
|
Operation mode of all weighted integration units. |
|
UHFQA QAS result mode. |
|
UHFQA QAS result source. |
|
The waveform destination enum type. |
|
Instrument information record type. |
|
Sequence base instruction record type. |
|
This instruction indicates that an acquisition is to be triggered in the UHFQA. |
|
This instruction indicates that a waveform should be played. |
- class DeviceType[source]
-
Enum of device types.
Initialize self. See help(type(self)) for accurate signature.
- class Output[source]
Bases:
dataclasses_json.DataClassJsonMixin
The definition class for zhinst channel properties.
This class maps to the zhinst backend JSON “channel” properties defined in the hardware mapping.
- Parameters:
port – The port resource.
clock – The Clock resource.
clock_frequency – The frequency for the clock resource (AKA RF/signal frequency).
mode – The output mode type.
modulation – The modulation settings.
local_oscillator – The LocalOscillator name.
gain1 – The output1 IQ modulation gain. Accepted value between -1 and + 1. (default = 1.0)
gain2 – The output2 IQ modulation gain. Accepted value between -1 and + 1. (default = 1.0)
trigger – The ZI Instrument input trigger. (default = None) Setting this will declare the device secondary
markers – The ZI Instrument output triggers. (default = [])
mixer_corrections – The output mixer corrections.
- mixer_corrections: Optional[quantify_scheduler.backends.types.common.MixerCorrections][source]
- class Device[source]
Bases:
dataclasses_json.DataClassJsonMixin
The device definition class for zhinst devices.
This class maps to the zhinst backend JSON “devices” properties defined in the hardware mapping.
- Parameters:
name – The QCodes Instrument name.
type – The instrument model type. For example: ‘UHFQA’, ‘HDAWG4’, ‘HDAWG8’
ref – The reference source type.
channels – The list of channels. (auto generated)
channel_0 – The first physical channel properties.
channel_1 – The second physical channel properties.
channel_2 – The third physical channel properties.
channel_3 – The fourth physical channel properties.
channelgrouping – The HDAWG channelgrouping property. (default = 0) corresponding to a single sequencer controlling a pair (2) awg outputs.
clock_select –
The clock rate divisor which will be used to get the instruments clock rate from the lookup dictionary in quantify_scheduler.backends.zhinst_backend.DEVICE_CLOCK_RATES.
For information see zhinst User manuals, section /DEV…./AWGS/n/TIME Examples: base sampling rate (1.8 GHz) divided by 2^clock_select. (default = 0)
mode – The Instruments operation mode. (default = enums.InstrumentOperationMode.OPERATING)
device_type – The Zurich Instruments hardware type. (default = DeviceType.NONE) This field is automatically populated.
sample_rate – The Instruments sampling clock rate. This field is automatically populated.
n_channels – The number of physical channels of this ZI Instrument. This field is automatically populated.
- device_type: DeviceType[source]
- class CommandTableHeader[source]
Bases:
dataclasses_json.DataClassJsonMixin
The CommandTable header definition.
- class CommandTableEntryValue[source]
Bases:
dataclasses_json.DataClassJsonMixin
A CommandTable entry definition with a value.
- class CommandTableWaveform[source]
Bases:
dataclasses_json.DataClassJsonMixin
The command table waveform properties.
- class CommandTableEntry[source]
Bases:
dataclasses_json.DataClassJsonMixin
The definition of a single CommandTable entry.
- waveform: CommandTableWaveform[source]
- class CommandTable[source]
Bases:
dataclasses_json.DataClassJsonMixin
The CommandTable definition for ZI HDAWG.
- header: CommandTableHeader[source]
- table: List[CommandTableEntry][source]
- class QasIntegrationMode[source]
Bases:
enum.Enum
Operation mode of all weighted integration units.
NORMAL: Normal mode. The integration weights are given by the user-programmed filter memory.
SPECTROSCOPY: Spectroscopy mode. The integration weights are generated by a digital oscillator. This mode offers enhanced frequency resolution.
- class Instruction[source]
Sequence base instruction record type.
- class Acquisition[source]
Bases:
Instruction
This instruction indicates that an acquisition is to be triggered in the UHFQA. If a waveform_id is specified, this waveform will be used as the integration weight.
- class Wave[source]
Bases:
Instruction
This instruction indicates that a waveform should be played.