French
Languages
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

DAGOpNode

class DAGOpNode(op, qargs=(), cargs=())[source]

Bases : DAGNode

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

Create an Instruction node

Methods

semantic_eq

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

Attributes

op
qargs
cargs
sort_key
name

Returns the Instruction name corresponding to the op for this node