qiskit.dagcircuit.DAGDependency.add_op_node¶
-
DAGDependency.
add_op_node
(operation, qargs, cargs)[source]¶ Add a DAGDepNode to the graph and update the edges.
- Parameters
operation (qiskit.circuit.Instruction) – operation as a quantum gate.
qargs (list[Qubit]) – list of qubits on which the operation acts
cargs (list[Clbit]) – list of classical wires to attach to.