Skip to content

bloqade.qasm2.dialects.core.stmts.CRegEq

← Module overview

classCRegEqsource

bloqade.qasm2.dialects.core.stmts.CRegEq

Bases: ir.Statement

Check if two classical registers are equal.

class CRegEq

Attributes

NameTypeDefaultDescription
name—'eq'
traits—frozenset({ir.Pure(), lowering.FromPythonCall()})
lhsir.SSAValueinfo.argument(types.Int | CRegType | BitType)lhs (CReg): The first register.
rhsir.SSAValueinfo.argument(types.Int | CRegType | BitType)rhs (CReg): The second register.
resultir.ResultValueinfo.result(types.Bool)result (bool): True if the registers are equal, False otherwise.