ChannelDescription#

class iqm.models.playlist.channel_descriptions.ChannelDescription(channel_config, controller_name)#

Bases: object

ChannelDescription class contains all channel specific data and the suitable instructions and waveforms

for a channel.

Parameters:
  • channel_config (ChannelConfiguration) – ChannelConfiguration object which contains data related to the channel

  • controller_name (str) – name of the controller

  • instruction_table – Contains mapping of the instructions to be executed on this channel. Each instruction should be unique.

  • waveform_table – Contains mapping of the waveforms to be executed on this channel. Each waveform should be unique.

  • acquisition_table – Table of acquisition configs. Each ReadoutTrigger instruction may ask to perform an arbitrary combination of these. In practice, possible combinations are limited by device capabilities.

Module: iqm.models.playlist.channel_descriptions

Attributes

channel_config

controller_name

instruction_table

waveform_table

acquisition_table

Methods

add_acquisition

Add an acquisition method to the table map if the configuration is unique.

add_instruction

Add an instruction to the instruction table if the instruction is unique.

add_instruction(instruction)#

Add an instruction to the instruction table if the instruction is unique.

If the instruction contains other instructions, those are also added if they are unique. If any of the instructions contain unique waveforms, those are also added to the waveform table.

Parameters:

instruction (Instruction) – Instruction to be added

Returns:

corresponding index to the instruction table

Return type:

int

add_acquisition(acquisition)#

Add an acquisition method to the table map if the configuration is unique.

If it contains unique waveforms, those are added to the waveform table.

Parameters:

acquisition (AcquisitionMethod) – Configuration to be added.

Returns:

Corresponding index to the acquisition table.

Return type:

int