Skip to content

Const

ConstBool

Bases: Statement


              flowchart TD
              bloqade.stim.dialects.auxiliary.stmts.const.ConstBool[ConstBool]

              

              click bloqade.stim.dialects.auxiliary.stmts.const.ConstBool href "" "bloqade.stim.dialects.auxiliary.stmts.const.ConstBool"
            

IR Statement representing a constant boolean value.

result class-attribute instance-attribute

result: ResultValue = result(Bool)

result (Float): The result value.

value class-attribute instance-attribute

value: bool = attribute(Bool)

value (float): The constant float value.

ConstFloat

Bases: Statement


              flowchart TD
              bloqade.stim.dialects.auxiliary.stmts.const.ConstFloat[ConstFloat]

              

              click bloqade.stim.dialects.auxiliary.stmts.const.ConstFloat href "" "bloqade.stim.dialects.auxiliary.stmts.const.ConstFloat"
            

IR Statement representing a constant float value.

result class-attribute instance-attribute

result: ResultValue = result(Float)

result (Float): The result value.

value class-attribute instance-attribute

value: float = attribute(Float)

value (float): The constant float value.

ConstInt

Bases: Statement


              flowchart TD
              bloqade.stim.dialects.auxiliary.stmts.const.ConstInt[ConstInt]

              

              click bloqade.stim.dialects.auxiliary.stmts.const.ConstInt href "" "bloqade.stim.dialects.auxiliary.stmts.const.ConstInt"
            

IR Statement representing a constant integer value.

result class-attribute instance-attribute

result: ResultValue = result(Int)

result (Int): The result value.

value class-attribute instance-attribute

value: int = attribute(Int)

value (int): The constant integer value.

ConstStr

Bases: Statement


              flowchart TD
              bloqade.stim.dialects.auxiliary.stmts.const.ConstStr[ConstStr]

              

              click bloqade.stim.dialects.auxiliary.stmts.const.ConstStr href "" "bloqade.stim.dialects.auxiliary.stmts.const.ConstStr"
            

IR Statement representing a constant str value.

result class-attribute instance-attribute

result: ResultValue = result(String)

result (str): The result value.

value class-attribute instance-attribute

value: str = attribute(String)

value (str): The constant str value.

Neg

Bases: Statement


              flowchart TD
              bloqade.stim.dialects.auxiliary.stmts.const.Neg[Neg]

              

              click bloqade.stim.dialects.auxiliary.stmts.const.Neg href "" "bloqade.stim.dialects.auxiliary.stmts.const.Neg"
            

IR Statement representing a negation operation.