# QuantumCircuit.count_ops¶

QuantumCircuit.count_ops()[source]

Count each operation kind in the circuit.

Returns

a breakdown of how many operations of each kind, sorted by amount.

Return type

OrderedDict