Eq. (1), corrected — G^{(r−1)/2}|ψ⟩ = (−1)^{(r−1)/2}(sin(rθ)/√K Σ_{x∈S}|x⟩ + cos(rθ)/√(N−K) Σ_{x∉S}|x⟩), marked probability sin²(rθ)
ProvedQApproxCount.Counting.eq_1groverp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-query
Let with , let , and let be an odd natural number. With , and as in the model,
and the probability of observing a marked item when this state is measured in the computational basis is .
This is the statement that turns every measurement round of the algorithm into a coin with bias .
Formalization Note This is a corrected version of the paper's eq. (1). The paper prints the identity without the global sign . Since is minus the standard Grover iterate, each application contributes a factor . The printed identity fails for (checked numerically for , ). The probability statement is unaffected.
Preamble
import Mathlib import Definitions.Def_QApproxCount_Counting_Grover
Formal statement
namespace QApproxCount.Counting
/-- Eq. (1), p. 5, **corrected**: for `0 < |T| < n`, odd `r` and `θ := arcsin √(|T|/n)`,
`G^{(r-1)/2}|ψ⟩ = (-1)^{(r-1)/2} ( sin(rθ)/√|T| Σ_{x∈T} |x⟩ + cos(rθ)/√(n-|T|) Σ_{x∉T} |x⟩ )`
(the paper omits the sign `(-1)^{(r-1)/2}`, which comes from `G = (I - 2|ψ⟩⟨ψ|)U`), and the
Born probability of a marked outcome is `sin²(rθ)`. -/
theorem eq_1 {n : ℕ} (T : Finset (Fin n)) (hT : 0 < T.card) (hTn : T.card < n)
(r : ℕ) (hr : Odd r) :
groverState T ((r - 1) / 2) =
(fun x => (-1 : ℂ) ^ ((r - 1) / 2) *
(if x ∈ T then
((Real.sin (r * Real.arcsin (Real.sqrt ((T.card : ℝ) / n))) /
Real.sqrt (T.card : ℝ) : ℝ) : ℂ)
else
((Real.cos (r * Real.arcsin (Real.sqrt ((T.card : ℝ) / n))) /
Real.sqrt ((n : ℝ) - T.card) : ℝ) : ℂ))) ∧
markedProb T ((r - 1) / 2) =
Real.sin (r * Real.arcsin (Real.sqrt ((T.card : ℝ) / n))) ^ 2 := by sorry
end QApproxCount.Counting
Source
Aaronson & Rall, Quantum Approximate Counting, Simplified, arXiv:1908.10846v6, p. 5, eq. (1) (corrected: global phase (−1)^{(r−1)/2})
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.