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

qiskit.converters.circuit_to_dagdependency

circuit_to_dagdependency(circuit, create_preds_and_succs=True)

GitHub(opens in a new tab)

Build a DAGDependency object from a QuantumCircuit.

Parameters

  • circuit (QuantumCircuit) – the input circuit.
  • 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.