Documentation

CslibFrontier.Computability.Complexity.Classes.BQP.ConstantGap

BQP from any constant gap #

The thresholds 2 / 3 and 1 / 3 in the definition of BQP (Cslib.Complexity.BQP) can be replaced by any constants s < c: a problem is in BQP exactly when some uniform family accepts its members with probability at least c and other instances with probability at most s (Cslib.Complexity.mem_BQP_iff_exists_gap).

The threshold vote of the family (Cslib.Quantum.UniformCircuitFamily.threshold) decides whether more than t of k independent runs accept. Its acceptance probability is a binomial tail (Cslib.Quantum.UniformCircuitFamily.acceptProb_threshold_eq_sum_choose), and Hoeffding's inequality (Cslib.sum_filter_le_sub_choose_mul_pow_le, Cslib.sum_filter_le_mul_sub_choose_mul_pow_le) bounds its errors by exp (-2 k δ²) when the threshold t lies k δ away from k p (Cslib.Quantum.UniformCircuitFamily.acceptProb_threshold_le_exp, Cslib.Quantum.UniformCircuitFamily.one_sub_exp_le_acceptProb_threshold). For constants s < c with gap 2 δ = c - s, a vote over k = ⌈1 / δ²⌉ copies with threshold ⌊k (s + c) / 2⌋ has errors at most exp (-2) < 1 / 3.

Main results #

The argument is the standard one (threshold vote and Hoeffding's inequality); no source locator is claimed for it. The gaps here are constants; gaps shrinking with the input length are not treated.

The threshold vote is a binomial tail: it accepts with probability ∑_{t < j ≤ k} C(k, j) p^j (1 - p)^(k - j), where p is the acceptance probability of the family and k, t are taken at the input length.

Hoeffding bound for rejection: if the threshold t is at least k (p + δ) - 1, with 0 ≤ δ, then the threshold vote accepts with probability at most exp (-2 k δ²).

Hoeffding bound for acceptance: if the threshold t is at most k (p - δ), with 0 ≤ δ, then the threshold vote accepts with probability at least 1 - exp (-2 k δ²).

theorem Cslib.Complexity.mem_BQP_of_gap {α : Type} {enc : α ↪ List Bool} {A : Set α} {s c : ℝ} (hsc : s < c) (F : Quantum.UniformCircuitFamily) (hF : ∀ (a : α), (a ∈ A → c ≤ F.acceptProb (enc a)) ∧ (a ∉ A → F.acceptProb (enc a) ≤ s)) :
A ∈ BQP enc

BQP from any constant gap: a uniform family that accepts members with probability at least c and other instances with probability at most s, for constants s < c, shows that the problem is in BQP. A threshold vote over ⌈1 / δ²⌉ copies, with 2 δ = c - s, brings the errors below exp (-2) < 1 / 3.

theorem Cslib.Complexity.mem_BQP_iff_exists_gap {α : Type} {enc : α ↪ List Bool} {A : Set α} :
A ∈ BQP enc ↔ ∃ (s : ℝ) (c : ℝ), s < c ∧ ∃ (F : Quantum.UniformCircuitFamily), ∀ (a : α), (a ∈ A → c ≤ F.acceptProb (enc a)) ∧ (a ∉ A → F.acceptProb (enc a) ≤ s)

BQP is the class of problems decided with some constant gap: A ∈ BQP enc exactly when for some constants s < c, a uniform family accepts members with probability at least c and other instances with probability at most s.