qblox_scheduler.operations.variables#

Variable class and related operations for creating a variable, and dropping a variable when it goes out of scope.

Classes#

Variable

A variable, representing a location in memory.

Module Contents#

class Variable(dtype: qblox_scheduler.operations.expressions.DType)[source]#

Bases: qblox_scheduler.operations.expressions.Expression

A variable, representing a location in memory.

substitute(substitutions: dict[qblox_scheduler.operations.expressions.Expression, qblox_scheduler.operations.expressions.Expression | int | float | complex]) qblox_scheduler.operations.expressions.Expression | int | float | complex[source]#

Substitute matching variable.

property dtype: qblox_scheduler.operations.expressions.DType[source]#

Data type of this variable.

_update() None[source]#

Update this expression’s internals.

property id_: uuid.UUID[source]#

The unique ID of this variable.