Spanish
Idiomas
English
Bengali
French
German
Japanese
Korean
Portuguese
Spanish
Tamil

qiskit.dagcircuit.DAGCircuit.count_ops

DAGCircuit.count_ops(*, recurse=True)[fuente]

Count the occurrences of operation names.

Parámetros

recurse (bool) – if True (default), then recurse into control-flow operations. In all cases, this counts only the number of times the operation appears in any possible block; both branches of if-elses are counted, and for- and while-loop blocks are only counted once.

Devuelve

a mapping of operation names to the number of times it appears.

Tipo del valor devuelto

Mapping[str, int]