CountOps

class CountOps(*args, **kwargs)[source]

Count the operations in a DAG circuit.

The result is saved in property_set['count_ops'] as an integer.

Attributes

CountOps.is_analysis_pass

Check if the pass is an analysis pass.

CountOps.is_transformation_pass

Check if the pass is a transformation pass.

Methods

CountOps.name()

Return the name of the pass.

CountOps.run(dag)

Run the CountOps pass on dag.