SetLayout

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

Set the layout property to the given layout.

This pass associates a physical qubit (int) to each virtual qubit of the circuit (Qubit) in increasing order.

SetLayout initializer.

Parameters

layout (Layout) – the layout to set.

Attributes

SetLayout.is_analysis_pass

Check if the pass is an analysis pass.

SetLayout.is_transformation_pass

Check if the pass is a transformation pass.

Methods

SetLayout.name()

Return the name of the pass.

SetLayout.run(dag)

Run the SetLayout pass on dag.