Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.topological_nodes

DAGCircuit.topological_nodes(key=None)[fuente]

Yield nodes in topological order.

Parámetros

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.

Devuelve

node in topological order

Tipo del valor devuelto

generator(DAGOpNode, DAGInNode, or DAGOutNode)