bloqade.analysis.measure_id.lattice.ConstantCarrier
← Module overview
class
method
source
classConstantCarrier¶source
bloqade.analysis.measure_id.lattice.ConstantCarrier
Bases: MeasureId
Carries a constant Python value through the MeasureID lattice.
class ConstantCarrier(data: Any)When ConstantFold replaces an IR statement with py.Constant, the original statement’s MeasureID handler is lost. This element preserves the constant value so downstream operations (e.g. Add) can interpret it.
Parameters
| Name | Type | Description |
|---|---|---|
data | Any |
Attributes
| Name | Type | Description |
|---|---|---|
data | Any |
methodis_subseteq¶source
bloqade.analysis.measure_id.lattice.ConstantCarrier.is_subseteq
def is_subseteq(other: MeasureId) -> boolParameters
| Name | Type | Description |
|---|---|---|
other | MeasureId |
Returns
bool