Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Quantum Information

126 missions · 60 completed

The study of information encoded in the states of quantum systems, where the qubit, superposition, and entanglement replace the classical bit and measurement is inherently probabilistic. Governed by the constraints of quantum mechanics, it underpins quantum computing and cryptography and the theory of optimal quantum measurements.

Missions

Open66Completed60All126
🏆Completed
Machine LearningOperations ResearchStochastic Systems·Captain: tianyipeng

Markov Entanglement: Value Decomposition Error in Multi-agent MDPsResearch Paper

Value decomposition — approximating the value of a joint state by a sum of per-agent local values — is a staple of multi-agent dynamic programming and reinforcement learning, from index policies for restless bandits to modern MARL architectures, yet it is normally used without justification. Chen and Peng (arXiv:2506.02385) supply one. They show a multi-agent MDP admits an exact value decomposition precisely when its transition matrix is not entangled — a notion built in direct analogy with quantum entanglement — and then turn that qualitative characterisation into a quantitative one: a measure of Markov entanglement bounds the decomposition error in general. This mission formalizes that core theory. The goal is Theorem 6, the general N-agent bound in the occupancy-weighted norm; the milestones are the equivalence between separability and exact decomposition, the perturbation machinery that carries a one-step transition error into a value-function error, and the extensions to shared global state and shared rewards. The paper's restless-bandit application, which needs mean-field machinery of its own, is left to a second mission in the series.

25 thms5 active usersReviewed
🏆Completed
Mathematical PhysicsProbability·Captain: Lucas

Hardy 2001 I: Five Reasonable Axioms — Degrees of Freedom K = N^rResearch Paper

Motivation

In the usual textbook presentation, quantum theory starts from postulates that have no obvious operational meaning: states are density operators on a complex Hilbert space, measurements are positive operators, and probabilities are given by the trace formula p=tr(A^ρ^)p=\mathrm{tr}(\hat A\hat\rho)p=tr(A^ρ^​). In Quantum Theory From Five Reasonable Axioms (Hardy 2001), Lucien Hardy asks whether this structure can instead be derived from simple statements about preparations, transformations and measurements, in the same way that classical probability theory can be set up by pure thought. He proposes five axioms (probabilities, simplicity, subspaces, composite systems, continuity) and argues that they single out finite- and countably-infinite-dimensional quantum theory. Dropping a single word, "continuous" in Axiom 5, leaves classical probability theory instead.

The paper is one of the starting points of the operational or generalized probabilistic theory (GPT) approach to the foundations of quantum mechanics. It was followed by reconstructions that replace the simplicity axiom, e.g. Dakić–Brukner 2009, Masanes–Müller 2011 and Chiribella–D'Ariano–Perinotti 2011.

Setting

A system is described by two integers. The dimension NNN is the maximum number of states that can be distinguished in a single-shot measurement. The number of degrees of freedom KKK is the minimum number of probability measurements needed to determine the state. The state is the vector p=(p1,…,pK)∈RKp=(p^1,\dots,p^K)\in\mathbb R^Kp=(p1,…,pK)∈RK of the probabilities of KKK fiducial measurements. States are not assumed normalized: the null state p=0p=0p=0 (no system present) is allowed. The set SSS of allowed states is convex, and its pure states are its extremal points other than 000.

The five axioms are:

  1. Probabilities. Relative frequencies converge to the same limit for every ensemble prepared by a given preparation.
  2. Simplicity. K=K(N)K=K(N)K=K(N) is a function of N=1,2,…N=1,2,\dotsN=1,2,…, and for each NNN it takes the minimum value consistent with the axioms.
  3. Subspaces. A system whose state is constrained to an MMM-dimensional subspace behaves like a system of dimension MMM.
  4. Composite systems. A composite of systems AAA and BBB has N=NANBN=N_AN_BN=NA​NB​ and K=KAKBK=K_AK_BK=KA​KB​.
  5. Continuity. Between any two pure states there is a continuous reversible transformation.

A probability theory can be summarized by its signature x=(x1,x2,… )x=(x_1,x_2,\dots)x=(x1​,x2​,…), defined through

K=Nx1+12!N(N−1)x2+13!N(N−1)(N−2)x3+⋯=∑k≥1(Nk)xk.K=Nx_1+\tfrac1{2!}N(N-1)x_2+\tfrac1{3!}N(N-1)(N-2)x_3+\cdots=\sum_{k\ge1}\binom Nk x_k .K=Nx1​+2!1​N(N−1)x2​+3!1​N(N−1)(N−2)x3​+⋯=k≥1∑​(kN​)xk​.

Classical probability theory has x=(1,0,0,… )x=(1,0,0,\dots)x=(1,0,0,…) and K=NK=NK=N. Complex quantum theory has x=(1,2,0,… )x=(1,2,0,\dots)x=(1,2,0,…) and K=N2K=N^2K=N2. Real and quaternionic quantum theory have x=(1,1,0,… )x=(1,1,0,\dots)x=(1,1,0,…) and x=(1,4,0,… )x=(1,4,0,\dots)x=(1,4,0,…).

Formalization targets

Goal: K(N)=NrK(N)=N^rK(N)=Nr

Section 8.1 shows that Axiom 3 forces K(N+1)≥K(N)+1K(N+1)\ge K(N)+1K(N+1)≥K(N)+1, and Axiom 4 forces K(NANB)=K(NA)K(NB)K(N_AN_B)=K(N_A)K(N_B)K(NA​NB​)=K(NA​)K(NB​). The goal theorem is the purely arithmetic consequence (Eq. (57)):

K(N+1)≥K(N)+1  and  K(NANB)=K(NA)K(NB)  (N,NA,NB≥1)⟹∃r∈{1,2,3,… }: K(N)=Nr  ∀N≥1.K(N+1)\ge K(N)+1\ \text{ and }\ K(N_AN_B)=K(N_A)K(N_B)\ \ (N,N_A,N_B\ge1)\quad\Longrightarrow\quad \exists r\in\{1,2,3,\dots\}:\ K(N)=N^r\ \ \forall N\ge1 .K(N+1)≥K(N)+1  and  K(NA​NB​)=K(NA​)K(NB​)  (N,NA​,NB​≥1)⟹∃r∈{1,2,3,…}: K(N)=Nr  ∀N≥1.

Milestones

The milestones follow the paper's own steps, in the paper's numbering:

  • Appendix 2: a strictly increasing, completely multiplicative KKK on the positive integers satisfies K(n)=nαK(n)=n^\alphaK(n)=nα. Section 8.1: if every nαn^\alphanα is an integer, then α\alphaα is a positive integer.
  • Section 6.6 / Appendix 1: measured probabilities are linear in the state, pmeas=r⋅pp_{\rm meas}=r\cdot ppmeas​=r⋅p. Section 6.7: transformations act as matrices, p↦Zpp\mapsto Zpp↦Zp. Section 7: reversible transformations send pure states to pure states.
  • Section 4 / 8.5: in classical probability theory the pure states are exactly the NNN basis states, and no continuous path of pure states joins two distinct ones. The equations ∑k(pk)2=1\sum_k(p^k)^2=1∑k​(pk)2=1, 0≤pk≤10\le p^k\le10≤pk≤1, ∑kpk=1\sum_kp^k=1∑k​pk=1 force a basis vector.
  • Sections 5 and 8.1: the signatures of the classical, quantum, real, quaternionic and K=N3K=N^3K=N3 theories, and the failure of K=KAKBK=K_AK_BK=KA​KB​ for real (too many) and quaternionic (too few) composites.
  • Section 5: the N2N^2N2 projectors ∣n⟩⟨n∣|n\rangle\langle n|∣n⟩⟨n∣, ∣mn⟩x⟨mn∣|mn\rangle_x\langle mn|∣mn⟩x​⟨mn∣, ∣mn⟩y⟨mn∣|mn\rangle_y\langle mn|∣mn⟩y​⟨mn∣ are linearly independent over R\mathbb RR and span the Hermitian operators.
  • Sections 5 and 8.6 (N=2N=2N=2): the overlap formula (35) for ccc; det⁡D>0  ⟺  c−<c<c+\det D>0 \iff c_-<c<c_+detD>0⟺c−​<c<c+​; the decomposition rTDr′=v⃗ TAv⃗′+μμ′/2r^TDr'=\vec v^{\,T}A\vec v'+\mu\mu'/2rTDr′=vTAv′+μμ′/2; AAA positive definite   ⟺  c−<c<c+\iff c_-<c<c_+⟺c−​<c<c+​; the Bloch matrix (87).
  • Section 8.7 (N=3N=3N=3): the 9×99\times99×9 matrix Dij=tr(P^iP^j)D_{ij}=\mathrm{tr}(\hat P_i\hat P_j)Dij​=tr(P^i​P^j​) with h=1/2h=1/2h=1/2, q=1/4q=1/4q=1/4.

Significance

The goal is the step at which the two structural axioms (subspaces and composites) cut the space of possible theories down to a single integer parameter rrr. Combined with Section 8.5, which rules out r=1r=1r=1 by continuity, and with the simplicity axiom, it gives K=N2K=N^2K=N2. Everything after that in the paper (the Bloch sphere, general NNN, the trace formula, complete positivity) is carried out inside the K=N2K=N^2K=N2 case. The milestones on signatures make precise in which sense real and quaternionic quantum theory are excluded: their degree-of-freedom counts are not multiplicative under composition.

The paper's argument is informal physics. This mission isolates the mathematically precise statements that the argument relies on, so that they can be proved independently of the physical interpretation. It does not formalize the axioms themselves as a single Lean structure.

Difficulty

The arithmetic goal is an instance of a classical question about monotone completely multiplicative functions. Complete multiplicativity alone fixes KKK only through its values at the primes, which are a priori unrelated to one another, and monotonicity is the only link between different primes. The step from a real exponent α\alphaα to an integer exponent is a separate integrality argument that the paper does not spell out. The linearity milestones need care because the hypotheses hold only on a convex set containing 000, not on all of RK\mathbb R^KRK. The N=2N=2N=2 milestones are explicit but delicate algebra with square roots and boundary cases a,b∈{0,1}a,b\in\{0,1\}a,b∈{0,1}.

Formalization scope

  • All theorems live in the namespace HardyFiveAxioms. State vectors are functions Fin K → ℝ. Indices are 000-based, so the paper's fiducial vector kkk is index k−1k-1k−1.
  • K(N)K(N)K(N) is a function ℕ → ℕ (goal) or ℕ → ℝ (Appendix 2), constrained only at arguments ≥1\ge1≥1. The value at 000 is irrelevant.
  • The signature is a finite list [x₁, …, x_L], and 1k!N(N−1)⋯(N−k+1)\frac1{k!}N(N-1)\cdots(N-k+1)k!1​N(N−1)⋯(N−k+1) is written as the binomial coefficient (Nk)\binom Nk(kN​).
  • Pure states are Set.extremePoints ℝ S \ {0}. The classical state space is {p≥0, ∑npn≤1}\{p\ge0,\ \sum_np_n\le1\}{p≥0, ∑n​pn​≤1}.
  • The quantum projectors are explicit matrices vecMulVec v (star v) over ℂ, and the qubit matrices DDD, CCC, AAA and the roots c±c_\pmc±​ are explicit definitions.
  • Axiom 5's "continuous reversible transformation" enters only through the classical milestone, as a continuous path unitInterval → ℝᴺ that stays inside the pure states.
  • The goal does not assume the conclusion in disguise. Its hypotheses are the two consequences of Axioms 3 and 4 derived in Section 8.1. It is not vacuous: K(N)=NrK(N)=N^rK(N)=Nr satisfies both hypotheses for every r≥1r\ge1r≥1.

Contributions are welcome on any milestone. The linearity, extreme-point and positive-definiteness lemmas are reusable beyond this mission.

Selected references

  • L. Hardy, Quantum Theory From Five Reasonable Axioms, arXiv:quant-ph/0101012v4, 2001. https://arxiv.org/abs/quant-ph/0101012
  • B. Dakić, Č. Brukner, Quantum Theory and Beyond: Is Entanglement Special?, 2009. https://arxiv.org/abs/0911.0695
  • Ll. Masanes, M. P. Müller, A derivation of quantum theory from physical requirements, New J. Phys. 13, 063001, 2011. https://arxiv.org/abs/1004.1483
  • G. Chiribella, G. M. D'Ariano, P. Perinotti, Informational derivation of quantum theory, Phys. Rev. A 84, 012311, 2011. https://arxiv.org/abs/1011.6451
25 thms4 active usersReviewed
🏆Completed
Mathematical Physics·Captain: Lucas

Albers–Kiefer–Reginatto 2008: Measurement Analysis and Quantum GravityResearch Paper

Motivation

Whether the gravitational field must be quantized is a long-standing foundational question. A well-known family of arguments tries to settle it by consistency alone: if a classical field were coupled to a quantum system, some basic principle — momentum conservation, the uncertainty relations, or the impossibility of superluminal signalling — would allegedly be violated. The two best-known versions are the gedanken experiment of Eppley and Hannah (1977) and the measurement-theoretic argument of DeWitt (1962).

Albers, Kiefer and Reginatto (Phys. Rev. D 78, 064051 (2008)) re-examine both arguments. Their paper is largely conceptual, but several of its steps are precise, checkable mathematical claims. This mission collects those claims and makes them machine-checkable.

Timeline.

  • 1962 — DeWitt's measurement analysis of the gravitational field, using Peierls brackets and a "universal principle" for apparatus uncertainties.
  • 1977 — Eppley and Hannah's gedanken experiment: a classical gravitational wave scattered off a quantum particle would imply momentum non-conservation, a violation of the uncertainty principle, or superluminal signalling.
  • 2008 — Albers, Kiefer and Reginatto argue that neither gedanken experiment forces quantization, and exhibit a consistent hybrid classical–quantum model.

Setting

Photon pair and detector (Sec. II). Each photon carries a polarization qubit with orthonormal basis ∣↑⟩|\uparrow\rangle∣↑⟩ (horizontal) and ∣↓⟩|\downarrow\rangle∣↓⟩ (vertical). A detector with state space H\mathcal HH (an arbitrary complex inner-product space) is coupled to photon 1. Before the measurement the joint state of photon 1, photon 2 and the detector is

∣Ψ0⟩=12(∣↑⟩1∣↓⟩2−∣↓⟩1∣↑⟩2)∣Φ0⟩,(1)|\Psi_0\rangle = \tfrac{1}{\sqrt2}\bigl(|\uparrow\rangle_1|\downarrow\rangle_2 - |\downarrow\rangle_1|\uparrow\rangle_2\bigr)|\Phi_0\rangle, \qquad (1)∣Ψ0​⟩=2​1​(∣↑⟩1​∣↓⟩2​−∣↓⟩1​∣↑⟩2​)∣Φ0​⟩,(1)

and after the detector has measured photon 1 it is

∣Ψ⟩=12(∣↑⟩1∣↓⟩2∣Φ↑⟩−∣↓⟩1∣↑⟩2∣Φ↓⟩).(2)|\Psi\rangle = \tfrac{1}{\sqrt2}\bigl(|\uparrow\rangle_1|\downarrow\rangle_2|\Phi_\uparrow\rangle - |\downarrow\rangle_1|\uparrow\rangle_2|\Phi_\downarrow\rangle\bigr). \qquad (2)∣Ψ⟩=2​1​(∣↑⟩1​∣↓⟩2​∣Φ↑​⟩−∣↓⟩1​∣↑⟩2​∣Φ↓​⟩).(2)

The reduced density operator of photon 2 is obtained from ∣Ψ⟩⟨Ψ∣|\Psi\rangle\langle\Psi|∣Ψ⟩⟨Ψ∣ by tracing out photon 1 and the detector; the paper asserts that for both states it equals

ρ^=12(∣↑⟩2⟨↑∣2+∣↓⟩2⟨↓∣2).(3)\hat\rho = \tfrac12\bigl(|\uparrow\rangle_2\langle\uparrow|_2 + |\downarrow\rangle_2\langle\downarrow|_2\bigr). \qquad (3)ρ^​=21​(∣↑⟩2​⟨↑∣2​+∣↓⟩2​⟨↓∣2​).(3)

Mass cube and gravitational wave (Sec. III B). The disturbance δT00GW\delta T^{\mathrm{GW}}_{00}δT00GW​ of the averaged energy density of the scattered wave depends on the cube's edge length aaa and speed vvv, with sensitivities Ta=∂ δT00GW/∂aT_a = \partial\,\delta T^{\mathrm{GW}}_{00}/\partial aTa​=∂δT00GW​/∂a and Tv=∂ δT00GW/∂vT_v = \partial\,\delta T^{\mathrm{GW}}_{00}/\partial vTv​=∂δT00GW​/∂v. With Δa≈Δx\Delta a \approx \Delta xΔa≈Δx and Δv≳ℏ/(2mΔx)\Delta v \gtrsim \hbar/(2m\Delta x)Δv≳ℏ/(2mΔx) the uncertainty ΔT00GW=(TaΔa)2+(TvΔv)2\Delta T^{\mathrm{GW}}_{00} = \sqrt{(T_a\Delta a)^2 + (T_v\Delta v)^2}ΔT00GW​=(Ta​Δa)2+(Tv​Δv)2​ has a strictly positive lower bound.

DeWitt's argument (Sec. V). A system observable sss reconstructed from apparatus data has uncertainty Δs2=ΔA2/g2+g2(ΔDΩs)2\Delta s^2 = \Delta A^2/g^2 + g^2(\Delta D_\Omega s)^2Δs2=ΔA2/g2+g2(ΔDΩ​s)2, where ggg is the coupling constant.

Formalization targets

Goal — no signalling through photon 2 (Eq. (3))

For all unit vectors Φ0,Φ↑,Φ↓∈H\Phi_0, \Phi_\uparrow, \Phi_\downarrow \in \mathcal HΦ0​,Φ↑​,Φ↓​∈H,

ρ2(Ψ0)=ρ^andρ2(Ψ)=ρ^.\rho_2(\Psi_0) = \hat\rho \quad\text{and}\quad \rho_2(\Psi) = \hat\rho .ρ2​(Ψ0​)=ρ^​andρ2​(Ψ)=ρ^​.

Milestones

  1. Eq. (1) ⇒ (3): ρ2(Ψ0)=ρ^\rho_2(\Psi_0) = \hat\rhoρ2​(Ψ0​)=ρ^​.
  2. Eq. (2) ⇒ (3): ρ2(Ψ)=ρ^\rho_2(\Psi) = \hat\rhoρ2​(Ψ)=ρ^​.
  3. Sec. III B lower bound: ΔT00GW≥ℏmTvTa\Delta T^{\mathrm{GW}}_{00} \ge \sqrt{\tfrac{\hbar}{m} T_v T_a}ΔT00GW​≥mℏ​Tv​Ta​​ whenever Δx>0\Delta x > 0Δx>0 and Δv≥ℏ/(2mΔx)\Delta v \ge \hbar/(2m\Delta x)Δv≥ℏ/(2mΔx).
  4. Sec. III B optimum: the function Δx↦(TaΔx)2+(Tvℏ/(2mΔx))2\Delta x \mapsto \sqrt{(T_a\Delta x)^2 + (T_v\hbar/(2m\Delta x))^2}Δx↦(Ta​Δx)2+(Tv​ℏ/(2mΔx))2​ attains its minimum over Δx>0\Delta x>0Δx>0 at Δxmin⁡=ℏ2mTvTa\Delta x_{\min} = \sqrt{\tfrac{\hbar}{2m}\tfrac{T_v}{T_a}}Δxmin​=2mℏ​Ta​Tv​​​, with value ℏmTvTa\sqrt{\tfrac{\hbar}{m}T_vT_a}mℏ​Tv​Ta​​.
  5. Eq. (61): min⁡g≠0ΔA2/g2+g2ΔD2=2 ΔA ΔD\min_{g\ne0}\sqrt{\Delta A^2/g^2 + g^2\Delta D^2} = \sqrt{2\,\Delta A\,\Delta D}ming=0​ΔA2/g2+g2ΔD2​=2ΔAΔD​.
  6. Eq. (64): if ΔA ΔC≥ℏ/2\Delta A\,\Delta C \ge \hbar/2ΔAΔC≥ℏ/2 then ℏ ∣Dss∣≤2 ΔA ΔC ∣Dss∣\sqrt{\hbar\,|D_s s|} \le \sqrt{2\,\Delta A\,\Delta C\,|D_s s|}ℏ∣Ds​s∣​≤2ΔAΔC∣Ds​s∣​.

Significance

The goal is the precise content of the paper's rebuttal of the superluminal-signalling branch of the Eppley–Hannah argument: the state of photon 2 accessible to a probe (such as a classical gravitational wave) is the same whether or not photon 1 has been measured, so a probe of photon 2 alone cannot tell whether photon 1 was measured. Milestones 3–6 are the quantitative estimates the paper uses in Sec. III B (a coupling to a test body obeying the uncertainty principle transfers a minimum uncertainty to the classical wave) and Sec. V (DeWitt's limitation on a single observable, Eq. (64)).

The results are elementary once stated; the value of the mission is to pin the paper's claims down exactly, including the hypotheses under which they hold. None of the statements has, to our knowledge, a machine-checked proof on the platform.

Difficulty

The goal and Milestones 1–2 need a workable representation of the partial trace over a factor that is an arbitrary (possibly infinite-dimensional) inner-product space; the cross terms between the two branches vanish because the two branches are orthogonal on photon 1, not because of any property of the detector states. Milestones 3–6 are single-variable optimization statements; the main care is in the side conditions (positivity, excluding g=0g=0g=0 and Δx=0\Delta x = 0Δx=0).

Formalization scope

  • The joint space C2⊗C2⊗H\mathbb C^2\otimes\mathbb C^2\otimes\mathcal HC2⊗C2⊗H is represented by functions {0,1}×{0,1}→H\{0,1\}\times\{0,1\}\to\mathcal H{0,1}×{0,1}→H (component Ψij\Psi_{ij}Ψij​ along ∣i⟩1∣j⟩2|i\rangle_1|j\rangle_2∣i⟩1​∣j⟩2​; index 0=↑0 = \uparrow0=↑, 1=↓1 = \downarrow1=↓). The reduced density matrix of photon 2 has entries ρ2(j,j′)=∑i⟨Ψij′,Ψij⟩H\rho_2(j,j') = \sum_i \langle \Psi_{ij'}, \Psi_{ij}\rangle_{\mathcal H}ρ2​(j,j′)=∑i​⟨Ψij′​,Ψij​⟩H​, and ρ^\hat\rhoρ^​ is a 2×22\times22×2 complex matrix.
  • The detector states are only assumed to be unit vectors. Orthogonality of ∣Φ↑⟩|\Phi_\uparrow\rangle∣Φ↑​⟩ and ∣Φ↓⟩|\Phi_\downarrow\rangle∣Φ↓​⟩ (a physical property of a detector that records the outcome) is not assumed, because Eq. (3) does not depend on it.
  • In Sec. III B the sensitivities Ta,TvT_a, T_vTa​,Tv​, the mass mmm and ℏ\hbarℏ are positive reals; the paper's approximate relations Δa≈Δx\Delta a\approx\Delta xΔa≈Δx and Δp≳ℏ/Δx\Delta p\gtrsim\hbar/\Delta xΔp≳ℏ/Δx are encoded as Δa=Δx\Delta a = \Delta xΔa=Δx and the hypothesis Δv≥ℏ/(2mΔx)\Delta v \ge \hbar/(2m\Delta x)Δv≥ℏ/(2mΔx).
  • In Eq. (61) the coupling constant ranges over all non-zero reals.
  • Sections IV (hybrid classical–quantum ensembles for Nordström gravity) and the appendices are out of scope for this mission.

Selected references

  • M. Albers, C. Kiefer, M. Reginatto, Measurement analysis and quantum gravity, Phys. Rev. D 78, 064051, 2008. https://doi.org/10.1103/PhysRevD.78.064051
  • K. Eppley, E. Hannah, The necessity of quantizing the gravitational field, Found. Phys. 7, 51–68, 1977. https://doi.org/10.1007/BF00715241
  • B. S. DeWitt, Definition of commutators via the uncertainty principle, J. Math. Phys. 3, 619, 1962. https://doi.org/10.1063/1.1724265
8 thms4 active usersReviewed
🏆Completed
Linear algebraNumerical Analysis·Captain: mikedeng1

Quantum Algorithm for Systems of Linear Equations with Exponentially Improved Dependence on Precision I: A Truncated Odd Chebyshev Series Is 2ε-Close to 1/x on [−1, −1/κ] ∪ [1/κ, 1]Research Paper

Motivation

The quantum linear systems problem asks, given a sparse Hermitian N×NN \times NN×N matrix AAA with condition number κ\kappaκ and a procedure preparing a state ∣b⟩|b\rangle∣b⟩, to prepare a state close to A−1∣b⟩/∥A−1∣b⟩∥A^{-1}|b\rangle / \|A^{-1}|b\rangle\|A−1∣b⟩/∥A−1∣b⟩∥. Harrow, Hassidim and Lloyd (2009) gave a quantum algorithm whose running time is polynomial in log⁡N\log NlogN and κ\kappaκ but grows like 1/ε1/\varepsilon1/ε in the target precision ε\varepsilonε, because it estimates eigenvalues by phase estimation. Childs, Kothari and Somma (arXiv:1511.02306, SIAM J. Comput. 46(6), 2017) reduced the precision dependence to polylog⁡(1/ε)\mathrm{poly}\log(1/\varepsilon)polylog(1/ε), an exponential improvement.

The reduction has two parts. A quantum part implements a linear combination of unitaries applied to AAA, and turns any function that is ε\varepsilonε-close to 1/x1/x1/x on the spectrum of AAA into an approximate preparation of the solution state (Corollary 10 and Proposition 9 of the paper). An analytic part supplies such a function with small degree and small coefficient weight. The paper gives two analytic constructions: a Fourier expansion (Section 3) and an expansion in Chebyshev polynomials (Section 4). This mission formalizes the analytic core of the Chebyshev construction, the input to the paper's Theorem 4. The quantum algorithms and their query and gate counts are not formalized here.

Setting

For a real number κ≥1\kappa \ge 1κ≥1 (a condition number: the ratio of the largest to the smallest singular value), the domain is

Dκ:=[−1,−1/κ]∪[1/κ,1].D_\kappa := [-1, -1/\kappa] \cup [1/\kappa, 1].Dκ​:=[−1,−1/κ]∪[1/κ,1].

A function ggg is ε\varepsilonε-close to hhh on a set D⊆RD \subseteq \mathbb RD⊆R if ∣g(x)−h(x)∣≤ε|g(x) - h(x)| \le \varepsilon∣g(x)−h(x)∣≤ε for all x∈Dx \in Dx∈D.

The Chebyshev polynomials of the first kind are T0(x)=1\mathcal T_0(x) = 1T0​(x)=1, T1(x)=x\mathcal T_1(x) = xT1​(x)=x and Tn+1(x)=2xTn(x)−Tn−1(x)\mathcal T_{n+1}(x) = 2x\mathcal T_n(x) - \mathcal T_{n-1}(x)Tn+1​(x)=2xTn​(x)−Tn−1​(x); those of the second kind Un\mathcal U_nUn​ satisfy the same recursion with U0=1\mathcal U_0 = 1U0​=1, U1=2x\mathcal U_1 = 2xU1​=2x.

For natural numbers b,jb, jb,j let

cb,j:=122b∑i=j+1b(2bb+i),c_{b,j} := \frac{1}{2^{2b}} \sum_{i=j+1}^{b} \binom{2b}{b+i},cb,j​:=22b1​i=j+1∑b​(b+i2b​),

the probability of more than b+jb+jb+j heads in 2b2b2b fair coin flips. The tamed inverse (74) is fb(x)=(1−(1−x2)b)/xf_b(x) = (1 - (1-x^2)^b)/xfb​(x)=(1−(1−x2)b)/x, and the odd Chebyshev series is

Sb,n(x):=4∑j=0n−1(−1)jcb,j T2j+1(x).S_{b,n}(x) := 4 \sum_{j=0}^{n-1} (-1)^j c_{b,j}\, \mathcal T_{2j+1}(x).Sb,n​(x):=4j=0∑n−1​(−1)jcb,j​T2j+1​(x).

In Lean these are Dκ, coeff b j, fTamed b, and chebSum b n in the namespace QuantumLinSys.Chebyshev; bOf κ ε and j0Of b ε are the parameters bbb and j0j_0j0​ below.

Formalization targets

Goal: Lemma 14 (p. 16)

With b=κ2log⁡(κ/ε)b = \kappa^2 \log(\kappa/\varepsilon)b=κ2log(κ/ε) and j0=blog⁡(4b/ε)j_0 = \sqrt{b\log(4b/\varepsilon)}j0​=blog(4b/ε)​, the truncated series

g(x)=4∑j=0j0(−1)jcb,j T2j+1(x)g(x) = 4\sum_{j=0}^{j_0} (-1)^j c_{b,j}\, \mathcal T_{2j+1}(x)g(x)=4j=0∑j0​​(−1)jcb,j​T2j+1​(x)

is 2ε2\varepsilon2ε-close to 1/x1/x1/x on DκD_\kappaDκ​, for every κ≥1\kappa \ge 1κ≥1 and ε>0\varepsilon > 0ε>0.

Milestones, in the order the proof uses them

  1. Lemma 17 (p. 19). For integers d≥1d \ge 1d≥1 and b≥(κd)2log⁡(κd/ε)b \ge (\kappa d)^2\log(\kappa d/\varepsilon)b≥(κd)2log(κd/ε), fbf_bfb​ is ε\varepsilonε-close to 1/x1/x1/x on DκdD_{\kappa d}Dκd​.
  2. Lemma 18 (p. 19). On [−1,1][-1,1][−1,1], fb=Sb,bf_b = S_{b,b}fb​=Sb,b​ exactly:
1−(1−x2)bx=4∑j=0b−1(−1)jcb,j T2j+1(x).\frac{1-(1-x^2)^b}{x} = 4\sum_{j=0}^{b-1}(-1)^j c_{b,j}\,\mathcal T_{2j+1}(x).x1−(1−x2)b​=4j=0∑b−1​(−1)jcb,j​T2j+1​(x).
  1. Display (89) (p. 21). cb,j≤e−j2/bc_{b,j} \le e^{-j^2/b}cb,j​≤e−j2/b.
  2. Lemma 19 (p. 21). The series truncated at j0=blog⁡(4b/ε)j_0 = \sqrt{b\log(4b/\varepsilon)}j0​=blog(4b/ε)​ is ε\varepsilonε-close to fbf_bfb​ on [−1,1][-1,1][−1,1].

Two further statements of the same approach are included as companion theorems: Lemma 16 (p. 17), the closed form of the nnn-th power of the 2×22\times 22×2 rotation block in terms of Tn\mathcal T_nTn​ and Un−1\mathcal U_{n-1}Un−1​, and Proposition 9 (p. 9), the 4ε4\varepsilon4ε perturbation bound for normalized states.

Significance

Lemma 14 provides a polynomial of degree O(κlog⁡(κ/ε))O(\kappa\log(\kappa/\varepsilon))O(κlog(κ/ε)) whose Chebyshev coefficients have total weight O(blog⁡(b/ε))O(\sqrt{b\log(b/\varepsilon)})O(blog(b/ε)​), approximating 1/x1/x1/x uniformly on the region where a well-conditioned matrix has its eigenvalues. Applied to a Hermitian matrix through a quantum walk, whose powers implement Tn\mathcal T_nTn​ (Lemma 16), it gives the query complexity O(dκ2log⁡2(dκ/ε))O(d\kappa^2\log^2(d\kappa/\varepsilon))O(dκ2log2(dκ/ε)) of Theorem 4. The same polynomial approximation of 1/x1/x1/x reappears in later work on quantum singular value transformation and matrix inversion.

All results of this mission are proved in the paper. None of them is machine-checked in Mathlib or on the platform, as far as a search found: Mathlib has the Chebyshev polynomials and the identity Tn(cos⁡θ)=cos⁡nθ\mathcal T_n(\cos\theta) = \cos n\thetaTn​(cosθ)=cosnθ, but no Chebyshev expansion of a rational function, no binomial tail bound in this form, and no approximation theorem for 1/x1/x1/x. The formalization produces a checked uniform approximation of 1/x1/x1/x with explicit, non-asymptotic parameters.

Difficulty

The exact identity (Lemma 18) has no slack: every coefficient, sign and summation bound of (77) must be right for all bbb, and an off-by-one in the inner sum or in the Chebyshev index makes it false. Mathlib's Chebyshev library offers evaluation facts but no expansion of a given polynomial in the Chebyshev basis. The bound (89) is a Chernoff–Hoeffding tail bound for a symmetric binomial distribution, which must be stated for sums of binomial coefficients rather than for random variables. The goal then needs both approximation errors at the page's specific parameters, including the corner cases in which log⁡(κ/ε)\log(\kappa/\varepsilon)log(κ/ε) or log⁡(4b/ε)\log(4b/\varepsilon)log(4b/ε) is negative.

Formalization scope

All functions are real functions of one real variable. Chebyshev polynomials are Mathlib's Polynomial.Chebyshev.T ℝ and Polynomial.Chebyshev.U ℝ, indexed by integers. The sum ∑j=0n−1\sum_{j=0}^{n-1}∑j=0n−1​ is over Finset.range n, so the series of (55)/(88) truncated at j0j_0j0​ is chebSum b (j₀ + 1) and the full series (77) is chebSum b b.

The formalization commits to the following conventions, each disclosed in the item it affects.

  • κ≥1\kappa \ge 1κ≥1 on every statement that mentions DκD_\kappaDκ​, and d≥1d \ge 1d≥1 in Lemma 17. Below these values the domain is empty or contains 000.
  • ε>0\varepsilon > 0ε>0. No upper bound on ε\varepsilonε is imposed in this mission.
  • The paper's real b=κ2log⁡(κ/ε)b = \kappa^2\log(\kappa/\varepsilon)b=κ2log(κ/ε) is rounded up to a natural number in the goal, and the truncation index j0j_0j0​ is rounded down, the sum running over j=0,…,⌊j0⌋j = 0,\dots,\lfloor j_0\rfloorj=0,…,⌊j0​⌋.
  • In Lemmas 17–19 bbb is a natural number. The page's "integer" exponent cannot be negative without making (1−x2)b(1-x^2)^b(1−x2)b singular.
  • At x=0x = 0x=0, fb(0)f_b(0)fb​(0) is Lean's 0/0=00/0 = 00/0=0, which is the value of its continuous extension. Lemma 18 is therefore stated on all of [−1,1][-1,1][−1,1].
  • Proposition 9 is stated for continuous linear operators on CN\mathbb C^NCN, with ∥C−1∥≤1\|C^{-1}\| \le 1∥C−1∥≤1 given as a two-sided inverse of norm at most 111, and for unit vectors ψ\psiψ.

A trivializing reading is ruled out: the goal fixes the page's bbb, j0j_0j0​ and constant 2ε2\varepsilon2ε, so neither an arbitrarily large truncation nor a weaker constant satisfies it, and the domain DκD_\kappaDκ​ excludes the origin, where Lean's 1/0=01/0 = 01/0=0 would make closeness to 1/x1/x1/x meaningless.

Useful infrastructure, reusable beyond this mission: Chebyshev expansions of polynomials on [−1,1][-1,1][−1,1], binomial tail bounds, and uniform approximation of 1/x1/x1/x. Contributions of general lemmas of this kind are welcome.

Selected references

  • A. M. Childs, R. Kothari and R. D. Somma, Quantum algorithm for systems of linear equations with exponentially improved dependence on precision, SIAM J. Comput. 46(6), 2017; arXiv:1511.02306v2. https://arxiv.org/abs/1511.02306
  • A. W. Harrow, A. Hassidim and S. Lloyd, Quantum algorithm for linear systems of equations, Phys. Rev. Lett. 103, 150502, 2009. https://arxiv.org/abs/0811.3171
  • D. W. Berry, A. M. Childs and R. Kothari, Hamiltonian simulation with nearly optimal dependence on all parameters, FOCS 2015. https://arxiv.org/abs/1501.01715
  • W. Hoeffding, Probability inequalities for sums of bounded random variables, J. Amer. Statist. Assoc. 58, 1963. https://doi.org/10.1080/01621459.1963.10500830
6 thms3 active usersReviewed
🏆Completed
Quantum Gravity·Captain: Alien60

Oreshkov–Costa–Brukner 2012: Quantum Correlations with No Causal OrderResearch Paper

Motivation

In ordinary quantum mechanics, and in quantum field theory on a fixed spacetime, events happen in a definite causal order: an operation either precedes another, follows it, or the two are spacelike separated. Attempts to combine quantum theory with general relativity call this assumption into question. In general relativity the causal structure is dynamical, and a quantum theory of gravity may allow it to be indefinite. Oreshkov, Costa and Brukner (Nat. Commun. 3, 1092 (2012), arXiv:1105.4464) turned this question into a precise mathematical one. They assume that quantum mechanics holds locally in each laboratory and make no assumption about any global causal order. Within that framework they ask which correlations between two laboratories are possible. They find correlations that no definite causal order can produce: these correlations violate a causal inequality, which every causally ordered scenario satisfies.

Timeline.

  • 2005: Hardy proposes probabilistic theories with dynamic causal structure as a framework for quantum gravity (arXiv:gr-qc/0509120).
  • 2009: Chiribella, D'Ariano and Perinotti introduce quantum combs, which describe quantum networks with a fixed causal order (Phys. Rev. A 80, 022339). Chiribella, D'Ariano, Perinotti and Valiron introduce the quantum switch, a superposition of gate orders (arXiv:0912.0195, Phys. Rev. A 88, 022318 (2013)).
  • 2012: Oreshkov, Costa and Brukner define process matrices and the causal inequality psucc≤3/4p_{succ} \le 3/4psucc​≤3/4. They exhibit a four-qubit process matrix reaching psucc=(2+2)/4p_{succ} = (2+\sqrt2)/4psucc​=(2+2​)/4, and show that classical processes are always causally separable.
  • 2015–2016: Araújo et al. introduce witnesses of causal nonseparability (arXiv:1506.03776). Branciard et al. classify the simplest causal inequalities and their quantum violations (arXiv:1508.01704). Oreshkov and Giarmatzi extend causal separability to more parties (arXiv:1506.05449). Procopio et al. realize the quantum switch with photons (arXiv:1412.4006).

Setting

Alice's laboratory has an input system A1A_1A1​ and an output system A2A_2A2​, and Bob's has B1B_1B1​ and B2B_2B2​. All four are finite-dimensional, with dimensions dA1,dA2,dB1,dB2d_{A_1}, d_{A_2}, d_{B_1}, d_{B_2}dA1​​,dA2​​,dB1​​,dB2​​, and operators on A1A2B1B2A_1A_2B_1B_2A1​A2​B1​B2​ are complex matrices indexed by (a1×a2)×(b1×b2)(a_1\times a_2)\times(b_1\times b_2)(a1​×a2​)×(b1​×b2​).

A local operation of Alice is described by its Choi–Jamiołkowski (CJ) matrix MA1A2M^{A_1A_2}MA1​A2​. The operation is a completely positive trace-preserving (CPTP) map exactly when

MA1A2≥0,Tr⁡A2MA1A2=1A1.M^{A_1A_2} \ge 0, \qquad \operatorname{Tr}_{A_2} M^{A_1A_2} = \mathbb 1^{A_1}.MA1​A2​≥0,TrA2​​MA1​A2​=1A1​.

A process matrix is a matrix WA1A2B1B2W^{A_1A_2B_1B_2}WA1​A2​B1​B2​ satisfying

W≥0,Tr⁡[W (MA1A2⊗MB1B2)]=1  for all CJ matrices of CPTP mapsW \ge 0,\qquad \operatorname{Tr}\big[W\,(M^{A_1A_2}\otimes M^{B_1B_2})\big] = 1 \ \text{ for all CJ matrices of CPTP maps}W≥0,Tr[W(MA1​A2​⊗MB1​B2​)]=1  for all CJ matrices of CPTP maps

(Eqs. (4)–(5) of the source). The probability of a pair of local outcomes is P=Tr⁡[W(MA1A2⊗MB1B2)]P = \operatorname{Tr}[W(M^{A_1A_2}\otimes M^{B_1B_2})]P=Tr[W(MA1​A2​⊗MB1​B2​)] (Eq. (3)).

The task (Eq. (1)). Alice, Bob and a second bit for Bob receive independent uniform bits aaa, bbb and b′b'b′. Alice uses an instrument {MA(x∣a)}x\{M^A(x\mid a)\}_x{MA(x∣a)}x​ to produce a guess xxx, and Bob uses {MB(y∣b,b′)}y\{M^B(y\mid b,b')\}_y{MB(y∣b,b′)}y​ to produce a guess yyy. If b′=0b'=0b′=0 Bob must communicate bbb to Alice, and if b′=1b'=1b′=1 Alice must communicate aaa to Bob:

psucc=12[P(x=b∣b′=0)+P(y=a∣b′=1)].p_{succ} = \tfrac12\big[P(x=b\mid b'=0) + P(y=a\mid b'=1)\big].psucc​=21​[P(x=b∣b′=0)+P(y=a∣b′=1)].

Causal separability (Eq. (6)). A process matrix of the form 1A2⊗WA1B1B2\mathbb 1^{A_2}\otimes W^{A_1B_1B_2}1A2​⊗WA1​B1​B2​ allows no signalling from Alice to Bob, written A⪯̸BA\not\preceq BA⪯B. One of the form 1B2⊗WA1A2B1\mathbb 1^{B_2}\otimes W^{A_1A_2B_1}1B2​⊗WA1​A2​B1​ allows none from Bob to Alice. WWW is causally separable if W=q WB⪯̸A+(1−q) WA⪯̸BW = q\,W^{B\not\preceq A} + (1-q)\,W^{A\not\preceq B}W=qWB⪯A+(1−q)WA⪯B for some 0≤q≤10\le q\le 10≤q≤1.

Formalization targets

Goal: violation of the causal inequality

∃ W, {MA(x∣a)}, {MB(y∣b,b′)} on four qubits:W is a process matrix and psucc>34.\exists\, W,\ \{M^A(x\mid a)\},\ \{M^B(y\mid b,b')\} \text{ on four qubits}:\quad W \text{ is a process matrix and } p_{succ} > \tfrac34 .∃W, {MA(x∣a)}, {MB(y∣b,b′)} on four qubits:W is a process matrix and psucc​>43​.

The goal states only that a violation exists, with no hard-coded value. The specific value (2+2)/4(2+\sqrt2)/4(2+2​)/4 is a milestone.

Milestones (in source order)

  1. Eq. (2): every causally separable WWW satisfies psucc≤3/4p_{succ} \le 3/4psucc​≤3/4, for every choice of local instruments and in every finite dimension.
  2. Eq. (7): the four-qubit matrix
W=14[1+12(σzA2σzB1+σzA1σxB1σzB2)]W = \tfrac14\Big[\mathbb 1 + \tfrac{1}{\sqrt2}\big(\sigma_z^{A_2}\sigma_z^{B_1} + \sigma_z^{A_1}\sigma_x^{B_1}\sigma_z^{B_2}\big)\Big]W=41​[1+2​1​(σzA2​​σzB1​​+σzA1​​σxB1​​σzB2​​)]

is a process matrix. 3. Eq. (8): with the instruments of Eqs. (20)–(23), this WWW gives psucc=(2+2)/4p_{succ} = (2+\sqrt2)/4psucc​=(2+2​)/4, for every state ρB2\rho^{B_2}ρB2​ that Bob may prepare. 4. p. 5: the matrix of Eq. (7) is not causally separable. 5. Appendix F: every process matrix that is diagonal in a product basis (a classical process) is causally separable. 6. Appendix C, Fig. 3: for Hermitian WWW, the normalization condition (5) holds if and only if Tr⁡W=dA2dB2\operatorname{Tr}W = d_{A_2}d_{B_2}TrW=dA2​​dB2​​ and WWW has no Hilbert–Schmidt component of type A2A_2A2​, B2B_2B2​, A1A2A_1A_2A1​A2​, B1B2B_1B_2B1​B2​, A2B2A_2B_2A2​B2​, A1A2B2A_1A_2B_2A1​A2​B2​, A2B1B2A_2B_1B_2A2​B1​B2​ or A1A2B1B2A_1A_2B_1B_2A1​A2​B1​B2​. 7. Appendix E, Eq. (26): P(y∣a,b,b′=1)=12[1+(−1)y+a/2]P(y\mid a,b,b'=1) = \tfrac12\big[1 + (-1)^{y+a}/\sqrt2\big]P(y∣a,b,b′=1)=21​[1+(−1)y+a/2​], and P(x=b∣b′=0)=(2+2)/4P(x=b\mid b'=0) = (2+\sqrt2)/4P(x=b∣b′=0)=(2+2​)/4.

Significance

The result. Milestones 1 and 3 together show that quantum mechanics, applied locally in each laboratory, does not by itself imply a definite causal order. The causal inequality is a device-independent test of causal order, analogous to a Bell inequality for local realism. Milestone 5 shows that indefinite causal order disappears in the classical limit, and the source reads this as a hint that spacetime causal structure may emerge in a quantum-to-classical transition. The process-matrix framework has since become standard for indefinite causal order. Milestone 6 is the characterization that later work on witnesses and causal inequalities relies on.

Formalizing it. All seven milestones and the goal are proved in the source; none are open mathematics. This mission produces machine-checked versions in a common vocabulary: process matrices, CJ instruments, causal separability and Hilbert–Schmidt type analysis. That vocabulary can be reused for later results such as witnesses of causal nonseparability, multipartite causal separability and the quantum switch.

Status honesty. The formal statements are about matrices. Whether causal-inequality violations can occur in nature is not settled. Laboratory realizations of the quantum switch certify causal nonseparability with witnesses, not with a causal-inequality violation, and the source leaves open whether (2+2)/4(2+\sqrt2)/4(2+2​)/4 is the largest possible violation.

Difficulty

The violation itself (milestones 2, 3 and 7) is finite linear algebra on 16×1616\times1616×16 matrices, but the irrational entries 1/21/\sqrt21/2​ rule out a purely computational check. Positivity of WWW is the nontrivial part of milestone 2. The two Pauli strings in WWW anticommute, which fixes its spectrum, but this has to be turned into a positive-semidefiniteness proof.

Milestone 1 needs more than inspecting the definitions. The bound has to be shown for each no-signalling form separately and then carried through convex mixtures, with instruments of arbitrary dimension.

Milestone 4 is a non-existence statement over all decompositions. A direct search is hopeless; it follows from milestones 1 and 3.

Milestone 5 (Appendix F) is the deepest: it builds the two positive parts of the decomposition by an eigenvalue-shifting procedure.

Milestone 6 needs orthogonality computations with arbitrary Hilbert–Schmidt bases on four tensor factors.

Formalization scope

  • Representation. Finite index types, complex matrices, and Mathlib's Kronecker product ⊗ₖ with tensor order (A1×A2)×(B1×B2)(A_1\times A_2)\times(B_1\times B_2)(A1​×A2​)×(B1​×B2​). Local operations are represented directly by their CJ matrices, so the transpose in the source's CJ convention never enters the statements. Bits are Bool (false ↦ 0). Probabilities are real parts of traces, which are real whenever all inputs are positive semidefinite.
  • Definitions. These live in OCB2012_defs: partial trace ptrace₂, IsCPTP_CJ, IsProcessMatrix, prob, IsAliceInstrument, IsBobInstrument, pSucc, the no-signalling forms, IsCausallySeparable, the Pauli matrices, W7, the instruments ξ and η, the structure HSBasis and the predicate AllowedType. Density matrices come from the published PeresTerno.IsDensityMatrix.
  • Hilbert–Schmidt bases. Milestone 6 quantifies over every basis satisfying the source's conditions: σ0=1\sigma_0=\mathbb 1σ0​=1, Hermitian, traceless, and Tr⁡σμσν=d δμν\operatorname{Tr}\sigma_\mu\sigma_\nu = d\,\delta_{\mu\nu}Trσμ​σν​=dδμν​. Hermiticity matches the source's use of real coefficients.
  • Not trivial. Instruments range only over positive semidefinite CJ matrices whose outcome sum is CPTP. The goal, milestones 2–4 and milestone 7 are stated on qubits, so no hypothesis can be vacuous.
  • Out of scope. The source's derivation of Eq. (2) in Appendix A uses events in a partially ordered causal structure and a free-choice assumption, and it has no faithful matrix-level counterpart. Milestone 1 is the process-matrix form of the bound, which the source applies on p. 4. The closed-timelike-curve model of Appendix D is not formalized.
  • Contributions welcome. Reusable lemmas on partial traces of Kronecker products, positive semidefiniteness of Pauli-string combinations, and expansions in Hilbert–Schmidt bases.

Selected references

  • O. Oreshkov, F. Costa, Č. Brukner, Quantum correlations with no causal order, Nat. Commun. 3, 1092 (2012). doi:10.1038/ncomms2076, arXiv:1105.4464
  • L. Hardy, Probability theories with dynamic causal structure: a new framework for quantum gravity (2005). arXiv:gr-qc/0509120
  • G. Chiribella, G. M. D'Ariano, P. Perinotti, Theoretical framework for quantum networks, Phys. Rev. A 80, 022339 (2009). arXiv:0904.4483
  • G. Chiribella, G. M. D'Ariano, P. Perinotti, B. Valiron, Quantum computations without definite causal structure, Phys. Rev. A 88, 022318 (2013). arXiv:0912.0195
  • M. Araújo, C. Branciard, F. Costa, A. Feix, C. Giarmatzi, Č. Brukner, Witnessing causal nonseparability, New J. Phys. 17, 102001 (2015). arXiv:1506.03776
  • C. Branciard, M. Araújo, A. Feix, F. Costa, Č. Brukner, The simplest causal inequalities and their violation, New J. Phys. 18, 013008 (2016). arXiv:1508.01704
  • O. Oreshkov, C. Giarmatzi, Causal and causally separable processes, New J. Phys. 18, 093020 (2016). arXiv:1506.05449
  • L. M. Procopio et al., Experimental superposition of orders of quantum gates, Nat. Commun. 6, 7913 (2015). arXiv:1412.4006
27 thms3 active usersReviewed
🏆Completed
Mathematical Physics·Captain: Lucas

Drezet 2023: GHZ Bell-Nonlocality in the Everett MultiverseResearch Paper

Motivation

Whether the many-worlds (Everett) interpretation of quantum mechanics is local in the sense of Bell is a recurring question in the foundations of physics. A number of authors have argued that Everett's theory escapes Bell-type nonlocality theorems because it drops the assumption that each measurement has a single outcome. A. Drezet's paper arXiv:2306.07794 (2023) argues against this claim by revisiting the Greenberger–Horne–Zeilinger (GHZ) nonlocality theorem, which, unlike Bell's inequality, uses only probability-one (perfect) correlations. Its central mathematical step, stated in Section II, is that no locally causal beable model can reproduce the quantum predictions for the GHZ state. The paper's argument is that this step makes no assumption about completeness or hidden variables, and so applies to Everett's theory as well.

Timeline:

  • 1964–1976: J. S. Bell introduces Bell inequalities and, in "The theory of local beables" (1976), the notion of local causality phrased with beables λ\lambdaλ (collected in Speakable and Unspeakable in Quantum Mechanics, 2004).
  • 1989: Greenberger, Horne and Zeilinger give a nonlocality proof for three spin-½ particles that uses no inequality ("Going beyond Bell's theorem").
  • 2015: L. Vaidman discusses the GHZ argument in the many-worlds setting ("Bell inequality and Many-Worlds interpretation").
  • 2023: Drezet's paper, the source of this mission.

Setting

Three spin-½ particles are sent to three distant observers, Alice, Bob and Charlie. Each one measures the spin of their particle along a direction n^j∈{x^,y^}\hat n_j \in \{\hat x, \hat y\}n^j​∈{x^,y^​} and records an outcome α,β,γ∈{+1,−1}\alpha, \beta, \gamma \in \{+1, -1\}α,β,γ∈{+1,−1}. The particles are prepared in the GHZ state

∣ψ⟩=12(∣+z⟩1∣+z⟩2∣+z⟩3−∣−z⟩1∣−z⟩2∣−z⟩3),|\psi\rangle = \tfrac{1}{\sqrt 2}\big(|{+z}\rangle_1|{+z}\rangle_2|{+z}\rangle_3 - |{-z}\rangle_1|{-z}\rangle_2|{-z}\rangle_3\big),∣ψ⟩=2​1​(∣+z⟩1​∣+z⟩2​∣+z⟩3​−∣−z⟩1​∣−z⟩2​∣−z⟩3​),

and quantum mechanics predicts the joint outcome probabilities through the Born rule, P(α,β,γ∣n^1,n^2,n^3,ψ)=∣⟨αn^1,βn^2,γn^3∣ψ⟩∣2P(\alpha,\beta,\gamma\mid\hat n_1,\hat n_2,\hat n_3,\psi) = |\langle \alpha_{\hat n_1},\beta_{\hat n_2},\gamma_{\hat n_3}|\psi\rangle|^2P(α,β,γ∣n^1​,n^2​,n^3​,ψ)=∣⟨αn^1​​,βn^2​​,γn^3​​∣ψ⟩∣2. Here ∣an^⟩|a_{\hat n}\rangle∣an^​⟩ denotes the eigenvector of σn^\sigma_{\hat n}σn^​ with eigenvalue aaa. In Lean this is bornProb n₁ n₂ n₃ α β γ.

A locally causal (Bell-local) model consists of

  • a space Λ\LambdaΛ of beables with a probability distribution ρ(λ)\rho(\lambda)ρ(λ) that does not depend on the settings (Eq. (18), statistical independence), and
  • local response probabilities Pj(α∣λ,n^j)P_j(\alpha\mid\lambda,\hat n_j)Pj​(α∣λ,n^j​), where party jjj's outcome depends only on λ\lambdaλ and its own setting (Eq. (17)).

Such a model predicts

P(α,β,γ∣n^1,n^2,n^3)=∫ΛP1(α∣λ,n^1) P2(β∣λ,n^2) P3(γ∣λ,n^3) dρ(λ).P(\alpha,\beta,\gamma\mid\hat n_1,\hat n_2,\hat n_3) = \int_\Lambda P_1(\alpha\mid\lambda,\hat n_1)\,P_2(\beta\mid\lambda,\hat n_2)\,P_3(\gamma\mid\lambda,\hat n_3)\,d\rho(\lambda).P(α,β,γ∣n^1​,n^2​,n^3​)=∫Λ​P1​(α∣λ,n^1​)P2​(β∣λ,n^2​)P3​(γ∣λ,n^3​)dρ(λ).

In Lean the model is a LocalCausalModel Λ and its prediction is M.predict. The beables are arbitrary: λ\lambdaλ may be a hidden variable, or the quantum state itself as in the Beltrametti–Bugajski representation, Eq. (15).

Formalization targets

Goal (Section II, Eqs. (10)–(27))

No locally causal model reproduces the quantum predictions on the four GHZ settings (x^,x^,x^)(\hat x,\hat x,\hat x)(x^,x^,x^), (x^,y^,y^)(\hat x,\hat y,\hat y)(x^,y^​,y^​), (y^,x^,y^)(\hat y,\hat x,\hat y)(y^​,x^,y^​), (y^,y^,x^)(\hat y,\hat y,\hat x)(y^​,y^​,x^):

¬(∀ GHZ settings n^, ∀α,β,γ: Pmodel(α,β,γ∣n^)=PBorn(α,β,γ∣n^,ψ)).\neg\Big(\forall\,\text{GHZ settings } \hat n,\ \forall \alpha,\beta,\gamma:\ P^{\mathrm{model}}(\alpha,\beta,\gamma\mid\hat n) = P^{\mathrm{Born}}(\alpha,\beta,\gamma\mid\hat n,\psi)\Big).¬(∀GHZ settings n^, ∀α,β,γ: Pmodel(α,β,γ∣n^)=PBorn(α,β,γ∣n^,ψ)).

Milestones

  1. Eqs. (2)–(5). σx(1)σx(2)σx(3)∣ψ⟩=−∣ψ⟩\sigma_x^{(1)}\sigma_x^{(2)}\sigma_x^{(3)}|\psi\rangle = -|\psi\rangleσx(1)​σx(2)​σx(3)​∣ψ⟩=−∣ψ⟩, and the three σxσyσy\sigma_x\sigma_y\sigma_yσx​σy​σy​-type operators fix ∣ψ⟩|\psi\rangle∣ψ⟩.
  2. Born probabilities (Section III, Eqs. (30)–(32)). For (x^,x^,x^)(\hat x,\hat x,\hat x)(x^,x^,x^) each outcome triple has probability 1/41/41/4 if αβγ=−1\alpha\beta\gamma=-1αβγ=−1 and 000 otherwise. For the other three GHZ settings the same holds with αβγ=+1\alpha\beta\gamma=+1αβγ=+1.
  3. Eqs. (10)–(13). No assignment Aj,Bj∈{±1}A_j, B_j \in\{\pm1\}Aj​,Bj​∈{±1} satisfies all four GHZ constraints.
  4. Eqs. (19)–(27). If a product of three probability distributions on {±1}\{\pm1\}{±1} vanishes off the set {αβγ=s}\{\alpha\beta\gamma = s\}{αβγ=s}, then each factor is a point mass, and the three atoms multiply to sss.
  5. Section II, summary (ii). A locally causal model that reproduces the GHZ predictions is, for ρ\rhoρ-almost every λ\lambdaλ, deterministic, with values satisfying (10)–(13).
  6. Section III (B). Local causality implies non-signalling.
  7. Eq. (29). Quantum non-signalling for the GHZ state, with Alice's marginal P1(±1∣x^,ψ)=12P_1(\pm1\mid\hat x,\psi)=\tfrac12P1​(±1∣x^,ψ)=21​.
  8. Appendix 3, Eqs. (39)–(45). Keeping Eq. (17) but letting the beable density depend on the settings (a "superdeterministic" model) does reproduce the GHZ predictions.

Significance

The goal theorem is the mathematical core of the paper's conclusion that any beable account of the GHZ correlations, including one where λ\lambdaλ is just the quantum state, violates Bell's local causality. Milestones 6–8 formalize the paper's separation of notions of locality: non-signalling holds both in quantum mechanics and in every locally causal model, so it cannot tell them apart; and dropping statistical independence (Eq. (18)) is enough to reproduce the correlations. The GHZ theorem itself has been known since 1989. As far as the drafter is aware it has no machine-checked formalization on this platform, and this mission provides one, stated for general measurable beable spaces.

Difficulty

The combinatorial core (milestone 3) is a parity argument. The substance lies in the steps that connect it to probability: showing that perfect correlations force determinism almost surely when ρ\rhoρ is an arbitrary probability measure (null sets, measurability, integrals of nonnegative functions), and computing the Born probabilities exactly in Lean from explicit matrices and eigenvectors.

Formalization scope

  • Outcomes are elements of ℤˣ (exactly {+1,−1}\{+1,-1\}{+1,−1}). Settings form a two-element type Setting with values x and y. Qubit index 0 is ∣+z⟩|{+z}\rangle∣+z⟩ and index 1 is ∣−z⟩|{-z}\rangle∣−z⟩. Three-qubit operators are Kronecker products.
  • A LocalCausalModel Λ has a probability measure ρ on a measurable space Λ and measurable response functions P j λ n α with values in [0,1][0,1][0,1] that sum to one over α\alphaα. The fixed state ψ\psiψ is left implicit. Predictions are Bochner integrals, and all integrands are bounded and measurable.
  • The goal quantifies over all such models on all measurable spaces. Its hypothesis is the equality of all 4×84\times 84×8 predicted and Born probabilities. Because it uses the actual Born probabilities rather than an arbitrary list of constraints, it cannot hold vacuously.
  • Needed infrastructure: finite-dimensional matrix computations over C\mathbb CC with 2\sqrt22​, and basic measure theory (a.e. vanishing of nonnegative integrands).

Selected references

  • A. Drezet, An Elementary Proof That Everett's Quantum Multiverse Is Nonlocal: Bell-Locality and Branch-Symmetry in the Many-Worlds Interpretation, arXiv:2306.07794, 2023. https://arxiv.org/abs/2306.07794
  • D. M. Greenberger, M. A. Horne, A. Zeilinger, Going beyond Bell's theorem, in Bell's Theorem, Quantum Theory and Conceptions of the Universe, Kluwer, 1989, pp. 69–72. https://arxiv.org/abs/0712.0921
  • J. S. Bell, Speakable and Unspeakable in Quantum Mechanics, 2nd ed., Cambridge University Press, 2004. https://doi.org/10.1017/CBO9780511815676
11 thms3 active usersReviewed
🏆Completed
Information TheoryStatistics·Captain: mikedeng1

Shadow Tomography of Quantum States 2: Even the Classical Special Case Needs Ω(min{D, log M}/ε²) CopiesResearch Paper

Why the copy count matters

Shadow tomography asks for predictions of many specified measurements of an unknown quantum state, while using as few prepared copies of that state as possible. The requested output is a list of acceptance probabilities, not a full description of the state. A procedure might exploit the fact that these are only MMM numbers, even when the state has dimension DDD. The natural question is how far this saving can go. Aaronson's paper gives upper bounds and separates two sources of difficulty: one already present for ordinary probability distributions, and one arising from noncommuting quantum measurements.

This mission concerns the first source. It formalizes Theorem 16, which says that even when the state and every requested measurement are diagonal in the same basis, the number of copies must grow with min⁡{D,log⁡M}/ε2\min\{D,\log M\}/\varepsilon^2min{D,logM}/ε2 in the relevant asymptotic regime. In that special case, the unknown state is an ordinary distribution on DDD outcomes. The theorem therefore puts a limit on any proposed improvement to shadow tomography that would promise fewer copies in all instances.

States, measurements, and estimates

A mixed state ρ\rhoρ on a DDD-dimensional system is a positive semidefinite D×DD\times DD×D complex matrix with trace one. A two-outcome measurement is represented by an effect EEE satisfying 0⪯E⪯I0\preceq E\preceq I0⪯E⪯I; it accepts ρ\rhoρ with probability Tr⁡(Eρ)\operatorname{Tr}(E\rho)Tr(Eρ). When ρ\rhoρ is diagonal, its diagonal entries are the probabilities of the DDD basis outcomes. When EEE is diagonal too, it specifies a randomized yes-or-no test on those outcomes. These conventions are stated in Section 3 of the paper.

Given effects E1,…,EME_1,\ldots,E_ME1​,…,EM​, a shadow-tomography strategy measures kkk independent copies ρ⊗k\rho^{\otimes k}ρ⊗k and outputs estimates b1,…,bMb_1,\ldots,b_Mb1​,…,bM​. It succeeds on ρ\rhoρ when every estimate differs from Tr⁡(Eiρ)\operatorname{Tr}(E_i\rho)Tr(Ei​ρ) by at most ε\varepsilonε. The lower bound requires success probability at least 2/32/32/3 for every diagonal mixed state. The strategy may make a joint quantum measurement on all copies and may choose its estimates from its observed outcome. This is the same measurement model used in Problem 1.

Formalization targets

Classical special-case lower bound

The goal is the classical clause of Theorem 16. There are absolute constants c>0c>0c>0 and N0N_0N0​ such that, for D≥N0D\ge N_0D≥N0​, log⁡2M≥N0\log_2 M\ge N_0log2​M≥N0​, and 0<ε≤1/60<\varepsilon\le1/60<ε≤1/6, there are MMM diagonal effects with 0/1 entries, corresponding to the known Boolean functions in Section 6.1, for which every strategy successful on all diagonal states must use

k≥c min⁡{D,log⁡2M}ε2.k\ge c\,\frac{\min\{D,\log_2 M\}}{\varepsilon^2}.k≥cε2min{D,log2​M}​.

The hard measurements are chosen before the strategy is quantified. The statement therefore also rules out a strategy with a smaller copy count that works uniformly for all quantum states and measurements. Its constants and threshold express the Ω\OmegaΩ notation in Theorem 16, rather than specifying a numerical optimum.

Supporting targets

Four milestones come from the proof on pages 20–21: the high-probability overlap bound for independently chosen half-size subsets (Eq. (1)); the acceptance probability of a subset under its associated biased distribution; an upper bound on the mutual information between the hidden subset index and the observed samples; and the exact entropy formula with a quadratic entropy deficit. These statements expose the combinatorial and information-theoretic parts of the lower bound while leaving the goal as the paper's copy-complexity result.

What the result supplies

Theorem 16 sets a floor for shadow tomography that survives even when all operators commute. Any uniform copy bound for the full quantum task must respect this floor. The result also distinguishes the difficulty of predicting many properties of a distribution from the extra difficulty possible for noncommuting states and measurements, which the paper treats in a separate lower bound. Section 6 presents both bounds.

A complete formalization would give machine-checked statements and proofs for the finite subset construction, the entropy calculation, the information inequality, and the reduction from a successful quantum measurement procedure on diagonal states to a lower bound on kkk. The theorem is proved on paper; these draft statements are open Lean goals and do not claim that its proof has been machine checked. The finite-distribution and information-theory infrastructure is reusable for other lower bounds based on hidden-index families.

Where the argument is delicate

Counting how many possible measurements there are does not by itself show that samples reveal enough about which distribution generated them. The lower bound needs a quantitative relation between estimation accuracy and information about a hidden index, while each individual sample carries limited information. The paper's printed overlap condition (1) is too weak for the next displayed ε/2\varepsilon/2ε/2 estimate: at its boundary it gives ε\varepsilonε. The milestone preserves Eq. (1) as printed; closing the goal requires the correspondingly sharper overlap fact with N/24N/24N/24, which follows from the same type of concentration statement after adjusting its constant. The printed assertion that learning the index requires mutual information at least log⁡2K\log_2 Klog2​K is also imprecise at success probability 2/32/32/3; a quantitative decoding inequality is needed. Neither incorrect display is a draft milestone.

Formalization scope

Matrices are indexed by Fin D. WildeQIT.IsDensityOperator supplies the mixed-state predicate ρ⪰0\rho\succeq0ρ⪰0 and Tr⁡(ρ)=1\operatorname{Tr}(\rho)=1Tr(ρ)=1. Diagonal states and effects use the standard matrix diagonal predicate. An effect is positive semidefinite together with its complement. The tensor power uses functions Fin k → Fin D as basis indices; at k=0k=0k=0 it is a one-by-one identity matrix. A strategy is a finite-outcome POVM on that tensor power, followed by a real estimate vector for each outcome. The output values are not restricted to [0,1][0,1][0,1]: clipping them to this interval cannot worsen an estimate of a probability. No restriction to classical estimators is placed in the goal; that would change the allowed strategies before the theorem has been proved.

The asymptotic threshold excludes the one-dimensional and single-measurement corners where the claimed rate does not describe the problem. The bound ε≤1/6\varepsilon\le1/6ε≤1/6 keeps the biased distributions used on page 20 nonnegative; ε≥1/2\varepsilon\ge1/2ε≥1/2 would permit a zero-copy constant estimate. Subset milestones require even NNN or explicitly require a half-size subset, so N/2N/2N/2 has its intended meaning. The natural logarithm appears nowhere in the lower-bound rate; entropy, mutual information, and log⁡2M\log_2 Mlog2​M use base two. At zero probability the entropy convention is 0log⁡0=00\log 0=00log0=0.

The finite distributions, entropy, conditional entropy, and mutual information reuse the published WildeQIT definitions. Contributions that prove the four source milestones, establish the sharper overlap fact, or supply the quantitative decoding step are welcome. The goal must retain its order of quantifiers: one hard measurement family, then every strategy, with success demanded on every diagonal state.

Selected references

  • Scott Aaronson, Shadow Tomography of Quantum States, arXiv preprint arXiv:1711.01053v2, 2018. Preprint.
14 thms3 active usersReviewed
🏆Completed
Number TheoryProbabilityTheoretical Computer Science·Captain: mikedeng1

Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer 3: The Success Probability of Quantum Order FindingResearch Paper

Motivation

The security of the RSA cryptosystem rests on the assumed difficulty of factoring large integers, and the best known classical algorithms for factoring run in super-polynomial time. In 1994 Peter Shor showed that a quantum computer can factor an nnn-digit integer in time polynomial in nnn (Shor, SIAM J. Comput. 1997; conference version FOCS 1994). The algorithm has two parts. A classical reduction, due to Miller (1976), turns factoring into order finding: given xxx coprime to nnn, find the least r≥1r \ge 1r≥1 with xr≡1(modn)x^r \equiv 1 \pmod nxr≡1(modn). The quantum part solves order finding.

This mission formalizes the quantum part as Shor analyzes it in §5 of the journal paper: the construction of the quantum state, the probability of each measurement outcome, and the classical post-processing that reads rrr off the measured value. The paper's claim is that one run of this procedure returns rrr with probability at least φ(r)/3r\varphi(r)/3rφ(r)/3r.

Timeline:

  • 1976: Miller reduces factoring to order finding (with randomization).
  • 1985–1994: Deutsch, Bernstein–Vazirani and Simon give the quantum Fourier sampling ideas the algorithm builds on.
  • 1994: Shor's FOCS paper introduces the factoring and discrete logarithm algorithms.
  • 1997: the SIAM J. Comput. version gives the analysis formalized here, with qqq the power of 222 in [n2,2n2)[n^2, 2n^2)[n2,2n2).

Setting

Fix an integer n≥2n \ge 2n≥2 and an integer xxx coprime to nnn. Its order rrr is the least r≥1r \ge 1r≥1 with xr≡1(modn)x^r \equiv 1 \pmod nxr≡1(modn); since xxx is a unit, r≤φ(n)<nr \le \varphi(n) < nr≤φ(n)<n. Let q=2lq = 2^lq=2l be the power of 222 with n2≤q<2n2n^2 \le q < 2n^2n2≤q<2n2.

A quantum state on two registers, the first holding 0≤a<q0 \le a < q0≤a<q and the second a residue y∈Z/ny \in \mathbb{Z}/ny∈Z/n, is a complex vector ψ(a,y)\psi(a, y)ψ(a,y) indexed by the basis states ∣a,y⟩|a, y\rangle∣a,y⟩. Measuring it returns ∣a,y⟩|a, y\rangle∣a,y⟩ with probability ∣ψ(a,y)∣2|\psi(a, y)|^2∣ψ(a,y)∣2.

The Fourier matrix AqA_qAq​ is the q×qq \times qq×q matrix with entries (Aq)a,c=q−1/2exp⁡(2πiac/q)(A_q)_{a,c} = q^{-1/2}\exp(2\pi i a c/q)(Aq​)a,c​=q−1/2exp(2πiac/q), with rows indexing inputs and columns outputs. The algorithm

  1. prepares 1q1/2∑a=0q−1∣a⟩∣xa mod n⟩\frac{1}{q^{1/2}}\sum_{a=0}^{q-1}|a\rangle|x^a \bmod n\rangleq1/21​∑a=0q−1​∣a⟩∣xamodn⟩ (eq. (5.2)),
  2. applies AqA_qAq​ to the first register, obtaining 1q∑a,cexp⁡(2πiac/q)∣c⟩∣xa mod n⟩\frac1q\sum_{a,c}\exp(2\pi iac/q)|c\rangle|x^a \bmod n\rangleq1​∑a,c​exp(2πiac/q)∣c⟩∣xamodn⟩ (eq. (5.4)),
  3. measures, obtaining some ∣c,y⟩|c, y\rangle∣c,y⟩,
  4. rounds c/qc/qc/q to the nearest fraction with denominator smaller than nnn.

The observed ccc gives us rrr if some fraction with lowest-terms denominator below nnn is within 1/2q1/2q1/2q of c/qc/qc/q, and every such fraction has lowest-terms denominator exactly rrr. In the Lean development these objects are preFourierState, finalState, outcomeProb and yieldsOrder, in the namespace ShorAlgorithms.OrderFinding, and the shared definition ShorAlgorithms.Shared.fourierMatrix.

Formalization targets

Goal: success probability at least φ(r)/3r\varphi(r)/3rφ(r)/3r

For all sufficiently large nnn, with xxx, rrr and qqq as above,

Pr⁡[the observed c gives us r]  =  ∑c gives r ∑y∈Z/n∣Ψ(c,y)∣2  ≥  φ(r)3r,\Pr\bigl[\text{the observed } c \text{ gives us } r\bigr] \;=\; \sum_{c\ \text{gives}\ r}\ \sum_{y \in \mathbb{Z}/n} |\Psi(c, y)|^2 \;\ge\; \frac{\varphi(r)}{3r},Pr[the observed c gives us r]=c gives r∑​ y∈Z/n∑​∣Ψ(c,y)∣2≥3rφ(r)​,

where Ψ\PsiΨ is the state (5.4). The threshold on nnn is uniform in xxx and qqq; it is the paper's "for sufficiently large nnn" from the per-state bound.

Milestones

  1. Eqs. (5.5)–(5.6). For 0≤k<r0 \le k < r0≤k<r, the probability of ∣c,xk⟩|c, x^k\rangle∣c,xk⟩ equals ∣1q∑b=0⌊(q−k−1)/r⌋exp⁡(2πi(br+k)c/q)∣2\left|\frac1q\sum_{b=0}^{\lfloor (q-k-1)/r\rfloor}\exp(2\pi i(br+k)c/q)\right|^2​q1​∑b=0⌊(q−k−1)/r⌋​exp(2πi(br+k)c/q)​2.
  2. Eq. (5.11). For nnn past a threshold, every ∣c,xk⟩|c, x^k\rangle∣c,xk⟩ with −r/2≤rc−dq≤r/2-r/2 \le rc - dq \le r/2−r/2≤rc−dq≤r/2 for some integer ddd has probability at least 1/3r21/3r^21/3r2.
  3. Eq. (5.13). If n2≤qn^2 \le qn2≤q, at most one fraction with denominator below nnn lies within 1/2q1/2q1/2q of c/qc/qc/q.
  4. p. 1500. Such a fraction is a convergent of the continued fraction of c/qc/qc/q.
  5. p. 1501. At least φ(r)\varphi(r)φ(r) values of ccc are within 1/2q1/2q1/2q of some d/rd/rd/r with gcd⁡(d,r)=1\gcd(d, r) = 1gcd(d,r)=1; with the rrr distinct values of xkx^kxk this gives at least rφ(r)r\varphi(r)rφ(r) states ∣c,xk⟩|c, x^k\rangle∣c,xk⟩, and each such ccc gives us rrr.

Significance

The goal is the quantitative statement behind "order finding is in bounded-error quantum polynomial time": since φ(r)/r≥δ/log⁡log⁡r\varphi(r)/r \ge \delta/\log\log rφ(r)/r≥δ/loglogr for a constant δ\deltaδ (Hardy and Wright, Thm. 328), O(log⁡log⁡r)O(\log\log r)O(loglogr) repetitions find rrr with high probability, and Miller's reduction then factors nnn. Without the bound, the algorithm is a procedure with no guarantee.

The result is proved, in the paper and in textbooks (Nielsen and Chuang, 2000, §5.3), usually with a phase-estimation analysis rather than Shor's direct count. What this mission adds is a machine-checked proof of Shor's own argument, with his choice of qqq and his constants, starting from the state built by applying AqA_qAq​ to (5.2). Formal proofs of idealized versions exist elsewhere, for instance in the exact-period model where rrr divides qqq and the output is uniform on rrr peaks, but that model removes the approximation that the 1/3r21/3r^21/3r2 bound is about. Legendre's theorem on continued fractions is already on the platform (FamousTheorems.legendre_continued_fraction_theorem) and is included as a reference item.

Difficulty

The obvious route is to compute the output distribution in closed form. That works only when rrr divides qqq; here qqq is a power of 222 and rrr is arbitrary, so the amplitudes are geometric sums of ⌊(q−k−1)/r⌋+1\lfloor (q-k-1)/r\rfloor + 1⌊(q−k−1)/r⌋+1 terms whose phases do not cancel exactly. The per-state bound 1/3r21/3r^21/3r2 requires a lower bound on such a sum that is uniform in rrr, ccc and kkk, with error terms of order 1/q1/q1/q controlled against a main term of order 1/r21/r^21/r2. The constant 1/31/31/3 leaves only a small margin below the limiting value 4/π2≈0.4054/\pi^2 \approx 0.4054/π2≈0.405, so the errors must be bounded explicitly, not merely shown to vanish.

The second difficulty is the counting: distinct coprime numerators ddd must give distinct outcomes ccc in [0,q)[0, q)[0,q), and each good ccc must determine rrr uniquely, which uses r<nr < nr<n and n2≤qn^2 \le qn2≤q.

Formalization scope

Conventions the statements commit to:

  • States are functions Fin q × ZMod n → ℂ; the matrix convention is row = input, so applying AqA_qAq​ to the first register gives the amplitude ∑aψ(a,y)(Aq)a,c\sum_a \psi(a, y)(A_q)_{a,c}∑a​ψ(a,y)(Aq​)a,c​ at (c,y)(c, y)(c,y).
  • The final state is built by applying AqA_qAq​ to the state (5.2); the closed forms (5.5) and (5.6) are theorems, not definitions. No normalization hypothesis is assumed.
  • Probabilities are squared moduli; the probability of the event "ccc gives us rrr" sums over all y∈Z/ny \in \mathbb{Z}/ny∈Z/n, which is exact because yyy that are not powers of xxx have probability zero.
  • xxx is a natural number with gcd⁡(x,n)=1\gcd(x, n) = 1gcd(x,n)=1; rrr is orderOf (x : ZMod n). qqq enters through the three hypotheses q=2lq = 2^lq=2l, n2≤qn^2 \le qn2≤q, q<2n2q < 2n^2q<2n2, not through a function of nnn.
  • Fractions are rationals, and "in lowest terms" is Rat.den.
  • Thresholds "for sufficiently large nnn" are ∃N, ∀n≥N\exists N,\ \forall n \ge N∃N, ∀n≥N, with NNN quantified before xxx, qqq, ccc and kkk.
  • Condition (5.11) is stated in its equivalent form (5.12), with an integer ddd.
  • Printed slip. Eq. (5.13)'s justification says "Because q>n2q > n^2q>n2", but qqq was chosen with n2≤qn^2 \le qn2≤q, and q=n2q = n^2q=n2 when nnn is a power of 222. The uniqueness claim holds under n2≤qn^2 \le qn2≤q, and that is what is stated.

Typing the closed form (5.4)–(5.6) in as the definition of the final state would make milestone 1 trivial and hide whether the probability model is the paper's; the definitions exclude this by construction.

Not stated: the polynomial running time of any step, the O(log⁡log⁡r)O(\log\log r)O(loglogr) repetition count (no explicit constant), the reversible modular exponentiation of §3, and the post-processing heuristics on p. 1501. Needed infrastructure: bounds on geometric exponential sums, Euler's totient, Diophantine approximation by fractions with bounded denominator, and Mathlib's continued fractions. Lemmas on geometric sums of roots of unity and on the order of units mod nnn are reusable in the companion discrete logarithm mission.

Selected references

  • P. W. Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, SIAM J. Comput. 26(5):1484–1509, 1997. https://doi.org/10.1137/S0097539795293172
  • P. W. Shor, Algorithms for quantum computation: discrete logarithms and factoring, Proc. 35th FOCS, 1994. https://doi.org/10.1109/SFCS.1994.365700
  • G. L. Miller, Riemann's hypothesis and tests for primality, J. Comput. System Sci. 13(3):300–317, 1976. https://doi.org/10.1016/S0022-0000(76)80043-8
  • G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed., Oxford, 1979 (Ch. X, continued fractions; Thm. 328).
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge, 2000. https://doi.org/10.1017/CBO9780511976667
12 thms3 active usersReviewed
🏆Completed
Mathematical PhysicsTheoretical Computer Science·Captain: Lucas

Undecidability of the Spectral GapResearch Paper

Motivation

The spectral gap of a quantum many-body Hamiltonian is the difference between the energy of its ground state and the energy of its first excited state, in the limit of infinitely many particles. Whether a given microscopic interaction produces a gapped or a gapless system decides much of the macroscopic physics: gapped systems have exponentially decaying correlations and well-defined quantum phases, gapless systems sit at critical points and can display algebraically decaying correlations. Several long-standing questions — the Haldane conjecture for antiferromagnetic spin chains, the existence of gapped topological spin liquids, and the Yang–Mills mass gap — are instances of the question "given the interaction, is the system gapped?".

Cubitt, Pérez-García and Wolf proved that this question, posed for families of two-dimensional translationally invariant nearest-neighbour spin models, admits no algorithmic answer: the spectral gap problem is undecidable (Nature 528, 207–211 (2015); full version: Forum of Mathematics, Pi 10:e14 (2022), also arXiv:1502.04573).

Timeline of the ingredients the proof rests on: Turing's undecidability of the halting problem (1936); Berger's undecidability of the domino problem (1966) and Robinson's aperiodic tile set (Inventiones 12, 177–209 (1971)); Feynman's and Kitaev's circuit-to-Hamiltonian constructions, which turn a computation into a ground state; Gottesman and Irani's translationally invariant one-dimensional Hamiltonians encoding computation (FOCS 2009); and Bitansky–Vadhan-style quantum Turing machine engineering from Bernstein and Vazirani (SIAM J. Comput. 26, 1411–1473 (1997)). The 2015 result was later sharpened to one-dimensional chains by Bausch, Cubitt, Lucia and Pérez-García (PRX 10, 031038 (2020)).

Setting

Fix a local dimension ddd and, for each side length LLL, the square lattice Λ(L)={1,…,L}2\Lambda(L)=\{1,\dots,L\}^2Λ(L)={1,…,L}2 with open boundary conditions. Each site carries a copy of Cd\mathbb{C}^dCd, so the state space of the lattice has the standard product basis indexed by assignments of a level in {1,…,d}\{1,\dots,d\}{1,…,d} to each site. A model is specified by three Hermitian matrices: an on-site term h1h_1h1​ of size d×dd\times dd×d, and two interactions hrow,hcolh_{\mathrm{row}},h_{\mathrm{col}}hrow​,hcol​ of size d2×d2d^2\times d^2d2×d2 acting on horizontally and vertically adjacent pairs. The Hamiltonian of the finite lattice is

HΛ(L)  =  ∑horizontal edgeshrow(i,j)  +  ∑vertical edgeshcol(i,j)  +  ∑k∈Λ(L)h1(k),H^{\Lambda(L)} \;=\; \sum_{\text{horizontal edges}} h_{\mathrm{row}}^{(i,j)} \;+\; \sum_{\text{vertical edges}} h_{\mathrm{col}}^{(i,j)} \;+\; \sum_{k\in\Lambda(L)} h_1^{(k)},HΛ(L)=horizontal edges∑​hrow(i,j)​+vertical edges∑​hcol(i,j)​+k∈Λ(L)∑​h1(k)​,

the same three matrices being used at every edge and every site, which is what translational invariance means here. The quantity max⁡{∥h1∥,∥hrow∥,∥hcol∥}\max\{\|h_1\|,\|h_{\mathrm{row}}\|,\|h_{\mathrm{col}}\|\}max{∥h1​∥,∥hrow​∥,∥hcol​∥} is the local interaction strength.

Write λ0(HΛ(L))≤λ1(HΛ(L))≤⋯\lambda_0(H^{\Lambda(L)})\le\lambda_1(H^{\Lambda(L)})\le\cdotsλ0​(HΛ(L))≤λ1​(HΛ(L))≤⋯ for the eigenvalues and Δ(HΛ(L))=λ1−λ0\Delta(H^{\Lambda(L)})=\lambda_1-\lambda_0Δ(HΛ(L))=λ1​−λ0​ for the finite-size gap. The family {HΛ(L)}L\{H^{\Lambda(L)}\}_L{HΛ(L)}L​ is

  • gapped (Definition 1 of the source) if there are γ>0\gamma>0γ>0 and L0L_0L0​ such that for all L>L0L>L_0L>L0​ the ground state of HΛ(L)H^{\Lambda(L)}HΛ(L) is non-degenerate and Δ(HΛ(L))≥γ\Delta(H^{\Lambda(L)})\ge\gammaΔ(HΛ(L))≥γ;
  • gapless (Definition 2 of the source) if there is c>0c>0c>0 such that for every ε>0\varepsilon>0ε>0 there is an L0L_0L0​ with: for all L>L0L>L_0L>L0​, every point of [λ0,λ0+c][\lambda_0,\lambda_0+c][λ0​,λ0​+c] lies within ε\varepsilonε of the spectrum of HΛ(L)H^{\Lambda(L)}HΛ(L).

These two conditions are not negations of each other; the construction guarantees that every instance falls into one of them. The ground state energy density is Eρ=lim⁡L→∞λ0(HΛ(L))/L2E_\rho=\lim_{L\to\infty}\lambda_0(H^{\Lambda(L)})/L^2Eρ​=limL→∞​λ0​(HΛ(L))/L2.

Formalization targets

Goal — Theorem 3 of the source

For a fixed universal machine and every nnn, one explicit family of interactions, built from fixed integer-valued matrices A,A′,B,C,D,D′A,A',B,C,D,D'A,A′,B,C,D,D′, a diagonal projector Π\PiΠ, a rational β>0\beta>0β>0 that may be taken arbitrarily small, and an algebraic α(n)≤2β\alpha(n)\le 2\betaα(n)≤2β,

h1(n)=α(n)Π,hcol(n)=D+βD′,h_1(n)=\alpha(n)\Pi,\qquad h_{\mathrm{col}}(n)=D+\beta D',h1​(n)=α(n)Π,hcol​(n)=D+βD′, hrow(n)=A+β(A′+eiπφB+e−iπφB†+eiπ2−∣φ∣C+e−iπ2−∣φ∣C†),h_{\mathrm{row}}(n)=A+\beta\Bigl(A'+e^{i\pi\varphi}B+e^{-i\pi\varphi}B^{\dagger}+e^{i\pi 2^{-|\varphi|}}C+e^{-i\pi 2^{-|\varphi|}}C^{\dagger}\Bigr),hrow​(n)=A+β(A′+eiπφB+e−iπφB†+eiπ2−∣φ∣C+e−iπ2−∣φ∣C†),

with φ=φ(n)\varphi=\varphi(n)φ=φ(n) the rational whose binary expansion after the point is the binary expansion of nnn reversed, satisfies: the local interaction strength is at most 111; if the machine halts on input nnn the family is gapped with gap at least 111; and if it does not halt the family is gapless. Since halting is undecidable, no algorithm decides gappedness, even with the promise that exactly one of the two alternatives holds and even at fixed local dimension ddd.

Milestones

The milestone list follows the numbering of the full version: Lemma 8 and Theorem 9 (reduction of halting to ground state energy and to arbitrary low-energy properties), Corollary 7 (the same undecidability for unconstrained local dimension, with rational interactions), Proposition 53 and Corollary 54 (the diverging ground state energy and its promise version), and Theorem 5 (undecidability of the ground state energy density).

Significance

The result rules out a general algorithm — and therefore any complete general method — for deciding gappedness from the interaction matrices, however much computing power is available; the property genuinely depends on arbitrarily large system sizes. It also implies, via the standard link between undecidability and independence, that there are concrete finite-dimensional models whose gap is independent of the axioms of any consistent recursively axiomatized formal system (Corollary 4 of the source), and it transfers to other low-energy properties such as the existence of algebraically decaying ground-state correlations.

The theorem is proved; none of it is formalized. This mission produces the machine-checked version. The reusable infrastructure it forces into existence is substantial on its own: a formal model of translationally invariant lattice Hamiltonians and their thermodynamic-limit spectral behaviour, the tiling layer, and computational-history-state Hamiltonians. Each milestone is a self-contained statement that can be attacked without the others.

Difficulty

The obvious approach — encode a halting computation as an energy penalty — gives the ground state energy of a finite lattice, not a property of the limit; this is exactly what Lemma 8 achieves, and it is not enough, because a gap is a statement about the sequence of spectra as L→∞L\to\inftyL→∞ and is insensitive to any single lattice size. The construction must make the halting information visible at all sufficiently large sizes at once while a fixed finite local dimension carries every instance nnn. That forces three separate difficulties: an aperiodic (Robinson) tiling to create squares of every size 2n2^n2n inside one translationally invariant model; a quantum phase-estimation Turing machine whose transition amplitudes encode nnn in a single phase eiπφ(n)e^{i\pi\varphi(n)}eiπφ(n), so that the instance index does not inflate the local dimension; and a history-state Hamiltonian whose low-energy spectrum can be controlled well enough that a positive energy density in the halting case turns into a genuine spectral gap, and a vanishing one into a dense spectrum above the ground state.

Formalization scope

The development commits to the following conventions, all of which are visible in the definition items of this mission.

  1. Lattices are finite: sites are pairs of indices in {0,…,L−1}\{0,\dots,L-1\}{0,…,L−1}, edges are consecutive pairs within a row or a column (open boundary conditions; the periodic case of Section 6.3 of the source is out of scope).
  2. Operators are complex matrices indexed by product-basis configurations; the interactions are embedded by acting as the given matrix on the two sites of an edge and as the identity elsewhere.
  3. The spectrum is taken as the set of real numbers in the matrix spectrum, and λ0\lambda_0λ0​ is its infimum; every statement carries the Hermiticity hypotheses that make this the usual spectrum. Multiplicities are dimensions of eigenspaces, which is how the "identity of spectra as multisets" of Theorem 9 is expressed.
  4. Gapped, gapless and the energy density are properties of the whole family {HΛ(L)}L\{H^{\Lambda(L)}\}_L{HΛ(L)}L​ generated by a fixed triple of matrices, exactly as in Definitions 1 and 2.
  5. Operator norms are ℓ2\ell_2ℓ2​ operator norms; the local interaction strength is the maximum of the three.
  6. Machines are represented by partial recursive codes: "halts on input nnn" is definedness of the evaluation, and "has not halted after LLL steps" is the step-bounded evaluation returning nothing. The explicit local-dimension bounds of Lemma 8 and Theorem 9, which are stated in the source in terms of the number of internal states and the alphabet size of a Turing machine, are replaced by the existence of a finite local dimension.

Degenerate readings are excluded: a zero local dimension satisfies none of the statements, since a non-degenerate ground state requires a one-dimensional eigenspace and the gapless condition requires a non-empty spectrum; and every existential statement fixes the matrices before quantifying over all instances nnn and all lattice sizes LLL.

Contributions are welcome at any milestone, and also on the infrastructure the milestones need — Wang tilings and the Robinson tile set, Gottesman–Irani history-state Hamiltonians, and quantum Turing machines in the Bernstein–Vazirani sense — which are needed for Theorem 6 and Lemma 47 of the source and are not yet part of this mission's item list.

Selected references

  • T. S. Cubitt, D. Pérez-García, M. M. Wolf, Undecidability of the Spectral Gap (full version), Forum of Mathematics, Pi 10:e14, 1–102 (2022). https://doi.org/10.1017/fmp.2021.15 — the version all statements of this mission are formalized against; preprint: https://arxiv.org/abs/1502.04573
  • T. S. Cubitt, D. Pérez-García, M. M. Wolf, Undecidability of the spectral gap, Nature 528, 207–211 (2015). https://doi.org/10.1038/nature16059
  • R. M. Robinson, Undecidability and nonperiodicity for tilings of the plane, Inventiones Mathematicae 12, 177–209 (1971). https://doi.org/10.1007/BF01418780
  • D. Gottesman, S. Irani, The quantum and classical complexity of translationally invariant tiling and Hamiltonian problems, FOCS 2009. https://arxiv.org/abs/0905.2419
  • E. Bernstein, U. Vazirani, Quantum complexity theory, SIAM J. Comput. 26, 1411–1473 (1997). https://doi.org/10.1137/S0097539796300921
  • J. Bausch, T. S. Cubitt, A. Lucia, D. Pérez-García, Undecidability of the spectral gap in one dimension, Phys. Rev. X 10, 031038 (2020). https://doi.org/10.1103/PhysRevX.10.031038
20 thms3 active usersReviewed
🏆Completed
Captain: Henry Yuen

Parallel repetition for quantum gamesResearch Paper

Parallel repetition for quantum games

Nonlocal games

A nonlocal game is played between a classical referee and two or more cooperating players who are not allowed to communicate during the game. In the two-player, one-round setting, the referee samples a pair of questions (x,y)(x,y)(x,y) from a distribution μ\muμ, sends xxx to Alice and yyy to Bob, and receives answers aaa and bbb. The players win when a predicate V(x,y,a,b)V(x,y,a,b)V(x,y,a,b) accepts. Before the game begins they may agree on a strategy and share a resource, but after receiving their questions they are isolated from one another.

Nonlocal games occupy a useful interface between complexity theory and quantum information. From the perspective of complexity theory, they are the basic objects underlying multiprover interactive proofs: a verifier delegates a computation to separated provers and uses the consistency of their answers to distinguish valid from invalid claims. Classical two-prover games play a central role in the PCP theorem, hardness of approximation, and soundness amplification. Allowing the provers to share entanglement leads to the class MIP∗\mathrm{MIP}^*MIP∗ and to a substantially richer theory. The theorem MIP∗=RE\mathrm{MIP}^*=\mathrm{RE}MIP∗=RE shows how dramatically entanglement changes this landscape: even estimating the entangled value of a nonlocal game can encode undecidable computation Ji--Natarajan--Vidick--Wright--Yuen 2020.

From the perspective of quantum information, nonlocal games are operational formulations of Bell experiments. A separation between classical and entangled values witnesses correlations that cannot be explained by a local hidden-variable model. The same framework supports self-testing, in which near-optimal behavior certifies the underlying state and measurements up to local equivalence, and device-independent cryptography, in which security or randomness is certified from observed input-output statistics rather than a trusted description of the devices. Representative references include Cleve--Høyer--Toner--Watrous 2004, Reichardt--Unger--Vazirani 2013, and Pironio et al. 2010. The survey of Palazuelos--Vidick 2016 describes further connections among nonlocal games, Bell inequalities, operator spaces, and quantum information.

Thus the value of a nonlocal game is simultaneously a complexity-theoretic soundness parameter and a quantitative measure of the power of nonclassical correlations. Understanding how this value changes under natural operations on games is important in both subjects.

Entangled strategies and value

We take the finite answer alphabets to be nonempty. In a classical strategy, Alice's answer depends only on xxx, Bob's answer depends only on yyy, and the players may coordinate using shared randomness. In a finite-dimensional entangled strategy, the players share a bipartite state ρ\rhoρ and use POVM measurement operators

{Aax}a∈Aand{Bby}b∈B\{A_a^x\}_{a\in A} \qquad\text{and}\qquad \{B_b^y\}_{b\in B}{Aax​}a∈A​and{Bby​}b∈B​

for their respective questions. The probability of producing answers (a,b)(a,b)(a,b) on questions (x,y)(x,y)(x,y) is

Re⁡Tr⁡ ⁣(ρ (Aax⊗Bby)).\operatorname{Re}\operatorname{Tr}\!\left(\rho\,(A_a^x\otimes B_b^y)\right).ReTr(ρ(Aax​⊗Bby​)).

The supremum of the winning probability over all such finite-dimensional strategies is the entangled value ω∗(G)\omega^*(G)ω∗(G). This optimization ranges over arbitrary local dimensions, shared states, and local measurements, which is one reason even apparently elementary questions about nonlocal games can be difficult.

Parallel repetition

For a positive integer nnn, the repeated game GnG^nGn consists of nnn independently sampled copies of GGG played simultaneously. Alice receives (x1,…,xn)(x_1,\ldots,x_n)(x1​,…,xn​), Bob receives (y1,…,yn)(y_1,\ldots,y_n)(y1​,…,yn​), and they answer with tuples (a1,…,an)(a_1,\ldots,a_n)(a1​,…,an​) and (b1,…,bn)(b_1,\ldots,b_n)(b1​,…,bn​). They win only if

V(xi,yi,ai,bi)=1V(x_i,y_i,a_i,b_i)=1V(xi​,yi​,ai​,bi​)=1

for every coordinate iii.

Parallel repetition is a basic method of soundness amplification. Starting from a game that dishonest players cannot win with certainty, the verifier repeats the test in the hope of driving the optimal success probability rapidly toward zero. The difficulty is that independence in the verifier's sampling does not force independence in the players' strategy. Alice may choose her entire answer tuple as a function of all her questions, Bob may do the same, and an entangled strategy may use a single state and joint measurements spanning all coordinates. In particular, one cannot obtain an upper bound on ω∗(Gn)\omega^*(G^n)ω∗(Gn) merely by analyzing the strategy that plays each coordinate independently.

For classical games, Raz's parallel repetition theorem gives exponential decay whenever the one-shot value is below one Raz 1998. Establishing the corresponding behavior for entangled games has been a long-running problem. A general polynomial bound was proved in Yuen 2016, implying for the first time that ω∗(Gn)\omega^*(G^n)ω∗(Gn) tends to zero for every finite two-player entangled game with ω∗(G)<1\omega^*(G)<1ω∗(G)<1.

The full exponential-decay theorem was recently settled by OpenAI. In Chapter 6 of Ten Advances in Mathematics and Theoretical Computer Science, OpenAI proves that for every finite two-player entangled game GGG with ω∗(G)<1\omega^*(G)<1ω∗(G)<1, there is a constant cG>0c_G>0cG​>0 such that

ω∗(Gn)≤e−cGn\omega^*(G^n)\le e^{-c_G n}ω∗(Gn)≤e−cG​n

for every positive nnn. OpenAI also released a Lean certificate for the result. This resolves the general quantum parallel-repetition conjecture, but it does not end the study of the problem. The proof introduces quantitative losses and a substantial technical apparatus, and there remains considerable value in finding alternative arguments, isolating the essential mechanism, improving the dependence on the one-shot gap and answer size, and producing shorter or more conceptual formal proofs.

A hierarchy of formalization targets

This mission develops a reusable Lean framework for parallel repetition rather than formalizing only one paper. Its targets are organized by the strength of the asserted decay.

Qualitative decay

The main mission theorem is the fundamental asymptotic statement:

ω∗(G)<1⟹lim⁡n→∞ω∗(Gn)=0.\omega^*(G)<1 \quad\Longrightarrow\quad \lim_{n\to\infty}\omega^*(G^n)=0.ω∗(G)<1⟹n→∞lim​ω∗(Gn)=0.

Equivalently, for every δ>0\delta>0δ>0, all sufficiently large nnn satisfy ω∗(Gn)<δ\omega^*(G^n)<\deltaω∗(Gn)<δ. This statement deliberately specifies no rate. It is a stable top-level theorem that can be recovered from any sufficiently strong quantitative bound.

Polynomial decay

A stronger target asks for game-dependent constants C>0C>0C>0 and α>0\alpha>0α>0 such that

ω∗(Gn)≤Cn−α.\omega^*(G^n)\le Cn^{-\alpha}.ω∗(Gn)≤Cn−α.

The abstract formulation avoids fixing a particular exponent or logarithmic correction. More refined formalizations can record explicit dependence on the gap 1−ω∗(G)1-\omega^*(G)1−ω∗(G), the answer alphabet, or other game parameters. Yuen's 2016 theorem is one important result at this level.

Exponential decay

The exponential target asks for game-dependent constants C,c>0C,c>0C,c>0 such that

ω∗(Gn)≤Ce−cn.\omega^*(G^n)\le C e^{-cn}.ω∗(Gn)≤Ce−cn.

Following OpenAI's recent resolution, this target is now a theorem rather than an open conjecture. Within this mission it remains a central milestone: contributors may formalize the released argument in the mission's common interface, construct an independent proof, seek a more elegant or modular proof, or establish sharper quantitative variants.

These levels do not exhaust the project. The same framework can accommodate explicit finite-nnn inequalities, stretched-exponential estimates, bounds for structured classes of games, improved parameter dependence, and reductions showing that one decay statement implies another.

Formalization scope

The foundational Lean development represents a game by finite question sets X,YX,YX,Y, finite answer sets A,BA,BA,B, a nonnegative normalized question distribution μ(x,y)\mu(x,y)μ(x,y), and a Boolean verification predicate V(x,y,a,b)V(x,y,a,b)V(x,y,a,b). The parallel-repetition theorems explicitly assume that AAA and BBB are nonempty. The development defines finite-dimensional entangled strategies using density matrices and POVM measurement operators, defines the repeated game on tuples, and takes the entangled value as a supremum over all finite-dimensional strategies. Repeated strategies are indexed by complete question tuples and are not required to factor coordinatewise.

A complete development will draw on formal libraries for finite probability, tensor products, positive semidefinite matrices, density matrices, POVMs, trace norms, fidelity, entropy, mutual information, and correlated sampling. These components should be formulated for reuse and should expose the dependence of each bound on the relevant game parameters.

The goal is both to verify parallel-repetition theorems and to build a dependable language for nonlocal games in Lean. Formalization forces distinctions that are easy to suppress on paper: whether constants depend on the game, whether a bound holds for all nnn or only asymptotically, which strategy model is optimized over, and which hypotheses are needed for a particular rate. The mission welcomes reconstructions of known proofs as well as new, shorter, or conceptually different proofs.

Selected references

  • R. Cleve, P. Høyer, B. Toner, and J. Watrous, Consequences and limits of nonlocal strategies, CCC 2004.
  • R. Raz, A parallel repetition theorem, SIAM Journal on Computing 27(3), 1998.
  • H. Yuen, A parallel repetition theorem for all entangled games, ICALP 2016.
  • Z. Ji, A. Natarajan, T. Vidick, J. Wright, and H. Yuen, MIP∗=RE\mathrm{MIP}^*=\mathrm{RE}MIP∗=RE, Communications of the ACM 64(11), 2021.
  • OpenAI, Ten Advances in Mathematics and Theoretical Computer Science, Chapter 6, 2026; accompanying Lean formalization.
10 thms3 active usersReviewed
🏆Completed
Mathematical PhysicsProbability·Captain: mikedeng1

Quantum Speedup of Monte Carlo Methods 2: Along a B-Chebyshev Cooling Schedule, Consecutive Gibbs Sample States Overlap with |⟨π_i|π_{i+1}⟩|² ≥ 1/BResearch Paper

Motivation

Approximating a partition function Z(β)=∑x∈Ωe−βH(x)Z(\beta)=\sum_{x\in\Omega}e^{-\beta H(x)}Z(β)=∑x∈Ω​e−βH(x) is a central task in statistical physics and in counting: it covers the Ising and Potts models, and, at β=∞\beta=\inftyβ=∞, counting the zero-energy configurations of a Hamiltonian, for instance the proper kkk-colourings of a graph. Computing Z(∞)Z(\infty)Z(∞) exactly is #P-complete in many cases, so the goal is an estimate Z~\widetilde ZZ with ∣Z~−Z(∞)∣≤ϵZ(∞)|\widetilde Z-Z(\infty)|\le\epsilon Z(\infty)∣Z−Z(∞)∣≤ϵZ(∞) with high probability.

The standard classical approach writes Z(∞)Z(\infty)Z(∞) as a telescoping product of ratios αi=Z(βi+1)/Z(βi)\alpha_i=Z(\beta_{i+1})/Z(\beta_i)αi​=Z(βi+1​)/Z(βi​) along a sequence of inverse temperatures 0=β0<β1<⋯<βℓ=∞0=\beta_0<\beta_1<\dots<\beta_\ell=\infty0=β0​<β1​<⋯<βℓ​=∞, and estimates each ratio by sampling from the Gibbs distribution πi\pi_iπi​ at βi\beta_iβi​. Dyer and Frieze (1992, as cited on p. 14 of arXiv:1504.06987v3) showed how to bound the number of samples when each estimator has bounded relative second moment; Štefankovič, Vempala and Vigoda (J. ACM 2009) named the resulting condition a Chebyshev cooling schedule and showed that schedules of length O~(log⁡∣Ω∣)\widetilde O(\sqrt{\log|\Omega|})O(log∣Ω∣​) exist and can be found efficiently.

Montanaro (arXiv:1504.06987v3, 2017) gives a quantum algorithm for this problem that improves the dependence on ϵ\epsilonϵ and on the relaxation time τ\tauτ of the underlying Markov chains quadratically. Its quantum sampling step rests on a theorem of Wocjan and Abeyesinghe (Phys. Rev. A 78, 042336, 2008): a sequence of coherent quantum sample states can be prepared efficiently if consecutive states overlap by at least a constant. This mission formalizes the paper's own link between the two: a Chebyshev cooling schedule produces exactly such overlaps.

Setting

Let Ω\OmegaΩ be a finite set of configurations and H:Ω→{0,1,…,n}H:\Omega\to\{0,1,\dots,n\}H:Ω→{0,1,…,n} an integer-valued Hamiltonian. Inverse temperatures range over [0,∞][0,\infty][0,∞]. The partition function is

Z(β)=∑x∈Ωe−βH(x),Z(\beta)=\sum_{x\in\Omega}e^{-\beta H(x)},Z(β)=x∈Ω∑​e−βH(x),

with the convention e−∞⋅h=1e^{-\infty\cdot h}=1e−∞⋅h=1 if h=0h=0h=0 and 000 otherwise, so that Z(0)=∣Ω∣Z(0)=|\Omega|Z(0)=∣Ω∣ and Z(∞)Z(\infty)Z(∞) counts the configurations with H(x)=0H(x)=0H(x)=0.

A cooling schedule is a sequence 0=β0<β1<⋯<βℓ=∞0=\beta_0<\beta_1<\dots<\beta_\ell=\infty0=β0​<β1​<⋯<βℓ​=∞. Along it, the Gibbs distributions are πi(x)=e−βiH(x)/Z(βi)\pi_i(x)=e^{-\beta_iH(x)}/Z(\beta_i)πi​(x)=e−βi​H(x)/Z(βi​), the ratios are αi=Z(βi+1)/Z(βi)\alpha_i=Z(\beta_{i+1})/Z(\beta_i)αi​=Z(βi+1​)/Z(βi​), and the estimators are the random variables Yi(x)=e−(βi+1−βi)H(x)Y_i(x)=e^{-(\beta_{i+1}-\beta_i)H(x)}Yi​(x)=e−(βi+1​−βi​)H(x), whose mean under πi\pi_iπi​ is αi\alpha_iαi​.

Definition 1 (Chebyshev cooling schedule). The schedule is a BBB-Chebyshev cooling schedule for ZZZ if for every i=0,…,ℓ−1i=0,\dots,\ell-1i=0,…,ℓ−1

Z(2βi+1−βi) Z(βi)Z(βi+1)2≤B.\frac{Z(2\beta_{i+1}-\beta_i)\,Z(\beta_i)}{Z(\beta_{i+1})^2}\le B.Z(βi+1​)2Z(2βi+1​−βi​)Z(βi​)​≤B.

The chi-squared divergence of ν\nuν from π\piπ is χ2(ν,π)=∑xπ(x)(ν(x)/π(x)−1)2\chi^2(\nu,\pi)=\sum_x\pi(x)\big(\nu(x)/\pi(x)-1\big)^2χ2(ν,π)=∑x​π(x)(ν(x)/π(x)−1)2, and the quantum sample of a distribution π\piπ is the unit vector ∣π⟩=∑x∈Ωπ(x) ∣x⟩|\pi\rangle=\sum_{x\in\Omega}\sqrt{\pi(x)}\,|x\rangle∣π⟩=∑x∈Ω​π(x)​∣x⟩ of ℓ2(Ω;C)\ell^2(\Omega;\mathbb C)ℓ2(Ω;C). In Lean these are Z, gibbs, alpha, Y, IsCoolingSchedule, IsChebyshevSchedule, chiSq and qsample in the namespace QuantumMC.Cooling.

Formalization targets

Goal: overlap of consecutive quantum samples

For every BBB-Chebyshev cooling schedule and every i∈{0,…,ℓ−1}i\in\{0,\dots,\ell-1\}i∈{0,…,ℓ−1},

∣⟨πi∣πi+1⟩∣2≥1B.|\langle\pi_i|\pi_{i+1}\rangle|^2\ge\frac1B.∣⟨πi​∣πi+1​⟩∣2≥B1​.

The statement fixes no value of BBB and no length ℓ\ellℓ; it is the shape in which the paper feeds the schedule into the quantum sampling theorem, with overlap parameter p=1/Bp=1/Bp=1/B.

Milestones

  1. The second form of the divergence: χ2(ν,π)=∑xν(x)2/π(x)−1\chi^2(\nu,\pi)=\sum_x\nu(x)^2/\pi(x)-1χ2(ν,π)=∑x​ν(x)2/π(x)−1 for probability vectors with π>0\pi>0π>0.
  2. Display (1): χ2(πi+1,πi)=Z(βi)Z(2βi+1−βi)/Z(βi+1)2−1\chi^2(\pi_{i+1},\pi_i)=Z(\beta_i)Z(2\beta_{i+1}-\beta_i)/Z(\beta_{i+1})^2-1χ2(πi+1​,πi​)=Z(βi​)Z(2βi+1​−βi​)/Z(βi+1​)2−1, including the last step βi+1=∞\beta_{i+1}=\inftyβi+1​=∞.
  3. Along a BBB-Chebyshev schedule, χ2(πi+1,πi)≤B−1\chi^2(\pi_{i+1},\pi_i)\le B-1χ2(πi+1​,πi​)≤B−1 for all iii.
  4. For distributions ν\nuν and π>0\pi>0π>0: 1/χ2(ν,π)+1≤∑xν(x)π(x)/ν(x)=⟨ν∣π⟩1/\sqrt{\chi^2(\nu,\pi)+1}\le\sum_x\nu(x)\sqrt{\pi(x)/\nu(x)}=\langle\nu|\pi\rangle1/χ2(ν,π)+1​≤∑x​ν(x)π(x)/ν(x)​=⟨ν∣π⟩.

Companion statements

The classical facts of §3–3.1 that motivate Definition 1: Eπi[Yi]=αi\mathbb E_{\pi_i}[Y_i]=\alpha_iEπi​​[Yi​]=αi​; E[Yi2]/E[Yi]2=Z(2βi+1−βi)Z(βi)/Z(βi+1)2\mathbb E[Y_i^2]/\mathbb E[Y_i]^2=Z(2\beta_{i+1}-\beta_i)Z(\beta_i)/Z(\beta_{i+1})^2E[Yi2​]/E[Yi​]2=Z(2βi+1​−βi​)Z(βi​)/Z(βi+1​)2; the telescoping product Z(βℓ)=Z(β0)∏iαiZ(\beta_\ell)=Z(\beta_0)\prod_i\alpha_iZ(βℓ​)=Z(β0​)∏i​αi​ with Z(β0)=∣Ω∣Z(\beta_0)=|\Omega|Z(β0​)=∣Ω∣; Var⁡(Yi)/E[Yi]2≤B\operatorname{Var}(Y_i)/\mathbb E[Y_i]^2\le BVar(Yi​)/E[Yi​]2≤B; and the accuracy claim that ratio estimates within relative error ϵ/(2ℓ)\epsilon/(2\ell)ϵ/(2ℓ), each failing with probability at most 1/(4ℓ)1/(4\ell)1/(4ℓ), give ∣Z~−Z(∞)∣≤ϵZ(∞)|\widetilde Z-Z(\infty)|\le\epsilon Z(\infty)∣Z−Z(∞)∣≤ϵZ(∞) with probability at least 3/43/43/4 for ϵ<1\epsilon<1ϵ<1.

Significance

The result. The overlap bound is the hypothesis of the Wocjan–Abeyesinghe theorem (Theorem 9 of the paper) and is used in the proof of the paper's partition-function theorem (Theorem 11). It explains why a cooling schedule built for a classical estimator, with no reference to quantum states, is also good enough for quantum annealing-style state preparation. The paper remarks that, unlike the classical analysis of Štefankovič, Vempala and Vigoda, which needs the reverse divergence χ2(πi,πi+1)\chi^2(\pi_i,\pi_{i+1})χ2(πi​,πi+1​) and a reversed schedule, the overlap is symmetric in iii and i+1i+1i+1, so no reversal is needed.

Formalizing it. The result is proved on paper; nothing in it has been machine-checked. A formal development pins down the treatment of the endpoint βℓ=∞\beta_\ell=\inftyβℓ​=∞, where πℓ\pi_\ellπℓ​ is supported on the ground states and is no longer strictly positive, and records exactly which positivity conditions the divergence identities require. The definitions of Gibbs distributions, cooling schedules and χ2\chi^2χ2 on a finite space are reusable for other analyses of simulated annealing and of partition-function estimation.

Difficulty

The algebra at finite temperatures is a direct computation. The step that needs care is the last one, i=ℓ−1i=\ell-1i=ℓ−1: there βi+1=∞\beta_{i+1}=\inftyβi+1​=∞, the weights e−∞⋅H(x)e^{-\infty\cdot H(x)}e−∞⋅H(x) are indicator values, 2βi+1−βi2\beta_{i+1}-\beta_i2βi+1​−βi​ is again ∞\infty∞, and the divergence identity must hold with πi+1\pi_{i+1}πi+1​ vanishing on every configuration of positive energy. A formalization that replaces ∞\infty∞ by a large finite inverse temperature, or that requires both distributions to be strictly positive, does not cover this step. The second point is the passage from a bound on the divergence to a bound on an inner product of quantum states, which must handle the configurations where ν(x)=0\nu(x)=0ν(x)=0.

Formalization scope

Inverse temperatures are elements of [0,∞][0,\infty][0,∞] (ℝ≥0∞); the Boltzmann weight branches on β=∞\beta=\inftyβ=∞. The differences βi+1−βi\beta_{i+1}-\beta_iβi+1​−βi​ and 2βi+1−βi2\beta_{i+1}-\beta_i2βi+1​−βi​ are truncated subtractions in [0,∞][0,\infty][0,∞], exact on a cooling schedule. A schedule is a map N→[0,∞]\mathbb N\to[0,\infty]N→[0,∞] of which only β0,…,βℓ\beta_0,\dots,\beta_\ellβ0​,…,βℓ​ matter, and "for all iii" ranges over i=0,…,ℓ−1i=0,\dots,\ell-1i=0,…,ℓ−1. HHH takes values in N\mathbb NN with H≤nH\le nH≤n. Quantum samples are vectors of EuclideanSpace ℂ Ω with real amplitudes, and ∣⟨⋅∣⋅⟩∣2|\langle\cdot|\cdot\rangle|^2∣⟨⋅∣⋅⟩∣2 is the squared norm of the complex inner product.

Added hypotheses, all disclosed in the statements: some configuration has H(x)=0H(x)=0H(x)=0, so that Z(∞)>0Z(\infty)>0Z(∞)>0 (without it πℓ\pi_\ellπℓ​ and the last ratio of Definition 1 are divisions by zero, which Lean evaluates to 000); the general divergence statements assume π(x)>0\pi(x)>0π(x)>0, which the paper's displays use implicitly by dividing by π(x)\pi(x)π(x). No hypothesis is placed on BBB. In the accuracy companion, the per-ratio guarantee is stated as a bound on the failure probability; neither measurability nor independence is assumed.

A goal that assumes χ2(πi+1,πi)≤B−1\chi^2(\pi_{i+1},\pi_i)\le B-1χ2(πi+1​,πi​)≤B−1, assumes B>0B>0B>0 in a way that excludes the endpoint, or drops the step βℓ=∞\beta_\ell=\inftyβℓ​=∞ would be a different, weaker statement; the goal's only hypothesis on the schedule is Definition 1.

Not formalized: the quantum walk algorithms, the Wocjan–Abeyesinghe theorems (Theorems 9 and 10), the sample and step counts of Theorems 8 and 11 (stated in O(⋅)O(\cdot)O(⋅) notation), and the existence of short Chebyshev cooling schedules.

Contributions welcome: proofs of the milestones and of the companions, and lemmas on Gibbs distributions at β=∞\beta=\inftyβ=∞ that the companions share.

Selected references

  • A. Montanaro, Quantum speedup of Monte Carlo methods, Proc. R. Soc. A 471:20150301, 2015; cited here as the preprint arXiv:1504.06987v3, 2017. https://arxiv.org/abs/1504.06987
  • D. Štefankovič, S. Vempala, E. Vigoda, Adaptive simulated annealing: a new connection between sampling and counting, J. ACM 56(3):18, 2009. https://arxiv.org/abs/cs/0612058
  • P. Wocjan, A. Abeyesinghe, Speedup via quantum sampling, Phys. Rev. A 78:042336, 2008. https://arxiv.org/abs/0804.4259
  • P. Wocjan, C.-F. Chang, D. Nagaj, A. Abeyesinghe, Quantum algorithm for approximating partition functions, Phys. Rev. A 80:022340, 2009. https://arxiv.org/abs/0811.0596
  • M. Szegedy, Quantum speed-up of Markov chain based algorithms, FOCS 2004, 32–41. https://arxiv.org/abs/quant-ph/0401053
6 thms2 active usersReviewed
🏆Completed
Captain: Lucas

Superconducting Quantum Computing: Universality of Single-Qubit Gates and iSWAPTextbook

Motivation

Superconducting circuits built from capacitors, inductors and Josephson junctions are the dominant platform for current quantum processors (Google, IBM, Rigetti, IQM and others). The source article — the Wikipedia entry Superconducting quantum computing — states two facts about the gate model on this hardware that this mission makes precise:

  1. two-qubit gates such as iSWAP "can be achieved through coherent exchange" between two coupled qubits, whose interaction is described by the coupling Hamiltonian H^=ℏJ2(σ1xσ2x+σ1yσ2y)\hat H=\frac{\hbar J}{2}(\sigma_1^x\sigma_2^x+\sigma_1^y\sigma_2^y)H^=2ℏJ​(σ1x​σ2x​+σ1y​σ2y​) (section Transmon);
  2. "single-qubit gates combined with two-qubit gates form a universal gate set" (section Criteria for a viable quantum processor), and, for instance, a three-qubit Toffoli gate "is implemented using a combination of single and two-qubit gates" (section Quantum gates).

Statement 2 is a mathematical theorem, not an engineering claim: it says that every unitary operation on nnn qubits can be written exactly as a finite product of the hardware's elementary gates. Its classical form with CNOT as the two-qubit gate is due to Barenco et al. (1995); the iSWAP version follows because CNOT can be built from two iSWAPs and single-qubit gates (Schuch–Siewert 2003).

Timeline.

  • 1995 — DiVincenzo shows two-qubit gates are universal; Barenco et al. prove that single-qubit gates and CNOT generate all nnn-qubit unitaries exactly.
  • 2003 — Schuch and Siewert analyse the XY (iSWAP-type) interaction and give a CNOT construction using two iSWAP gates.
  • 2007 — the transmon is introduced; capacitively coupled transmons realise the XY interaction.
  • 2012 — a Toffoli gate is demonstrated on three superconducting transmon qubits.

Setting

An nnn-qubit register has computational basis states ∣x⟩|x\rangle∣x⟩ labelled by bit strings x∈{0,1}nx\in\{0,1\}^nx∈{0,1}n; its operations form the unitary group U(2n)U(2^n)U(2n). For a 2×22\times22×2 unitary UUU and a qubit kkk, the single-qubit gate U(k)U^{(k)}U(k) applies UUU to qubit kkk and leaves the others unchanged. For a 4×44\times44×4 matrix GGG and an ordered pair of distinct qubits (i,j)(i,j)(i,j), G(i,j)G^{(i,j)}G(i,j) applies GGG to qubits i,ji,ji,j (qubit iii is the first tensor factor). Write

Sn={U(k):U∈U(2), k a qubit},Gn(G)={G(i,j):i≠j}.\mathcal S_n=\{U^{(k)} : U\in U(2),\ k\text{ a qubit}\},\qquad \mathcal G_n(G)=\{G^{(i,j)} : i\neq j\}.Sn​={U(k):U∈U(2), k a qubit},Gn​(G)={G(i,j):i=j}.

The gates used are

iSWAP=(100000i00i000001),CNOT=(1000010000010010)\mathrm{iSWAP}=\begin{pmatrix}1&0&0&0\\0&0&i&0\\0&i&0&0\\0&0&0&1\end{pmatrix},\qquad \mathrm{CNOT}=\begin{pmatrix}1&0&0&0\\0&1&0&0\\0&0&0&1\\0&0&1&0\end{pmatrix}iSWAP=​1000​00i0​0i00​0001​​,CNOT=​1000​0100​0001​0010​​

in the basis ∣00⟩,∣01⟩,∣10⟩,∣11⟩|00\rangle,|01\rangle,|10\rangle,|11\rangle∣00⟩,∣01⟩,∣10⟩,∣11⟩, and the Toffoli gate ∣a,b,c⟩↦∣a,b,c⊕ab⟩|a,b,c\rangle\mapsto|a,b,c\oplus ab\rangle∣a,b,c⟩↦∣a,b,c⊕ab⟩. Time evolution under a Hamiltonian HHH is U(t)=exp⁡(−itH/ℏ)U(t)=\exp(-itH/\hbar)U(t)=exp(−itH/ℏ), and the coupling Hamiltonian is H=ℏJ2(σx⊗σx+σy⊗σy)H=\frac{\hbar J}{2}(\sigma^x\otimes\sigma^x+\sigma^y\otimes\sigma^y)H=2ℏJ​(σx⊗σx+σy⊗σy). A two-level unitary acts as the identity outside the span of two basis vectors.

Formalization targets

Goal — universality of single-qubit gates and iSWAP

For every n≥1n\ge1n≥1,

⟨ Sn∪Gn(iSWAP) ⟩=U(2n).\big\langle\,\mathcal S_n\cup\mathcal G_n(\mathrm{iSWAP})\,\big\rangle=U(2^n).⟨Sn​∪Gn​(iSWAP)⟩=U(2n).

Milestones

  1. Coherent exchange: exp⁡ ⁣(−itℏH)=iSWAP†\exp\!\big(-\tfrac{it}{\hbar}H\big)=\mathrm{iSWAP}^\daggerexp(−ℏit​H)=iSWAP† at t=π/(2J)t=\pi/(2J)t=π/(2J), for ℏ,J≠0\hbar,J\ne0ℏ,J=0.
  2. CNOT=(A⊗B) iSWAP (C⊗D) iSWAP (E⊗F)\mathrm{CNOT}=(A\otimes B)\,\mathrm{iSWAP}\,(C\otimes D)\,\mathrm{iSWAP}\,(E\otimes F)CNOT=(A⊗B)iSWAP(C⊗D)iSWAP(E⊗F) for some A,…,F∈U(2)A,\dots,F\in U(2)A,…,F∈U(2).
  3. Two-level unitaries generate U(Cι)U(\mathbb C^\iota)U(Cι) for every finite ι\iotaι.
  4. ⟨ Sn∪Gn(CNOT) ⟩=U(2n)\big\langle\,\mathcal S_n\cup\mathcal G_n(\mathrm{CNOT})\,\big\rangle=U(2^n)⟨Sn​∪Gn​(CNOT)⟩=U(2n) for n≥1n\ge1n≥1.
  5. Toffoli∈⟨ S3∪G3(CNOT) ⟩\mathrm{Toffoli}\in\big\langle\,\mathcal S_3\cup\mathcal G_3(\mathrm{CNOT})\,\big\rangleToffoli∈⟨S3​∪G3​(CNOT)⟩.

Significance

The goal theorem is the formal justification for compiling arbitrary quantum algorithms to superconducting hardware whose native entangling interaction is of XY/iSWAP type: any target unitary, however large, has an exact decomposition into the hardware's elementary operations. Milestone 1 connects the abstract gate to the physical Hamiltonian; milestones 3–4 are the textbook universality theorem in the CNOT form, reusable for any other two-qubit gate that can synthesise CNOT; milestone 5 is the Toffoli construction mentioned in the source.

All results are classical and proved in the literature. To the best of the drafter's knowledge they are not yet available as machine-checked statements in Mathlib in this form; the mission's contribution is a complete formal development.

Difficulty

The naive route — "decompose into two-level unitaries, then implement each with gates" — hides real work: a two-level unitary on basis states ∣x⟩,∣y⟩|x\rangle,|y\rangle∣x⟩,∣y⟩ with x,yx,yx,y differing in many bits must be conjugated by a Gray-code sequence of controlled-NOT style gates into one acting on a single qubit, controlled on all others, and multiply-controlled single-qubit gates must then be reduced to single-qubit gates and CNOTs. Keeping indices, tensor embeddings and controls consistent over nnn qubits is the main formal burden. Milestone 1 requires computing a matrix exponential exactly, which in Lean means handling NormedSpace.exp on a non-diagonal matrix.

Formalization scope

  • Basis states of nnn qubits are functions Fin n → Fin 2; two-qubit operators are indexed by Fin 2 × Fin 2 with the Kronecker product ⊗ₖ, first factor = first qubit.
  • Universality is exact: the subgroup generated (Subgroup.closure) inside Matrix.unitaryGroup equals ⊤; no approximation or topological closure is involved, which is why the full continuous family U(2)U(2)U(2) of single-qubit gates is included.
  • n=0n=0n=0 is excluded: with no qubits there are no generators, while U(1)U(1)U(1) is nontrivial.
  • The gate sets contain only the stated gates; a formalization that adds arbitrary two-qubit unitaries to the generators would make the goal trivially true and is not acceptable.
  • Needed infrastructure: tensor embeddings of gates into nnn-qubit registers, controlled gates, Gray-code arguments, and exponentials of 2×22\times22×2 / 4×44\times44×4 matrices. Lemmas about embeddings (onQubit, onPair) and multiply-controlled gates are reusable for any quantum-circuit mission.

Selected references

  • Wikipedia, Superconducting quantum computing (sections Quantum gates, Criteria for a viable quantum processor, Transmon). https://en.wikipedia.org/wiki/Superconducting_quantum_computing
  • A. Barenco, C. H. Bennett, R. Cleve, D. P. DiVincenzo, N. Margolus, P. Shor, T. Sleator, J. Smolin, H. Weinfurter, Elementary gates for quantum computation, Phys. Rev. A 52, 3457 (1995). https://doi.org/10.1103/PhysRevA.52.3457
  • N. Schuch, J. Siewert, Natural two-qubit gate for quantum computation using the XY interaction, Phys. Rev. A 67, 032301 (2003). https://doi.org/10.1103/PhysRevA.67.032301
  • M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press (2000), §4.5.
7 thms2 active usersReviewed
🏆Completed
Captain: Lucas

Grover's Algorithm (Wikipedia): Quantum Search with Success Probability 1 − 1/N in ⌈π√N/4⌉ IterationsTextbook

Motivation

Grover's algorithm is a quantum algorithm for unstructured search: given black-box access to a function f ⁣:{0,1,…,N−1}→{0,1}f\colon\{0,1,\dots,N-1\}\to\{0,1\}f:{0,1,…,N−1}→{0,1} that takes the value 111 at exactly one input ω\omegaω, it finds ω\omegaω with high probability using O(N)O(\sqrt N)O(N​) evaluations of fff. It was devised by Lov Grover in 1996 (Grover, STOC 1996). Classically the same task needs Θ(N)\Theta(N)Θ(N) evaluations, since there is no better approach than trying the inputs one after the other. Bennett, Bernstein, Brassard and Vazirani showed that every quantum algorithm needs Ω(N)\Omega(\sqrt N)Ω(N​) evaluations (BBBV, SIAM J. Comput. 1997), so the quadratic speedup is optimal.

Because many problems contain exhaustive search as a subroutine, the algorithm and its generalization, amplitude amplification, speed up a broad class of algorithms: brute-force attacks on symmetric-key cryptography (a 128-bit key in roughly 2642^{64}264 iterations), algorithms for NP-complete problems such as 3SAT, and black-box problems such as element distinctness and the collision problem.

This mission follows the presentation of the algorithm and of its analysis in the Wikipedia article Grover's algorithm (revision 1373498442), which gives two analyses of the same algorithm, a geometric proof and an algebraic proof, following Nielsen–Chuang 2010, Chapter 6.

Setting

Fix N≥1N \ge 1N≥1. The state space is H=CN\mathcal H = \mathbb C^NH=CN with standard basis ∣0⟩,…,∣N−1⟩|0\rangle,\dots,|N-1\rangle∣0⟩,…,∣N−1⟩ and inner product ⟨u∣v⟩=∑xux‾vx\langle u|v\rangle = \sum_x \overline{u_x}v_x⟨u∣v⟩=∑x​ux​​vx​. Let f ⁣:{0,…,N−1}→{0,1}f\colon\{0,\dots,N-1\}\to\{0,1\}f:{0,…,N−1}→{0,1} have exactly one index ω\omegaω with f(ω)=1f(\omega) = 1f(ω)=1.

  • The oracle is the unitary Uω∣x⟩=(−1)f(x)∣x⟩U_\omega|x\rangle = (-1)^{f(x)}|x\rangleUω​∣x⟩=(−1)f(x)∣x⟩. The standard oracle acts on H⊗C2\mathcal H\otimes\mathbb C^2H⊗C2 (one extra ancillary qubit) by Uf∣x⟩∣y⟩=∣x⟩∣y⊕f(x)⟩U_f|x\rangle|y\rangle = |x\rangle|y\oplus f(x)\rangleUf​∣x⟩∣y⟩=∣x⟩∣y⊕f(x)⟩.
  • The uniform superposition is ∣s⟩=1N∑x=0N−1∣x⟩|s\rangle = \frac{1}{\sqrt N}\sum_{x=0}^{N-1}|x\rangle∣s⟩=N​1​∑x=0N−1​∣x⟩, and the Grover diffusion operator is Us=2∣s⟩⟨s∣−IU_s = 2|s\rangle\langle s| - IUs​=2∣s⟩⟨s∣−I.
  • A Grover iteration applies UωU_\omegaUω​ and then UsU_sUs​, i.e. the operator UsUωU_sU_\omegaUs​Uω​.

The algorithm. (1) Initialize the system to ∣s⟩|s\rangle∣s⟩. (2) Perform the Grover iteration rrr times. (3) Measure the resulting state (UsUω)r∣s⟩(U_sU_\omega)^r|s\rangle(Us​Uω​)r∣s⟩ in the computational basis; by the Born rule the outcome is ω\omegaω with probability ∣⟨ω∣(UsUω)r∣s⟩∣2|\langle\omega|(U_sU_\omega)^r|s\rangle|^2∣⟨ω∣(Us​Uω​)r∣s⟩∣2.

Two further objects appear in the analysis: the ket ∣s′⟩=1N−1∑x≠ω∣x⟩|s'\rangle = \frac{1}{\sqrt{N-1}}\sum_{x\ne\omega}|x\rangle∣s′⟩=N−1​1​∑x=ω​∣x⟩ perpendicular to ∣ω⟩|\omega\rangle∣ω⟩, and the angles θ=2arcsin⁡1N\theta = 2\arcsin\frac{1}{\sqrt N}θ=2arcsinN​1​ (geometric proof) and t=arcsin⁡1N=θ/2t = \arcsin\frac{1}{\sqrt N} = \theta/2t=arcsinN​1​=θ/2 (algebraic proof).

Formalization targets

Goal — success probability 1−1/N1 - 1/N1−1/N within ⌈π4N⌉\lceil\frac\pi4\sqrt N\rceil⌈4π​N​⌉ iterations

∃ r≤⌈π4N⌉:∣⟨ω∣(UsUω)r∣s⟩∣2≥1−1N.\exists\, r \le \left\lceil\frac{\pi}{4}\sqrt N\right\rceil:\qquad \bigl|\langle\omega|(U_sU_\omega)^r|s\rangle\bigr|^2 \ge 1 - \frac1N .∃r≤⌈4π​N​⌉:​⟨ω∣(Us​Uω​)r∣s⟩​2≥1−N1​.

This combines the article's headline claims: the algorithm outputs ω\omegaω with probability at least 1/21/21/2 (for N≥2N \ge 2N≥2) using O(N)O(\sqrt N)O(N​) applications of UωU_\omegaUω​, the success probability approaches 111 for N≫1N \gg 1N≫1, and the number of iterations satisfies r(N)≤⌈π4N⌉r(N) \le \lceil\frac\pi4\sqrt N\rceilr(N)≤⌈4π​N​⌉. The goal does not fix rrr.

Milestones

Listed in the article's order.

  1. Alternative oracle definition: Uf(∣x⟩⊗∣−⟩)=(Uω∣x⟩)⊗∣−⟩U_f\bigl(|x\rangle\otimes|-\rangle\bigr) = (U_\omega|x\rangle)\otimes|-\rangleUf​(∣x⟩⊗∣−⟩)=(Uω​∣x⟩)⊗∣−⟩ with ∣−⟩=12(∣0⟩−∣1⟩)|-\rangle = \frac{1}{\sqrt2}(|0\rangle - |1\rangle)∣−⟩=2​1​(∣0⟩−∣1⟩).
  2. Unitarity: UωU_\omegaUω​ and UsU_sUs​ are unitary.
  3. Iteration count: r(N)=⌊π/(4t)⌋≤⌈π4N⌉r(N) = \lfloor\pi/(4t)\rfloor \le \lceil\frac\pi4\sqrt N\rceilr(N)=⌊π/(4t)⌋≤⌈4π​N​⌉.
  4. Geometric proof: on span{∣s′⟩,∣ω⟩}\mathrm{span}\{|s'\rangle,|\omega\rangle\}span{∣s′⟩,∣ω⟩}, UωU_\omegaUω​ is the reflection across ∣s′⟩|s'\rangle∣s′⟩; Uω=I−2∣ω⟩⟨ω∣U_\omega = I - 2|\omega\rangle\langle\omega|Uω​=I−2∣ω⟩⟨ω∣ (Householder form); UsU_sUs​ is the reflection through ∣s⟩|s\rangle∣s⟩; UsUωU_sU_\omegaUs​Uω​ rotates the plane by θ\thetaθ; ⟨s′∣s⟩=(N−1)/N\langle s'|s\rangle = \sqrt{(N-1)/N}⟨s′∣s⟩=(N−1)/N​; and the exact success probability is
∣⟨ω∣(UsUω)r∣s⟩∣2=sin⁡2 ⁣((r+12)θ).\bigl|\langle\omega|(U_sU_\omega)^r|s\rangle\bigr|^2 = \sin^2\!\bigl((r+\tfrac12)\theta\bigr).​⟨ω∣(Us​Uω​)r∣s⟩​2=sin2((r+21​)θ).
  1. Algebraic proof: the action of UsU_sUs​ and UωU_\omegaUω​ on span{∣ω⟩,∣s⟩}\mathrm{span}\{|\omega\rangle,|s\rangle\}span{∣ω⟩,∣s⟩} by explicit 2×22\times 22×2 matrices; the Jordan form UsUω=M diag(e2it,e−2it) M−1U_sU_\omega = M\,\mathrm{diag}(e^{2it},e^{-2it})\,M^{-1}Us​Uω​=Mdiag(e2it,e−2it)M−1 and its rrr-th power; the success probability sin⁡2((2r+1)t)\sin^2((2r+1)t)sin2((2r+1)t) computed in coordinates; and, stopping at r=⌊π/4t⌋r = \lfloor\pi/4t\rfloorr=⌊π/4t⌋, error at most 1/N1/N1/N.

Significance

The result. The goal says that unstructured search over NNN items costs O(N)O(\sqrt N)O(N​) oracle queries on a quantum computer, with failure probability at most 1/N1/N1/N for a single run, and hence that the expected number of queries until ω\omegaω is found is still O(N)O(\sqrt N)O(N​). It is the quantitative content behind the use of Grover's algorithm as a subroutine and behind its role in post-quantum key-length recommendations.

Formalizing it. The result is classical and fully proved on paper. The work here is to formalize the article's two proofs: the reflection/rotation picture and the algebraic diagonalization, together with the equivalence of the two oracle models and the explicit bound ⌈π4N⌉\lceil\frac\pi4\sqrt N\rceil⌈4π​N​⌉ stated in the article. A separate platform mission, Grover's Algorithm, already contains machine-checked proofs of the amplitude formula sin⁡((2k+1)θ)\sin((2k+1)\theta)sin((2k+1)θ) and of a success guarantee with iteration bound ⌈π/(4arcsin⁡(1/N))⌉\lceil\pi/(4\arcsin(1/\sqrt N))\rceil⌈π/(4arcsin(1/N​))⌉, in a model where the oracle is given by the marked index. This mission differs in that it derives the oracle from the function fff, includes the ancilla-based standard oracle, the Householder and reflection statements, the algebraic Jordan-form analysis, and the bound ⌈π4N⌉\lceil\frac\pi4\sqrt N\rceil⌈4π​N​⌉ in terms of N\sqrt NN​. The lower bound of Bennett–Bernstein–Brassard–Vazirani (optimality) is out of scope.

Difficulty

None of the steps is deep; the difficulty lies in the bookkeeping. The plane span{∣ω⟩,∣s⟩}\mathrm{span}\{|\omega\rangle, |s\rangle\}span{∣ω⟩,∣s⟩} is not spanned by an orthonormal pair, so the matrices of the algebraic proof are in a non-orthogonal spanning set, and the probability formula must be transported from that 2×22\times22×2 picture back to the NNN-dimensional state. Passing from the exact formula sin⁡2((r+12)θ)\sin^2((r+\frac12)\theta)sin2((r+21​)θ) to the bound 1−1/N1 - 1/N1−1/N requires choosing an integer rrr, controlling (2r+1)t(2r+1)t(2r+1)t to within ttt of π/2\pi/2π/2, and comparing arcsin⁡(1/N)\arcsin(1/\sqrt N)arcsin(1/N​) with 1/N1/\sqrt N1/N​ to reach ⌈π4N⌉\lceil\frac\pi4\sqrt N\rceil⌈4π​N​⌉. Edge cases matter: N=1N = 1N=1 (where t=π/2t = \pi/2t=π/2, ∣s′⟩|s'\rangle∣s′⟩ is undefined and MMM is singular) and the integer rounding of r=π/4tr = \pi/4tr=π/4t.

Formalization scope

All statements import one definitions file, GroverWiki_Defs, and live in the namespace GroverWiki.

  • States are vectors Fin N → ℂ; operators are matrices Matrix (Fin N) (Fin N) ℂ acting by mulVec; the two-register space is indexed by Fin N × Fin 2. Bit values are Fin 2, so ⊕ is addition in Fin 2.
  • The oracle is built from f : Fin N → Fin 2; uniqueness of the marked item is the hypothesis ∀ x, f x = 1 ↔ x = ω.
  • The measurement probability of outcome x is ‖ψ x‖ ^ 2, applied to the state (U_s U_ω)^r |s⟩.
  • Scalars such as 1/N1/\sqrt N1/N​ are real numbers cast to C\mathbb CC. For N=1N = 1N=1, Lean's conventions give ∣s′⟩=0|s'\rangle = 0∣s′⟩=0; statements about ∣s′⟩|s'\rangle∣s′⟩ or M−1M^{-1}M−1 assume N≥2N \ge 2N≥2, as the article implicitly does.
  • The article's non-integer r=π/4tr = \pi/4tr=π/4t is formalized as ⌊π/4t⌋\lfloor \pi/4t\rfloor⌊π/4t⌋, and "error O(1/N)O(1/N)O(1/N)" as the explicit bound 1/N1/N1/N.

The goal is not trivialized by the model: the state is the actual output of the algorithm, the iteration count is bounded explicitly, and the probability bound is the Born-rule probability of the marked index. Contributions of reusable lemmas on reflections and rotations in two-dimensional subspaces of CN\mathbb C^NCN are welcome.

Selected references

  • L. K. Grover, A fast quantum mechanical algorithm for database search, Proc. 28th ACM STOC, 1996. https://doi.org/10.1145/237814.237866 (arXiv: https://arxiv.org/abs/quant-ph/9605043)
  • C. H. Bennett, E. Bernstein, G. Brassard, U. Vazirani, Strengths and weaknesses of quantum computing, SIAM J. Comput. 26(5), 1997. https://doi.org/10.1137/s0097539796300933
  • M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010, pp. 276–305. https://doi.org/10.1017/CBO9780511976667
  • Wikipedia, Grover's algorithm, revision 1373498442. https://en.wikipedia.org/w/index.php?title=Grover%27s_algorithm&oldid=1373498442
16 thms2 active usersReviewed
🏆Completed
Number Theory·Captain: Lucas

Shor's Algorithm (Wikipedia): Quantum Order Finding and the Reduction of FactoringTextbook

Motivation

Shor's algorithm is a quantum algorithm that finds a nontrivial factor of an integer NNN in time polynomial in log⁡N\log NlogN, and its variants compute discrete logarithms in finite cyclic groups. It was developed by Peter Shor in 1994 (Shor, FOCS 1994; Shor, SIAM J. Comput. 1997). No classical polynomial-time factoring algorithm is known; the best classical method, the general number field sieve, runs in sub-exponential time. Because the security of RSA and of finite-field and elliptic-curve Diffie–Hellman rests on the hardness of factoring and of discrete logarithms, Shor's algorithm is the main reason these schemes are considered breakable by a large fault-tolerant quantum computer, and the main motivation for post-quantum cryptography.

This mission follows the presentation of the algorithm in the Wikipedia article Shor's algorithm (revision 1378862216), which describes the quantum part through quantum phase estimation, an approach due to Kitaev (Kitaev 1995) and standard in textbooks (Nielsen–Chuang 2010).

Setting

Let 1<a<N1 < a < N1<a<N be integers with gcd⁡(a,N)=1\gcd(a, N) = 1gcd(a,N)=1. The order r=ord⁡N(a)r = \operatorname{ord}_N(a)r=ordN​(a) is the smallest positive integer with ar≡1(modN)a^r \equiv 1 \pmod Nar≡1(modN).

Classical reduction. If rrr is even and N∤ar/2+1N \nmid a^{r/2}+1N∤ar/2+1, then gcd⁡(N,ar/2−1)\gcd(N, a^{r/2}-1)gcd(N,ar/2−1) is a nontrivial factor of NNN. Factoring therefore reduces to computing orders.

Quantum order finding. Let n=⌈log⁡2N⌉n = \lceil\log_2 N\rceiln=⌈log2​N⌉ and Q=22nQ = 2^{2n}Q=22n. A state of an mmm-qubit register is a vector in C2m\mathbb C^{2^m}C2m with standard basis ∣0⟩,…,∣2m−1⟩|0\rangle, \dots, |2^m-1\rangle∣0⟩,…,∣2m−1⟩. The modular-multiplication gate is the nnn-qubit gate

U∣k⟩=∣ak mod N⟩ (0≤k<N),U∣k⟩=∣k⟩ (N≤k<2n).U|k\rangle = |ak \bmod N\rangle \ (0 \le k < N), \qquad U|k\rangle = |k\rangle \ (N \le k < 2^n).U∣k⟩=∣akmodN⟩ (0≤k<N),U∣k⟩=∣k⟩ (N≤k<2n).

With ωr=e2πi/r\omega_r = e^{2\pi i/r}ωr​=e2πi/r, the states ∣ψj⟩=r−1/2∑k=0r−1ωr−kj∣ak mod N⟩|\psi_j\rangle = r^{-1/2}\sum_{k=0}^{r-1}\omega_r^{-kj}|a^k \bmod N\rangle∣ψj​⟩=r−1/2∑k=0r−1​ωr−kj​∣akmodN⟩ are eigenvectors of UUU with eigenvalues ωrj\omega_r^jωrj​. The order-finding circuit acts on a 2n2n2n-qubit first register and the nnn-qubit second register: Hadamard gates H⊗2nH^{\otimes 2n}H⊗2n on the first register, controlled gates C-U2iC\text{-}U^{2^i}C-U2i for i=0,…,2n−1i = 0, \dots, 2n-1i=0,…,2n−1 (qubit iii of the first register controls U2iU^{2^i}U2i on the second), and the inverse quantum Fourier transform QFT22n−1\mathrm{QFT}^{-1}_{2^{2n}}QFT22n−1​ on the first register. It is applied to ∣0⟩⊗2n∣1⟩|0\rangle^{\otimes 2n}|1\rangle∣0⟩⊗2n∣1⟩ and the first register is measured, producing an outcome k∈{0,…,Q−1}k \in \{0, \dots, Q-1\}k∈{0,…,Q−1} with probability P(k)P(k)P(k). Finally the continued fractions algorithm is run on k/Qk/Qk/Q.

Formalization targets

Goal: one run of the order-finding subroutine

For every j∈{0,…,r−1}j \in \{0, \dots, r-1\}j∈{0,…,r−1},

∑k : ∣k/22n−j/r∣≤2−(2n+1)P(k)  ≥  4π2r,\sum_{k\,:\,|k/2^{2n} - j/r| \le 2^{-(2n+1)}} P(k) \;\ge\; \frac{4}{\pi^2 r},k:∣k/22n−j/r∣≤2−(2n+1)∑​P(k)≥π2r4​,

and for every such kkk some continued fraction convergent of k/22nk/2^{2n}k/22n equals j/rj/rj/r in lowest terms, i.e. has numerator j/gcd⁡(j,r)j/\gcd(j,r)j/gcd(j,r) and denominator r/gcd⁡(j,r)r/\gcd(j,r)r/gcd(j,r). Summed over jjj, a single run yields with probability at least 4/π24/\pi^24/π2 an outcome from which the continued fractions algorithm recovers some j/rj/rj/r in lowest terms.

Milestones

  1. Classical reduction (article section "Classical reduction"): gcd⁡(a,N)≠1\gcd(a,N) \ne 1gcd(a,N)=1 is a nontrivial factor; N∣(ar/2−1)(ar/2+1)N \mid (a^{r/2}-1)(a^{r/2}+1)N∣(ar/2−1)(ar/2+1) for even rrr; N∤ar/2−1N \nmid a^{r/2}-1N∤ar/2−1; and gcd⁡(N,ar/2∓1)\gcd(N, a^{r/2} \mp 1)gcd(N,ar/2∓1) are nontrivial factors when N∤ar/2+1N \nmid a^{r/2}+1N∤ar/2+1.
  2. Spectrum of UUU (section "Quantum phase estimation"): Ur=IU^r = IUr=I; every eigenvalue is some ωrk\omega_r^kωrk​; U∣ψj⟩=ωrj∣ψj⟩U|\psi_j\rangle = \omega_r^j|\psi_j\rangleU∣ψj​⟩=ωrj​∣ψj​⟩; ∑jωrjk=0\sum_{j}\omega_r^{jk} = 0∑j​ωrjk​=0 for 1≤k≤r−11 \le k \le r-11≤k≤r−1; r−1/2∑j∣ψj⟩=∣1⟩r^{-1/2}\sum_j|\psi_j\rangle = |1\rangler−1/2∑j​∣ψj​⟩=∣1⟩.
  3. Phase estimation: on ∣0⟩⊗2n∣ψj⟩|0\rangle^{\otimes 2n}|\psi_j\rangle∣0⟩⊗2n∣ψj​⟩ the circuit outputs ∣ϕj⟩∣ψj⟩|\phi_j\rangle|\psi_j\rangle∣ϕj​⟩∣ψj​⟩ with ∣⟨k∣ϕj⟩∣2≥4/π2|\langle k|\phi_j\rangle|^2 \ge 4/\pi^2∣⟨k∣ϕj​⟩∣2≥4/π2 at every nearest integer kkk to 22nj/r2^{2n}j/r22nj/r; on ∣0⟩⊗2n∣1⟩|0\rangle^{\otimes 2n}|1\rangle∣0⟩⊗2n∣1⟩ each ∣ϕj⟩|\phi_j\rangle∣ϕj​⟩ is found with probability 1/r1/r1/r.
  4. Continued fractions and register size (section "Choosing the size of the first register"): ∣j/r−φ∣<1/(2r2)|j/r - \varphi| < 1/(2r^2)∣j/r−φ∣<1/(2r2) implies φ\varphiφ has j/rj/rj/r in lowest terms as a convergent, and 2−(2n+1)≤1/(2N2)≤1/(2r2)2^{-(2n+1)} \le 1/(2N^2) \le 1/(2r^2)2−(2n+1)≤1/(2N2)≤1/(2r2).
  5. Discrete logarithms (section "Shor's algorithm for discrete logarithms"): f(a,b)=gax−bf(a,b) = g^a x^{-b}f(a,b)=gax−b on Zp×Zp\mathbb Z_p \times \mathbb Z_pZp​×Zp​ is a homomorphism with kernel the multiples of (r,1)(r,1)(r,1).

Significance

The goal is the quantitative statement behind the article's claim that phase estimation "gives as output a random integer of the form jr22n\frac{j}{r}2^{2n}rj​22n" and that a 2n2n2n-qubit first register suffices to recover j/rj/rj/r. Combined with the classical milestones, it is the correctness argument of Shor's factoring algorithm, minus the separate number-theoretic estimate of how often a random aaa has even order with ar/2≢−1a^{r/2} \not\equiv -1ar/2≡−1, which the article does not state.

The results are classical and their proofs are published. The work this mission asks for is a machine-checked proof against an explicit gate-level model of the circuit — Hadamard tensor power, controlled modular-multiplication gates, inverse QFT — rather than against a closed-form output distribution assumed up front. Related missions on the platform formalize Shor's 1997 paper, which analyses the circuit by a direct Fourier-sum computation with q≥N2q \ge N^2q≥N2; this mission follows the phase-estimation route with the article's constants.

Difficulty

The spectral facts about UUU and the classical reduction are short arguments. The main obstacle is the circuit: showing that the product of the 2n2n2n controlled gates C-U2iC\text{-}U^{2^i}C-U2i acts on ∣x⟩∣ψj⟩|x\rangle|\psi_j\rangle∣x⟩∣ψj​⟩ as multiplication by ωrjx\omega_r^{jx}ωrjx​ requires the binary expansion of xxx and the commutation of the controlled gates, and the subsequent inverse QFT must be computed explicitly. The bound 4/π24/\pi^24/π2 requires an estimate of ∣∑x<Qe2πixδ∣\left|\sum_{x<Q} e^{2\pi i x\delta}\right|​∑x<Q​e2πixδ​ for ∣δ∣≤1/(2Q)|\delta| \le 1/(2Q)∣δ∣≤1/(2Q) which is uniform in QQQ; a crude estimate gives a weaker constant. The measurement identity P(k)=1r∑jPj(k)P(k) = \frac1r\sum_j P_j(k)P(k)=r1​∑j​Pj​(k) requires the orthonormality of the ∣ψj⟩|\psi_j\rangle∣ψj​⟩, which uses that a0,…,ar−1a^0, \dots, a^{r-1}a0,…,ar−1 are distinct modulo NNN.

Formalization scope

States are coordinate vectors Fin d → ℂ, gates are complex matrices acting by Matrix.mulVec, two-register operators are Kronecker products on Fin d₁ × Fin d₂, and measurement probabilities are sums of squared moduli. The order is orderOf (a : ZMod N) and nnn is Nat.clog 2 N. Convergents are Mathlib's Real.convergent, the standard continued fraction expansion. The goal is a statement about the specific circuit defined in the mission's definition file, so it cannot be satisfied by choosing a convenient output distribution, and the recovery statement is quantified over a fixed jjj, so the trivial convergent ⌊k/Q⌋=0\lfloor k/Q\rfloor = 0⌊k/Q⌋=0 (which equals 0/r0/r0/r) does not discharge it for j≠0j \ne 0j=0.

Reusable infrastructure welcome from this mission: the action of the Kronecker-product phase estimation circuit on eigenstates, the explicit inverse QFT computation, and the 4/π24/\pi^24/π2 estimate for the Fejér-type kernel.

Selected references

  • P. W. Shor, Algorithms for quantum computation: discrete logarithms and factoring, Proc. 35th FOCS, 1994. https://doi.org/10.1109/sfcs.1994.365700
  • P. W. Shor, Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer, SIAM J. Comput. 26(5), 1997. https://arxiv.org/abs/quant-ph/9508027
  • A. Yu. Kitaev, Quantum measurements and the Abelian stabilizer problem, 1995. https://arxiv.org/abs/quant-ph/9511026
  • M. A. Nielsen, I. L. Chuang, Quantum Computation and Quantum Information, Cambridge University Press, 2010. https://doi.org/10.1017/CBO9780511976667
  • Wikipedia, Shor's algorithm, revision 1378862216. https://en.wikipedia.org/w/index.php?title=Shor%27s_algorithm&oldid=1378862216
16 thms2 active usersReviewed
🏆Completed
Captain: Goku

Lecture Notes on Quantum Algorithms 23: Trace inequality |tr(XYZ)| ≤ ‖X‖_F ‖Y‖ ‖Z‖_FTextbook

Motivation

This mission develops Chapter 23 of Lecture Notes on Quantum Algorithms by Andrew Childs. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let m,n≥0m,n\ge 0m,n≥0 be integers and let X∈Cm×nX\in\mathbb C^{m\times n}X∈Cm×n, Y∈Cn×nY\in\mathbb C^{n\times n}Y∈Cn×n and Z∈Cn×mZ\in\mathbb C^{n\times m}Z∈Cn×m be complex matrices. Write ∥A∥F\|A\|_F∥A∥F​ for the Frobenius norm, ∥A∥F2=∑a,b∣Aab∣2\|A\|_F^2=\sum_{a,b}|A_{ab}|^2∥A∥F2​=∑a,b​∣Aab​∣2, and ∥Y∥\|Y\|∥Y∥ for the spectral (operator) norm of YYY, i.e. its largest singular value. Then

∣tr⁡(XYZ)∣≤∥X∥F ∥Y∥ ∥Z∥F.|\operatorname{tr}(XYZ)| \le \|X\|_F\,\|Y\|\,\|Z\|_F .∣tr(XYZ)∣≤∥X∥F​∥Y∥∥Z∥F​.

In the generalized adversary method this inequality bounds both the final value of the weight function for Boolean functions and how much one query can change it.

Formalization Note The index sets are {0,…,m−1}\{0,\dots,m-1\}{0,…,m−1} and {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}; the Frobenius norm is frobNorm and the spectral norm is specNorm (Mathlib's ℓ2\ell^2ℓ2 operator norm on matrices). When m=0m=0m=0 or n=0n=0n=0 both sides are 000.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Proposition 23.2: Trace inequality |tr(XYZ)| ≤ ‖X‖_F ‖Y‖ ‖Z‖_F.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Andrew Childs, Lecture Notes on Quantum Algorithms, 17 April 2025. https://www.cs.umd.edu/~amchilds/qa/qa.pdf.
1 thm2 active usersReviewed
🏆Completed
Machine Learning·Captain: Goku

Quantum Algorithms and Learning Theory — Part II 7: Identifying a codeword state needs Ω(k) copiesTextbook

Motivation

This mission develops Chapter 7 of Quantum Algorithms and Learning Theory — Part II by Srinivasan Arunachalam. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

For a matrix M∈F2n×kM\in\mathbb F_2^{n\times k}M∈F2n×k​ of rank kkk (the generator matrix of an [n,k,d]2[n,k,d]_2[n,k,d]2​ linear code) and x∈{0,1}kx\in\{0,1\}^kx∈{0,1}k define the codeword state

∣ψx⟩=1n∑i∈[n]∣i,(Mx)i⟩.|\psi_x\rangle=\frac{1}{\sqrt n}\sum_{i\in[n]}|i,(Mx)_i\rangle .∣ψx​⟩=n​1​i∈[n]∑​∣i,(Mx)i​⟩.

For every rate c1>0c_1>0c1​>0 there is a constant c0>0c_0>0c0​>0 such that the following holds for all n,kn,kn,k and all rank-kkk matrices M∈F2n×kM\in\mathbb F_2^{n\times k}M∈F2n×k​ with k≥c1nk\ge c_1 nk≥c1​n: if a measurement (POVM {Ny}y∈{0,1}k\{N_y\}_{y\in\{0,1\}^k}{Ny​}y∈{0,1}k​) on TTT copies identifies xxx from ∣ψx⟩⊗T|\psi_x\rangle^{\otimes T}∣ψx​⟩⊗T, for xxx drawn uniformly from {0,1}k\{0,1\}^k{0,1}k, with average success probability

12k∑x∈{0,1}kTr⁡ ⁣(Nx ∣ψx⟩⟨ψx∣⊗T) ≥ 45,\frac{1}{2^k}\sum_{x\in\{0,1\}^k}\operatorname{Tr}\!\big(N_x\,|\psi_x\rangle\langle\psi_x|^{\otimes T}\big)\ \ge\ \frac45,2k1​x∈{0,1}k∑​Tr(Nx​∣ψx​⟩⟨ψx​∣⊗T) ≥ 54​,

then T≥c0 kT\ge c_0\,kT≥c0​k.

This improves the Holevo-type bound Ω(k/log⁡n)\Omega(k/\log n)Ω(k/logn) to the optimal Ω(k)\Omega(k)Ω(k) for constant-rate codes, showing that codeword fingerprint states cannot be identified from few copies.

Formalization Note "k=Ω(n)k=\Omega(n)k=Ω(n)" is read as a fixed rate k≥c1nk\ge c_1 nk≥c1​n, and the constant of Ω(k)\Omega(k)Ω(k) may depend on c1c_1c1​ only. Identifying the state means outputting xxx, which is equivalent since x↦Mxx\mapsto Mxx↦Mx is injective for rank kkk. The code distance ddd plays no role and is not a hypothesis.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Theorem 7.3.1: Barnum–Knill: the pretty good measurement is at most quadratically worse than optimal.
  • Claim 7.3.5: Fourier coefficients of f composed with a linear map over F2.
  • Claim 7.3.6: The maximum of (c/√t)^t on [1, c²] is e^{c²/(2e)} (for c ≥ √e).
  • Fact 7.3.7: Binary entropy: H(ε) = O(ε log 1/ε) and 1 − H(1/2+ε) ≤ 2ε²/ln 2 + O(ε⁴).
  • Fact 7.3.8: Binomial coefficients and their partial sums are at most 2^{nH(·/n)}.
  • Fact 7.3.9: Helstrom bound for guessing a uniform bit from |ψ_b⟩, and its corollary.
  • Fact 7.3.10: Subadditivity of von Neumann entropy.
  • Lemma 7.4.1: Quantum PAC learners of a non-trivial class need Ω(log(1/δ)/ε) examples.
  • Lemma 7.4.2: Quantum agnostic learners of a non-trivial class need Ω(log(1/δ)/ε²) examples.
  • Theorem 7.4.3: Classical PAC sample complexity is Ω(d/ε + log(1/δ)/ε).
  • Theorem 7.4.4: Classical agnostic sample complexity is Ω(d/ε² + log(1/δ)/ε²).
  • Theorem 7.4.5: ε-average agnostic learners need (d/ε²)(1/62 − log(2d+2)/(4d)) samples.
  • Theorem 7.4.6: Quantum PAC sample complexity lower bound (information-theoretic).
  • Theorem 7.4.7: Quantum agnostic sample complexity lower bound (information-theoretic).
  • Claim 7.5.2: Eigenvalues of an XOR-convolution matrix are scaled Fourier coefficients.
  • Claim 7.5.3: Diagonal of √A in terms of Fourier coefficients of f.
  • Lemma 7.5.4: Fourier coefficients of (1 − β|z|/m)^T are nonnegative and small.
  • Claim 7.5.5: Counting index sequences whose basis vectors sum to S.
  • Theorem 7.5.6: Optimal quantum PAC sample complexity lower bound.
  • Lemma 7.5.7: PGM success bound for the PAC hard ensemble.
  • Theorem 7.5.8: Optimal quantum agnostic sample complexity lower bound.
  • Lemma 7.5.9: PGM success bound for the agnostic hard ensemble.
  • Theorem 7.6.1: Quantum PAC lower bound under random classification noise.
  • Theorem 7.6.2: Identifying a codeword state needs Ω(k) copies.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Srinivasan Arunachalam, Quantum Algorithms and Learning Theory — Part II, 2018 thesis, ILLC DS-2018-08. https://ir.cwi.nl/pub/27536/Thesis_S_Arunachalam.
28 thms2 active usersReviewed
🏆Completed
Quantum Error Correction·Captain: Goku

An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation 3: Every error syndrome of a stabilizer is realized by a Pauli errorTextbook

Motivation

This mission develops Chapter 3 of An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation by Daniel Gottesman. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let Pn\mathcal P_nPn​ be the nnn-qubit Pauli group and let g1,…,ga∈Png_1,\dots,g_a\in\mathcal P_ng1​,…,ga​∈Pn​ generate a stabilizer S=⟨g1,…,ga⟩S=\langle g_1,\dots,g_a\rangleS=⟨g1​,…,ga​⟩, that is, an Abelian subgroup of Pn\mathcal P_nPn​ with −I∉S-I\notin S−I∈/S, and suppose the generators are independent, i.e. ∣S∣=2a|S|=2^a∣S∣=2a. The error syndrome of a Pauli operator EEE is the vector in F2a\mathbb F_2^aF2a​ whose iii-th bit is 000 if gig_igi​ commutes with EEE and 111 if it anticommutes.

Then for every v∈F2av\in\mathbb F_2^av∈F2a​ there is E∈PnE\in\mathcal P_nE∈Pn​ with syndrome vvv:

giE=Egi  if vi=0,giE=−Egi  if vi=1(i=1,…,a).g_iE=Eg_i\ \text{ if } v_i=0,\qquad g_iE=-Eg_i\ \text{ if } v_i=1\qquad(i=1,\dots,a).gi​E=Egi​  if vi​=0,gi​E=−Egi​  if vi​=1(i=1,…,a).

This lemma is the step in the proof of the dimension count of stabilizer codes (Theorem 5) that shows all 2a2^a2a syndrome subspaces are nonempty.

Formalization Note The syndrome is relative to the generator list, as in the source's proof; the independence of the generators (used in the proof as linear independence of their binary vectors) is the hypothesis ∣S∣=2a|S|=2^a∣S∣=2a. The anticommutation clause is stated explicitly.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Theorem 5: Stabilizer codes: an Abelian S of order 2^a without -1 gives an [[n, n-a, d]] code.
  • Lemma 1: Every error syndrome of a stabilizer is realized by a Pauli error.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Daniel Gottesman, An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation, 2009, v1. https://arxiv.org/pdf/0904.2557v1.
3 thms2 active usersReviewed
🏆Completed
Optimization·Captain: Goku

Quantum algorithms for optimizers 1: Schmidt decompositionTextbook

Motivation

This mission develops Chapter 1 of Quantum algorithms for optimizers by Giacomo Nannicini. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let ABABAB be a register made of a register AAA of mam_ama​ qubits followed by a register BBB of mbm_bmb​ qubits. Let ∣ψ⟩|\psi\rangle∣ψ⟩ be a pure state of ABABAB, that is, a unit vector. Then there exist a finite index set {1,…,r}\{1,\dots,r\}{1,…,r}, an orthonormal family ∣ϕ1A⟩,…,∣ϕrA⟩|\phi^A_1\rangle,\dots,|\phi^A_r\rangle∣ϕ1A​⟩,…,∣ϕrA​⟩ of states of AAA, an orthonormal family ∣ϕ1B⟩,…,∣ϕrB⟩|\phi^B_1\rangle,\dots,|\phi^B_r\rangle∣ϕ1B​⟩,…,∣ϕrB​⟩ of states of BBB, and nonnegative reals λ1,…,λr\lambda_1,\dots,\lambda_rλ1​,…,λr​ with ∑jλj2=1\sum_j\lambda_j^2=1∑j​λj2​=1, such that

∣ψ⟩=∑j=1rλj ∣ϕjA⟩∣ϕjB⟩.|\psi\rangle=\sum_{j=1}^r\lambda_j\,|\phi^A_j\rangle|\phi^B_j\rangle .∣ψ⟩=j=1∑r​λj​∣ϕjA​⟩∣ϕjB​⟩.

This is the singular value decomposition rephrased for bipartite pure states. Classical simulation algorithms for quantum circuits use it.

Formalization Note The source leaves the index set unspecified; here it is Fin r for an existentially chosen r.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Proposition 1.4: Algebraic properties of the tensor (Kronecker) product.
  • Proposition 1.19: Basis states are exactly tensor products of single-qubit basis states.
  • Proposition 1.27: Measuring all qubits one at a time, in any order, yields j with probability |α_j|².
  • Theorem 1.32: No-cloning principle.
  • Proposition 1.37: Pauli matrices: a Hermitian basis of C^{2×2} with XYZ = iI.
  • Proposition 1.38: Hadamard on every qubit of |0⟩ gives the uniform superposition.
  • Proposition 1.41: Three CX gates implement SWAP.
  • Proposition 1.46: Errors of a product of unitaries add up.
  • Proposition 1.49: Close states give close measurement distributions.
  • Proposition 1.50: Principle of implicit measurement.
  • Theorem 1.60: Density matrices are exactly the unit-trace positive semidefinite matrices.
  • Proposition 1.67: The reduced density matrix gives the correct outcome probabilities on register A.
  • Theorem 1.70: Schmidt decomposition.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Giacomo Nannicini, Quantum algorithms for optimizers, 2025, v5; notes dated 9 July 2025. https://arxiv.org/pdf/2408.07086v5.
13 thms2 active usersReviewed
🏆Completed
Optimization·Captain: Goku

Quantum algorithms for optimizers 3: Correctness of the digits computed by iterative phase estimation (corrected)Textbook

Motivation

This mission develops Chapter 3 of Quantum algorithms for optimizers by Giacomo Nannicini. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let φ∈[0,1)\varphi\in[0,1)φ∈[0,1) be a phase (in full turns), h∈Nh\in\mathbb Nh∈N (h=q−2h=q-2h=q−2), and let ω1,…,ωh\omega_1,\dots,\omega_hω1​,…,ωh​ be the angle estimates used by the iterative phase estimation algorithm of §3.3.2, ωi\omega_iωi​ being the estimate of 2i−1φ2^{i-1}\varphi2i−1φ. The algorithm computes binary digits p1,…,ph+2p_1,\dots,p_{h+2}p1​,…,ph+2​ as follows: phph+1ph+2p_hp_{h+1}p_{h+2}ph​ph+1​ph+2​ are the digits of ωh\omega_hωh​ rounded to the closest multiple of 1/81/81/8 (modulo 111); then for j=h−1,…,1j=h-1,\dots,1j=h−1,…,1, pj=0p_j=0pj​=0 if d(0.0pj+1pj+2,ωj)<1/4d(0.0p_{j+1}p_{j+2},\omega_j)<1/4d(0.0pj+1​pj+2​,ωj​)<1/4 and pj=1p_j=1pj​=1 otherwise. Here d(x,y)d(x,y)d(x,y) is the distance between xxx and yyy modulo 111.

Fix 1≤j≤h1\le j\le h1≤j≤h. If d(ωi,2i−1φ)≤1/16d(\omega_i,2^{i-1}\varphi)\le 1/16d(ωi​,2i−1φ)≤1/16 for every step i=h,h−1,…,ji=h,h-1,\dots,ji=h,h−1,…,j, then

d(0.pjpj+1…ph+2, 2j−1φ) ≤ 2−(h+3−j).d\big(0.p_jp_{j+1}\dots p_{h+2},\ 2^{j-1}\varphi\big)\ \le\ 2^{-(h+3-j)} .d(0.pj​pj+1​…ph+2​, 2j−1φ) ≤ 2−(h+3−j).

In particular, for j=1j=1j=1 the algorithm outputs q=h+2q=h+2q=h+2 binary digits of φ\varphiφ with error at most 2−q2^{-q}2−q on the circle, which together with a union bound over the hhh estimation steps gives the success guarantee of iterative phase estimation.

Formalization Note The page states the bound with plain absolute values and strict inequality. Both are corrected: angles are only known modulo 111 (so all distances are on the circle), and the strict bound already fails at the base case (ωh=1/16\omega_h=1/16ωh​=1/16 is equidistant from 000 and 1/81/81/8, and rounding gives error exactly 1/81/81/8); the induction proves ≤\le≤, matching the goal Pr⁡(min⁡{… }≤2−q)\Pr(\min\{\dots\}\le 2^{-q})Pr(min{…}≤2−q) on p.66. The digits are the shared definition ipeDigits h ω and 0.pj…ph+20.p_j\dots p_{h+2}0.pj​…ph+2​ is binFracFrom.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Proposition 3.14: Phase estimation on an inexact eigenstate succeeds with probability at least (1 − δ)|⟨ξ|ψ⟩|²*.
  • Proposition 3.16: Combining cosine and sine estimates into an angle estimate (corrected).
  • Proposition 3.17: Correctness of the digits computed by iterative phase estimation (corrected).

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Giacomo Nannicini, Quantum algorithms for optimizers, 2025, v5; notes dated 9 July 2025. https://arxiv.org/pdf/2408.07086v5.
3 thms2 active usersReviewed
🏆Completed
Captain: Goku

Lecture Notes on Quantum Algorithms 18: Spectral gap and marked fraction bound the norm of the unmarked blockTextbook

Motivation

This mission develops Chapter 18 of Lecture Notes on Quantum Algorithms by Andrew Childs. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let N≥2N \ge 2N≥2 and let PPP be a symmetric N×NN \times NN×N stochastic matrix (Pkj≥0P_{kj} \ge 0Pkj​≥0, ∑kPkj=1\sum_k P_{kj} = 1∑k​Pkj​=1 for all jjj, P=PTP = P^{\mathsf T}P=PT) describing a random walk on the vertex set V={1,…,N}V = \{1,\dots,N\}V={1,…,N}. Let M⊆VM \subseteq VM⊆V be a set of marked vertices and let PMP_MPM​ be the matrix obtained from PPP by deleting the rows and columns indexed by MMM. Let δ>0\delta > 0δ>0 and ϵ>0\epsilon > 0ϵ>0.

Lemma. If the second largest eigenvalue of PPP in absolute value is at most 1−δ1-\delta1−δ (that is, listing the eigenvalues of PPP with multiplicity, at most one has absolute value greater than 1−δ1-\delta1−δ) and ∣M∣≥ϵN|M| \ge \epsilon N∣M∣≥ϵN, then

∥PM∥≤1−δϵ,\|P_M\| \le 1 - \delta\epsilon,∥PM​∥≤1−δϵ,

where ∥⋅∥\|\cdot\|∥⋅∥ is the spectral (operator) norm.

Together with Pr⁡[no marked vertex after t steps]≤∥PM∥t\Pr[\text{no marked vertex after } t \text{ steps}] \le \|P_M\|^tPr[no marked vertex after t steps]≤∥PM​∥t, this gives the classical hitting time O(1/(δϵ))O(1/(\delta\epsilon))O(1/(δϵ)), and it is the input to the quantum walk search bound O(1/δϵ)O(1/\sqrt{\delta\epsilon})O(1/δϵ​).

Formalization Note N≥2N \ge 2N≥2 because the source speaks of a second eigenvalue, and δ,ϵ>0\delta, \epsilon > 0δ,ϵ>0 because they are a spectral gap and a fraction; without these the statement fails (e.g. N=1N = 1N=1, P=(1)P = (1)P=(1), M=VM = VM=V, δ=3\delta = 3δ=3, ϵ=1\epsilon = 1ϵ=1). Symmetry is stated as Hermitian, which for a real matrix is the same thing; the eigenvalues are the Mathlib eigenvalue list of the Hermitian matrix. If M=VM = VM=V, PMP_MPM​ is the empty matrix, of norm 000.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Theorem 18.1: Spectrum of the Szegedy quantum walk.
  • Lemma 18.2: Spectral gap and marked fraction bound the norm of the unmarked block.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Andrew Childs, Lecture Notes on Quantum Algorithms, 17 April 2025. https://www.cs.umd.edu/~amchilds/qa/qa.pdf.
2 thms2 active usersReviewed
🏆Completed
Captain: Goku

Lecture Notes on Quantum Algorithms 2: Group commutators of an ϵ²-net of S_ϵ form an O(ϵ³)-net of S_{ϵ²}Textbook

Motivation

This mission develops Chapter 2 of Lecture Notes on Quantum Algorithms by Andrew Childs. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

For U,V∈SU(2)U,V\in SU(2)U,V∈SU(2) write [ ⁣[U,V] ⁣]=UVU−1V−1[\![U,V]\!]=UVU^{-1}V^{-1}[[U,V]]=UVU−1V−1 for the group commutator. For ϵ≥0\epsilon\ge0ϵ≥0 let

Sϵ={U∈SU(2):∥I−U∥≤ϵ}S_\epsilon=\{U\in SU(2):\|I-U\|\le\epsilon\}Sϵ​={U∈SU(2):∥I−U∥≤ϵ}

be the ϵ\epsilonϵ-ball around the identity, with ∥⋅∥\|\cdot\|∥⋅∥ the spectral norm. For Γ,S⊆SU(2)\Gamma,S\subseteq SU(2)Γ,S⊆SU(2), Γ\GammaΓ is a δ\deltaδ-net for SSS if every A∈SA\in SA∈S has some U∈ΓU\in\GammaU∈Γ with ∥A−U∥≤δ\|A-U\|\le\delta∥A−U∥≤δ.

The lemma says there are constants C>0C>0C>0 and ϵ0>0\epsilon_0>0ϵ0​>0 such that, for every 0<ϵ≤ϵ00<\epsilon\le\epsilon_00<ϵ≤ϵ0​ and every Γ⊆SU(2)\Gamma\subseteq SU(2)Γ⊆SU(2), the following holds. If Γ\GammaΓ is an ϵ2\epsilon^2ϵ2-net for SϵS_\epsilonSϵ​, then

[ ⁣[Γ,Γ] ⁣]={[ ⁣[U,V] ⁣]:U,V∈Γ} is a Cϵ3-net for Sϵ2.[\![\Gamma,\Gamma]\!]=\{[\![U,V]\!]:U,V\in\Gamma\}\ \text{is a } C\epsilon^3\text{-net for } S_{\epsilon^2}.[[Γ,Γ]]={[[U,V]]:U,V∈Γ} is a Cϵ3-net for Sϵ2​.

This is the key step of the Solovay–Kitaev construction. Applied recursively, it turns a coarse net near the identity into nets of doubly-exponentially improving precision.

Formalization Note The source writes O(ϵ3)O(\epsilon^3)O(ϵ3) as ϵ→0\epsilon\to0ϵ→0. Here it is written as explicit constants CCC and ϵ0\epsilon_0ϵ0​, chosen before Γ\GammaΓ, because the source's recursion uses one constant at every level.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Theorem 2.1: Solovay–Kitaev: gate-set independence with polylogarithmic overhead.
  • Lemma 2.2: Subadditivity of errors in products of unitaries.
  • Lemma 2.3: Group commutators of an ϵ²-net of S_ϵ form an O(ϵ³)-net of S_{ϵ²}.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Andrew Childs, Lecture Notes on Quantum Algorithms, 17 April 2025. https://www.cs.umd.edu/~amchilds/qa/qa.pdf.
5 thms2 active usersReviewed
🏆Completed
Optimization·Captain: Goku

Quantum algorithms for optimizers 6: Unitary conjugation commutes with the matrix exponential: e^{iUHU†t} = U e^{iHt} U†Textbook

Motivation

This mission develops Chapter 6 of Quantum algorithms for optimizers by Giacomo Nannicini. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let n≥0n \ge 0n≥0, let UUU be a unitary 2n×2n2^n \times 2^n2n×2n matrix, let H\mathcal{H}H be a Hamiltonian on nnn qubits, that is, a Hermitian 2n×2n2^n \times 2^n2n×2n complex matrix, and let t∈Rt \in \mathbb{R}t∈R. With the matrix exponential eA=∑k=0∞Ak/k!e^A = \sum_{k=0}^\infty A^k / k!eA=∑k=0∞​Ak/k!,

eiUHU†t=U eiHt U†.e^{iU\mathcal{H}U^\dagger t} = U\, e^{i\mathcal{H}t}\, U^\dagger.eiUHU†t=UeiHtU†.

This is what makes diagonalizable Hamiltonians easy to simulate: if UUU diagonalizes H\mathcal{H}H, simulating H\mathcal{H}H reduces to applying U†U^\daggerU†, a diagonal phase, and UUU.

Formalization Note The matrix exponential is Mathlib's power series NormedSpace.exp; U†U^\daggerU† is the conjugate transpose (star U). Hermiticity of H\mathcal{H}H is kept because the source says Hamiltonian (Def. 6.1), although the identity holds for every square matrix.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Proposition 6.9: Phase condition under which the clock Hamiltonian transports |u^(1)⟩ to e^{iϕ}|u^(N)⟩.
  • Proposition 6.12: Unitary conjugation commutes with the matrix exponential: e^{iUHU†t} = U e^{iHt} U†.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Giacomo Nannicini, Quantum algorithms for optimizers, 2025, v5; notes dated 9 July 2025. https://arxiv.org/pdf/2408.07086v5.
2 thms2 active usersReviewed
🏆Completed
Captain: Goku

Quantum Computing: Lecture Notes 7: Amplitude amplification: Q^k A|0^m⟩ = sin((2k+1)θ)|ψ1⟩ + cos((2k+1)θ)|ψ0⟩, and O(1/√p) rounds sufficeTextbook

Motivation

This mission develops Chapter 7 of Quantum Computing: Lecture Notes by Ronald de Wolf. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

Let AAA be a unitary on mmm qubits (a circuit without measurements) and p∈(0,1]p\in(0,1]p∈(0,1], and suppose

A∣0m⟩=p ∣ψ1⟩+1−p ∣ψ0⟩,A|0^m\rangle=\sqrt p\,|\psi_1\rangle+\sqrt{1-p}\,|\psi_0\rangle,A∣0m⟩=p​∣ψ1​⟩+1−p​∣ψ0​⟩,

where ∣ψ1⟩,∣ψ0⟩|\psi_1\rangle,|\psi_0\rangle∣ψ1​⟩,∣ψ0​⟩ are orthogonal unit vectors (the good and the bad state). Let RGR_GRG​ be a unitary with RG∣ψ1⟩=−∣ψ1⟩R_G|\psi_1\rangle=-|\psi_1\rangleRG​∣ψ1​⟩=−∣ψ1​⟩ and RG∣ψ0⟩=∣ψ0⟩R_G|\psi_0\rangle=|\psi_0\rangleRG​∣ψ0​⟩=∣ψ0​⟩, let R0R_0R0​ fix ∣0m⟩|0^m\rangle∣0m⟩ and negate every other basis state, and let Q=AR0A−1RGQ=AR_0A^{-1}R_GQ=AR0​A−1RG​ be one round (reflect through ∣ψ0⟩|\psi_0\rangle∣ψ0​⟩, then through ∣U⟩=A∣0m⟩|U\rangle=A|0^m\rangle∣U⟩=A∣0m⟩). Put θ=arcsin⁡p\theta=\arcsin\sqrt pθ=arcsinp​.

  1. For every k∈Nk\in\mathbb Nk∈N,
QkA∣0m⟩=sin⁡((2k+1)θ) ∣ψ1⟩+cos⁡((2k+1)θ) ∣ψ0⟩.Q^kA|0^m\rangle=\sin((2k+1)\theta)\,|\psi_1\rangle+\cos((2k+1)\theta)\,|\psi_0\rangle.QkA∣0m⟩=sin((2k+1)θ)∣ψ1​⟩+cos((2k+1)θ)∣ψ0​⟩.
  1. If k∈Nk\in\mathbb Nk∈N is an integer closest to π4θ−12\frac{\pi}{4\theta}-\frac124θπ​−21​, then k≤π4θ≤π4pk\le\frac{\pi}{4\theta}\le\frac{\pi}{4\sqrt p}k≤4θπ​≤4p​π​, and the good state has probability ∣⟨ψ1∣QkA∣0m⟩∣2≥1−p|\langle\psi_1|Q^kA|0^m\rangle|^2\ge 1-p∣⟨ψ1​∣QkA∣0m⟩∣2≥1−p.

So O(1/p)O(1/\sqrt p)O(1/p​) applications of AAA, A−1A^{-1}A−1 and RGR_GRG​ raise the success probability from ppp to nearly 111, a quadratic improvement over the O(1/p)O(1/p)O(1/p) classical repetitions. Grover's algorithm is the special case A=H⊗nA=H^{\otimes n}A=H⊗n, RG=Ox,±R_G=O_{x,\pm}RG​=Ox,±​.

Formalization Note A−1A^{-1}A−1 is the conjugate transpose A∗A^*A∗ (as AAA is unitary). RGR_GRG​ is constrained only on ψ1\psi_1ψ1​ and ψ0\psi_0ψ0​, as in the source. The hypotheses require m≥1m\ge1m≥1, since two orthonormal vectors need dimension at least 2.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • §7.2: Grover's algorithm with known t: P_k = sin²((2k+1)θ), and k ≈ π/(4θ) − 1/2 ≤ (π/4)√(N/t) iterations succeed with probability ≥ 1 − t/N.
  • §7.3: Amplitude amplification: Q^k A|0^m⟩ = sin((2k+1)θ)|ψ1⟩ + cos((2k+1)θ)|ψ0⟩, and O(1/√p) rounds suffice.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Ronald de Wolf, Quantum Computing: Lecture Notes, 27 August 2026. https://homepages.cwi.nl/~rdewolf/qcnotes.pdf.
2 thms2 active usersReviewed
🏆Completed
Captain: Goku

Quantum Computing: Lecture Notes 2: Bernstein–Vazirani: one phase query recovers the hidden stringTextbook

Motivation

This mission develops Chapter 2 of Quantum Computing: Lecture Notes by Ronald de Wolf. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

This is the correctness of the Bernstein–Vazirani algorithm.

Let n≥0n \ge 0n≥0 and N=2nN = 2^nN=2n, and fix a hidden string a∈{0,1}na \in \{0,1\}^na∈{0,1}n. The input x∈{0,1}Nx \in \{0,1\}^Nx∈{0,1}N is given by xi=(i⋅a) mod 2x_i = (i \cdot a) \bmod 2xi​=(i⋅a)mod2 for every i∈{0,1}ni \in \{0,1\}^ni∈{0,1}n, where i⋅a=∑k=1nikaki \cdot a = \sum_{k=1}^n i_k a_ki⋅a=∑k=1n​ik​ak​. With the phase query Ox,±:∣i⟩↦(−1)xi∣i⟩O_{x,\pm} : |i\rangle \mapsto (-1)^{x_i}|i\rangleOx,±​:∣i⟩↦(−1)xi​∣i⟩ and the nnn-qubit Hadamard transform H⊗nH^{\otimes n}H⊗n, the Deutsch–Jozsa circuit gives

H⊗n Ox,± H⊗n ∣0n⟩=∣a⟩.H^{\otimes n} \, O_{x,\pm} \, H^{\otimes n} \, |0^n\rangle = |a\rangle .H⊗nOx,±​H⊗n∣0n⟩=∣a⟩.

In particular, measuring the final state in the computational basis yields aaa with probability 111.

So one query and 2n2n2n Hadamard gates (the O(n)O(n)O(n) other operations) recover aaa exactly. Only the query depends on the input. Classically, nnn queries are needed.

Formalization Note The input xxx is bvInput a, i.e. i↦i⋅a mod 2i \mapsto i\cdot a \bmod 2i↦i⋅amod2. The circuit is the same fixed definition deutschJozsaState as in the Deutsch–Jozsa statement. The state equality is exact, with no global phase: the source says the result is the classical state ∣a⟩|a\rangle∣a⟩, and that is what the computation gives.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • §2.4.1: Deutsch–Jozsa: one phase query decides constant vs balanced with certainty.
  • §2.4.2: Bernstein–Vazirani: one phase query recovers the hidden string.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Ronald de Wolf, Quantum Computing: Lecture Notes, 27 August 2026. https://homepages.cwi.nl/~rdewolf/qcnotes.pdf.
2 thms2 active usersReviewed
🏆Completed
Optimization·Captain: Goku

Quantum algorithms for optimizers 2: Simon's algorithm: n+t uniform samples orthogonal to a contain n−1 independent vectors with probability ≥ 1 − 2^{−(t+1)}Textbook

Motivation

This mission develops Chapter 2 of Quantum algorithms for optimizers by Giacomo Nannicini. The chapter's selected results describe the mathematical guarantees below.

Setting and conventions

The linked theorem statements and shared definitions specify the register types, oracle access, normalization, and resource conventions. Their source locators and independent readbacks accompany each target.

Chapter goal

This is the sampling bound behind the classical post-processing of Simon's algorithm.

Let n≥1n \ge 1n≥1 and t≥0t \ge 0t≥0 be integers, and let F2={0,1}\mathbb F_2 = \{0,1\}F2​={0,1} be the field with two elements. Fix a nonzero vector a∈F2na \in \mathbb F_2^na∈F2n​ and let

Va={k∈F2n:k⋅a=∑i=1nkiai≡0(mod2)}V_a = \{k \in \mathbb F_2^n : k \cdot a = \textstyle\sum_{i=1}^n k_i a_i \equiv 0 \pmod 2\}Va​={k∈F2n​:k⋅a=∑i=1n​ki​ai​≡0(mod2)}

be the (n−1)(n-1)(n−1)-dimensional subspace of vectors orthogonal to aaa. Draw k(1),…,k(n+t)k^{(1)}, \dots, k^{(n+t)}k(1),…,k(n+t) independently and uniformly at random from VaV_aVa​. Then

Pr⁡[some n−1 of k(1),…,k(n+t) are linearly independent over F2]≥1−12t+1.\Pr\big[\text{some } n-1 \text{ of } k^{(1)}, \dots, k^{(n+t)} \text{ are linearly independent over } \mathbb F_2\big] \ge 1 - \frac{1}{2^{t+1}}.Pr[some n−1 of k(1),…,k(n+t) are linearly independent over F2​]≥1−2t+11​.

The bound does not depend on nnn, so n+O(1)n + O(1)n+O(1) runs of Simon's circuit suffice to determine the hidden string aaa with high probability.

Formalization Note The probability is the fraction of all ∣Va∣n+t|V_a|^{n+t}∣Va​∣n+t tuples (k(1),…,k(n+t))∈Van+t(k^{(1)},\dots,k^{(n+t)}) \in V_a^{n+t}(k(1),…,k(n+t))∈Van+t​ for which there are n−1n-1n−1 distinct indices whose vectors are linearly independent; vectors of F2n\mathbb F_2^nF2n​ are functions Fin n→Z/2Z\mathrm{Fin}\,n \to \mathbb Z/2\mathbb ZFinn→Z/2Z.

Significance

These are known mathematical results. Their Lean statements have been checked and reviewed against the cited source; formal proofs remain open for contributors.

Supporting targets

  • Proposition 2.8: Simon's algorithm: n+t uniform samples orthogonal to a contain n−1 independent vectors with probability ≥ 1 − 2^{−(t+1)}.

Formalization scope

Prove the existing statements under their stated hypotheses and definitions. Any correction to a printed source claim remains explicit in its target description. All listed target proofs are currently sorry; no proof is claimed. The mission goal is the designated chapter capstone; the remaining targets are separate milestones. Parts a, b, c and d are merged into their original chapter.

Selected references

  • Giacomo Nannicini, Quantum algorithms for optimizers, 2025, v5; notes dated 9 July 2025. https://arxiv.org/pdf/2408.07086v5.
1 thm2 active usersReviewed
PreviousPage 1 of 3Next

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