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

DAGOutNode

DAGOutNode(wire) GitHub(opens in a new tab)

Bases: qiskit.dagcircuit.dagnode.DAGNode

Object to represent an outgoing wire node in the DAGCircuit.

Create an outgoing node


Methods

semantic_eq

static DAGOutNode.semantic_eq(node1, node2, bit_indices1=None, bit_indices2=None)

Check if DAG nodes are considered equivalent, e.g., as a node_match for nx.is_isomorphic.

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


Attributes

cargs

Returns list of Clbit, else an empty list.

condition

Returns the condition of the node.op

name

Returns the Instruction name corresponding to the op for this node

op

Returns the Instruction object corresponding to the op for the node, else None

qargs

Returns list of Qubit, else an empty list.

sort_key

type

Returns the type object

wire

Was this page helpful?