qiskit-documentation/docs/api/qiskit/1.2/qiskit.dagcircuit.DAGOutNod...

50 lines
2.3 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: DAGOutNode (v1.2)
description: API reference for qiskit.dagcircuit.DAGOutNode in qiskit v1.2
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.dagcircuit.DAGOutNode
---
# DAGOutNode
<Class id="qiskit.dagcircuit.DAGOutNode" isDedicatedPage={true} signature="qiskit.dagcircuit.DAGOutNode" modifiers="class">
Bases: [`DAGNode`](qiskit.dagcircuit.DAGNode "qiskit._accelerate.circuit.DAGNode")
Object to represent an outgoing wire node in the DAGCircuit.
## Attributes
### sort\_key
<Attribute id="qiskit.dagcircuit.DAGOutNode.sort_key" />
### wire
<Attribute id="qiskit.dagcircuit.DAGOutNode.wire" />
## Methods
### semantic\_eq
<Function id="qiskit.dagcircuit.DAGOutNode.semantic_eq" github="https://github.com/Qiskit/qiskit/tree/stable/1.2/qiskit/dagcircuit/dagnode.py#L181-L237" signature="semantic_eq(node1, node2, bit_indices1, bit_indices2)" modifiers="static">
Check if DAG nodes are considered equivalent, e.g., as a node\_match for [`rustworkx.is_isomorphic_node_match()`](https://www.rustworkx.org/apiref/rustworkx.is_isomorphic_node_match.html#rustworkx.is_isomorphic_node_match "(in rustworkx v0.15)").
**Parameters**
* **node1** ([*DAGOpNode*](qiskit.dagcircuit.DAGOpNode "qiskit.dagcircuit.DAGOpNode")*,* [*DAGInNode*](qiskit.dagcircuit.DAGInNode "qiskit.dagcircuit.DAGInNode")*,* [*DAGOutNode*](#qiskit.dagcircuit.DAGOutNode "qiskit.dagcircuit.DAGOutNode")) A node to compare.
* **node2** ([*DAGOpNode*](qiskit.dagcircuit.DAGOpNode "qiskit.dagcircuit.DAGOpNode")*,* [*DAGInNode*](qiskit.dagcircuit.DAGInNode "qiskit.dagcircuit.DAGInNode")*,* [*DAGOutNode*](#qiskit.dagcircuit.DAGOutNode "qiskit.dagcircuit.DAGOutNode")) The other node to compare.
* **bit\_indices1** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.13)")) Dictionary mapping Bit instances to their index within the circuit containing node1
* **bit\_indices2** ([*dict*](https://docs.python.org/3/library/stdtypes.html#dict "(in Python v3.13)")) Dictionary mapping Bit instances to their index within the circuit containing node2
**Returns**
If node1 == node2
**Return type**
[Bool](circuit_classical#qiskit.circuit.classical.types.Bool "qiskit.circuit.classical.types.Bool")
</Function>
</Class>