DAGCircuit.count_ops_longest_path

DAGCircuit.count_ops_longest_path()[source]

Count the occurrences of operation names on the longest path.

Returns a dictionary of counts keyed on the operation name.