QuaFieldTable

class QuaFieldTable[source][source]

Bases: object

Mixin providing ParameterTable-aligned QUA variable accessors.

Subclasses must define self.table: dict[str, TableFieldProtocol] and may override _resolve_index() for index lookup semantics.

get_parameter(parameter: str | int | TableFieldProtocol) TableFieldProtocol[source][source]

Return the field handle (not the QUA variable).

Parameters:

parameter – Field name, positional index, or handle instance.

Returns:

Parameter or MeasurementRegisterField depending on table type.

get_variable(parameter: str | int | TableFieldProtocol) QuaVariable | QuaArrayVariable[source][source]

Return the QUA variable for a field name, index, or handle.

Must be called inside with program(): when resolving by index or handle. String names delegate to __getitem__().

property variables: list[QuaVariable | QuaArrayVariable]

List of QUA variables for all fields (requires program scope).