dag_to_dagdependency

dag_to_dagdependency(dag)[source]

Build a DAGDependency object from a DAGCircuit.

Parameters

dag (DAGCircuit) – the input dag.

Returns

the DAG representing the input circuit as a dag dependency.

Return type

DAGDependency