Korean
언어
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.op_nodes

DAGCircuit.op_nodes(op=None, include_directives=True)[소스]

Get the list of 《op》 nodes in the dag.

매개변수
  • op (Type) – qiskit.circuit.Operation subclass op nodes to return. If None, return all op nodes.

  • include_directives (bool) – include barrier, snapshot etc.

반환

the list of node ids containing the given op.

반환 형식

list[DAGOpNode]