Skip to main contentIBM Quantum Documentation
You are viewing the API reference for an old version of Qiskit SDK. Switch to latest version


circuit_to_dagdependency(circuit, create_preds_and_succs=True)

GitHub(opens in a new tab)

Build a DAGDependency object from a QuantumCircuit.


  • circuit (QuantumCircuit) – the input circuit.
  • create_preds_and_succs (bool) – whether to construct lists of predecessors and successors for every node.


the DAG representing the input circuit as a dag dependency.

Return type


Was this page helpful?
Report a bug or request content on GitHub.