Unroll3qOrMore

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

Recursively expands 3q+ gates until the circuit only contains 2q or 1q gates.

Attributes

Unroll3qOrMore.is_analysis_pass

Check if the pass is an analysis pass.

Unroll3qOrMore.is_transformation_pass

Check if the pass is a transformation pass.

Methods

Unroll3qOrMore.name()

Return the name of the pass.

Unroll3qOrMore.run(dag)

Run the Unroll3qOrMore pass on dag.