Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

DCNOT interaction content and cost

Open
QAlgorithms.Papers.Independent.Intakethird100.P99.dcnot_content_cost

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

prove2quantum

Let HHH be a Hermitian Hamiltonian on two qubits A,BA,BA,B, with canonical interaction coefficients α=(α1,α2,α3)\alpha=(\alpha_1,\alpha_2,\alpha_3)α=(α1​,α2​,α3​) satisfying α1≥α2≥∣α3∣\alpha_1\ge\alpha_2\ge|\alpha_3|α1​≥α2​≥∣α3​∣. Local terms in HHH are allowed. Local unitary controls are instantaneous and free, interaction intervals are nonnegative, and ℏ=1\hbar=1ℏ=1. Write CH(U)C_H(U)CH​(U) for the infimum of the interaction durations of protocols implementing the gate UUU, allowing the ideal limit of arbitrarily fine pulses at fixed total duration and disregarding global phase. This cost is an extended nonnegative real, with value +∞+\infty+∞ for an impossible simulation. Assume α1>0\alpha_1>0α1​>0. Define DCNOT:∣i,j⟩↦∣j,i⊕j⟩\mathrm{DCNOT}:|i,j\rangle\mapsto|j,i\oplus j\rangleDCNOT:∣i,j⟩↦∣j,i⊕j⟩, where i,j∈{0,1}i,j\in\{0,1\}i,j∈{0,1} and ⊕\oplus⊕ is addition modulo two. Its canonical interaction content and cost are

β(DCNOT)=π4(1,1,0),CH(DCNOT)=π2(α1+α2−∣α3∣).\beta(\mathrm{DCNOT})=\frac{\pi}{4}(1,1,0),\qquad C_H(\mathrm{DCNOT})=\frac{\pi}{2(\alpha_1+\alpha_2-|\alpha_3|)}.β(DCNOT)=4π​(1,1,0),CH​(DCNOT)=2(α1​+α2​−∣α3​∣)π​.

The explicit basis action fixes the order of the two controlled-NOT operations.

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.D.2: DCNOT's basis action fixes the product convention; the cost
has denominator a1+a2-|a3| and numerator pi/2. -/
theorem dcnot_content_cost (H : TwoMatrix) (a : Triple)
    (hH : HasCanonicalHamiltonian H a) (ha : 0 < a 0) :
    HasContent dcnot ![Real.pi / 4, Real.pi / 4, 0] ∧
      interactionCost H dcnot =
        ENNReal.ofReal (Real.pi / (2 * (a 0 + a 1 - |a 2|))) := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P99
Source
Characterization of non-local gates, arXiv:quant-ph/0205100v3, PDF p. 7, III.D.2: DCNOT content and interaction cost
Read-back

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

For every complex two-qubit matrix HHH and real triple aaa, assume H=H†H=H^\daggerH=H†, a1≤a0a_1\le a_0a1​≤a0​, ∣a2∣≤a1|a_2|\le a_1∣a2​∣≤a1​, a0>0a_0>0a0​>0, and there exist one-qubit unitaries A,BA,BA,B and Hermitian one-qubit matrices K,LK,LK,L satisfying

(A⊗B)H(A⊗B)†=∑j=02ajσj⊗σj+K⊗I+I⊗L,(σ0,σ1,σ2)=(X,Y,Z).(A\otimes B)H(A\otimes B)^\dagger =\sum_{j=0}^2a_j\sigma_j\otimes\sigma_j+K\otimes I+I\otimes L, \qquad(\sigma_0,\sigma_1,\sigma_2)=(X,Y,Z).(A⊗B)H(A⊗B)†=j=0∑2​aj​σj​⊗σj​+K⊗I+I⊗L,(σ0​,σ1​,σ2​)=(X,Y,Z).

The matrix D∣i,j⟩=∣j,i⊕j⟩D|i,j\rangle=|j,i\oplus j\rangleD∣i,j⟩=∣j,i⊕j⟩ is unitary and has content d=(π/4,π/4,0)d=(\pi/4,\pi/4,0)d=(π/4,π/4,0): the inequalities d1≤d0d_1\le d_0d1​≤d0​, ∣d2∣≤d1|d_2|\le d_1∣d2​∣≤d1​, d0≤π/4d_0\le\pi/4d0​≤π/4 hold, and there exist four one-qubit unitaries A′,B′,C′,D′A',B',C',D'A′,B′,C′,D′ such that

D=(A′⊗B′)exp⁡ ⁣(−i∑j=02djσj⊗σj)(C′⊗D′).D=(A'\otimes B')\exp\!\left(-i\sum_{j=0}^2d_j\sigma_j\otimes\sigma_j\right)(C'\otimes D').D=(A′⊗B′)exp(−ij=0∑2​dj​σj​⊗σj​)(C′⊗D′).

Furthermore,

CH(D)=π2(a0+a1−∣a2∣),C_H(D)=\frac{\pi}{2(a_0+a_1-|a_2|)},CH​(D)=2(a0​+a1​−∣a2​∣)π​,

where the denominator is positive under the hypotheses and the value is regarded as an extended nonnegative real. The interaction cost CH(D)C_H(D)CH​(D) is the infimum, with empty infimum +∞+\infty+∞, of nonnegative times ttt for which, for every ε>0\varepsilon>0ε>0, a 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, differs in operator norm from zDzDzD by strictly less than ε\varepsilonε for some ∣z∣=1|z|=1∣z∣=1; zero pulses are allowed.

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