inline_q1asm#
Qblox specific operation which can be used to inject Q1ASM code directly into a Schedule.
Module Contents#
Classes#
Initialize an InlineQ1ASM operation. |
|
Structure describing an inline Q1ASM operation and containing all the information |
- class InlineQ1ASM(program: str, duration: float, port: str, clock: str, *, waveforms: dict | None = None, safe_labels: bool = True)[source]#
Bases:
quantify_scheduler.operations.operation.Operation
Initialize an InlineQ1ASM operation.
- This method sets up an operation that contains inline Q1ASM code
to be injected directly into a Schedule.
All comments in the program will be prefixed with an ‘[inline]’ prefix to help identify the inline assembly within the sequencer program.
When using safe labels, then all labels included in the input program will get a prefix of ‘inj<digits>_’. By default, safe labels are always used. Labels in comments will not be modified.
- Parameters:
program – The Q1ASM program to be injected.
duration – The duration of the operation in seconds.
port – The port on which the operation is to be executed.
clock – The clock associated with the operation.
waveforms – Dictionary containing waveform information, by default None.
safe_labels – Flag to indicate if safe labels should be used, by default True.
- Returns:
None
Notes
Warning
When using safe_labels=False then all labels in the sequencer program are accessible from inside the inline Q1ASM injection, and so can be jumped to or overwritten. Disabling this feature is available for debugging and advanced compilation strategies only.
- class Q1ASMOpInfo(inline_q1asm: InlineQ1ASM, operation_start_time: float)[source]#
Bases:
quantify_scheduler.backends.types.qblox.OpInfo
Structure describing an inline Q1ASM operation and containing all the information required to play it.