TableFieldProtocol

class TableFieldProtocol(*args, **kwargs)[source][source]

Bases: Protocol

Minimal interface shared by runtime Parameter and measurement fields.

Implemented by Parameter and MeasurementRegisterField. Used by QuaFieldTable accessors.

property is_declared: bool

Whether a QUA variable is bound for this field.

property var: QuaVariable | QuaArrayVariable

QUA variable for this field (requires program scope when read).

property is_array: bool

Whether this field holds a QUA array (True) or a scalar (False).

property length: int

0 for a scalar, the array length otherwise.

Type:

Number of elements