OctoInform Beta

the paper · §II. Routing and universality on the ring and keyhole · §II.A, Theorem 1

Theorem 1: Optimal same-parity routing cost: Minimum number of composite swap layers πL\pi_L or πR\pi_R to route between same-parity sites on ℤ/Nℤ\mathbb{Z}/N\mathbb{Z}, with an N=8N = 8 example

Optimal same-parity routing cost on an even ring.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The setting

In a globally controlled architecture of qubits arranged on a ring of even length NN, nearest-neighbor SWAP gates are applied simultaneously across alternating pairs of adjacent sites. Composing the two alternating layers shifts qubits along the ring while preserving sublattice parity. Moving a qubit between two sites of the same parity requires a minimum number of composite layers determined by their separation around the ring, accompanied by an explicit example on an eight-qubit ring.

Sublattices and alternating swap layers

Let NN be an even natural number, let ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} denote the ring of integers modulo NN indexing the sites of the ring, and let ρ:ℤ/Nℤ→ℤ/2ℤ\rho : \mathbb{Z}/N\mathbb{Z} \to \mathbb{Z}/2\mathbb{Z} be the canonical projection modulo 22. The even sublattice E⊆ℤ/NℤE \subseteq \mathbb{Z}/N\mathbb{Z} and the odd sublattice O⊆ℤ/NℤO \subseteq \mathbb{Z}/N\mathbb{Z} are given by E={x∈ℤ/Nℤ:ρ(x)=0},O={x∈ℤ/Nℤ:ρ(x)=1}.\begin{aligned} E &= \{ x \in \mathbb{Z}/N\mathbb{Z} : \rho(x) = 0 \}, \\ O &= \{ x \in \mathbb{Z}/N\mathbb{Z} : \rho(x) = 1 \}. \end{aligned}(1)

Now assume that NN is a nonzero even natural number. The even swap layer πg\pi_g is the involutive permutation of ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} that exchanges 2j2j and 2j+12j + 1 for every integer jj.✦ The odd swap layer πh\pi_h is the involutive permutation of ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} that exchanges 2j−12j - 1 and 2j2j for every integer jj.✦

The composite layers πL\pi_L and πR\pi_R are the permutations of ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} defined by πL=πg∘πh,πR=πh∘πg.\begin{aligned} \pi_L &= \pi_g \circ \pi_h, \\ \pi_R &= \pi_h \circ \pi_g. \end{aligned}(2) For any permutation π\pi of ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} and any natural number m∈ℕm \in \mathbb{N}, πm\pi^m denotes the mm-fold composition of π\pi with itself, with π0\pi^0 the identity permutation.

The claim

Theorem A. Let NN be a nonzero even natural number, and let p,t∈ℤ/Nℤp, t \in \mathbb{Z}/N\mathbb{Z} lie in the same sublattice, so that either p,t∈Ep, t \in E or p,t∈Op, t \in O. Let d∈ℕd \in \mathbb{N} satisfy d<N/2d < N/2 and 2d=t−p2d = t - p in ℤ/Nℤ\mathbb{Z}/N\mathbb{Z}, and set k=min⁡(d,N/2−d)k = \min(d, N/2 - d). Then πLk(p)=t or πRk(p)=t,and for every k′∈ℕ with k′<k,πLk′(p)≠t and πRk′(p)≠t.\begin{aligned} &\pi_L^k(p) = t \text{ or } \pi_R^k(p) = t, \\ &\text{and for every } k' \in \mathbb{N} \text{ with } k' < k, \\ &\pi_L^{k'}(p) \neq t \text{ and } \pi_R^{k'}(p) \neq t. \end{aligned}(3)✦

Theorem B. On the ring ℤ/8ℤ\mathbb{Z}/8\mathbb{Z}, the even swap layer πg\pi_g and the composite layer πR\pi_R satisfy πg(3)=2,πR(2)=4.\begin{aligned} \pi_g(3) &= 2, \\ \pi_R(2) &= 4. \end{aligned}(4)✦

What is checked

The routing-cost claim in (3) is stated in the Lean library over a nonzero even natural number NN, sites p,t∈ℤ/Nℤp, t \in \mathbb{Z}/N\mathbb{Z} in the same sublattice EE or OO from (1), and d∈ℕd \in \mathbb{N} with d<N/2d < N/2 and 2d=t−p2d = t - p in ℤ/Nℤ\mathbb{Z}/N\mathbb{Z}, for the composite layers πL\pi_L and πR\pi_R of (2) built from the swap layers πg\pi_g and πh\pi_h. The eight-site example in (4) is stated in the Lean library over ℤ/8ℤ\mathbb{Z}/8\mathbb{Z} for πg\pi_g and πR\pi_R.