DAGInNode#

class qiskit.dagcircuit.DAGInNode(wire)[fuente]#

Bases: DAGNode

Object to represent an incoming wire node in the DAGCircuit.

Create an incoming node

Attributes

wire#
sort_key#

Methods

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

Par谩metros:
  • 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

Devuelve:

If node1 == node2

Tipo del valor devuelto:

Bool