Portuguese
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.topological_op_nodes

DAGCircuit.topological_op_nodes(key=None)[código fonte]

Yield op nodes in topological order.

Allowed to pass in specific key to break ties in top 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.

Retorno

op node in topological order

Tipo de retorno

generator(DAGOpNode)