QXel.transpiler.passes.fusioner module¶
- class QXel.transpiler.passes.fusioner.Fusioner(qubit_count, qubit_count_local, max_fusion_targets, enable_sparsity=True)¶
Bases:
BasePassGroup nearby local gates into fused operators.
- __init__(qubit_count, qubit_count_local, max_fusion_targets, enable_sparsity=True)¶
Store the fusion policy used for executable gate lowering.
- static estimate_sparsity(lhs, rhs)¶
Placeholder hook for estimating sparsity of a fused operator.
- static select_fusion_candidates(operations, max_targets)¶
Select fusion candidates.
- static fuse_gate(operations, matrix)¶
Fuse gate.
- static free_gate_fusion(operations, qubit_count)¶
- optimize(circuit)¶
Replace eligible gate runs with fused operators.