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

DAGNode

qiskit.dagcircuit.DAGNode(nid=-1) GitHub(opens in a new tab)

Bases: object(opens in a new tab)

Parent class for DAGOpNode, DAGInNode, and DAGOutNode.

Create a node


Methods

semantic_eq

static semantic_eq(node1, node2, bit_indices1, bit_indices2)

Check if DAG nodes are considered equivalent, e.g., as a node_match for rustworkx.is_isomorphic_node_match()(opens in a new tab).

Parameters

Returns

If node1 == node2

Return type

Bool

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