Skip to content

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule

← Module overview

classParallelToUOpRulesource

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule

Bases: abc.RewriteRule

Signature
class ParallelToUOpRule(id_map: Dict[int, ir.SSAValue], address_analysis: Dict[ir.SSAValue, address.Address])

Parameters

NameTypeDescription
id_mapDict[int, ir.SSAValue]
address_analysisDict[ir.SSAValue, address.Address]

Attributes

NameTypeDescription
id_mapDict[int, ir.SSAValue]
address_analysisDict[ir.SSAValue, address.Address]

methodrewrite_Statementsource

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_Statement

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

Parameters

NameTypeDescription
nodeir.Statement

Returns

abc.RewriteResult

source

methodget_qubit_ssasource

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.get_qubit_ssa

def get_qubit_ssa(ilist_ref: ir.SSAValue) -> Optional[List[ir.SSAValue]]

Parameters

NameTypeDescription
ilist_refir.SSAValue

Returns

Optional[List[ir.SSAValue]]

source

methodrewrite_czsource

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_cz

def rewrite_cz(node: ir.Statement)

Parameters

NameTypeDescription
nodeir.Statement
source

methodrewrite_usource

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_u

def rewrite_u(node: ir.Statement)

Parameters

NameTypeDescription
nodeir.Statement
source

methodrewrite_rzsource

bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_rz

def rewrite_rz(node: ir.Statement)

Parameters

NameTypeDescription
nodeir.Statement
source