Skip to main contentIBM Quantum Documentation

DAGOpNode

qiskit.dagcircuit.DAGOpNode(op, qargs=(), cargs=(), dag=None)GitHub(opens in a new tab)

Bases: DAGNode

Object to represent an Instruction at a node in the DAGCircuit.

Create an Instruction node


Attributes

op

qargs

cargs

sort_key

name

Returns the Instruction name corresponding to the op for this 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?