Size

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

Calculate the size of a DAG circuit.

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

Attributes

Size.is_analysis_pass

Check if the pass is an analysis pass.

Size.is_transformation_pass

Check if the pass is a transformation pass.

Methods

Size.name()

Return the name of the pass.

Size.run(dag)

Run the Size pass on dag.