
    z	i                     *    S r SSKJr   " S S\5      rg)z&Count the operations in a DAG circuit.    )AnalysisPassc                   :   ^  \ rS rSrSrSS.U 4S jjrS rSrU =r$ )CountOps   zlCount the operations in a DAG circuit.

The result is saved in ``property_set['count_ops']`` as an integer.
Trecursec                .   > [         TU ]  5         Xl        g )N)super__init__r   )selfr   	__class__s     e/home/james-whalen/.local/lib/python3.13/site-packages/qiskit/transpiler/passes/analysis/count_ops.pyr   CountOps.__init__   s        c                 P    UR                  U R                  S9U R                  S'   g)zRun the CountOps pass on `dag`.r   	count_opsN)r   r   property_set)r   dags     r   runCountOps.run   s!    ),t||)L+&r   )	__name__
__module____qualname____firstlineno____doc__r   r   __static_attributes____classcell__)r   s   @r   r   r      s#    
 #'  M Mr   r   N)r   qiskit.transpiler.basepassesr   r    r   r   <module>r       s    - 5M| Mr   