qiskit.transpiler.passes.Optimize1qGates.run¶
-
Optimize1qGates.
run
(dag)[source]¶ Run the Optimize1qGates pass on dag.
- Parameters
dag (DAGCircuit) – the DAG to be optimized.
- Returns
the optimized DAG.
- Return type
- Raises
TranspilerError – if YZY and ZYZ angles do not give same rotation matrix.