OctoInform Beta

the paper · §II. Routing and universality on the ring and keyhole · §II, (S21), (S24)

Global iSWAP and sqrt(X) pulse layers: Three iSWAP\text{iSWAP} and three X\sqrt{X} layers on parity-cc bonds yield iN/2i^{N/2} times the swap permutation, specializing to πg\pi_g and πh\pi_h

Realizing global swap layers from iSWAP and single-qubit pulses.

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 quantum register, routing qubits around an even ring of NN sites relies on alternating nearest-neighbor SWAP layers πg\pi_g and πh\pi_h across the even and odd bonds. When the native two-qubit interaction is the iSWAP\text{iSWAP} gate, each swap layer is compiled by interleaving global iSWAP\text{iSWAP} layers on all bonds of a fixed parity with single-qubit X\sqrt{X} layers acting on the two endpoints of each bond. On a ring embedded in a finite qubit register, a six-layer pulse sequence of this form realizes the corresponding qubit permutation operator up to a global phase.

Two-qubit gates on a register

Order the two-qubit computational basis as |00⟩,|01⟩,|10⟩,|11⟩|00\rangle, |01\rangle, |10\rangle, |11\rangle, and let ii denote the imaginary unit. The iSWAP\text{iSWAP} gate is the 4×44 \times 4 complex matrix iSWAP=(100000i00i000001).\text{iSWAP} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & i & 0 \\ 0 & i & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}.(1)✦ The X\sqrt{X} gate is the 2×22 \times 2 complex matrix X=12(1+i1−i1−i1+i).\sqrt{X} = \frac{1}{2} \begin{pmatrix} 1 + i & 1 - i \\ 1 - i & 1 + i \end{pmatrix}.(2)✦ For two 2×22 \times 2 complex matrices AA and BB, the two-qubit Kronecker product A⊗BA \otimes B is the 4×44 \times 4 complex matrix obtained by taking their Kronecker product and indexing rows and columns through the bijection (r,s)↦2r+s(r, s) \mapsto 2r + s on {0,1}2\{0, 1\}^2.✦ Writing II for the 2×22 \times 2 identity matrix, the matrices I⊗XI \otimes \sqrt{X} and X⊗I\sqrt{X} \otimes I act with X\sqrt{X} on the second and first qubits of a pair, respectively.

Let QQ be a finite qubit index set. The register operators on QQ are the complex matrices indexed by computational basis bitstrings x:Q→{0,1}x : Q \to \{0, 1\}.✦ For two distinct sites u,v∈Qu, v \in Q, splitting off sites uu and vv is the bijection sending each bitstring xx on QQ to the pair consisting of (x(u),x(v))∈{0,1}2(x(u), x(v)) \in \{0, 1\}^2 and the restriction of xx to Q\{u,v}Q \setminus \{u, v\}.✦ For any 4×44 \times 4 complex matrix UU, the two-qubit gate UuvU_{uv} is the register operator obtained by acting with UU on the pair (u,v)(u, v) in the two-qubit computational basis tensored with the identity on Q\{u,v}Q \setminus \{u, v\}, transferred to bitstrings on QQ by splitting off sites uu and vv.✦

For a permutation σ\sigma of QQ, the permutation operator PσP_\sigma is the register operator sending each computational basis state |x⟩|x\rangle to |x∘σ−1⟩|x \circ \sigma^{-1}\rangle, moving the state at site kk to site σ(k)\sigma(k).✦

Global layers on an embedded ring

Let NN be a positive even integer and consider the ring ℤ/Nℤ\mathbb{Z}/N\mathbb{Z}. Because NN is even, every site e∈ℤ/Nℤe \in \mathbb{Z}/N\mathbb{Z} satisfies e≠e+1e \neq e + 1✦, and reduction modulo 22 is a well-defined map ℤ/Nℤ→ℤ/2ℤ\mathbb{Z}/N\mathbb{Z} \to \mathbb{Z}/2\mathbb{Z}. For a parity c∈ℤ/2ℤc \in \mathbb{Z}/2\mathbb{Z}, the parity-cc bond set Bc⊆ℤ/NℤB_c \subseteq \mathbb{Z}/N\mathbb{Z} is defined by Bc={e∈ℤ/Nℤ:emod⁡2=c},B_c = \{ e \in \mathbb{Z}/N\mathbb{Z} : e \bmod 2 = c \},(3) where each e∈Bce \in B_c indexes the nearest-neighbor bond (e,e+1)(e, e+1) of parity cc.

Let ι:ℤ/Nℤ→Q\iota : \mathbb{Z}/N\mathbb{Z} \to Q be an injective map into a finite qubit index set QQ. Since e≠e+1e \neq e + 1 and ι\iota is injective, ι(e)≠ι(e+1)\iota(e) \neq \iota(e+1) for every e∈ℤ/Nℤe \in \mathbb{Z}/N\mathbb{Z}, so for any 4×44 \times 4 complex matrix VV the two-qubit gate Vι(e),ι(e+1)V_{\iota(e), \iota(e+1)} is well-defined. For distinct e,e′∈Bce, e' \in B_c, the bond gates Vι(e),ι(e+1)V_{\iota(e), \iota(e+1)} and Vι(e′),ι(e′+1)V_{\iota(e'), \iota(e'+1)} commute✦, so the global layer operator Lι,c(V)L_{\iota, c}(V) on QQ is well-defined independently of factor order by Lι,c(V)=∏e∈BcVι(e),ι(e+1).L_{\iota, c}(V) = \prod_{e \in B_c} V_{\iota(e), \iota(e+1)}.(4)✦ Likewise, the transpositions (ι(e)ι(e+1))(\iota(e) \; \iota(e+1)) on QQ for distinct e∈Bce \in B_c commute pairwise, defining the embedded swap layer σι,c\sigma_{\iota, c} on QQ by σι,c=∏e∈Bc(ι(e)ι(e+1)).\sigma_{\iota, c} = \prod_{e \in B_c} (\iota(e) \; \iota(e+1)).(5)✦ When Q=ℤ/NℤQ = \mathbb{Z}/N\mathbb{Z} and ι\iota is the identity map id\mathrm{id}, the ring swap layer is σc=σid,c\sigma_c = \sigma_{\mathrm{id}, c}.✦ On ℤ/Nℤ\mathbb{Z}/N\mathbb{Z}, the even swap layer πg\pi_g is the involution exchanging 2j2j and 2j+12j+1 for every jj✦, and the odd swap layer πh\pi_h is the involution exchanging 2j−12j-1 and 2j2j for every jj.✦

The claim

Theorem. Let NN be a positive even integer, let QQ be a finite qubit index set, let ι:ℤ/Nℤ→Q\iota : \mathbb{Z}/N\mathbb{Z} \to Q be an injective map, and let c∈ℤ/2ℤc \in \mathbb{Z}/2\mathbb{Z}. Then the six-layer global pulse sequence on the parity-cc bonds satisfies Lι,c(I⊗X)Lι,c(iSWAP)Lι,c(X⊗I)⋅Lι,c(iSWAP)Lι,c(I⊗X)Lι,c(iSWAP)=iN/2Pσι,c.\begin{aligned} & L_{\iota, c}(I \otimes \sqrt{X}) \, L_{\iota, c}(\text{iSWAP}) \, L_{\iota, c}(\sqrt{X} \otimes I) \\ &\quad \cdot L_{\iota, c}(\text{iSWAP}) \, L_{\iota, c}(I \otimes \sqrt{X}) \, L_{\iota, c}(\text{iSWAP}) \\ &= i^{N/2} P_{\sigma_{\iota, c}}. \end{aligned}(6)✦ On the ring ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} itself, the parity-00 and parity-11 ring swap layers satisfy σ0=πg\sigma_0 = \pi_g(7)✦ and σ1=πh.\sigma_1 = \pi_h.(8)✦

What is checked

In the Lean library, the theorem is stated over the iSWAP\text{iSWAP} gate, the X\sqrt{X} gate, the two-qubit Kronecker product, register operators, two-qubit gates defined by splitting off distinct sites, permutation operators, parity-cc bond sets, global layer operators, embedded and ring swap layers, and the alternating swap layers πg\pi_g and πh\pi_h for an even ring ℤ/Nℤ\mathbb{Z}/N\mathbb{Z} embedded injectively into a finite qubit index set QQ. For these constructions, the Lean library proves that e≠e+1e \neq e + 1 for every site e∈ℤ/Nℤe \in \mathbb{Z}/N\mathbb{Z} when NN is even✦, and that two-qubit gates placed on distinct bonds of the same parity cc commute pairwise.✦