qat.experimental.dialect.q1_sequence.attrs module
- class AcquisitionAttr(*parameters)
Bases:
AcquisitionAttrAn acquisition entry in a Qblox sequence’s acquisitions dictionary.
- Parameters:
-
acquisition_name:
StringAttr= <xdsl.irdl.attributes._ParameterDef object>
- classmethod get_irdl_definition()
Get the IRDL attribute definition.
-
index:
IntegerAttr[IntegerType[Literal[32],Literal[<Signedness.UNSIGNED: 2>]]] = <xdsl.irdl.attributes._ParameterDef object>
- name: ClassVar[str] = 'q1_sequence.acquisition'
The attribute name should be a static field in the attribute classes.
-
num_bins:
IntegerAttr[IntegerType[Literal[32],Literal[<Signedness.UNSIGNED: 2>]]] = <xdsl.irdl.attributes._ParameterDef object>
- class WaveformAttr(*parameters)
Bases:
WaveformAttrA waveform entry in a Qblox sequence’s waveforms dictionary.
- Parameters:
-
data:
DenseIntOrFPElementsAttr[Float32Type] = <xdsl.irdl.attributes._ParameterDef object>
- classmethod get_irdl_definition()
Get the IRDL attribute definition.
-
index:
IntegerAttr[IntegerType[Literal[32],Literal[<Signedness.UNSIGNED: 2>]]] = <xdsl.irdl.attributes._ParameterDef object>
- name: ClassVar[str] = 'q1_sequence.waveform'
The attribute name should be a static field in the attribute classes.
- verify()
Check that the attribute parameters satisfy the expected invariants. Raise a VerifyException otherwise.
- Return type:
None
-
waveform_name:
StringAttr= <xdsl.irdl.attributes._ParameterDef object>
- class WeightAttr(*parameters)
Bases:
WeightAttrA weight entry in a Qblox sequence’s weights dictionary.
Weights are per-sample integration coefficients applied to the demodulated signal during weighted acquisition (
acquire_weighed). Each coefficient multiplies the corresponding 1 ns ADC sample before summation, enabling matched-filter or optimal-discrimination readout schemes.A sequencer holds up to 32 weight arrays sharing a budget of 16 384 samples (i.e. 16 384 ns at 1 GSa/s).
- Parameters:
-
data:
DenseIntOrFPElementsAttr[Float32Type] = <xdsl.irdl.attributes._ParameterDef object>
- classmethod get_irdl_definition()
Get the IRDL attribute definition.
-
index:
IntegerAttr[IntegerType[Literal[32],Literal[<Signedness.UNSIGNED: 2>]]] = <xdsl.irdl.attributes._ParameterDef object>
- name: ClassVar[str] = 'q1_sequence.weight'
The attribute name should be a static field in the attribute classes.
- verify()
Check that the attribute parameters satisfy the expected invariants. Raise a VerifyException otherwise.
- Return type:
None
-
weight_name:
StringAttr= <xdsl.irdl.attributes._ParameterDef object>
- make_acquisition(name, index, num_bins)
Creates an
AcquisitionAttrfrom Python primitives.- Parameters:
- Return type:
- Returns:
An
AcquisitionAttr.
- make_waveform(name, index, samples)
Creates a
WaveformAttrfrom Python primitives.- Parameters:
- Return type:
- Returns:
A verified
WaveformAttr.
- make_weight(name, index, coeffs)
Creates a
WeightAttrfrom Python primitives.- Parameters:
- Return type:
- Returns:
A verified
WeightAttr.