qiskit.dagcircuit.DAGCircuit.topological_nodes¶
- DAGCircuit.topological_nodes(key=None)[소스]¶
Yield nodes in topological order.
- 매개변수
key (Callable) – A callable which will take a DAGNode object and return a string sort key. If not specified the
sort_key
attribute will be used as the sort key for each node.- 반환
node in topological order
- 반환 형식
generator(DAGOpNode, DAGInNode, or DAGOutNode)