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
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