DAGNode(type=None, op=None, name=None, qargs=None, cargs=None, condition=None, wire=None, nid=- 1)¶
Object to represent the information at a node in the DAGCircuit.
It is used as the return value from *_nodes() functions and can be supplied to functions that take a node.
Create a node
Returns the Instruction object corresponding to the op for the node, else None
Returns list of Qubit, else an empty list.
Returns the Bit object, else None.
Check if DAG nodes are considered equivalent, e.g., as a node_match for nx.is_isomorphic.