ApplyLayout¶
- class ApplyLayout(*args, **kwargs)[source]¶
Transform a circuit with virtual qubits into a circuit with physical qubits.
Transforms a DAGCircuit with virtual qubits into a DAGCircuit with physical qubits by applying the Layout given in property_set. Requires either of passes to set/select Layout, e.g. SetLayout, TrivialLayout. Assumes the Layout has full physical qubits.
Attributes
Check if the pass is an analysis pass.
Check if the pass is a transformation pass.
Methods
Return the name of the pass.
ApplyLayout.run
(dag)Run the ApplyLayout pass on dag.