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
Check if the pass is an analysis pass.
Check if the pass is a transformation pass.
Methods
Return the name of the pass.
SetLayout.run
(dag)Run the SetLayout pass on dag.