Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§XI.A (109)–(111): atom-assisted nondemolition mod-four measurement

Open
QAlgorithms.Papers.Independent.Intakenext100.P12.atomic_mod_four_QND

by Gohan · Oct 31, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let λ>0\lambda>0λ>0, and let the oscillator have Fock amplitudes ψk\psi_kψk​ with ∑k∣ψk∣2=1\sum_k|\psi_k|^2=1∑k​∣ψk​∣2=1 and zero odd-kkk amplitudes. The atom starts in (∣g⟩+∣e⟩)/2(|g\rangle+|e\rangle)/\sqrt2(∣g⟩+∣e⟩)/2​, with σz=−1\sigma_z=-1σz​=−1 on ggg and +1+1+1 on eee. Evolving under H′=λNσzH'=\lambda N\sigma_zH′=λNσz​ for t=π/(4λ)t=\pi/(4\lambda)t=π/(4λ) gives the controlled phases of (111). Measuring the atom in its plus/minus basis has branch amplitudes

K+ψ=eiπN/4ΠN=0 mod 4ψ,K−ψ=eiπN/4ΠN=2 mod 4ψ.K_+\psi=e^{i\pi N/4}\Pi_{N=0\bmod4}\psi,\qquad K_-\psi=e^{i\pi N/4}\Pi_{N=2\bmod4}\psi.K+​ψ=eiπN/4ΠN=0mod4​ψ,K−​ψ=eiπN/4ΠN=2mod4​ψ.

The outcome probabilities are the squared norms of these projections and sum to one. Neither branch mixes sectors, and an immediate repeated measurement cannot give the opposite outcome. The common known number-dependent backaction is retained.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P12
Formal statement
noncomputable section

open scoped BigOperators

open MeasureTheory Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Dependency50.P10 (Phase sigma)

namespace QAlgorithms.Papers.Independent.Intakenext100.P12

/-- Section XI.A (109)–(111), PDF pp.14–15: exact atom calculation and repeatable mod-four sectors.
The physical oscillator input has total squared amplitude one and even parity. -/
theorem atomic_mod_four_QND (lambda : ℝ) (hl : 0 < lambda) (psi : ℕ → ℂ)
    (hnorm : HasSum (fun k => ‖psi k‖ ^ 2) 1)
    (heven : ∀ k, k % 2 = 1 → psi k = 0) :
    (∀ k atom, atomEvolution lambda (Real.pi / (4 * lambda))
      (fun ka => psi ka.1 / (Real.sqrt 2 : ℂ)) k atom =
      cisPhase ((if atom then -1 else 1) * Real.pi * k / 4) * psi k / (Real.sqrt 2 : ℂ)) ∧
    (∀ b k, atomBranch b psi k =
      cisPhase (Real.pi * k / 4) * numberSector (if b then 2 else 0) psi k) ∧
    (∀ b k, ‖atomBranch b psi k‖ ^ 2 = ‖numberSector (if b then 2 else 0) psi k‖ ^ 2) ∧
    (∑' k, ‖atomBranch false psi k‖ ^ 2) + (∑' k, ‖atomBranch true psi k‖ ^ 2) = 1 ∧
    (∀ b k, atomBranch (!b) (atomBranch b psi) k = 0) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P12

end
Source
Encoding a qubit in an oscillator, arXiv:quant-ph/0008040v3, PDF p. 14, §XI.A (109)–(111): atom-assisted nondemolition mod-four measurement
Read-back

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

For every real number λ>0\lambda>0λ>0 and function ψ:N→C\psi:\mathbb N\to\mathbb Cψ:N→C, assume that the series ∑k=0∞∣ψ(k)∣2\sum_{k=0}^{\infty}|\psi(k)|^2∑k=0∞​∣ψ(k)∣2 has sum 111, and that ψ(k)=0\psi(k)=0ψ(k)=0 whenever k mod 2=1k\bmod2=1kmod2=1. Define

Bb(χ)(k)=eiπk/4+δbe−iπk/42χ(k),δfalse=1,δtrue=−1,Pr(χ)(k)={χ(k)k mod 4=r,0otherwise.B_b(\chi)(k)= \frac{e^{i\pi k/4}+\delta_b e^{-i\pi k/4}}{2}\chi(k), \quad \delta_{\mathrm{false}}=1,\quad\delta_{\mathrm{true}}=-1, \qquad P_r(\chi)(k)= \begin{cases}\chi(k)&k\bmod4=r,\\0&\text{otherwise}.\end{cases}Bb​(χ)(k)=2eiπk/4+δb​e−iπk/4​χ(k),δfalse​=1,δtrue​=−1,Pr​(χ)(k)={χ(k)0​kmod4=r,otherwise.​

Then all of the following hold: for every natural number kkk and Boolean aaa, putting εtrue=1\varepsilon_{\mathrm{true}}=1εtrue​=1 and εfalse=−1\varepsilon_{\mathrm{false}}=-1εfalse​=−1, the evolution multiplier satisfies

e i[−λ(π/(4λ))kεa]ψ(k)2=e i[−εaπk/4]ψ(k)2;e^{\,i[-\lambda(\pi/(4\lambda))k\varepsilon_a]} \frac{\psi(k)}{\sqrt2} = \frac{e^{\,i[-\varepsilon_a\pi k/4]}\psi(k)}{\sqrt2};ei[−λ(π/(4λ))kεa​]2​ψ(k)​=2​ei[−εa​πk/4]ψ(k)​;

for every Boolean bbb and natural number kkk, with rfalse=0r_{\mathrm{false}}=0rfalse​=0 and rtrue=2r_{\mathrm{true}}=2rtrue​=2,

Bb(ψ)(k)=eiπk/4Prb(ψ)(k),∣Bb(ψ)(k)∣2=∣Prb(ψ)(k)∣2;B_b(\psi)(k)=e^{i\pi k/4}P_{r_b}(\psi)(k), \qquad |B_b(\psi)(k)|^2=|P_{r_b}(\psi)(k)|^2;Bb​(ψ)(k)=eiπk/4Prb​​(ψ)(k),∣Bb​(ψ)(k)∣2=∣Prb​​(ψ)(k)∣2;

the two branch weights satisfy

(∑k=0∞∣Bfalse(ψ)(k)∣2)+(∑k=0∞∣Btrue(ψ)(k)∣2)=1;\left(\sum_{k=0}^{\infty}|B_{\mathrm{false}}(\psi)(k)|^2\right) + \left(\sum_{k=0}^{\infty}|B_{\mathrm{true}}(\psi)(k)|^2\right)=1;(k=0∑∞​∣Bfalse​(ψ)(k)∣2)+(k=0∑∞​∣Btrue​(ψ)(k)∣2)=1;

and for every Boolean bbb and natural number kkk,

B¬b(Bb(ψ))(k)=0.B_{\neg b}\bigl(B_b(\psi)\bigr)(k)=0.B¬b​(Bb​(ψ))(k)=0.

All pointwise assertions include k=0k=0k=0, and either branch is allowed to have zero total weight.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me