Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§5 Figure 5: four measurements for one-qubit U

Open
QAlgorithms.Papers.Independent.Intakenext100.P52.figure5_four_measurements

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

prove2quantum

Let ∣ψ⟩|\psi\rangle∣ψ⟩ be normalized and set U=Rx(ζ)Rz(η)Rx(ξ)U=R_x(\zeta)R_z(\eta)R_x(\xi)U=Rx​(ζ)Rz​(η)Rx​(ξ), with Ra(θ)=e−iθσaR_a(\theta)=e^{-i\theta\sigma_a}Ra​(θ)=e−iθσa​ and real ξ,η,ζ\xi,\eta,\zetaξ,η,ζ. Put the input on site 111 of a five-site row, prepare the other four sites in ∣+⟩|+\rangle∣+⟩, and apply all nearest-neighbour CZCZCZs. Measure sites 1,2,3,41,2,3,41,2,3,4 with outcomes s1,s2,s3,s4s_1,s_2,s_3,s_4s1​,s2​,s3​,s4​ in bases XXX, M(−2ξ(−1)s1)M(-2\xi(-1)^{s_1})M(−2ξ(−1)s1​), M(−2η(−1)s2)M(-2\eta(-1)^{s_2})M(−2η(−1)s2​), M(−2ζ(−1)s1+s3)M(-2\zeta(-1)^{s_1+s_3})M(−2ζ(−1)s1​+s3​). For its physical surviving vector bsb_sbs​,

∣bs⟩⟨bs∣=116∣χs⟩⟨χs∣,∥bs∥2=116,∣χs⟩=Xs2⊕s4Zs1⊕s3U∣ψ⟩.|b_s\rangle\langle b_s|=\frac1{16}|\chi_s\rangle\langle\chi_s|,\quad\|b_s\|^2=\frac1{16},\quad |\chi_s\rangle=X^{s_2\oplus s_4}Z^{s_1\oplus s_3}U|\psi\rangle.∣bs​⟩⟨bs​∣=161​∣χs​⟩⟨χs​∣,∥bs​∥2=161​,∣χs​⟩=Xs2​⊕s4​Zs1​⊕s3​U∣ψ⟩.

Source correction: the three nonzero printed angles lack the factor two required by the p.5 rotation convention. Densities discard overall phases; every adaptive basis uses only earlier recorded bits.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P52
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate

namespace QAlgorithms.Papers.Independent.Intakenext100.P52

open QAlgorithms.Papers.Independent.Information100.P21 (Vec)

open QAlgorithms.Papers.Independent.Gap20.P01 (applyRect)

/-- Figure 5, PDF p.9. Printed angles -xi,-eta,-zeta implement half the
claimed rotations under the p.5 definition. Changed to -2xi,-2eta,-2zeta
with the same adaptive signs; densities discard the harmless overall phase.
No Euler-decomposition hypothesis is used to assume the branch conclusion. -/
theorem figure5_four_measurements (xi eta zeta : ℝ) (psi : Vec Bool)
    (hpsi : IsState psi) (s : Fin 4 → Bool) :
    let b := lineBranch 4 (figure5Angles xi eta zeta s) s psi
    let target := act (pauliByproduct (xor (s 1) (s 3)) (xor (s 0) (s 2)) *
      (rx zeta * rz eta * rx xi)) psi
    pureDensity b = (1 / 16 : ℝ) • pureDensity target ∧ ‖b‖ ^ 2 = (1 / 16 : ℝ) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P52

end
Source
An introduction to measurement based quantum computation, arXiv:quant-ph/0508124v2, PDF p. 9, §5 Figure 5: four measurements for one-qubit U
Read-back

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

For all real numbers ξ,η,ζ\xi,\eta,\zetaξ,η,ζ, every vector ψ∈C{0,1}\psi\in\mathbb C^{\{0,1\}}ψ∈C{0,1} of Euclidean norm 111, and every Boolean outcome string s=(s0,s1,s2,s3)s=(s_0,s_1,s_2,s_3)s=(s0​,s1​,s2​,s3​), identify Booleans with 0,10,10,1, let σ(t)=(−1)t\sigma(t)=(-1)^tσ(t)=(−1)t, and set α=(0,−2ξσ(s0),−2ησ(s1),−2ζσ(s0⊕s2))\alpha=(0,-2\xi\sigma(s_0),-2\eta\sigma(s_1),-2\zeta\sigma(s_0\mathbin{\oplus}s_2))α=(0,−2ξσ(s0​),−2ησ(s1​),−2ζσ(s0​⊕s2​)), where ⊕\oplus⊕ is exclusive-or. Define the branch vector by b(y)=2−4∑z∈{0,1}5z4=yψ(z0)(−1)∑i=03zizi+1+∑i=03siziexp⁡ ⁣(−i∑i=03αizi)\displaystyle b(y)=2^{-4}\sum_{\substack{z\in\{0,1\}^5\\z_4=y}}\psi(z_0)(-1)^{\sum_{i=0}^3z_i z_{i+1}+\sum_{i=0}^3s_i z_i}\exp\!\left(-\mathrm i\sum_{i=0}^3\alpha_i z_i\right)b(y)=2−4z∈{0,1}5z4​=y​∑​ψ(z0​)(−1)∑i=03​zi​zi+1​+∑i=03​si​zi​exp(−ii=0∑3​αi​zi​). Write X=(0110)X=\begin{pmatrix}0&1\\1&0\end{pmatrix}X=(01​10​), Z=diag⁡(1,−1)Z=\operatorname{diag}(1,-1)Z=diag(1,−1), Rx(t)=cos⁡(t)I−isin⁡(t)XR_x(t)=\cos(t)I-\mathrm i\sin(t)XRx​(t)=cos(t)I−isin(t)X, and Rz(t)=diag⁡(e−it,eit)R_z(t)=\operatorname{diag}(e^{-\mathrm it},e^{\mathrm it})Rz​(t)=diag(e−it,eit), and put v=Xs1⊕s3Zs0⊕s2Rx(ζ)Rz(η)Rx(ξ)ψ\displaystyle v=X^{s_1\oplus s_3}Z^{s_0\oplus s_2}R_x(\zeta)R_z(\eta)R_x(\xi)\psiv=Xs1​⊕s3​Zs0​⊕s2​Rx​(ζ)Rz​(η)Rx​(ξ)ψ. Then bb†=116vv†bb^\dagger=\tfrac1{16}vv^\daggerbb†=161​vv† and ∥b∥2=1/16\|b\|^2=1/16∥b∥2=1/16, where the matrix uu†uu^\daggeruu† has entries u(a)u(b)‾u(a)\overline{u(b)}u(a)u(b)​.

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