Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK Go to the latest version
Important

IBM Quantum Platform is moving and this version will be sunset on July 1. To get started on the new platform, read the migration guide.

DAG Circuits

qiskit.dagcircuit


DAG Circuits

DAGCircuit()Quantum circuit as a directed acyclic graph.
DAGNode([nid])Parent class for DAGOpNode, DAGInNode, and DAGOutNode.
DAGOpNode(op[, qargs, cargs])Object to represent an Instruction at a node in the DAGCircuit.
DAGInNode(wire)Object to represent an incoming wire node in the DAGCircuit.
DAGOutNode(wire)Object to represent an outgoing wire node in the DAGCircuit.
DAGDepNode([type, op, name, qargs, cargs, ...])Object to represent the information at a node in the DAGDependency().
DAGDependency()Object to represent a quantum circuit as a directed acyclic graph via operation dependencies (i.e.

Exceptions

DAGCircuitError(*msg)Base class for errors raised by the DAGCircuit object.
Was this page helpful?
Report a bug or request content on GitHub.