OctoInform Beta

the paper · §I. Single-qubit gates, XY interaction, and iSWAP · §I.A, (S10)-(S11)

Equation (S11): Local Z correction and lab-frame resonant iSWAP: Local σz\sigma_z conjugation at t=π/(2g)t = \pi/(2g) and laboratory-frame factorization at t=3π/(2g)t = 3\pi/(2g)

Realizing the iSWAP gate under resonant XY dynamics.

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

Two qubits coupled by an XY exchange interaction naturally swap single excitations between them, providing a physical route to the entangling iSWAP\text{iSWAP} gate. When the two qubits share the same transition frequency, the interaction unitary alone generates an excitation exchange whose off-diagonal phase differs in sign from that of iSWAP\text{iSWAP} at the shortest swap time, whereas the full laboratory-frame evolution also carries free local phase rotations. Two identities resolve this discrepancy for resonant XY evolution: either conjugating the interaction unitary by a local Pauli phase flip on the first qubit at the shortest swap time, or letting the full resonant Hamiltonian evolve for three times that duration so that the laboratory-frame unitary factors into the free rotation followed by iSWAP\text{iSWAP}.

Two-qubit operators and dynamics

The single-qubit Pauli matrices σx\sigma_x, σy\sigma_y, and σz\sigma_z are the 2×22 \times 2 complex matrices given by (1), σx=(0110),σy=(0−ii0),σz=(100−1),\begin{aligned} \sigma_x &= \begin{pmatrix} 0 & 1 \\ 1 & 0 \end{pmatrix}, \\ \sigma_y &= \begin{pmatrix} 0 & -i \\ i & 0 \end{pmatrix}, \\ \sigma_z &= \begin{pmatrix} 1 & 0 \\ 0 & -1 \end{pmatrix}, \end{aligned}(1) where ii is the imaginary unit, and II denotes the 2×22 \times 2 identity matrix. The space of two-qubit operators consists of all 4×44 \times 4 complex matrices acting on the product of two single-qubit computational bases, ordered as |00⟩,|01⟩,|10⟩,|11⟩|00\rangle, |01\rangle, |10\rangle, |11\rangle; tensor products of single-qubit operators are formed by the Kronecker product in this ordered basis.

Given real qubit frequencies ωA\omega_A and ωB\omega_B, the free Hamiltonian H0H_0 is the two-qubit operator defined by (2): H0=ωA2σz⊗I+ωB2I⊗σz.H_0 = \frac{\omega_A}{2}\,\sigma_z \otimes I + \frac{\omega_B}{2}\,I \otimes \sigma_z.(2)✦ For a real coupling gg, the XY interaction Hamiltonian HintH_{\text{int}} is the two-qubit operator defined by (3): Hint=g2(σx⊗σx+σy⊗σy).H_{\text{int}} = \frac{g}{2}\bigl(\sigma_x \otimes \sigma_x + \sigma_y \otimes \sigma_y\bigr).(3)✦ Adding the free and interaction terms yields the XY two-qubit Hamiltonian HH of (4): H=H0+Hint.H = H_0 + H_{\text{int}}.(4)✦

Unitary time evolution under these Hamiltonians is given by the matrix exponential. At real qubit frequencies ωA\omega_A and ωB\omega_B and real time tt, the rotating-frame unitary Urf(t)U_{\text{rf}}(t) is the two-qubit operator in (5): Urf(t)=exp⁡(−itH0).U_{\text{rf}}(t) = \exp(-i t H_0).(5)✦ Under the interaction alone, with real coupling gg and real time tt, the resonant evolution Udyn(t)U_{\text{dyn}}(t) is the two-qubit operator in (6): Udyn(t)=exp⁡(−itHint).U_{\text{dyn}}(t) = \exp(-i t H_{\text{int}}).(6)✦

In the ordered computational basis |00⟩,|01⟩,|10⟩,|11⟩|00\rangle, |01\rangle, |10\rangle, |11\rangle, the iSWAP\text{iSWAP} gate is the two-qubit operator given by (7): iSWAP=(100000i00i000001).\text{iSWAP} = \begin{pmatrix} 1 & 0 & 0 & 0 \\ 0 & 0 & i & 0 \\ 0 & i & 0 & 0 \\ 0 & 0 & 0 & 1 \end{pmatrix}.(7)✦

The claim

Theorem. For any nonzero real coupling gg, conjugating the resonant evolution at time t=π/(2g)t = \pi/(2g) by σz⊗I\sigma_z \otimes I gives the iSWAP\text{iSWAP} gate: (σz⊗I)Udyn(π2g)(σz⊗I)=iSWAP.(\sigma_z \otimes I)\, U_{\text{dyn}}\!\left(\frac{\pi}{2g}\right)\, (\sigma_z \otimes I) = \text{iSWAP}.(8)✦ Furthermore, for any real frequency ω\omega and any nonzero real coupling gg, when the two qubits are on resonance with ωA=ωB=ω\omega_A = \omega_B = \omega, the laboratory-frame evolution under the XY two-qubit Hamiltonian HH at time t=3π/(2g)t = 3\pi/(2g) satisfies exp⁡(−i3π2gH)=Urf(3π2g)iSWAP.\exp\!\left(-i\,\frac{3\pi}{2g}\,H\right) = U_{\text{rf}}\!\left(\frac{3\pi}{2g}\right)\,\text{iSWAP}.(9)✦

What is checked

The Lean library states the local correction identity (8) and the resonant laboratory-frame factorization (9) over complex two-qubit operators for any nonzero real coupling gg and any real resonant qubit frequency ω=ωA=ωB\omega = \omega_A = \omega_B, built directly from the Pauli matrices (1), the free Hamiltonian (2), the XY interaction Hamiltonian (3), the XY two-qubit Hamiltonian (4), the matrix-exponential evolutions (5) and (6), and the iSWAP\text{iSWAP} gate (7).