bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule
← Module overview
class
method
sourcemethod
sourcemethod
method
method
classParallelToUOpRule¶source
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
| Name | Type | Description |
|---|---|---|
id_map | Dict[int, ir.SSAValue] | |
address_analysis | Dict[ir.SSAValue, address.Address] |
Attributes
| Name | Type | Description |
|---|---|---|
id_map | Dict[int, ir.SSAValue] | |
address_analysis | Dict[ir.SSAValue, address.Address] |
methodrewrite_Statement¶source
bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_Statement
def rewrite_Statement(node: ir.Statement) -> abc.RewriteResultParameters
| Name | Type | Description |
|---|---|---|
node | ir.Statement |
Returns
abc.RewriteResult
methodget_qubit_ssa¶source
bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.get_qubit_ssa
def get_qubit_ssa(ilist_ref: ir.SSAValue) -> Optional[List[ir.SSAValue]]Parameters
| Name | Type | Description |
|---|---|---|
ilist_ref | ir.SSAValue |
Returns
Optional[List[ir.SSAValue]]
methodrewrite_cz¶source
bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_cz
methodrewrite_u¶source
bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_u
methodrewrite_rz¶source
bloqade.qasm2.rewrite.parallel_to_uop.ParallelToUOpRule.rewrite_rz