Skip to main content

Module classical

Module classical 

Source
Expand description

Runtime classical storage for circuits.

This module defines the first layer of the dynamic control-flow model: typed classical values and storage locations that exist only while a circuit executes. A ClassicalValue is an immutable runtime result, similar to an SSA value. A ClassicalVar is a circuit-local handle to a mutable runtime storage location. Control-flow expressions may read both, while store operations may only write variables.

Structs§

CircuitId
Process-local identity for classical handles owned by a circuit.
ClassicalValue
Circuit-local handle to an immutable runtime classical value.
ClassicalVar
Circuit-local handle to a mutable runtime classical storage location.
Measurement
Self-contained handle returned by circuit measurement builders.

Enums§

ClassicalType
Static type of a runtime classical variable.