Skip to content

bloqade.qasm2.rewrite.glob.GlobalToUOpRule

← Module overview

classGlobalToUOpRulesource

bloqade.qasm2.rewrite.glob.GlobalToUOpRule

Bases: abc.RewriteRule, GlobalRewriteBase

Signature
class GlobalToUOpRule(address_analysis: Dict[ir.SSAValue, address.Address])

Parameters

NameTypeDescription
address_analysisDict[ir.SSAValue, address.Address]

methodrewrite_Statementsource

bloqade.qasm2.rewrite.glob.GlobalToUOpRule.rewrite_Statement

def rewrite_Statement(node: ir.Statement) -> abc.RewriteResult

Parameters

NameTypeDescription
nodeir.Statement

Returns

abc.RewriteResult

source

methodrewrite_ugatesource

bloqade.qasm2.rewrite.glob.GlobalToUOpRule.rewrite_ugate

def rewrite_ugate(node: glob.UGate)

Parameters

NameTypeDescription
nodeglob.UGate
source