Instruction#

class iqm.pulse.playlist.instructions.Instruction(duration)#

Bases: object

Command that can be executed by the quantum computer on a control channel.

Has a well-specified time duration.

Module: iqm.pulse.playlist.instructions

Attributes

duration

Time duration of the instruction.

Methods

copy

Make a copy of the Instruction with the given changes applied to its contents.

get_child_instructions

Returns all the child Instructions the Instruction contains.

get_waveforms

Returns all the waveforms the Instruction contains.

validate

Validate the instruction attributes.

Parameters:

duration (int) –

duration: int#

Time duration of the instruction. In samples at the channel sample rate.

validate()#

Validate the instruction attributes.

Raises:

ValueError – something about the instruction is not ok

Return type:

None

copy(**changes)#

Make a copy of the Instruction with the given changes applied to its contents.

Return type:

Instruction

get_child_instructions()#

Returns all the child Instructions the Instruction contains.

Return type:

tuple[Instruction, …]

get_waveforms()#

Returns all the waveforms the Instruction contains.

Return type:

tuple[Waveform, …]