mindquantum.algorithm.compiler.SimpleNeighborCanceler
- class mindquantum.algorithm.compiler.SimpleNeighborCanceler[source]
Merge two nearby gate if possible.
- do(dag_circuit: DAGCircuit)[source]
Apply neighbor canceler compiler rule.
- Parameters
dag_circuit (
DAGCircuit
) – The DAG graph of quantum circuit.