English
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.transpiler.passes.TemplateOptimization.run

TemplateOptimization.run(dag)[source]
Parameters

dag (DAGCircuit) – DAG circuit.

Returns

optimized DAG circuit.

Return type

DAGCircuit

Raises

TranspilerError – If the template has not the right form or if the output circuit acts differently as the input circuit.