qiskit-documentation/docs/api/qiskit/1.4/qiskit.dagcircuit.DAGOpNode...

113 lines
3.2 KiB
Plaintext

---
title: DAGOpNode (v1.4)
description: API reference for qiskit.dagcircuit.DAGOpNode in qiskit v1.4
in_page_toc_min_heading_level: 1
python_api_type: class
python_api_name: qiskit.dagcircuit.DAGOpNode
---
# DAGOpNode
<Class id="qiskit.dagcircuit.DAGOpNode" isDedicatedPage={true} signature="qiskit.dagcircuit.DAGOpNode" modifiers="class">
Bases: [`DAGNode`](qiskit.dagcircuit.DAGNode "qiskit._accelerate.circuit.DAGNode")
Object to represent an Instruction at a node in the DAGCircuit.
## Attributes
### cargs
<Attribute id="qiskit.dagcircuit.DAGOpNode.cargs" />
### condition
<Attribute id="qiskit.dagcircuit.DAGOpNode.condition" />
### definition
<Attribute id="qiskit.dagcircuit.DAGOpNode.definition" />
### duration
<Attribute id="qiskit.dagcircuit.DAGOpNode.duration" />
### label
<Attribute id="qiskit.dagcircuit.DAGOpNode.label" />
### matrix
<Attribute id="qiskit.dagcircuit.DAGOpNode.matrix" />
### name
<Attribute id="qiskit.dagcircuit.DAGOpNode.name">
Returns the Instruction name corresponding to the op for this node
</Attribute>
### num\_clbits
<Attribute id="qiskit.dagcircuit.DAGOpNode.num_clbits" />
### num\_qubits
<Attribute id="qiskit.dagcircuit.DAGOpNode.num_qubits" />
### op
<Attribute id="qiskit.dagcircuit.DAGOpNode.op" />
### params
<Attribute id="qiskit.dagcircuit.DAGOpNode.params" />
### qargs
<Attribute id="qiskit.dagcircuit.DAGOpNode.qargs" />
### sort\_key
<Attribute id="qiskit.dagcircuit.DAGOpNode.sort_key" />
### unit
<Attribute id="qiskit.dagcircuit.DAGOpNode.unit" />
## Methods
### from\_instruction
<Function id="qiskit.dagcircuit.DAGOpNode.from_instruction" signature="from_instruction(instruction, /, *, deepcopy=False)" modifiers="static" />
### is\_control\_flow
<Function id="qiskit.dagcircuit.DAGOpNode.is_control_flow" signature="is_control_flow()">
Is the [`Operation`](qiskit.circuit.Operation "qiskit.circuit.Operation") contained in this node a control-flow operation (i.e. an instance of [`ControlFlowOp`](qiskit.circuit.ControlFlowOp "qiskit.circuit.ControlFlowOp"))?
</Function>
### is\_controlled\_gate
<Function id="qiskit.dagcircuit.DAGOpNode.is_controlled_gate" signature="is_controlled_gate()">
Is the [`Operation`](qiskit.circuit.Operation "qiskit.circuit.Operation") contained in this node a subclass of [`ControlledGate`](qiskit.circuit.ControlledGate "qiskit.circuit.ControlledGate")?
</Function>
### is\_directive
<Function id="qiskit.dagcircuit.DAGOpNode.is_directive" signature="is_directive()">
Is the [`Operation`](qiskit.circuit.Operation "qiskit.circuit.Operation") contained in this node a directive?
</Function>
### is\_parameterized
<Function id="qiskit.dagcircuit.DAGOpNode.is_parameterized" signature="is_parameterized()">
Does this node contain any [`ParameterExpression`](qiskit.circuit.ParameterExpression "qiskit.circuit.ParameterExpression") parameters?
</Function>
### is\_standard\_gate
<Function id="qiskit.dagcircuit.DAGOpNode.is_standard_gate" signature="is_standard_gate()">
Is the [`Operation`](qiskit.circuit.Operation "qiskit.circuit.Operation") contained in this node a Qiskit standard gate?
</Function>
</Class>