OctoInform Beta

the paper · §II. Routing and universality on the ring and keyhole · §II

Permutation conjugation and disjoint commutation of two-qubit gates: A permutation PσP_\sigma conjugates UijU_{ij} to Uσ(i)σ(j)U_{\sigma(i)\sigma(j)}, and two-qubit gates on disjoint qubit pairs commute

Permutation conjugation and disjoint commutation of two-qubit gates.

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 multi-qubit register, routing circuits rearrange qubit states across physical sites using permutations, and parallel layers apply two-qubit gates simultaneously to non-overlapping pairs of qubits. Two algebraic identities govern how these operations compose: conjugating a two-qubit gate by a qubit permutation moves the gate’s target sites along the permutation, and two-qubit gates supported on disjoint pairs of qubits commute.

Register operators

Let QQ be a finite set of qubit sites. A computational basis configuration of the register is a bitstring x∈{0,1}Qx \in \{0, 1\}^Q assigning a bit xk∈{0,1}x_k \in \{0, 1\} to each site k∈Qk \in Q. A register operator on QQ is a complex matrix indexed by {0,1}Q×{0,1}Q\{0, 1\}^Q \times \{0, 1\}^Q, representing a linear operator on the register Hilbert space (ℂ2)⊗Q(\mathbb{C}^2)^{\otimes Q} in the computational basis.✦

For distinct sites i,j∈Qi, j \in Q, the splitting bijection ϕij:{0,1}Q→({0,1}×{0,1})×{0,1}Q\{i,j}\phi_{ij} : \{0, 1\}^Q \to (\{0, 1\} \times \{0, 1\}) \times \{0, 1\}^{Q \setminus \{i, j\}}(1)✦ sends each bitstring x∈{0,1}Qx \in \{0, 1\}^Q to ((xi,xj),x|Q\{i,j})((x_i, x_j), x|_{Q \setminus \{i, j\}}), where x|Q\{i,j}x|_{Q \setminus \{i, j\}} is the restriction of xx to the remaining sites Q\{i,j}Q \setminus \{i, j\}. Its inverse reconstructs a bitstring x∈{0,1}Qx \in \{0, 1\}^Q from a pair (a,b)∈{0,1}×{0,1}(a, b) \in \{0, 1\} \times \{0, 1\} and a configuration r∈{0,1}Q\{i,j}r \in \{0, 1\}^{Q \setminus \{i, j\}} by setting xi=ax_i = a, xj=bx_j = b, and xk=rkx_k = r_k for all k∈Q\{i,j}k \in Q \setminus \{i, j\}.

Order the two-qubit computational basis as |00⟩,|01⟩,|10⟩,|11⟩|00\rangle, |01\rangle, |10\rangle, |11\rangle, so that (a,b)∈{0,1}×{0,1}(a, b) \in \{0, 1\} \times \{0, 1\} corresponds to the index 2a+b∈{0,1,2,3}2a + b \in \{0, 1, 2, 3\}. For distinct sites i,j∈Qi, j \in Q and a 4×44 \times 4 complex matrix UU, the two-qubit gate UijU_{ij} is the register operator obtained by reindexing U⊗IQ\{i,j}U \otimes I_{Q \setminus \{i, j\}} via the splitting bijection (1), where IQ\{i,j}I_{Q \setminus \{i, j\}} is the identity matrix on {0,1}Q\{i,j}\{0, 1\}^{Q \setminus \{i, j\}}.✦ For x,y∈{0,1}Qx, y \in \{0, 1\}^Q, its matrix entries are given by (2): (Uij)x,y={U2xi+xj,2yi+yjif x|Q\{i,j}=y|Q\{i,j},0otherwise.(U_{ij})_{x, y} = \begin{cases} U_{2x_i + x_j,\, 2y_i + y_j} & \text{if } x|_{Q \setminus \{i, j\}} = y|_{Q \setminus \{i, j\}}, \\ 0 & \text{otherwise.} \end{cases}(2)

For a permutation σ\sigma of QQ, the permutation operator PσP_\sigma is the register operator whose matrix entries for x,y∈{0,1}Qx, y \in \{0, 1\}^Q are given by (3): (Pσ)x,y={1if x∘σ=y,0otherwise.(P_\sigma)_{x, y} = \begin{cases} 1 & \text{if } x \circ \sigma = y, \\ 0 & \text{otherwise.} \end{cases}(3)✦ Its conjugate transpose is denoted by Pσ†P_\sigma^\dagger.

The claim

Theorem. Let QQ be a finite set of qubit sites. For every permutation σ\sigma of QQ, every pair of distinct sites i,j∈Qi, j \in Q, and every 4×44 \times 4 complex matrix UU, the conjugation identity (4) holds: PσUijPσ†=Uσ(i)σ(j).P_\sigma U_{ij} P_\sigma^\dagger = U_{\sigma(i)\sigma(j)}.(4)✦ For all pairwise distinct sites i,j,k,l∈Qi, j, k, l \in Q and all 4×44 \times 4 complex matrices UU and VV, the two-qubit gates UijU_{ij} and VklV_{kl} commute as in (5): UijVkl=VklUij.U_{ij} V_{kl} = V_{kl} U_{ij}.(5)✦

What is checked

In the Lean library, the theorem is stated for register operators on any finite set QQ of qubit sites, with two-qubit gates UijU_{ij} and VklV_{kl} defined via the splitting bijection (1) for arbitrary 4×44 \times 4 complex matrices UU and VV on distinct sites, and permutation operators PσP_\sigma defined by (3) for arbitrary permutations σ\sigma of QQ.