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 · 62 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

Open64Completed62All126
Linear algebra·Captain: mikedeng1

Improvements in Quantum SDP-Solving with Applications 2: A Two-Outcome Measurement Implemented With Bias ε Gives a (1, a+1, ε)-Block-Encoding of Its POVM Element MResearch Paper

Motivation

Many recent quantum algorithms for linear algebra and optimization take their input as a block-encoding: a unitary circuit whose top-left block, after projecting a set of ancilla qubits onto ∣0⟩|0\rangle∣0⟩, approximates the matrix of interest. The quantum semidefinite-programming solver of van Apeldoorn and Gilyén (arXiv:1804.05058) introduces the quantum operator model, in which every constraint matrix of the SDP is given this way (Definition 2, p. 4). Block-encodings are also the input format of quantum singular value transformation and of Hamiltonian simulation by qubitization (Low and Chuang, arXiv:1610.06546).

A natural question is where block-encodings come from in applications. In §4.1, on shadow tomography, the constraint matrices are the elements EjE_jEj​ of two-outcome measurements, and what a user can do is perform those measurements, not write down their matrices. The closing remark of §4.1 (pp. 24–25) answers the question for that setting: if a two-outcome measurement can be implemented on a quantum computer with small bias, then a block-encoding of its measurement operator can be built from the same circuit with one extra qubit and one CNOT gate. The remark is credited to the same observation by Low and Chuang (arXiv:1707.05391).

Setting

A two-outcome POVM on a finite-dimensional system is a pair {M,I−M}\{M, I - M\}{M,I−M} of operators with MMM and I−MI - MI−M positive semidefinite. A mixed state (density matrix) is a positive semidefinite operator ρ\rhoρ with Tr⁡ρ=1\operatorname{Tr}\rho = 1Trρ=1; outcome MMM occurs with probability Tr⁡(Mρ)\operatorname{Tr}(M\rho)Tr(Mρ).

An implementation of the measurement on a quantum computer, as the paper fixes it, takes the input ρ\rhoρ, attaches aaa ancilla qubits in the state ∣0⟩⊗a|0\rangle^{\otimes a}∣0⟩⊗a, applies a unitary UUU to system and ancillas, measures in the computational basis, and accepts when the last qubit reads ∣0⟩|0\rangle∣0⟩:

ρ→ρ⊗∣0⟩⟨0∣⊗a→U(ρ⊗∣0⟩⟨0∣⊗a)U†→Tr⁡((I⊗∣0⟩⟨0∣) U(ρ⊗∣0⟩⟨0∣⊗a)U†).\rho \to \rho\otimes|0\rangle\langle 0|^{\otimes a} \to U\big(\rho\otimes|0\rangle\langle 0|^{\otimes a}\big)U^\dagger \to \operatorname{Tr}\Big((I\otimes|0\rangle\langle 0|)\,U\big(\rho\otimes|0\rangle\langle 0|^{\otimes a}\big)U^\dagger\Big).ρ→ρ⊗∣0⟩⟨0∣⊗a→U(ρ⊗∣0⟩⟨0∣⊗a)U†→Tr((I⊗∣0⟩⟨0∣)U(ρ⊗∣0⟩⟨0∣⊗a)U†).

The implementation has bias at most ε\varepsilonε if, for every state ρ\rhoρ,

∣Tr⁡((I⊗∣0⟩⟨0∣) U(ρ⊗∣0⟩⟨0∣⊗a)U†)−Tr⁡(Mρ)∣≤ε.(14)\Big|\operatorname{Tr}\Big((I\otimes|0\rangle\langle 0|)\,U\big(\rho\otimes|0\rangle\langle 0|^{\otimes a}\big)U^\dagger\Big) - \operatorname{Tr}(M\rho)\Big| \le \varepsilon. \qquad (14)​Tr((I⊗∣0⟩⟨0∣)U(ρ⊗∣0⟩⟨0∣⊗a)U†)−Tr(Mρ)​≤ε.(14)

Write K=(I⊗⟨0∣⊗a) U†(I⊗∣0⟩⟨0∣)U (I⊗∣0⟩⊗a)K = (I\otimes\langle 0|^{\otimes a})\,U^\dagger(I\otimes|0\rangle\langle 0|)U\,(I\otimes|0\rangle^{\otimes a})K=(I⊗⟨0∣⊗a)U†(I⊗∣0⟩⟨0∣)U(I⊗∣0⟩⊗a), an operator on the system. A unitary VVV on a′a'a′ ancilla qubits and the system is an (α,a′,ε)(\alpha, a', \varepsilon)(α,a′,ε)-block-encoding of AAA (Definition 2) if ∥A−α(⟨0∣⊗a′⊗I)V(∣0⟩⊗a′⊗I)∥≤ε\|A - \alpha(\langle 0|^{\otimes a'}\otimes I)V(|0\rangle^{\otimes a'}\otimes I)\| \le \varepsilon∥A−α(⟨0∣⊗a′⊗I)V(∣0⟩⊗a′⊗I)∥≤ε in the operator norm. Finally U′=U⊗I2U' = U\otimes I_2U′=U⊗I2​ adds one fresh qubit, and I⊗CNOTI\otimes\mathrm{CNOT}I⊗CNOT is a CNOT gate whose control is the measured qubit and whose target is the fresh qubit.

Formalization targets

Goal (§4.1, p. 25)

(14)  ⟹  U′†(I⊗CNOT)U′ is a (1, a+1, ε)-block-encoding of M.\text{(14)} \;\Longrightarrow\; U'^\dagger(I\otimes\mathrm{CNOT})U' \text{ is a } (1,\ a+1,\ \varepsilon)\text{-block-encoding of } M .(14)⟹U′†(I⊗CNOT)U′ is a (1, a+1, ε)-block-encoding of M.

The subnormalization is 111, the ancilla count is a′=a+1a' = a + 1a′=a+1 and the error is the same ε\varepsilonε as the bias; none of these is weakened.

Milestones (all p. 25, in the order of the derivation)

  1. The trace identity: ρ⊗∣0⟩⟨0∣⊗a=(I⊗∣0⟩⊗a)ρ(I⊗⟨0∣⊗a)\rho\otimes|0\rangle\langle 0|^{\otimes a} = (I\otimes|0\rangle^{\otimes a})\rho(I\otimes\langle 0|^{\otimes a})ρ⊗∣0⟩⟨0∣⊗a=(I⊗∣0⟩⊗a)ρ(I⊗⟨0∣⊗a), hence the acceptance probability equals Tr⁡(Kρ)\operatorname{Tr}(K\rho)Tr(Kρ).
  2. The equivalence ∀ρ: ∣Tr⁡([K−M]ρ)∣≤ε  ⟺  ∥K−M∥≤ε\forall\rho:\ |\operatorname{Tr}([K - M]\rho)| \le \varepsilon \iff \|K - M\| \le \varepsilon∀ρ: ∣Tr([K−M]ρ)∣≤ε⟺∥K−M∥≤ε, with ρ\rhoρ over density matrices.
  3. The CNOT identity K=(I⊗⟨0∣⊗a′) U′†(I⊗CNOT)U′ (I⊗∣0⟩⊗a′)K = (I\otimes\langle 0|^{\otimes a'})\,U'^\dagger(I\otimes\mathrm{CNOT})U'\,(I\otimes|0\rangle^{\otimes a'})K=(I⊗⟨0∣⊗a′)U′†(I⊗CNOT)U′(I⊗∣0⟩⊗a′).

Significance

The result. It converts an operational primitive, performing a measurement, into the input format that block-encoding algorithms consume, with an additive error equal to the measurement's bias and at the cost of one qubit and one CNOT. In the paper it is what makes the shadow-tomography application of §4.1 meaningful: the cost of the SDP solver is stated in terms of block-encodings of the EjE_jEj​, and this remark lets one replace that by the cost of controlled implementations of the measurements. More generally it shows that the quantum operator model is no stronger than the ability to measure.

Formalizing it. The paper proves the remark in a few displayed lines, one of which ("it is easy to see") is left to the reader and whose CNOT direction is not printed. No machine-checked version exists. A formal proof fixes the register conventions, makes the direction of the CNOT explicit, and contributes a reusable fact about matrices: for a Hermitian XXX, sup⁡ρ∣Tr⁡(Xρ)∣=∥X∥\sup_\rho |\operatorname{Tr}(X\rho)| = \|X\|supρ​∣Tr(Xρ)∣=∥X∥ over density matrices. The block-encoding predicate itself is already published on the platform and is reused.

Difficulty

The algebra of milestones 1 and 3 is bookkeeping over tensor-product index sets, and the main cost there is choosing representations that make the registers line up.

The one step with mathematical content is the direction "⇒\Rightarrow⇒" of milestone 2. The bias condition controls ∣Tr⁡(Xρ)∣|\operatorname{Tr}(X\rho)|∣Tr(Xρ)∣ only for density matrices ρ\rhoρ, that is, it bounds the numerical radius of X=K−MX = K - MX=K−M, while a block-encoding needs the operator norm. For a general matrix these differ by up to a factor of two, so the step needs XXX to be Hermitian: MMM is Hermitian as a POVM element, and KKK is Hermitian because it is a compression of the projector I⊗∣0⟩⟨0∣I\otimes|0\rangle\langle 0|I⊗∣0⟩⟨0∣. A formal proof must use both facts and exhibit a state that attains the norm.

Formalization scope

The Lean development lives in the namespace QuantumSDP18.MeasureBE. Its conventions are:

  • The system register is an arbitrary finite type ι\iotaι (a www-qubit system is ι={0,1}w\iota = \{0,1\}^wι={0,1}w). Operators are complex matrices; †\dagger† is the conjugate transpose; the operator norm is the platform's QAlgorithms.specNorm.
  • The ancilla register is Qubits c × Bool, so a=c+1≥1a = c + 1 \ge 1a=c+1≥1 and the Bool factor is the last, measured qubit. The basis state ∣0⟩|0\rangle∣0⟩ of any register is its all-false index.
  • (14) ranges over all density matrices (PosSemidef with trace 111), and its absolute value is the modulus of a complex trace.
  • The CNOT is the platform's QAlgorithms.cnot (control first), placed on the measured qubit (control) and the fresh qubit (target). With the opposite direction the block is U†UU^\dagger UU†U and the goal is false; the chosen direction is the only reading under which the page's identity holds.
  • The block-encoding predicate is the platform's QAlgorithms.IsBlockEncoding, which puts the ancilla register first, as Definition 2 does; the circuit, written system-first as on p. 25, is reindexed to match.
  • Added hypothesis: ε≥0\varepsilon \ge 0ε≥0 (a bias is nonnegative). It matters only for a zero-dimensional system, where (14) holds vacuously.

The goal keeps both POVM hypotheses (M⪰0M \succeq 0M⪰0 and I−M⪰0I - M \succeq 0I−M⪰0), and the bias condition quantifies over all states rather than one fixed state, under which the conclusion would be false. A formalization in which (14) ranges over arbitrary matrices, or which drops the CNOT and states only ∥K−M∥≤ε\|K - M\| \le \varepsilon∥K−M∥≤ε, is a different theorem.

Needed infrastructure: Kronecker products and reindexing of matrices, the unitarity of permutation matrices and of Kronecker products, and the variational characterization of the operator norm of a Hermitian matrix through its eigenvectors. The last is reusable beyond this mission. Proofs of the three milestones are welcome independently.

Selected references

  • J. van Apeldoorn, A. Gilyén, Improvements in quantum SDP-solving with applications, arXiv preprint, 2018 (ICALP 2019). https://arxiv.org/abs/1804.05058
  • G. H. Low, I. L. Chuang, Hamiltonian simulation by qubitization, arXiv preprint, 2016 (Quantum 3, 163, 2019). https://arxiv.org/abs/1610.06546
  • G. H. Low, I. L. Chuang, Hamiltonian simulation by uniform spectral amplification, arXiv preprint, 2017. https://arxiv.org/abs/1707.05391
  • S. Aaronson, Shadow tomography of quantum states, STOC 2018. https://arxiv.org/abs/1711.01053
8 thms2 active usersReviewed
Graph TheoryOptimization·Captain: mikedeng1

A Quantum Approximate Optimization Algorithm I: At p = 1 the QAOA Expected Cut Is at Least 0.6924 Times the Maximum Cut on Every Connected 3-Regular GraphResearch Paper

Motivation

The quantum approximate optimization algorithm (QAOA) of Farhi, Goldstone and Gutmann (arXiv:1411.4028, 2014) is a family of shallow quantum circuits, indexed by an integer depth p≥1p \ge 1p≥1, that prepare states whose computational-basis measurements are biased toward good solutions of a combinatorial optimization problem. It became the standard candidate for optimization on near-term quantum hardware, and its performance on MaxCut is the benchmark against which later analyses and experiments are measured.

The original paper proves one concrete performance guarantee: at depth p=1p = 1p=1, on 3-regular graphs, the algorithm achieves an approximation ratio of at least 0.69240.69240.6924. Short timeline:

  • 2014, Farhi–Goldstone–Gutmann: the p=1p = 1p=1 bound 0.69240.69240.6924 on 3-regular graphs, by reducing the expected cut to three subgraph functions and a numerical minimization (arXiv:1411.4028).
  • 2018, Wang, Hadfield, Jiang and Rieffel: closed-form expressions for the p=1p = 1p=1 MaxCut expectation on arbitrary graphs (arXiv:1706.02998, Phys. Rev. A 97, 022304).
  • Classically, Goemans and Williamson's semidefinite rounding achieves 0.8780.8780.878 on all graphs (J. ACM 42, 1995), so the p=1p = 1p=1 guarantee is, as the paper itself notes, below the best classical algorithms.

Setting

A graph GGG has vertex set {0,…,n−1}\{0, \dots, n-1\}{0,…,n−1}, and 3-regular means every vertex has exactly three neighbours. Each vertex carries a qubit; a computational basis state is a bit string z=z0⋯zn−1z = z_0 \cdots z_{n-1}z=z0​⋯zn−1​. For an edge ⟨jk⟩\langle jk\rangle⟨jk⟩ the clause C⟨jk⟩(z)C_{\langle jk\rangle}(z)C⟨jk⟩​(z) is 111 if zj≠zkz_j \neq z_kzj​=zk​ and 000 otherwise, and the cut objective is

C(z)=∑⟨jk⟩C⟨jk⟩(z),C(z) = \sum_{\langle jk\rangle} C_{\langle jk\rangle}(z),C(z)=⟨jk⟩∑​C⟨jk⟩​(z),

the number of edges cut by the bipartition zzz defines. As an operator, CCC is diagonal in the computational basis.

Let B=∑jσjxB = \sum_j \sigma^x_jB=∑j​σjx​ and let ∣s⟩=2−n/2∑z∣z⟩|s\rangle = 2^{-n/2}\sum_z |z\rangle∣s⟩=2−n/2∑z​∣z⟩. For angles γ,β∈R\gamma, \beta \in \mathbb Rγ,β∈R, the depth-one QAOA state and its expected cut are

∣γ,β⟩=e−iβB e−iγC ∣s⟩,F1(γ,β)=⟨γ,β∣ C ∣γ,β⟩=∑z∣⟨z∣γ,β⟩∣2 C(z).|\gamma,\beta\rangle = e^{-i\beta B}\, e^{-i\gamma C}\, |s\rangle, \qquad F_1(\gamma,\beta) = \langle\gamma,\beta|\,C\,|\gamma,\beta\rangle = \sum_z |\langle z|\gamma,\beta\rangle|^2\, C(z).∣γ,β⟩=e−iβBe−iγC∣s⟩,F1​(γ,β)=⟨γ,β∣C∣γ,β⟩=z∑​∣⟨z∣γ,β⟩∣2C(z).

The angles may be restricted to γ∈[0,2π]\gamma \in [0, 2\pi]γ∈[0,2π], β∈[0,π]\beta \in [0, \pi]β∈[0,π] by periodicity.

Two kinds of small subgraphs govern the analysis. A crossed square is a set of four vertices spanning exactly five edges (a 4-cycle with one diagonal). An isolated triangle is a triangle whose three outgoing edges end on three distinct vertices. SSS and TTT denote their numbers in GGG. Finally, for an edge ⟨jk⟩\langle jk\rangle⟨jk⟩ the subgraph type is the shape of the edge together with its adjacent edges; in a 3-regular graph there are three types g4,g5,g6g_4, g_5, g_6g4​,g5​,g6​, according as jjj and kkk have two, one or no common neighbours. Each type ggg defines a function fg(γ,β)f_g(\gamma, \beta)fg​(γ,β), the expectation of the clause of the central edge in the depth-one QAOA state of the subgraph ggg alone.

Formalization targets

Goal: the depth-one ratio on cubic graphs

For every connected 3-regular graph GGG there are angles γ∈[0,2π]\gamma \in [0, 2\pi]γ∈[0,2π], β∈[0,π]\beta \in [0, \pi]β∈[0,π] with

F1(γ,β)  ≥  0.6924⋅C(z)for every bit string z,F_1(\gamma, \beta) \;\ge\; 0.6924 \cdot C(z) \qquad \text{for every bit string } z,F1​(γ,β)≥0.6924⋅C(z)for every bit string z,

that is, M1=max⁡γ,βF1≥0.6924⋅max⁡zC(z)M_1 = \max_{\gamma,\beta} F_1 \ge 0.6924 \cdot \max_z C(z)M1​=maxγ,β​F1​≥0.6924⋅maxz​C(z). The constant is exactly the paper's 0.69240.69240.6924, and K4K_4K4​ is included.

Milestones

The paper's argument passes through the following claims, each a milestone:

  1. At p=1p = 1p=1 each edge term of a 3-regular graph equals fg4f_{g_4}fg4​​, fg5f_{g_5}fg5​​ or fg6f_{g_6}fg6​​ according to its subgraph type (p. 5).
  2. In a connected 3-regular graph other than K4K_4K4​, there are SSS edges of type g4g_4g4​ and 4S+3T4S + 3T4S+3T of type g5g_5g5​ (pp. 8–9).
  3. Equation (32): F1=Sfg4+(4S+3T)fg5+(3n/2−5S−3T)fg6F_1 = S f_{g_4} + (4S + 3T) f_{g_5} + (3n/2 - 5S - 3T) f_{g_6}F1​=Sfg4​​+(4S+3T)fg5​​+(3n/2−5S−3T)fg6​​ (p. 9).
  4. 3T+4S≤n3T + 4S \le n3T+4S≤n (p. 8).
  5. Every cut has at most 3n/2−S−T3n/2 - S - T3n/2−S−T edges (p. 9).
  6. For s,t≥0s, t \ge 0s,t≥0 with 4s+3t≤14s + 3t \le 14s+3t≤1, the scaled ratio (35) M1(1,s,t)/(3/2−s−t)M_1(1, s, t)/(3/2 - s - t)M1​(1,s,t)/(3/2−s−t) is at least 0.69240.69240.6924 (p. 9).
  7. On K4K_4K4​ the depth-one ratio exceeds 0.69240.69240.6924 (p. 8).

Significance

The result is the first rigorous worst-case guarantee for the QAOA, and the method behind it (the expected objective is a sum of local terms, each depending only on a bounded neighbourhood of an edge) is the template for every later analysis of fixed-depth QAOA on bounded-degree graphs. It shows that a depth-one circuit, of depth independent of nnn, achieves a constant approximation ratio uniformly over an infinite class of graphs.

The paper's proof is complete apart from one numerical step: the minimization of (35) is reported as a numerical evaluation. No machine-checked version of the result exists. A formal proof requires an exact evaluation of the three subgraph functions at suitable angles, an exact combinatorial count of edge types, and a certified inequality in place of the numerical minimization. The margin is small: the exact minimum is 12+133≈0.692450\tfrac12 + \tfrac{1}{3\sqrt 3} \approx 0.69245021​+33​1​≈0.692450, about 5⋅10−55 \cdot 10^{-5}5⋅10−5 above the paper's constant.

Difficulty

The light-cone reduction (milestone 1) is the conceptual step: one must show that conjugating a two-qubit clause by e−iγCe^{-i\gamma C}e−iγC and e−iβBe^{-i\beta B}e−iβB leaves an operator that involves only the qubits adjacent to the edge, and that the remaining qubits contribute a factor of one. In matrix form on 2n2^n2n-dimensional space this is a statement about tensor-product structure that the definitions do not make visible. The combinatorial count (milestones 2–4) needs a careful case analysis of how triangles sit in a cubic graph, including the exceptional graph K4K_4K4​, where the count fails. The final inequality (milestone 6) has a margin of order 10−410^{-4}10−4, so crude bounds on the trigonometric functions fgf_{g}fg​ do not suffice.

Formalization scope

  • Representation. Bit strings are Qubits n = Fin n → Bool from the published QAlgorithms layer, with true the bit 111. States are vectors in EuclideanSpace ℂ (Qubits n); ∣s⟩|s\rangle∣s⟩, CCC as a diagonal operator, BBB and the QAOA unitary are the published definitions uniformState, problemHamiltonian, qaoaMixer, qaoaUnitary. The latter takes mixer angles before phase angles.
  • Conventions. Graphs are SimpleGraph (Fin n) with decidable adjacency; "3-regular" is IsRegularOfDegree 3. The cut counts each edge once. F1F_1F1​ is defined as ∑zPr⁡[z] C(z)\sum_z \Pr[z]\,C(z)∑z​Pr[z]C(z), which equals ⟨γ,β∣C∣γ,β⟩\langle\gamma,\beta|C|\gamma,\beta\rangle⟨γ,β∣C∣γ,β⟩ because CCC is diagonal. The constant 0.69240.69240.6924 is the exact rational 1731/25001731/25001731/2500.
  • Added hypotheses. Milestones 2 and 3 assume GGG connected and n≠4n \ne 4n=4, which excludes K4K_4K4​, the case the paper sets aside on p. 8. No other hypothesis is added.
  • Out of scope. The goal concerns the expected cut at good angles, which is what the paper's analysis bounds. Measuring the state, repeating, and the claim that a cut of that size is then found with high probability are not formalized; nor are running time, circuit depth, or the search for optimal angles.
  • Ruled-out trivializations. A cut objective counting each edge twice, or an unnormalized state, would leave the ratio statement formally intact but about the wrong objects; the setting counts each edge once and uses the normalized uniform superposition. The goal quantifies over all bit strings, so it cannot be satisfied by bounding a particular cut.
  • Contributions welcome. Reusable lemmas on the light-cone locality of conjugated Pauli operators, closed forms of the depth-one MaxCut expectation, and counting lemmas for triangles in cubic graphs all serve beyond this mission.

Selected references

  • E. Farhi, J. Goldstone, S. Gutmann, A Quantum Approximate Optimization Algorithm, arXiv preprint, 2014. https://arxiv.org/abs/1411.4028
  • Z. Wang, S. Hadfield, Z. Jiang, E. G. Rieffel, Quantum approximate optimization algorithm for MaxCut: A fermionic view, Phys. Rev. A 97, 022304, 2018. https://arxiv.org/abs/1706.02998
  • M. X. Goemans, D. P. Williamson, Improved approximation algorithms for maximum cut and satisfiability problems using semidefinite programming, J. ACM 42(6), 1995. https://doi.org/10.1145/227683.227684
14 thms2 active usersReviewed
ProbabilityStatistics·Captain: mikedeng1

Direct Fidelity Estimation from Few Pauli Measurements 1: ⌈1/(ε²δ)⌉ Importance-Sampled Pauli Measurements Estimate tr(ρσ) Within 2ε With Probability ≥ 1 − 2δResearch Paper

Certifying a prepared quantum state

Experiments that prepare many-body entangled states (GHZ, W, stabilizer, cluster and matrix product states) need a way to check that the device produced the intended state. Full quantum state tomography answers the question but its cost grows with the dimension d=2nd = 2^nd=2n of an nnn-qubit system: a reconstruction needs on the order of d2d^2d2 measurement settings. Entanglement witnesses are cheap but exist only for special states.

Direct fidelity estimation (S. T. Flammia and Y.-K. Liu, arXiv:1104.4695, Phys. Rev. Lett. 106, 230501, 2011; the same idea appears in M. P. da Silva, O. Landon-Cardinal and D. Poulin, arXiv:1104.3835) estimates only the one number the experimentalist needs, the fidelity of the prepared state σ\sigmaσ to the target pure state ρ\rhoρ. It measures a constant number of randomly chosen Pauli observables, independent of nnn, and needs only single-qubit measurements. The method has since become a standard benchmarking tool in experimental quantum information.

Setting

Consider nnn qubits, d=2nd = 2^nd=2n. Let WkW_kWk​, kkk ranging over the d2=4nd^2 = 4^nd2=4n labels in {0,1,2,3}n\{0,1,2,3\}^n{0,1,2,3}n, be the nnn-fold tensor products of the single-qubit matrices I,σx,σy,σzI, \sigma_x, \sigma_y, \sigma_zI,σx​,σy​,σz​. The characteristic function of a d×dd\times dd×d matrix ρ\rhoρ is

χρ(k)=tr(ρWk/d).\chi_\rho(k) = \mathrm{tr}(\rho W_k/\sqrt d).χρ​(k)=tr(ρWk​/d​).

The target ρ\rhoρ is a pure state, ρ=∣ψ⟩⟨ψ∣\rho = |\psi\rangle\langle\psi|ρ=∣ψ⟩⟨ψ∣ with ∥ψ∥=1\|\psi\| = 1∥ψ∥=1; the prepared σ\sigmaσ is an arbitrary state (positive semidefinite, trace one). For pure ρ\rhoρ the fidelity is F(ρ,σ)=tr(ρσ)F(\rho,\sigma) = \mathrm{tr}(\rho\sigma)F(ρ,σ)=tr(ρσ), and tr(ρσ)=∑kχρ(k)χσ(k)\mathrm{tr}(\rho\sigma) = \sum_k\chi_\rho(k)\chi_\sigma(k)tr(ρσ)=∑k​χρ​(k)χσ​(k).

Given an additive error ε>0\varepsilon>0ε>0 and a failure probability δ>0\delta>0δ>0, the protocol runs in two stages.

  1. Importance sampling. Draw ℓ=⌈1/(ε2δ)⌉\ell = \lceil 1/(\varepsilon^2\delta)\rceilℓ=⌈1/(ε2δ)⌉ labels k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​ independently with probability Pr⁡(k)=χρ(k)2\Pr(k) = \chi_\rho(k)^2Pr(k)=χρ​(k)2. The ideal estimator is Y=1ℓ∑iXiY = \frac1\ell\sum_i X_iY=ℓ1​∑i​Xi​, Xi=χσ(ki)/χρ(ki)X_i = \chi_\sigma(k_i)/\chi_\rho(k_i)Xi​=χσ​(ki​)/χρ​(ki​).
  2. Finite precision. For each iii, measure the observable WkiW_{k_i}Wki​​ on
mi=⌈2d χρ(ki)2 ℓ ε2log⁡(2/δ)⌉m_i = \Big\lceil\frac{2}{d\,\chi_\rho(k_i)^2\,\ell\,\varepsilon^2}\log(2/\delta)\Big\rceilmi​=⌈dχρ​(ki​)2ℓε22​log(2/δ)⌉

copies of σ\sigmaσ. Each measurement gives an outcome Aij∈{1,−1}A_{ij}\in\{1,-1\}Aij​∈{1,−1} with mean tr(σWki)=d χσ(ki)\mathrm{tr}(\sigma W_{k_i}) = \sqrt d\,\chi_\sigma(k_i)tr(σWki​​)=d​χσ​(ki​), independently. The output is

Y~=1ℓ∑i=1ℓX~i,X~i=1mid χρ(ki)∑j=1miAij.\tilde Y = \frac1\ell\sum_{i=1}^\ell\tilde X_i,\qquad \tilde X_i = \frac{1}{m_i\sqrt d\,\chi_\rho(k_i)}\sum_{j=1}^{m_i}A_{ij}.Y~=ℓ1​i=1∑ℓ​X~i​,X~i​=mi​d​χρ​(ki​)1​j=1∑mi​​Aij​.

Formalization targets

Goal: the direct-fidelity-estimation guarantee (p. 2)

For every nnn, every pure ρ\rhoρ, every state σ\sigmaσ and every ε,δ>0\varepsilon,\delta>0ε,δ>0,

Pr⁡[ tr(ρσ)∈[Y~−2ε, Y~+2ε] ] ≥ 1−2δ,\Pr\Big[\,\mathrm{tr}(\rho\sigma)\in[\tilde Y-2\varepsilon,\ \tilde Y+2\varepsilon]\,\Big]\ \ge\ 1-2\delta ,Pr[tr(ρσ)∈[Y~−2ε, Y~+2ε]] ≥ 1−2δ,

the probability being over both stages of the protocol.

Milestones

  • the fidelity formula (1) and the Pauli expansion (2) (p. 1), and the normalization of (3) (footnote [6], p. 4);
  • unbiasedness EX=tr(ρσ)\mathbb E X = \mathrm{tr}(\rho\sigma)EX=tr(ρσ) and the variance bound Var(X)≤tr(σ2)−[tr(ρσ)]2≤1\mathrm{Var}(X)\le\mathrm{tr}(\sigma^2)-[\mathrm{tr}(\rho\sigma)]^2\le1Var(X)≤tr(σ2)−[tr(ρσ)]2≤1 ((12)–(14), p. 6);
  • the ideal-estimator bound (5), Pr⁡[∣Y−tr(ρσ)∣≥ε]≤δ\Pr[|Y-\mathrm{tr}(\rho\sigma)|\ge\varepsilon]\le\deltaPr[∣Y−tr(ρσ)∣≥ε]≤δ;
  • Hoeffding's bound (16)–(17), Pr⁡[∣Y~−Y∣≥t]≤2exp⁡(−2t2/C)\Pr[|\tilde Y - Y|\ge t]\le 2\exp(-2t^2/C)Pr[∣Y~−Y∣≥t]≤2exp(−2t2/C), the computation (18), C≤2ε2/log⁡(2/δ)C\le2\varepsilon^2/\log(2/\delta)C≤2ε2/log(2/δ), and the finite-precision bound (8), Pr⁡[∣Y~−Y∣≥ε]≤δ\Pr[|\tilde Y - Y|\ge\varepsilon]\le\deltaPr[∣Y~−Y∣≥ε]≤δ for every fixed k1,…,kℓk_1,\dots,k_\ellk1​,…,kℓ​;
  • the resource bounds (9)–(10) on the expected number of copies and the deterministic bound mi≤1+2log⁡(2/δ)/(α2ℓε2)m_i\le1+2\log(2/\delta)/(\alpha^2\ell\varepsilon^2)mi​≤1+2log(2/δ)/(α2ℓε2) for well-conditioned states.

Significance

The guarantee says that ℓ=⌈1/(ε2δ)⌉\ell = \lceil1/(\varepsilon^2\delta)\rceilℓ=⌈1/(ε2δ)⌉ Pauli settings suffice to estimate the fidelity of any nnn-qubit state to any pure target, whatever nnn. The number of copies of σ\sigmaσ is O(d)O(d)O(d) in expectation in the worst case and constant for stabilizer states, while the paper's lower bounds show that full tomography with Pauli measurements needs a number of copies polynomial in ddd. The same scheme, applied to the Choi state, certifies unitary channels and Clifford circuits.

The result is proved on paper but has not been machine-checked. A formal proof requires the Pauli-basis machinery (orthogonality and completeness of the nnn-qubit Pauli operators), the Born-rule model of repeated Pauli measurements, and the combination of a second-moment bound with a sub-Gaussian bound through a two-stage union bound. The formalization also corrects a printed slip: the paper's equality (13) holds only as an inequality (see the milestone's note), which does not affect the result.

Difficulty

Each individual step is classical: Chebyshev's inequality for the first stage, Hoeffding's inequality for the second. The difficulty lies in the bookkeeping that the informal proof leaves implicit. The first-stage estimator involves 1/χρ(k)1/\chi_\rho(k)1/χρ​(k), which is undefined at labels the sampling never produces, so every probability must be weighted by Pr⁡(k)\Pr(k)Pr(k). The second-stage bound holds conditionally on the labels, and its sample sizes mim_imi​ depend on them, so the two stages cannot be treated as one product of independent variables. The constant in Hoeffding's bound must be tracked through the d\sqrt dd​ factors of χ\chiχ and of EAij\mathbb E A_{ij}EAij​, and through the ceiling in mim_imi​. Finally, the Pauli expansion (2) requires the trace orthogonality tr(WkWk′)=d δkk′\mathrm{tr}(W_kW_{k'}) = d\,\delta_{kk'}tr(Wk​Wk′​)=dδkk′​ of nnn-fold tensor products, which is not in Mathlib.

Formalization scope

  • Basis labels are Q n := Fin n → Fin 2, Pauli labels P n := Fin n → Fin 4; matrices are Matrix (Q n) (Q n) ℂ, and WkW_kWk​ is the entrywise product ∏i(Pki)xiyi\prod_i(P_{k_i})_{x_iy_i}∏i​(Pki​​)xi​yi​​. ddd is the real number 2n2^n2n.
  • Traces are real parts of complex traces (real on Hermitian matrices); χρ(k)\chi_\rho(k)χρ​(k) is real-valued.
  • States are WildeQIT.IsDensityOperator (positive semidefinite, trace one), referenced from the platform; purity is ρ=ψψ†\rho = \psi\psi^\daggerρ=ψψ† with ψ†ψ=1\psi^\dagger\psi = 1ψ†ψ=1.
  • ⌈⋅⌉\lceil\cdot\rceil⌈⋅⌉ is Nat.ceil, log⁡\loglog the natural logarithm.
  • The first stage is a finite sum over label tuples weighted by ∏iχρ(ki)2\prod_i\chi_\rho(k_i)^2∏i​χρ​(ki​)2. The second stage is an explicit product measure: each AijA_{ij}Aij​ is +1+1+1 with probability (1+tr(σWki))/2(1+\mathrm{tr}(\sigma W_{k_i}))/2(1+tr(σWki​​))/2 and −1-1−1 otherwise. This Born-rule law is the unique ±1\pm1±1 law with the page's mean d χσ(ki)\sqrt d\,\chi_\sigma(k_i)d​χσ​(ki​). The outcomes are not arbitrary random variables with hypothesised means, which would make the goal vacuous or false.
  • Statements that divide by χρ(ki)\chi_\rho(k_i)χρ​(ki​) either weight by Pr⁡(ki)\Pr(k_i)Pr(ki​) or assume χρ(ki)≠0\chi_\rho(k_i)\neq0χρ​(ki​)=0; none quantifies over all labels without weights.
  • (9), (10), (18) and the well-conditioned bound assume δ<1\delta<1δ<1, so that log⁡(2/δ)>0\log(2/\delta)>0log(2/δ)>0; the goal, (5) and (8) carry no such hypothesis.
  • The goal does not mention variances, Chebyshev, Hoeffding's constant or (15), and it quantifies over every nnn, pure ρ\rhoρ, state σ\sigmaσ and ε,δ>0\varepsilon,\delta>0ε,δ>0. It cannot be discharged by a special case or a degenerate measure.

A complete development needs the Pauli-basis lemmas (Hermiticity, Wk2=IW_k^2 = IWk2​=I, trace orthogonality and the expansion of a matrix in the Pauli basis), a Born-rule lemma for ±1\pm1±1 observables, and Hoeffding and Chebyshev bounds specialised to finite product measures. The Pauli-basis lemmas are reusable well beyond this mission (stabilizer formalism, shadow tomography, randomized benchmarking). Proofs of any milestone, and of auxiliary Pauli-basis facts, are welcome.

Selected references

  • S. T. Flammia and Y.-K. Liu, Direct fidelity estimation from few Pauli measurements, Phys. Rev. Lett. 106, 230501 (2011); arXiv:1104.4695v3. https://arxiv.org/abs/1104.4695
  • M. P. da Silva, O. Landon-Cardinal and D. Poulin, Practical characterization of quantum devices without tomography, Phys. Rev. Lett. 107, 210404 (2011). https://arxiv.org/abs/1104.3835
  • R. Jozsa, Fidelity for mixed quantum states, J. Mod. Opt. 41, 2315 (1994). https://doi.org/10.1080/09500349414552171
  • W. Hoeffding, Probability inequalities for sums of bounded random variables, J. Amer. Statist. Assoc. 58, 13–30 (1963). https://doi.org/10.1080/01621459.1963.10500830
15 thms2 active usersReviewed
Linear algebraTheoretical Computer Science·Captain: mikedeng1

Learning Stabilizer States by Bell Sampling: Algorithm 1 Identifies an n-Qubit Stabilizer State from 5n+2 Copies, Failing with Probability at Most 2⁻ⁿResearch Paper

Motivation

Determining an unknown quantum state of nnn qubits to good accuracy requires, in general, a number of copies of the state exponential in nnn; this follows from Holevo's theorem. One way around this barrier is to restrict the class of states. Stabilizer states are the natural candidate: they are the states produced from ∣0n⟩|0^n\rangle∣0n⟩ by Clifford circuits, they underlie quantum error-correcting codes, measurement-based computation and randomized benchmarking, and there are 2Θ(n2)2^{\Theta(n^2)}2Θ(n2) of them, so Ω(n)\Omega(n)Ω(n) copies are necessary to identify one.

Timeline.

  • Aaronson and Gottesman (2008, Identifying stabilizer states, talk, http://pirsa.org/08080052/) described a procedure identifying an unknown stabilizer state from O(n2)O(n^2)O(n2) copies with single-copy measurements, and a variant using O(n)O(n)O(n) copies with measurements collective across all copies.
  • Low (2009, arXiv:0907.2833) showed that a Clifford unitary can be identified from O(n2)O(n^2)O(n2) uses, or O(n)O(n)O(n) with access to its inverse.
  • Rocchetto (2017, arXiv:1705.00345) showed that stabilizer states are PAC-learnable efficiently.
  • Montanaro (2017, arXiv:1707.04012) gave the algorithm of this mission: O(n)O(n)O(n) copies, collective measurements on at most two copies at a time, failure probability exponentially small in nnn. Zhao, Pérez-Delgado and Fitzsimons obtained a related O(n)O(n)O(n)-copy algorithm for graph states independently (arXiv:1510.03742).

Bell sampling became a standard tool after this paper, for instance in stabilizer testing (Gross, Nezami and Walter, arXiv:1712.08628), so a machine-checked version of its analysis is a reusable base.

Setting

A state of nnn qubits is a vector ψ:{0,1}n→C\psi:\{0,1\}^n\to\mathbb Cψ:{0,1}n→C; its complex conjugate ψ∗\psi^*ψ∗ is taken entrywise in the computational basis. The paper uses the four 2×22\times22×2 matrices

σ00=(1001), σ01=(0110), σ10=(100−1), σ11=σ10σ01=(01−10),\sigma_{00}=\begin{pmatrix}1&0\\0&1\end{pmatrix},\ \sigma_{01}=\begin{pmatrix}0&1\\1&0\end{pmatrix},\ \sigma_{10}=\begin{pmatrix}1&0\\0&-1\end{pmatrix},\ \sigma_{11}=\sigma_{10}\sigma_{01}=\begin{pmatrix}0&1\\-1&0\end{pmatrix},σ00​=(10​01​), σ01​=(01​10​), σ10​=(10​0−1​), σ11​=σ10​σ01​=(0−1​10​),

which are the Pauli matrices up to the factor −i-i−i on σ11\sigma_{11}σ11​. For a string s∈{0,1}2ns\in\{0,1\}^{2n}s∈{0,1}2n, σs=σs1s2⊗⋯⊗σs2n−1s2n\sigma_s=\sigma_{s_1s_2}\otimes\cdots\otimes\sigma_{s_{2n-1}s_{2n}}σs​=σs1​s2​​⊗⋯⊗σs2n−1​s2n​​; strings are added bitwise, s⊕ts\oplus ts⊕t.

The Bell basis of C4\mathbb C^4C4 is ∣σ00⟩=12(∣00⟩+∣11⟩)|\sigma_{00}\rangle=\frac1{\sqrt2}(|00\rangle+|11\rangle)∣σ00​⟩=2​1​(∣00⟩+∣11⟩), ∣σ01⟩=12(∣01⟩+∣10⟩)|\sigma_{01}\rangle=\frac1{\sqrt2}(|01\rangle+|10\rangle)∣σ01​⟩=2​1​(∣01⟩+∣10⟩), ∣σ10⟩=12(∣00⟩−∣11⟩)|\sigma_{10}\rangle=\frac1{\sqrt2}(|00\rangle-|11\rangle)∣σ10​⟩=2​1​(∣00⟩−∣11⟩), ∣σ11⟩=12(∣01⟩−∣10⟩)|\sigma_{11}\rangle=\frac1{\sqrt2}(|01\rangle-|10\rangle)∣σ11​⟩=2​1​(∣01⟩−∣10⟩). Bell sampling on 2n2n2n qubits A1,…,An,B1,…,BnA_1,\dots,A_n,B_1,\dots,B_nA1​,…,An​,B1​,…,Bn​ measures each pair AiBiA_iB_iAi​Bi​ in the Bell basis and returns a string r∈{0,1}2nr\in\{0,1\}^{2n}r∈{0,1}2n. On two copies ∣ψ⟩∣ψ⟩|\psi\rangle|\psi\rangle∣ψ⟩∣ψ⟩ (first copy on the AAA's) the outcome rrr has probability pψ(r)=∣⟨σr∣ ψ⊗ψ⟩∣2p_\psi(r)=|\langle\sigma_r|\,\psi\otimes\psi\rangle|^2pψ​(r)=∣⟨σr​∣ψ⊗ψ⟩∣2.

A stabilizer state is ψ=U∣0n⟩\psi=U|0^n\rangleψ=U∣0n⟩ for a Clifford unitary UUU (a unitary normalising the Pauli group). Its stabilizer set T(ψ)⊆F22nT(\psi)\subseteq\mathbb F_2^{2n}T(ψ)⊆F22n​ is the set of strings ttt for which ψ\psiψ is an eigenvector of σt\sigma_tσt​, i.e. those σt\sigma_tσt​ that lie in the stabilizer group of ψ\psiψ up to a phase.

Algorithm 1. Bell-sample two fresh copies to get r0r_0r0​; repeat 2n2n2n times to get r1,…,r2nr_1,\dots,r_{2n}r1​,…,r2n​; find a basis BBB of span⁡{ri⊕r0}\operatorname{span}\{r_i\oplus r_0\}span{ri​⊕r0​}; for each element of BBB measure one copy of ψ\psiψ in the eigenbasis of the corresponding (Hermitian) Pauli matrix MMM to learn whether M∣ψ⟩=+∣ψ⟩M|\psi\rangle=+|\psi\rangleM∣ψ⟩=+∣ψ⟩ or −∣ψ⟩-|\psi\rangle−∣ψ⟩. It uses 5n+25n+25n+2 copies.

Formalization targets

Goal: Theorem 1, explicit form

For every nnn and every nnn-qubit stabilizer state ψ\psiψ, with the 2n+12n+12n+1 Bell samples independent,

Pr⁡[span⁡{ri⊕r0:1≤i≤2n}=T(ψ)] ≥ 1−2−n,\Pr\bigl[\operatorname{span}\{r_i\oplus r_0:1\le i\le 2n\}=T(\psi)\bigr]\ \ge\ 1-2^{-n},Pr[span{ri​⊕r0​:1≤i≤2n}=T(ψ)] ≥ 1−2−n,

and for every basis b1,…,bnb_1,\dots,b_nb1​,…,bn​ of T(ψ)T(\psi)T(ψ) with Hermitian Paulis MjM_jMj​, each Mjψ=±ψM_j\psi=\pm\psiMj​ψ=±ψ and every vector with the same eigenvalues under all MjM_jMj​ is a scalar multiple of ψ\psiψ. Together: Algorithm 1 identifies ψ\psiψ except with probability at most 2−n2^{-n}2−n.

Milestones

  1. σsσt=±σs⊕t\sigma_s\sigma_t=\pm\sigma_{s\oplus t}σs​σt​=±σs⊕t​.
  2. Lemma 2: pψ(r)=∣⟨ψ∣σr∣ψ∗⟩∣2/2np_\psi(r)=|\langle\psi|\sigma_r|\psi^*\rangle|^2/2^npψ​(r)=∣⟨ψ∣σr​∣ψ∗⟩∣2/2n.
  3. The Bell-sampling probabilities of a unit vector sum to 111.
  4. For a stabilizer state, ∣ψ∗⟩=c σ10⊗S∣ψ⟩|\psi^*\rangle=c\,\sigma_{10}^{\otimes S}|\psi\rangle∣ψ∗⟩=cσ10⊗S​∣ψ⟩ with ∣c∣=1|c|=1∣c∣=1.
  5. Eqn (1): pψ(r)=∣⟨ψ∣σrσ10⊗S∣ψ⟩∣2/2np_\psi(r)=|\langle\psi|\sigma_r\sigma_{10}^{\otimes S}|\psi\rangle|^2/2^npψ​(r)=∣⟨ψ∣σr​σ10⊗S​∣ψ⟩∣2/2n.
  6. T(ψ)T(\psi)T(ψ) is an nnn-dimensional subspace of F22n\mathbb F_2^{2n}F22n​.
  7. ⟨ψ∣σt∣ψ⟩=0\langle\psi|\sigma_t|\psi\rangle=0⟨ψ∣σt​∣ψ⟩=0 for t∉T(ψ)t\notin T(\psi)t∈/T(ψ).
  8. pψp_\psipψ​ is uniform on a coset {t⊕s:t∈T}\{t\oplus s:t\in T\}{t⊕s:t∈T}.
  9. For two independent outcomes, r1⊕r2r_1\oplus r_2r1​⊕r2​ is uniform on TTT.
  10. TTT and the signs on a basis of TTT determine ψ\psiψ up to a scalar.
  11. 2n2n2n uniform samples of an nnn-dimensional F2\mathbb F_2F2​-space fail to span it with probability at most 2−n2^{-n}2−n.

Significance

The theorem gives a learning algorithm whose copy complexity O(n)O(n)O(n) is optimal and whose measurements are simple: one Bell measurement on corresponding qubits of two copies. Its analysis isolates a structural fact about stabilizer states, that Bell sampling on two copies produces a uniformly random element of a coset of the stabilizer subspace, which is the engine of later work on stabilizer testing and on learning states with few non-Clifford gates.

The result is proved in the paper; no machine-checked proof of it is known. A complete formalization adds: the stabilizer formalism in a form usable from the definition "U∣0n⟩U|0^n\rangleU∣0n⟩ for a Clifford UUU" (the subspace TTT, its dimension, vanishing expectations off TTT, determination by signs); the conjugation identity, which the paper takes from a normal form cited from the literature; and the probabilistic bookkeeping of the algorithm with its exact constants.

Difficulty

The probability calculations (Lemma 2, eqn (1), the union bound) are finite sums. The difficulty lies in the stabilizer structure. The platform's definition of a stabilizer state is the image of ∣0n⟩|0^n\rangle∣0n⟩ under a Clifford unitary; from it one must derive that the strings whose σt\sigma_tσt​ fixes ψ\psiψ up to phase form an nnn-dimensional subspace, that all other Pauli expectations vanish, and that ψ∗\psi^*ψ∗ differs from ψ\psiψ by a diagonal Pauli. The paper obtains the last fact from the Dehaene–De Moor normal form ψ∝∑x∈Aiℓ(x)(−1)q(x)∣x⟩\psi\propto\sum_{x\in A}i^{\ell(x)}(-1)^{q(x)}|x\rangleψ∝∑x∈A​iℓ(x)(−1)q(x)∣x⟩, a cited theorem whose proof is not on the page; formalizing either that normal form or a direct substitute is the central step. The natural shortcut, treating TTT as given with "uniform outcomes on TTT" as a hypothesis, proves only the counting lemma and is ruled out below.

Formalization scope

  • States are StabilizerRank.QState n = (Fin n → Bool) → ℂ and stabilizer states are StabilizerRank.IsStabilizerState (published platform definition, referenced). Qubit iii is coordinate iii, false =0=0=0.
  • Strings {0,1}2n\{0,1\}^{2n}{0,1}2n are encoded as Fin n → ZMod 2 × ZMod 2, coordinate iii the pair (s2i−1,s2i)(s_{2i-1},s_{2i})(s2i−1​,s2i​) of qubit iii; ⊕\oplus⊕ is +.
  • σ11\sigma_{11}σ11​ is the page's (01−10)\begin{pmatrix}0&1\\-1&0\end{pmatrix}(0−1​10​), not the Pauli YYY. The "corresponding Pauli matrix" of step 5 is the Hermitian (−i)#{i:ti=11}σt(-i)^{\#\{i:t_i=11\}}\sigma_t(−i)#{i:ti​=11}σt​; the page does not fix this phase.
  • The Bell outcome law is the Born rule with ψ(x)ψ(y)\psi(x)\psi(y)ψ(x)ψ(y) the amplitude of ∣ψ⟩∣ψ⟩|\psi\rangle|\psi\rangle∣ψ⟩∣ψ⟩ at ∣x⟩A∣y⟩B|x\rangle_A|y\rangle_B∣x⟩A​∣y⟩B​.
  • Algorithm 1 is modelled by its outcome law: the 2n+12n+12n+1 samples are independent (fresh copies), and an event has probability ∑1E pψ(r0)∏ipψ(ri)\sum \mathbf 1_E\,p_\psi(r_0)\prod_i p_\psi(r_i)∑1E​pψ​(r0​)∏i​pψ​(ri​). Step 5 is deterministic once a basis of TTT is known, and is stated as a property of every such basis.
  • The explicit constants of p. 2 replace "O(n)O(n)O(n)" and "exponentially small": 2n+12n+12n+1 Bell samples, success probability at least 1−2−n1-2^{-n}1−2−n (the page's "fails with probability at most 2−n2^{-n}2−n", in a form that a mis-normalised outcome law cannot satisfy). The count 5n+25n+25n+2 and "at most two copies at a time" are properties of the model, not separate clauses. The running time O(n3)O(n^3)O(n3) is not formalized.
  • Lemma 2 is stated for every vector, not only unit vectors (the identity is homogeneous). The conjugation identity carries a unit phase ccc, which the page omits. "⟨ψ∣M∣ψ⟩=0\langle\psi|M|\psi\rangle=0⟨ψ∣M∣ψ⟩=0 for M∉GM\notin GM∈/G" is stated for strings outside TTT.
  • Ruled out: TTT as a hypothesis (it is always computed from ψ\psiψ), dropping the reference sample r0r_0r0​ or the independence of the samples, a degenerate outcome law, and reading "identifies" as "the samples span TTT" without the sign step.

Needed infrastructure: Kronecker-product manipulations of σs\sigma_sσs​ indexed by bit strings, the Bell basis as an orthonormal basis of (C2⊗C2)⊗n(\mathbb C^2\otimes\mathbb C^2)^{\otimes n}(C2⊗C2)⊗n, the stabilizer formalism over F22n\mathbb F_2^{2n}F22n​, and counting hyperplanes of finite F2\mathbb F_2F2​-spaces. The stabilizer-formalism layer and the union bound are reusable beyond this mission. Contributions to any milestone are welcome, in particular direct proofs of milestones 4, 6 and 7 from the Clifford definition.

Selected references

  • A. S. Holevo, Bounds for the quantity of information transmitted by a quantum communication channel, Problems of Information Transmission 9:177–183, 1973.
  • D. Gross, S. Nezami and M. Walter, Schur–Weyl duality for the Clifford group with applications: property testing, a robust Hudson theorem, and de Finetti representations, Comm. Math. Phys. 385:1325–1393, 2021. https://arxiv.org/abs/1712.08628
  • A. Montanaro, Learning stabilizer states by Bell sampling, arXiv preprint, 2017. https://arxiv.org/abs/1707.04012
  • S. Aaronson and D. Gottesman, Identifying stabilizer states, PIRSA talk, 2008. http://pirsa.org/08080052/
  • R. Low, Learning and testing algorithms for the Clifford group, Phys. Rev. A 80:052314, 2009. https://arxiv.org/abs/0907.2833
  • A. Rocchetto, Stabiliser states are efficiently PAC-learnable, arXiv preprint, 2017. https://arxiv.org/abs/1705.00345
  • L. Zhao, C. Pérez-Delgado and J. Fitzsimons, Fast graph operations in quantum computation, Phys. Rev. A 93:032314, 2016. https://arxiv.org/abs/1510.03742
  • J. Dehaene and B. De Moor, Clifford group, stabilizer states, and linear and quadratic operations over GF(2), Phys. Rev. A 68:042318, 2003. https://arxiv.org/abs/quant-ph/0304125
  • M. Van den Nest, Classical simulation of quantum computation, the Gottesman–Knill theorem, and slightly beyond, Quantum Inf. Comput. 10:258, 2010. https://arxiv.org/abs/0811.0898
  • S. Aaronson, The learnability of quantum states, Proc. R. Soc. A 463:3089, 2007. https://arxiv.org/abs/quant-ph/0608142
14 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
Quantum Error Correction·Captain: Lucas

Quantum Threshold Theorem: Polylogarithmic-Overhead Fault-Tolerant Simulation Below a Constant Fault RateTextbook

Motivation

A quantum computer cannot perform gate operations perfectly, so a small constant error per operation is unavoidable. A priori this could mean that a noisy quantum computer can apply only a bounded number of gates before the computation is destroyed by noise, which would rule out long quantum computations in practice. The threshold theorem (or quantum fault-tolerance theorem) says that this does not happen: if the error rate of the physical components is below a constant threshold, quantum error correction can suppress the logical error rate to arbitrarily low levels at a modest cost in size. It is the quantum analogue of von Neumann's threshold theorem for classical computation with unreliable components (von Neumann 1956).

Timeline.

  • 1956: von Neumann shows that reliable classical computation is possible with components that fail with a small constant probability.
  • 1996: Shor gives the first fault-tolerant quantum computation scheme, proving a weaker version of the threshold theorem (Shor 1996).
  • 1997-1999: the threshold theorem is proved independently, for various error models, by Aharonov and Ben-Or (arXiv:quant-ph/9906129); Knill, Laflamme and Zurek (arXiv:quant-ph/9702058); and Kitaev (arXiv:quant-ph/9707021).
  • 2000: Nielsen and Chuang give the general framework stated below in their textbook.

Setting

A register of qubits is labelled by a finite set QQQ, and its states are density matrices indexed by bit strings x:Q→{0,1}x:Q\to\{0,1\}x:Q→{0,1}. A location applies one elementary operation to an ordered tuple of distinct qubits. The elementary operations are the gates HHH, T=diag(1,eiπ/4)T=\mathrm{diag}(1,e^{i\pi/4})T=diag(1,eiπ/4) and CNOT\mathrm{CNOT}CNOT, the preparation of a qubit in ∣0⟩|0\rangle∣0⟩, and a single-qubit wait. A layer is a set of locations whose supports partition the register, so idle qubits carry explicit waits. A circuit CCC is a sequence of layers started in ∣0⋯0⟩|0\cdots0\rangle∣0⋯0⟩, and its size ∣C∣|C|∣C∣ is its total number of locations. Measuring every qubit at the end gives the outcome distribution Pideal(C)P_{\mathrm{ideal}}(C)Pideal​(C).

The hardware follows an independent stochastic noise model with fault rate at most ppp: each location, independently, is faulty with some probability q≤pq\le pq≤p, and a faulty location applies an arbitrary, adversarially chosen quantum channel to its own qubits instead of its ideal operation. Running a physical circuit C′C'C′ on such hardware gives the outcome distribution Pnoisy(C′)P_{\mathrm{noisy}}(C')Pnoisy​(C′). A physical circuit simulating nnn logical qubits acts on nnn blocks of bbb qubits; at the end each block's measured bits are decoded to one logical bit by a fixed map dec:{0,1}b→{0,1}\mathrm{dec}:\{0,1\}^b\to\{0,1\}dec:{0,1}b→{0,1}.

Formalization targets

Goal: threshold theorem

The source states the theorem as follows: a quantum circuit on nnn qubits containing p(n)p(n)p(n) gates may be simulated with probability of error at most ε\varepsilonε using O(log⁡c(p(n)/ε) p(n))O(\log^{c}(p(n)/\varepsilon)\,p(n))O(logc(p(n)/ε)p(n)) gates, for some constant ccc, on hardware whose components fail with probability at most ppp, provided ppp is below some constant threshold pthp_{\mathrm{th}}pth​, and given reasonable assumptions about the noise in the underlying hardware. Formally: there are pth>0p_{\mathrm{th}}>0pth​>0 and c∈Nc\in\mathbb Nc∈N such that for each 0≤p<pth0\le p<p_{\mathrm{th}}0≤p<pth​ there is AAA such that for all nnn, DDD and 0<ε<10<\varepsilon<10<ε<1 there are bbb and dec\mathrm{dec}dec such that every depth-DDD circuit CCC on nnn qubits has a simulation C′C'C′ with

∣C′∣≤A(log⁡∣C∣ε+1)c∣C∣,dTV(dec∗Pnoisy(C′),Pideal(C))≤ε|C'|\le A\Big(\log\tfrac{|C|}{\varepsilon}+1\Big)^{c}|C|,\qquad d_{\mathrm{TV}}\big(\mathrm{dec}_*P_{\mathrm{noisy}}(C'),P_{\mathrm{ideal}}(C)\big)\le\varepsilon∣C′∣≤A(logε∣C∣​+1)c∣C∣,dTV​(dec∗​Pnoisy​(C′),Pideal​(C))≤ε

for every noise model with fault rate at most ppp. The goal leaves the threshold, the exponent and the constants unspecified; it asserts only the shape of the result.

Milestones

  1. Errors accumulate at most linearly: without encoding, dTV≤p ∣C∣d_{\mathrm{TV}}\le p\,|C|dTV​≤p∣C∣.
  2. Better gates: one level of encoding gives dTV≤c p2∣C∣d_{\mathrm{TV}}\le c\,p^2|C|dTV​≤cp2∣C∣ with ∣C′∣≤A∣C∣|C'|\le A|C|∣C′∣≤A∣C∣.
  3. Recursion: ek+1≤c ek2e_{k+1}\le c\,e_k^2ek+1​≤cek2​ and e0≤pe_0\le pe0​≤p imply ek≤(cp)2k/ce_k\le (cp)^{2^k}/cek​≤(cp)2k/c.
  4. Concatenation: for every kkk, dTV≤(cp)2kc∣C∣d_{\mathrm{TV}}\le \frac{(cp)^{2^k}}{c}|C|dTV​≤c(cp)2k​∣C∣ with ∣C′∣≤Adk∣C∣|C'|\le A d^k|C|∣C′∣≤Adk∣C∣.
  5. Overhead: choosing kkk to make the total error at most ε\varepsilonε costs dk=O((log⁡(g/ε)+1)⌈log⁡2d⌉)d^k=O\big((\log(g/\varepsilon)+1)^{\lceil\log_2 d\rceil}\big)dk=O((log(g/ε)+1)⌈log2​d⌉).

Significance

The theorem shows that noise is not a fundamental obstacle to scalable quantum computation: any efficient ideal quantum algorithm remains efficient on noisy hardware once the physical error rate is below a constant. Current estimates put the threshold for the surface code on the order of 1%1\%1% (Fowler, Stephens, Groszkowski 2009), and the theorem underlies the resource estimates that guide current hardware development (Campbell, Terhal, Vuillot 2017).

The theorem has been proved on paper in several forms. A machine-checked proof requires an explicit model of noisy circuits, the construction of fault-tolerant gadgets for a universal gate set, and the probabilistic bookkeeping that is usually left informal. This mission provides the model and an attack path that follows the standard proof strategy.

Difficulty

Encoding a gate in an error-correcting code makes it larger, and therefore exposes it to more faults. The whole difficulty is to show that errors are corrected faster than they are created: every encoded gadget, including error correction itself and the non-Clifford TTT gate, must be designed so that a single fault cannot cause a logical failure, and this must hold uniformly at every level of concatenation. Simply repeating each operation and taking a majority vote does not work for quantum states, which cannot be copied, and measuring a qubit directly destroys the encoded information.

Formalization scope

All statements use one definition file. Qubits of the physical register are labelled by Fin n × Fin b; states are complex matrices indexed by Q → Fin 2; channels are lists of Kraus operators; noise is the independent stochastic model above, with per-location fault probabilities in [0,p][0,p][0,p] and arbitrary fault channels. No mid-circuit measurement is available, but qubits can be re-prepared in ∣0⟩|0\rangle∣0⟩ at any time. Sizes count every location, idle steps included. The block size and the decoder may depend on nnn, the depth, ε\varepsilonε and ppp, but never on the circuit being simulated; this rules out a decoder that simply writes down the answer, and the size bound rules out classical brute-force simulation inside the physical circuit.

A complete development needs: trace-distance and contractivity facts for channels, a quantum error-correcting code with fault-tolerant gadgets for HHH, TTT, CNOT\mathrm{CNOT}CNOT, preparation and error correction, a fault-counting argument for one level of encoding, and its iteration under concatenation. The channel and trace-distance infrastructure is reusable beyond this mission.

Selected references

  • J. von Neumann, Probabilistic Logics and the Synthesis of Reliable Organisms From Unreliable Components, Automata Studies, Princeton University Press, 1956. https://doi.org/10.1515/9781400882618-003
  • P. W. Shor, Fault-tolerant quantum computation, Proc. 37th FOCS, 1996. https://doi.org/10.1109/SFCS.1996.548464
  • D. Aharonov and M. Ben-Or, Fault-Tolerant Quantum Computation with Constant Error Rate, SIAM J. Comput. 38(4), 2008. https://arxiv.org/abs/quant-ph/9906129
  • E. Knill, Resilient Quantum Computation, Science 279, 1998. https://arxiv.org/abs/quant-ph/9702058
  • A. Yu. Kitaev, Fault-tolerant quantum computation by anyons, Annals of Physics 303, 2003. https://arxiv.org/abs/quant-ph/9707021
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, 2010.
  • Wikipedia, Threshold theorem. https://en.wikipedia.org/w/index.php?title=Threshold_theorem&oldid=1360742213
7 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
Optimization·Captain: Goku

Quantum algorithms for optimizers 9: QAOA with enough layers reaches a maximum eigenstate of H_FTextbook

Motivation

This mission develops Chapter 9 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 and let f:{0,1}n→Rf : \{0,1\}^n \to \mathbb{R}f:{0,1}n→R be the objective of the maximization problem (9.38). Define the nnn-qubit Hamiltonians

HF=∑x∈{0,1}nf(x) ∣x⟩⟨x∣,HI=∑j=1nσjX,H_F = \sum_{x \in \{0,1\}^n} f(x)\,|x\rangle\langle x|, \qquad H_I = \sum_{j=1}^n \sigma_j^X,HF​=x∈{0,1}n∑​f(x)∣x⟩⟨x∣,HI​=j=1∑n​σjX​,

where σjX\sigma_j^XσjX​ is the Pauli XXX on qubit jjj and the identity elsewhere. For p≥1p \ge 1p≥1 and β,θ∈[0,2π]p\beta, \theta \in [0, 2\pi]^pβ,θ∈[0,2π]p let

UQAOA(p,β,θ)=e−iβpHIe−iθpHF⋯e−iβ1HIe−iθ1HF.U_{\mathrm{QAOA}}(p, \beta, \theta) = e^{-i\beta_p H_I} e^{-i\theta_p H_F} \cdots e^{-i\beta_1 H_I} e^{-i\theta_1 H_F}.UQAOA​(p,β,θ)=e−iβp​HI​e−iθp​HF​⋯e−iβ1​HI​e−iθ1​HF​.

Then for every δ>0\delta > 0δ>0 there are a unit vector ∣φ⟩|\varphi\rangle∣φ⟩ with HF∣φ⟩=(max⁡xf(x)) ∣φ⟩H_F|\varphi\rangle = (\max_x f(x))\,|\varphi\rangleHF​∣φ⟩=(maxx​f(x))∣φ⟩, that is an eigenstate of HFH_FHF​ with maximum eigenvalue, and an integer P≥1P \ge 1P≥1 such that for every p≥Pp \ge Pp≥P there are angles β∗,θ∗∈[0,2π]p\beta^*, \theta^* \in [0, 2\pi]^pβ∗,θ∗∈[0,2π]p with

∥UQAOA(p,β∗,θ∗) (H∣0⟩)⊗n−∣φ⟩∥≤δ.\bigl\| U_{\mathrm{QAOA}}(p, \beta^*, \theta^*)\,(H|0\rangle)^{\otimes n} - |\varphi\rangle \bigr\| \le \delta .​UQAOA​(p,β∗,θ∗)(H∣0⟩)⊗n−∣φ⟩​≤δ.

Here (H∣0⟩)⊗n(H|0\rangle)^{\otimes n}(H∣0⟩)⊗n is the uniform superposition, the maximum eigenstate of HIH_IHI​. The proposition says that with enough layers, the QAOA ansatz can reproduce adiabatic evolution along H(s)=(1−s)HI+sHFH(s) = (1-s)H_I + sH_FH(s)=(1−s)HI​+sHF​ and so prepares a state close to one encoding an optimal solution of (9.38).

Formalization Note The source's limit over ppp, with angles that depend on ppp, is stated as "for all sufficiently large ppp some angles achieve distance at most δ\deltaδ", with the target eigenvector fixed before ppp. The global phase allowed by Theorem 9.11 is absorbed into the choice of the eigenvector, since a phase multiple of a maximum eigenvector is again one. The informal claim that UQAOAU_{\mathrm{QAOA}}UQAOA​ "approximates an adiabatic evolution" is represented by its stated "in particular" consequence.

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 9.4: The Ising Hamiltonian is diagonal with the QUBO objective values.
  • Theorem 9.11: Adiabatic theorem with T ≥ (10⁴/δ²)(‖H′‖³/γ⁴ + ‖H′‖‖H″‖/γ³).
  • Theorem 9.17: Adiabatic theorem when the tracked eigenvalue is identically 0.
  • Lemma 9.18: Derivative bounds for the phase-fixed instantaneous zero eigenvector.
  • Lemma 9.20: Replacing U_k ⋯ U_j by powers of U_1 in the discretized adiabatic evolution.
  • Corollary 9.21: The T-bound of Theorem 9.11 suffices (derived from Theorem 9.17).
  • Theorem 9.23: Adiabatic theorem with the integrated 1/γ³ gap dependence.
  • Corollary 9.24: Adiabatic theorem for the linear interpolation (1 − s)H_I + sH_F.
  • Proposition 9.28: QAOA with enough layers reaches a maximum eigenstate of H_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

  • Giacomo Nannicini, Quantum algorithms for optimizers, 2025, v5; notes dated 9 July 2025. https://arxiv.org/pdf/2408.07086v5.
9 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
Optimization·Captain: Goku

Quantum algorithms for optimizers 8: End-to-end complexity of the quantum MaxCut SDP solver in the QRAM model (corrected statement)Textbook

Motivation

This mission develops Chapter 8 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 Proposition 8.34 of Nannicini, the end-to-end cost of the quantum mirror-descent solver for the MaxCut SDP relaxation, stated in an explicit hybrid classical–quantum QRAM cost model.

Let n=2qn=2^qn=2q. For a nonzero real symmetric C∈Rn×nC\in\mathbb R^{n\times n}C∈Rn×n put C^=C/∥C∥F\hat C=C/\|C\|_FC^=C/∥C∥F​. Call a density matrix ρ∈Cn×n\rho\in\mathbb C^{n\times n}ρ∈Cn×n an ϵ\epsilonϵ-solution of (MaxCutSDP) if

∑j=1n∣ρjj−1n∣≤ϵandTr⁡(C^ρ) ≥ Tr⁡(C^σ)−ϵ  for every density matrix σ with diag⁡(σ)=1n1.\sum_{j=1}^n\Big|\rho_{jj}-\frac1n\Big|\le\epsilon\qquad\text{and}\qquad \operatorname{Tr}(\hat C\rho)\ \ge\ \operatorname{Tr}(\hat C\sigma)-\epsilon\ \text{ for every density matrix }\sigma\text{ with }\operatorname{diag}(\sigma)=\tfrac1n\mathbb 1.j=1∑n​​ρjj​−n1​​≤ϵandTr(C^ρ) ≥ Tr(C^σ)−ϵ  for every density matrix σ with diag(σ)=n1​1.

A hybrid algorithm consists of (i) a classical preprocessing program, a straight-line program of real arithmetic operations (+,−,×,÷,⋅,arccos⁡,arg⁡+,-,\times,\div,\sqrt\cdot,\arccos,\arg+,−,×,÷,⋅​,arccos,arg, rational constants), which is the only part that reads the entries of CCC and which writes the input half of a QRAM (UQRAM∣j⟩∣y⟩=∣j⟩∣y⊕Mj⟩U_{\mathrm{QRAM}}|j\rangle|y\rangle=|j\rangle|y\oplus M_j\rangleUQRAM​∣j⟩∣y⟩=∣j⟩∣y⊕Mj​⟩, Def. 5.39); (ii) RRR quantum runs, each applying a circuit of two-qubit gates and QRAM calls to ∣0⋯0⟩|0\cdots0\rangle∣0⋯0⟩ and measuring all qubits, where the circuit of each run and the contents of the work half of the QRAM are chosen classically from the outcomes of the earlier runs; (iii) an output, computed from all outcomes, in the form of a list of pairs (y(i),d(i))∈R2×Rn(y^{(i)},d^{(i)})\in\mathbb R^2\times\mathbb R^n(y(i),d(i))∈R2×Rn, which stands for the matrix

ρˉ=1L∑i=1Lexp⁡(y1(i)C^+y2(i)diag⁡(d(i)))Tr⁡exp⁡(y1(i)C^+y2(i)diag⁡(d(i))).\bar\rho=\frac1{L}\sum_{i=1}^{L}\frac{\exp\big(y^{(i)}_1\hat C+y^{(i)}_2\operatorname{diag}(d^{(i)})\big)}{\operatorname{Tr}\exp\big(y^{(i)}_1\hat C+y^{(i)}_2\operatorname{diag}(d^{(i)})\big)}.ρˉ​=L1​i=1∑L​Trexp(y1(i)​C^+y2(i)​diag(d(i)))exp(y1(i)​C^+y2(i)​diag(d(i)))​.

The theorem: there are absolute constants K>0K>0K>0 and ccc such that for all qqq, all ϵ∈(0,1]\epsilon\in(0,1]ϵ∈(0,1] and all δ∈(0,1)\delta\in(0,1)δ∈(0,1), with Λ=log⁡(2+n)+log⁡(2+1/ϵ)+log⁡(2+1/δ)\Lambda=\log(2+n)+\log(2+1/\epsilon)+\log(2+1/\delta)Λ=log(2+n)+log(2+1/ϵ)+log(2+1/δ), there is a hybrid algorithm, fixed before CCC, such that

  1. the QRAM has size at most Kn2ΛcK n^2\Lambda^cKn2Λc, with words of at most KΛcK\Lambda^cKΛc bits;
  2. the preprocessing uses at most Kn2ΛcK n^2\Lambda^cKn2Λc classical operations;
  3. along every measurement record the total number of QRAM accesses and additional gates is at most K n1.5ϵ5ΛcK\,\dfrac{n^{1.5}}{\epsilon^5}\Lambda^cKϵ5n1.5​Λc;
  4. for every nonzero real symmetric CCC, with probability at least 1−δ1-\delta1−δ the output ρˉ\bar\rhoρˉ​ is an ϵ\epsilonϵ-solution of (MaxCutSDP).

The proposition is the payoff of the chapter's MaxCut analysis: the subgradient estimation of Prop. 8.28, the iteration count of Thm. 8.30 and the Hamiltonian structure of Lem. 8.33 combine into a quantum solver whose quantum cost is sublinear in the n2n^2n2 entries of CCC.

Formalization Note The printed proposition has no cost model, no success probability, and no precise meaning for the tolerance over the binary search on γ\gammaγ; these are fixed as above. The classical bookkeeping between quantum runs (tallying samples, forming the subgradients, updating yyy and DDD) is not counted, matching the proof, which takes the classical cost from Prop. 7.29 alone; that bookkeeping never sees CCC. The output is the source's own representation of the iterate (Rem. 8.27, Lem. 8.33): with an arbitrary decoder, the optimum could be read off C^\hat CC^ for free.

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 8.7: Entropic mirror descent iterates are the Gibbs states of the accumulated subgradients.
  • Theorem 8.10: Regret bound of the matrix multiplicative weights update.
  • Lemma 8.12: Emptiness of the PIC polytope certifies primal feasibility after rescaling.
  • Theorem 8.15: Algorithm 7 (MMWU for SDP) returns a primal or a dual certificate.
  • Proposition 8.19: The generalized PIC polytope built from θ-accurate traces is sandwiched between P_0 and P_{4Rrθ}.
  • Proposition 8.21: Computing the dual vector with Õ(√m) calls to a trace-estimate oracle (corrected statement).
  • Proposition 8.28: The estimated MaxCut subgradient is an ϵ/2-subgradient (corrected zero branch).
  • Lemma 8.29: A subgradient of the active piece at a nearby point is an approximate subgradient of the max.
  • Theorem 8.30: Convergence of inexact entropic mirror descent for the MaxCut SDP feasibility problem.
  • Lemma 8.33: The MaxCut mirror-descent Hamiltonians are y₁Ĉ + y₂D with ‖y‖₁ ≤ (4/ϵ) log n.
  • Proposition 8.34: End-to-end complexity of the quantum MaxCut SDP solver in the QRAM model (corrected statement).

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.
11 thms2 active usersReviewed
🏆Completed
Captain: Goku

Lecture Notes on Quantum Algorithms 5: Ω(√N) deterministic classical queries for the HSP with N trivially intersecting subgroupsTextbook

Motivation

This mission develops Chapter 5 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

In the hidden subgroup problem (HSP) on a finite group GGG, an algorithm has black-box access to a function f:G→Sf : G \to Sf:G→S, where SSS is a finite set, promised to hide some unknown subgroup H≤GH \le GH≤G:

f(x)=f(y)  ⟺  x−1y∈H(x,y∈G).f(x) = f(y) \iff x^{-1}y \in H \qquad (x, y \in G).f(x)=f(y)⟺x−1y∈H(x,y∈G).

The goal is to determine HHH. A deterministic classical algorithm is a decision tree: it queries group elements g1,g2,…g_1, g_2, \dotsg1​,g2​,… adaptively, each query returning f(gℓ)∈Sf(g_\ell) \in Sf(gℓ​)∈S, and finally outputs a subgroup of GGG. It solves the HSP if, for every subgroup H≤GH \le GH≤G and every fff hiding HHH, its output is HHH. Its query count on input fff is the number of queries it makes on fff.

Theorem. There are an absolute constant c>0c > 0c>0 and a threshold N0N_0N0​ such that the following holds for every N≥N0N \ge N_0N≥N0​. Let GGG be a finite group and SSS a finite set with ∣S∣≥∣G∣|S| \ge |G|∣S∣≥∣G∣, and suppose GGG has a family H\mathcal HH of NNN distinct subgroups any two of which have only the identity in common, i.e. H∩K={1}H \cap K = \{1\}H∩K={1} for all distinct H,K∈HH, K \in \mathcal HH,K∈H. Then every deterministic classical algorithm that solves the HSP on GGG (with values in SSS) makes, on some input fff hiding some subgroup of GGG,

#queries(f)≥cN.\#\text{queries}(f) \ge c\sqrt{N}.#queries(f)≥cN​.

The theorem shows that the HSP is classically hard whenever the group has many trivially intersecting subgroups (for example Simon's problem), in contrast with efficient quantum algorithms for abelian groups.

Formalization Note The algorithm outputs the subgroup itself rather than a generating set, which changes nothing for a query lower bound. The condition ∣S∣≥∣G∣|S| \ge |G|∣S∣≥∣G∣ makes every subgroup of GGG hideable; the proof's adversary labels each new query with a fresh value, and with a very small SSS (say ∣S∣=1|S| = 1∣S∣=1) only H=GH = GH=G can be hidden, so the bound would fail. The constants ccc and N0N_0N0​ are chosen before the group, the set SSS, the family and the algorithm. The threshold N0N_0N0​ is needed because for the trivial group N=1N = 1N=1 and no queries are needed. The phrase "whose only common element is the identity" is read pairwise, as in the section's "trivially intersecting subgroups" and as the proof needs when it counts at most t(t−1)t(t-1)t(t−1) non-identity values gj−1gkg_j^{-1}g_kgj−1​gk​ against NNN subgroups. Read as ⋂H={1}\bigcap \mathcal H = \{1\}⋂H={1}, the theorem is false: in the cyclic group of squarefree order p1⋯pkp_1\cdots p_kp1​⋯pk​, all 2k2^k2k subgroups intersect trivially, yet k+1k+1k+1 queries determine HHH.

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.1: Ω(√N) deterministic classical queries for the HSP with N trivially intersecting subgroups.

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
Captain: Goku

Lecture Notes on Quantum Algorithms 21: Symmetrization: the Hamming-weight average of a multilinear polynomial is a polynomial of no larger degreeTextbook

Motivation

This mission develops Chapter 21 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

This is the symmetrization lemma of Minsky and Papert.

Let p∈R[x1,…,xn]p \in \mathbb R[x_1, \dots, x_n]p∈R[x1​,…,xn​] be multilinear, meaning that every variable has degree at most 111 in ppp. For k∈{0,1,…,n}k \in \{0, 1, \dots, n\}k∈{0,1,…,n}, let

P(k):=E∣x∣=k [p(x)]=(nk)−1∑x∈{0,1}n, ∣x∣=kp(x),P(k) := \mathbb E_{|x| = k}\,[p(x)] = \binom{n}{k}^{-1} \sum_{x \in \{0,1\}^n,\ |x| = k} p(x),P(k):=E∣x∣=k​[p(x)]=(kn​)−1x∈{0,1}n, ∣x∣=k∑​p(x),

where ∣x∣|x|∣x∣ is the Hamming weight of xxx (its number of 1s). Then there is a univariate polynomial Q∈R[k]Q \in \mathbb R[k]Q∈R[k] with deg⁡Q≤deg⁡p\deg Q \le \deg pdegQ≤degp (total degree) such that Q(k)=P(k)Q(k) = P(k)Q(k)=P(k) for every k∈{0,1,…,n}k \in \{0, 1, \dots, n\}k∈{0,1,…,n}.

Symmetrization reduces questions about multivariate polynomials that represent symmetric Boolean functions, such as parity or OR, to questions about univariate polynomials. Those questions can then be settled by counting sign changes or by Markov's inequality.

Formalization Note The statement that "PPP is a polynomial" is formalized as agreement with a univariate polynomial on the points {0,…,n}\{0, \dots, n\}{0,…,n}, the only points where PPP is defined. For these kkk the average is taken over a nonempty set.

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

  • Lemma 21.1: Polynomial method: the acceptance probability of a t-query algorithm is a polynomial of degree at most 2t.
  • Lemma 21.2: Symmetrization: the Hamming-weight average of a multilinear polynomial is a polynomial of no larger degree.

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 27: Local d²-edge-colouring of a bipartite graph of maximum degree dTextbook

Motivation

This mission develops Chapter 27 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

Fix integers N,d≥0N,d\ge 0N,d≥0. There is a single colouring rule ccc, chosen before the graph, that assigns to an ordered pair of vertices α,β∈{1,…,N}\alpha,\beta\in\{1,\dots,N\}α,β∈{1,…,N} a colour c((α,s(α),Lα),(β,s(β),Lβ))∈N×Nc\big((\alpha,s(\alpha),L_\alpha),(\beta,s(\beta),L_\beta)\big)\in\mathbb N\times\mathbb Nc((α,s(α),Lα​),(β,s(β),Lβ​))∈N×N that depends only on the two vertices, their sides s(α),s(β)s(\alpha),s(\beta)s(α),s(β) of the bipartition, and their neighbour lists Lα,LβL_\alpha,L_\betaLα​,Lβ​, with the following property.

Let GGG be an undirected simple graph on the vertex set {1,…,N}\{1,\dots,N\}{1,…,N} with a bipartition s:V→{left,right}s:V\to\{\mathrm{left},\mathrm{right}\}s:V→{left,right} (every edge joins the two sides) and maximum degree at most ddd, and let LvL_vLv​ be any duplicate-free list of the neighbours of each vertex vvv. Then the map {α,β}↦c((α,s(α),Lα),(β,s(β),Lβ))\{\alpha,\beta\}\mapsto c\big((\alpha,s(\alpha),L_\alpha),(\beta,s(\beta),L_\beta)\big){α,β}↦c((α,s(α),Lα​),(β,s(β),Lβ​)) is a proper edge colouring of GGG:

  1. it is symmetric on edges, so each edge receives one colour;
  2. two distinct edges sharing a vertex receive distinct colours;
  3. the number of distinct colours used on the edges of GGG satisfies
#{ c(α,β):αβ∈E(G) }≤d2.\#\{\,c(\alpha,\beta) : \alpha\beta\in E(G)\,\}\le d^2 .#{c(α,β):αβ∈E(G)}≤d2.

In the source the colour of an edge αβ\alpha\betaαβ with α\alphaα on the left is (idx(α,β),idx(β,α))(\mathrm{idx}(\alpha,\beta),\mathrm{idx}(\beta,\alpha))(idx(α,β),idx(β,α)), where idx(α,β)\mathrm{idx}(\alpha,\beta)idx(α,β) is the position of β\betaβ in the neighbour list of α\alphaα. The lemma is the colouring step of the simulation of sparse Hamiltonians: the edges of each colour class form a matching, whose Hamiltonian is simulated separately before the pieces are combined by a product formula.

Formalization Note The source's "efficiently computable" has no machine model, so the running time of the rule is not formalized; what is kept is that one rule serves every graph and reads only the two endpoints' local data (two neighbour-list queries per edge). Colours are pairs of natural numbers rather than elements of [d]×[d][d]\times[d][d]×[d] so that the rule is total at d=0d=0d=0; the bound d2d^2d2 is on the colours actually used on edges.

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

  • Lemma 27.1: Local d²-edge-colouring of a bipartite graph of maximum degree d.

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
Captain: Goku

Lecture Notes on Quantum Algorithms 9: Period finding over the reals: an irrational period from two Fourier samplesTextbook

Motivation

This mission develops Chapter 9 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

This is the classical post-processing step of period finding over the reals (Childs, Lemma 9.1).

Write ⌊x⌉\lfloor x \rceil⌊x⌉ for the integer nearest to the real number xxx. Let r>0r > 0r>0 be a real number (the period, possibly irrational), let NNN be a positive integer (the size of the cyclic group ZN\mathbb Z_NZN​ used for Fourier sampling), and let j,j′j, j'j,j′ be relatively prime integers with 1≤j<r1 \le j < r1≤j<r and 1≤j′<r1 \le j' < r1≤j′<r; Fourier sampling returns the integers ⌊jN/r⌉\lfloor jN/r \rceil⌊jN/r⌉ and ⌊j′N/r⌉\lfloor j'N/r \rceil⌊j′N/r⌉. If N≥3r2N \ge 3r^2N≥3r2, then:

  1. the fraction j/j′j/j'j/j′ is one of the convergents of the continued fraction expansion of the rational number
⌊jN/r⌉⌊j′N/r⌉;\frac{\lfloor jN/r \rceil}{\lfloor j'N/r \rceil};⌊j′N/r⌉⌊jN/r⌉​;
  1. the period is recovered to within one unit:
∣r−⌊jN⌊jN/r⌉⌉∣≤1.\left| r - \left\lfloor \frac{jN}{\lfloor jN/r \rceil} \right\rceil \right| \le 1.​r−⌊⌊jN/r⌉jN​⌉​≤1.

Thus, from two samples with coprime multipliers, one learns jjj from the continued fraction expansion and then an approximation of rrr to within 111.

Formalization Note The nearest-integer function is Mathlib's round (ties rounded up; the source leaves ties unspecified and its proof uses only that the rounding error is at most 1/21/21/2). Convergents are Mathlib's Real.convergent, which coincide with the convergents of the regular continued fraction. The ranges 1≤j,j′<r1 \le j, j' < r1≤j,j′<r are those the source's proof uses (they come from ⌊jN/r⌉∈ZN\lfloor jN/r \rceil \in \mathbb Z_N⌊jN/r⌉∈ZN​ and the proof's appeals to j≥1j \ge 1j≥1 and j′<rj' < rj′<r); the proof's "j<j′j < j'j<j′ without loss of generality" is not imposed. Under these hypotheses the denominator ⌊j′N/r⌉\lfloor j'N/r \rceil⌊j′N/r⌉ is at least 333, so no division by zero occurs.

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

  • Lemma 9.1: Period finding over the reals: an irrational period from two Fourier samples.

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
PreviousPage 2 of 6Next

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