Width

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

Calculate the width of a DAG circuit.

The result is saved in property_set['width'] as an integer that contains the number of qubits + the number of clbits.

Attributes

Width.is_analysis_pass

Check if the pass is an analysis pass.

Width.is_transformation_pass

Check if the pass is a transformation pass.

Methods

Width.name()

Return the name of the pass.

Width.run(dag)

Run the Width pass on dag.