qiskit.transpiler.Layout.swap¶ Layout.swap(left, right)[source]¶ Swaps the map between left and right. Paramètres left (tuple or int) – Item to swap with right. right (tuple or int) – Item to swap with left. Lève LayoutError – If left and right have not the same type.