Skip to main contentIBM Quantum Documentation
This page is from an old version of Qiskit SDK. Go to the latest version

TranspileLayout

class TranspileLayout(initial_layout, input_qubit_mapping, final_layout=None)

GitHub

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

Type: Layout | None

Default value: None

initial_layout

Type: Layout

input_qubit_mapping

Type: Dict[Qubit, int]

Was this page helpful?
Report a bug or request content on GitHub.