TranspileLayout#

class qiskit.transpiler.TranspileLayout(initial_layout, input_qubit_mapping, final_layout=None)[source]#

Bases : object

Layout attributes from output circuit from transpiler.

The transpiler in general is unitary-perserving up to permutations caused by setting and applying initial layout during the Layout Stage and SwapGate insertion during the Routing Stage. To provide an interface to reason about these permutations caused by the transpiler.

There are three attributes associated with the class:

Attributes

final_layout: Layout | None = None#
initial_layout: Layout#
input_qubit_mapping: dict[Qubit, int]#