Decompose

class Decompose(gate=None)[source]

Expand a gate in a circuit using its decomposition rules.

Decompose initializer.

Parameters

gate (Optional[Type[Gate]]) – gate to decompose.

Attributes

Decompose.is_analysis_pass

Check if the pass is an analysis pass.

Decompose.is_transformation_pass

Check if the pass is a transformation pass.

Methods

Decompose.name()

Return the name of the pass.

Decompose.run(dag)

Run the Decompose pass on dag.