The setting
In a globally controlled quantum processor arranged on a ring of qubits, executing an entangling gate or local readout between an arbitrary pair of computational qubits requires moving those two qubits to dedicated local interaction ports without individual control over every ring bond. The keyhole geometry attaches two auxiliary port sites, and , to two adjacent sites of an even ring . Alternating nearest-neighbor SWAP layers act globally across the ring, while two local SWAP operations couple the ports to their adjacent ring sites. The routing question asks whether these four swap generators suffice to move any ordered pair of distinct ring qubits simultaneously onto ports and .
The keyhole geometry
Let be a positive even integer, and let be the cyclic ring of sites. Because is even, partitions into the even sublattice and the odd sublattice .
The set of keyhole positions is the disjoint union of the ring and two distinct port positions and , given by (1): (1)✦ Each element identifies a ring site of , while and are the two external ports attached to ring sites and , respectively.
Swap generators
On the ring , the even swap layer and the odd swap layer are the involutive permutations defined for by (2): (2)
Extending and to permutations of that fix both ports and yields the keyhole even layer and the keyhole odd layer, denoted by the same symbols and . The port swap is the transposition on that exchanges ring site and port while fixing all other positions✦, and the port swap is the transposition on that exchanges ring site and port while fixing all other positions.✦ Together, these four permutations generate the routing subgroup of the symmetric group .
The claim
Theorem. Let be a positive even integer, and let be distinct ring sites. Then there exists a permutation of such that (3)✦
What is checked
In the Lean library, the pair-routing statement (3) is stated for any positive even integer and any two distinct ring sites , over the keyhole position set equipped with the subgroup of generated by the keyhole even and odd swap layers and the two port swaps.