Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK and does not exist in the latest version. We recommend you migrate to the latest version. See the release notes for more information.

qiskit.converters.dag_to_dagdependency

dag_to_dagdependency(dag, create_preds_and_succs=True)

GitHub

Build a DAGDependency object from a DAGCircuit.

Parameters

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

Returns

the DAG representing the input circuit as a dag dependency.

Return type

DAGDependency

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