qat.experimental.backend.qblox.payload module
Runtime payload for target-emitted Q1 sequence data.
- class QbloxPackage(**data)
Bases:
NoExtraFieldsModelOne target-emitted Qblox sequencer package.
The shape mirrors
qat.backend.qblox.execution; configuration and sequence dictionaries are emitted directly from the Q1 sequence IR.Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- classmethod from_sequence(sequence)
Snapshot one fully configured and allocated sequence for runtime.
- Return type:
- instrument_id: str
- mod_config: JsonObject
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'use_enum_values': False, 'validate_assignment': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- physical_channel_id: str
- pulse_channel_id: str
- seq_config: JsonObject
- seq_idx: int
- sequence: JsonObject
- slot_idx: int
- to_dict()
Return the package as JSON-compatible data.
- Return type:
dict[str,TypeAliasType]
- class QbloxProgram(**data)
Bases:
AbstractProgramComplete target-emitted Qblox runtime program.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- property acquire_shapes: dict[str, tuple[int, ...]]
Return acquisition result shapes once runtime result mapping is available.
- driver_version: str
- fw_version: str
- metadata: JsonObject
- model_config: ClassVar[ConfigDict] = {'extra': 'forbid', 'ser_json_inf_nan': 'constants', 'validate_assignment': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- packages: dict[str, QbloxPackage]
- to_dict()
Return a JSON-compatible representation.
- Return type:
dict[str,TypeAliasType]
- to_json()
Serialize the program deterministically.
- Return type:
str