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