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
Time duration of the instruction.
Methods
Make a copy of the Instruction with the given changes applied to its contents.
Returns all the child Instructions the Instruction contains.
Returns all the waveforms the Instruction contains.
Validate the instruction attributes.
- Parameters:
duration (int) –
- 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:
- get_child_instructions()#
Returns all the child Instructions the Instruction contains.
- Return type:
tuple[Instruction, …]