qiskit.converters.dag_to_dagdependency¶
- dag_to_dagdependency(dag, create_preds_and_succs=True)[source]¶
Build a
DAGDependency
object from aDAGCircuit
.- 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