OctoInform Beta

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

Equation (S27): Permutation conjugation of single-qubit gates and SWAP: Conjugating a single-qubit gate UtU_t by a permutation operator PσP_\sigma yields Uσ−1(t)U_{\sigma^{-1}(t)}, and a transposition operator equals SWAPij\text{SWAP}_{ij}

Permutation conjugation of single-qubit gates and the SWAP gate.

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 quantum circuits on a multi-qubit register, routing qubits by layers of nearest-neighbor SWAP\text{SWAP} gates implements permutations of the physical qubit sites. Analyzing how a localized single-qubit operation transforms under such a permutation reduces the effect of routing to relabeling the target site by the inverse permutation. Identifying the permutation operator of a transposition with the embedded two-qubit SWAP\text{SWAP} gate links abstract site permutations to two-qubit circuit gates.

Operators on a qubit register

Let QQ be a finite set of qubit sites. The computational basis configurations of the register are the bitstrings x∈{0,1}Qx \in \{0, 1\}^Q, spanning the register Hilbert space (ℂ2)⊗Q(\mathbb{C}^2)^{\otimes Q} with basis {|x⟩:x∈{0,1}Q}\{|x\rangle : x \in \{0, 1\}^Q\}. A register operator on QQ is a complex matrix A∈ℂ{0,1}Q×{0,1}QA \in \mathbb{C}^{\{0, 1\}^Q \times \{0, 1\}^Q} indexed by computational basis configurations, and A†A^\dagger denotes its conjugate transpose.✦

For a site q∈Qq \in Q and a complex 2×22 \times 2 matrix U∈ℂ2×2U \in \mathbb{C}^{2 \times 2}, splitting each configuration x∈{0,1}Qx \in \{0, 1\}^Q into its bit x(q)∈{0,1}x(q) \in \{0, 1\} at site qq and its restriction x|Q\{q}x|_{Q \setminus \{q\}} to the remaining sites identifies the register with ℂ2⊗(ℂ2)⊗(Q\{q})\mathbb{C}^2 \otimes (\mathbb{C}^2)^{\otimes (Q \setminus \{q\})}. The embedded single-qubit gate UqU_q is the register operator acting as UU on site qq and as the identity on Q\{q}Q \setminus \{q\}, with entries given for x,y∈{0,1}Qx, y \in \{0, 1\}^Q by (Uq)x,y=Ux(q),y(q)∏k∈Q\{q}δx(k),y(k),(U_q)_{x, y} = U_{x(q), y(q)} \prod_{k \in Q \setminus \{q\}} \delta_{x(k), y(k)},(1)✦ where δa,b\delta_{a, b} is the Kronecker delta.

For two distinct sites i,j∈Qi, j \in Q, the pair-splitting bijection maps each configuration x∈{0,1}Qx \in \{0, 1\}^Q to ((x(i),x(j)),x|Q\{i,j})∈{0,1}2×{0,1}Q\{i,j}((x(i), x(j)), x|_{Q \setminus \{i, j\}}) \in \{0, 1\}^2 \times \{0, 1\}^{Q \setminus \{i, j\}}, with inverse assigning the chosen pair of bits to sites ii and jj and retaining the remaining bits. Ordering the two-qubit computational basis as |00⟩,|01⟩,|10⟩,|11⟩|00\rangle, |01\rangle, |10\rangle, |11\rangle so that each pair (a,b)∈{0,1}2(a, b) \in \{0, 1\}^2 corresponds to index 2a+b2a + b, the embedded two-qubit gate WijW_{ij} associated to a complex 4×44 \times 4 matrix W∈ℂ4×4W \in \mathbb{C}^{4 \times 4} acts as WW on the ordered pair (i,j)(i, j) and as the identity on Q\{i,j}Q \setminus \{i, j\}: (Wij)x,y=W(x(i),x(j)),(y(i),y(j))∏k∈Q\{i,j}δx(k),y(k).(W_{ij})_{x, y} = W_{(x(i), x(j)), (y(i), y(j))} \prod_{k \in Q \setminus \{i, j\}} \delta_{x(k), y(k)}.(2)✦ In the same two-qubit basis |00⟩,|01⟩,|10⟩,|11⟩|00\rangle, |01\rangle, |10\rangle, |11\rangle, the SWAP\text{SWAP} gate is the 4×44 \times 4 complex matrix SWAP=(1000001001000001),\text{SWAP} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & 1 & 0 \\ 0 & 1 & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix},(3)✦ which exchanges the two qubits.

Given a permutation σ:Q→Q\sigma : Q \to Q, the permutation operator PσP_\sigma is the register operator defined for x,y∈{0,1}Qx, y \in \{0, 1\}^Q by (Pσ)x,y={1if y=x∘σ,0otherwise.(P_\sigma)_{x, y} = \begin{cases} 1 & \text{if } y = x \circ \sigma, \\ 0 & \text{otherwise.} \end{cases}(4)✦ On computational basis states, PσP_\sigma maps |y⟩|y\rangle to |y∘σ−1⟩|y \circ \sigma^{-1}\rangle, moving the qubit at each site k∈Qk \in Q to site σ(k)\sigma(k).

The claim

Theorem. Let QQ be a finite set of qubit sites. For every permutation σ\sigma of QQ, every site t∈Qt \in Q, and every complex 2×22 \times 2 matrix U∈ℂ2×2U \in \mathbb{C}^{2 \times 2}, Pσ†UtPσ=Uσ−1(t).P_\sigma^\dagger U_t P_\sigma = U_{\sigma^{-1}(t)}.(5)✦ Moreover, for any two distinct sites i,j∈Qi, j \in Q, let (ij)(i\,j) be the transposition on QQ that exchanges ii and jj and fixes every other site; then P(ij)=SWAPij.P_{(i\,j)} = \text{SWAP}_{ij}.(6)✦

What is checked

In the Lean library, (5) and (6) are stated over register operators on an arbitrary finite set QQ of qubit sites, built from the single-qubit gate embedding (1), the two-qubit gate embedding (2) defined via the pair-splitting bijection, the SWAP\text{SWAP} gate (3), and the permutation operator (4). The conjugation identity (5) is stated for an arbitrary permutation σ\sigma of QQ, site t∈Qt \in Q, and complex 2×22 \times 2 matrix UU, and the transposition identity (6) is stated for any pair of distinct sites i,j∈Qi, j \in Q.