qiskit.transpiler.passes.TemplateOptimization.run¶
- TemplateOptimization.run(dag)[Quellcode]¶
- Parameter
dag (DAGCircuit) – DAG circuit.
- Rückgabe
optimized DAG circuit.
- Rückgabetyp
- Verursacht
TranspilerError – If the template has not the right form or if the output circuit acts differently as the input circuit.