The setting
On a one-dimensional ring of qubits with an even number of sites, global nearest-neighbor SWAP operations partition into two alternating layers that each pair every site with one of its two neighbors. Composing these two layers in either order produces a permutation of the ring sites that transports qubits around the array.
Alternating swap layers
Let be a positive even integer, and index the sites of the ring by the cyclic group . The even swap layer is the involutive permutation of that exchanges each even site with the adjacent site .✦ The odd swap layer is the involutive permutation of that exchanges each odd site with the adjacent site .✦
Composing and in the two possible orders defines the composite transport permutations and of by (1)
The claim
Lemma. For every positive even integer , the composite transport permutations and on satisfy (2)✦
What is checked
In the Lean library, the theorem is stated for every positive even integer over the permutation group of , with the even and odd swap layers and defined as involutive permutations and their composites and defined by (1).