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

DAGInNode

class qiskit.dagcircuit.DAGInNode(wire)

GitHub

Bases: DAGNode

Object to represent an incoming wire node in the DAGCircuit.

Create an incoming node


Attributes

wire

sort_key


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().

Parameters

  • node1 (DAGOpNode, DAGInNode, DAGOutNode) – A node to compare.
  • node2 (DAGOpNode, DAGInNode, DAGOutNode) – The other node to compare.
  • bit_indices1 (dict) – Dictionary mapping Bit instances to their index within the circuit containing node1
  • bit_indices2 (dict) – Dictionary mapping Bit instances to their index within the circuit containing node2

Returns

If node1 == node2

Return type

Bool

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