Skip to content

bloqade.analysis.measure_id.lattice.ConstantCarrier

← Module overview

classConstantCarriersource

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

NameTypeDescription
dataAny

Attributes

NameTypeDescription
dataAny

methodis_subseteqsource

bloqade.analysis.measure_id.lattice.ConstantCarrier.is_subseteq

def is_subseteq(other: MeasureId) -> bool

Parameters

NameTypeDescription
otherMeasureId

Returns

bool

source