qat.experimental.dialect.q1_sequence.ops module
- class SequenceOp(channel_id, program, waveforms=None, weights=None, acquisitions=None)
Bases:
SequenceOp,IRDLOperation,Operation,_IRNode,ABC,objectA sequence op represents the payload for a single Sequencer/PPU in a Qblox instrument. The body region holds Q1 assembly ops and must be terminated by a Stop* op. Data table attributes (waveforms, weights, acquisitions) are static lookup tables referenced by instruction indices.
- Parameters:
sym_name¶ – Channel/sequencer identifier (e.g.
"Q0_drive").body¶ – Single-block region of Q1 instruction ops.
waveforms¶ (
Optional[ArrayAttr[WaveformAttr]]) – Waveform data table entries.weights¶ (
Optional[ArrayAttr[WeightAttr]]) – Weight data table entries.acquisitions¶ (
Optional[ArrayAttr[AcquisitionAttr]]) – Acquisition data table entries.
- acquisitions
Accessor for an operation property.
- attributes: dict[str, Attribute]
The attributes attached to the operation.
- body
Access a non-variadic construct which appears before any variadic arguments.
- property channel_id: StringAttr
Alias for sym_name, the channel identifier.
- classmethod get_irdl_definition()
Get the IRDL operation definition.
- location: LocationAttr
The source location attached to this operation.
- name: ClassVar[str] = 'q1_sequence.sequence'
The operation name. Should be a static member of the class
- properties: dict[str, Attribute]
The properties attached to the operation. Properties are inherent to the definition of an operation’s semantics, and thus cannot be discarded by transformations.
- sym_name
Accessor for an operation attribute.
- traits: ClassVar[OpTraits] = <xdsl.ir.core.OpTraits object>
Traits attached to an operation definition. This is a static field, and is made empty by default by PyRDL if not set by the operation definition.
- verify_()
Verifies SequenceOp invariants.
channel_id must be non-empty.
Program body must be terminated by an IsTerminator op.
Indices must be unique within each data table.
Names must be unique within each data table.
- waveforms
Accessor for an operation property.
- weights
Accessor for an operation property.