qiskit.transpiler.passes.Commuting2qGateRouter.run¶
- Commuting2qGateRouter.run(dag)[source]¶
Run the pass by decomposing the nodes it applies on.
- Paramètres
dag (DAGCircuit) – The dag to which we will add swaps.
- Renvoie
A dag where swaps have been added for the intended gate type.
- Lève
TranspilerError – If the swap strategy was not given at init time and there is no swap strategy in the property set.
TranspilerError – If the quantum circuit contains more than one qubit register.
TranspilerError – If there are qubits that are not contained in the quantum register.
- Type renvoyé