Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Ising and exchange interactions give different gate orderings

Open
QAlgorithms.Papers.Independent.Intakethird100.P99.interactionDependent_examples

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Use instantaneous free local controls and the ideal interaction-cost model on exactly two qubits. Write HI=X⊗XH_I=X\otimes XHI​=X⊗X for unit-strength Ising interaction and HE=X⊗X+Y⊗Y+Z⊗ZH_E=X\otimes X+Y\otimes Y+Z\otimes ZHE​=X⊗X+Y⊗Y+Z⊗Z for unit-strength exchange interaction, where X,Y,ZX,Y,ZX,Y,Z are the Pauli spin matrices. With CNOT, DCNOT and SWAP acting as ∣i,j⟩↦∣i,i⊕j⟩|i,j\rangle\mapsto|i,i\oplus j\rangle∣i,j⟩↦∣i,i⊕j⟩, ∣j,i⊕j⟩|j,i\oplus j\rangle∣j,i⊕j⟩ and ∣j,i⟩|j,i\rangle∣j,i⟩, respectively,

CHI(CNOT)=π/4<CHI(DCNOT)=π/2<CHI(SWAP)=3π/4,CHE(SWAP)=π/4<CHE(DCNOT)=π/2.\begin{aligned}C_{H_I}(\mathrm{CNOT})&=\pi/4<C_{H_I}(\mathrm{DCNOT})=\pi/2<C_{H_I}(\mathrm{SWAP})=3\pi/4,\\C_{H_E}(\mathrm{SWAP})&=\pi/4<C_{H_E}(\mathrm{DCNOT})=\pi/2.\end{aligned}CHI​​(CNOT)CHE​​(SWAP)​=π/4<CHI​​(DCNOT)=π/2<CHI​​(SWAP)=3π/4,=π/4<CHE​​(DCNOT)=π/2.​

These examples show that the ordering by cost can change with the interaction. Hamiltonian strength one is allowed even though a gate-content coordinate is bounded by π/4\pi/4π/4.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P99
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P99

open scoped Matrix Kronecker NNReal ENNReal

open QAlgorithms.Papers.Independent.Information100.P10 (pauli)

open QAlgorithms.Papers.Independent.Information100.P32 (evolution)

noncomputable section

/-- PDF p.7, III.E: unit-strength Ising and exchange interactions give different gate
orderings. Strength 1 is not constrained by the gate-chamber bound pi/4. -/
theorem interactionDependent_examples :
    interactionCost (canonicalPauliInteraction ![1, 0, 0]) cnot = ENNReal.ofReal (Real.pi / 4) ∧
    interactionCost (canonicalPauliInteraction ![1, 0, 0]) dcnot = ENNReal.ofReal (Real.pi / 2) ∧
    interactionCost (canonicalPauliInteraction ![1, 0, 0]) swapGate =
      ENNReal.ofReal (3 * Real.pi / 4) ∧
    interactionCost (canonicalPauliInteraction ![1, 0, 0]) cnot <
      interactionCost (canonicalPauliInteraction ![1, 0, 0]) dcnot ∧
    interactionCost (canonicalPauliInteraction ![1, 0, 0]) dcnot <
      interactionCost (canonicalPauliInteraction ![1, 0, 0]) swapGate ∧
    interactionCost (canonicalPauliInteraction ![1, 1, 1]) swapGate = ENNReal.ofReal (Real.pi / 4) ∧
    interactionCost (canonicalPauliInteraction ![1, 1, 1]) dcnot = ENNReal.ofReal (Real.pi / 2) ∧
    interactionCost (canonicalPauliInteraction ![1, 1, 1]) swapGate <
      interactionCost (canonicalPauliInteraction ![1, 1, 1]) dcnot := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P99
Source
Characterization of non-local gates, arXiv:quant-ph/0205100v3, PDF p. 7, III.E: interaction-dependent ordering examples
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let X,Y,ZX,Y,ZX,Y,Z be the usual Pauli matrices, let Hx=X⊗XH_x=X\otimes XHx​=X⊗X, and let Hiso=X⊗X+Y⊗Y+Z⊗ZH_{\mathrm{iso}}=X\otimes X+Y\otimes Y+Z\otimes ZHiso​=X⊗X+Y⊗Y+Z⊗Z. Let N∣i,j⟩=∣i,j⊕i⟩N|i,j\rangle=|i,j\oplus i\rangleN∣i,j⟩=∣i,j⊕i⟩, D∣i,j⟩=∣j,i⊕j⟩D|i,j\rangle=|j,i\oplus j\rangleD∣i,j⟩=∣j,i⊕j⟩, and S∣i,j⟩=∣j,i⟩S|i,j\rangle=|j,i\rangleS∣i,j⟩=∣j,i⟩, for bits i,ji,ji,j. For these Hermitian Hamiltonians and unitary targets, define CH(V)C_H(V)CH​(V) as the infimum in [0,+∞][0,+\infty][0,+∞], with empty infimum +∞+\infty+∞, of nonnegative times ttt admitting the following approximation property: for every ε>0\varepsilon>0ε>0, some finite product (Am⊗Bm)e−itmH⋯(A1⊗B1)e−it1H(A0⊗B0)(A_m\otimes B_m)e^{-it_mH}\cdots(A_1\otimes B_1)e^{-it_1H}(A_0\otimes B_0)(Am​⊗Bm​)e−itm​H⋯(A1​⊗B1​)e−it1​H(A0​⊗B0​), using one-qubit unitaries and nonnegative durations summing exactly to ttt, has operator-norm distance strictly less than ε\varepsilonε from zVzVzV for some complex ∣z∣=1|z|=1∣z∣=1; the pulse list can be empty. The declaration asserts all eight statements

CHx(N)=π/4,CHx(D)=π/2,CHx(S)=3π/4,CHx(N)<CHx(D),CHx(D)<CHx(S),CHiso(S)=π/4,CHiso(D)=π/2,CHiso(S)<CHiso(D),\begin{gathered} C_{H_x}(N)=\pi/4,\qquad C_{H_x}(D)=\pi/2,\qquad C_{H_x}(S)=3\pi/4,\\ C_{H_x}(N)<C_{H_x}(D),\qquad C_{H_x}(D)<C_{H_x}(S),\\ C_{H_{\mathrm{iso}}}(S)=\pi/4,\qquad C_{H_{\mathrm{iso}}}(D)=\pi/2,\qquad C_{H_{\mathrm{iso}}}(S)<C_{H_{\mathrm{iso}}}(D), \end{gathered}CHx​​(N)=π/4,CHx​​(D)=π/2,CHx​​(S)=3π/4,CHx​​(N)<CHx​​(D),CHx​​(D)<CHx​​(S),CHiso​​(S)=π/4,CHiso​​(D)=π/2,CHiso​​(S)<CHiso​​(D),​

where the displayed finite values are embedded in the extended nonnegative reals.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me