Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.AmbainisAdversary.WeightLayers

Telling two weight layers apart by the adversary method #

Let a < b ≤ N. Relate every input x of weight a to every y ⊇ x of weight b. Then:

Ambainis's bound (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sqrt, [Amb02], Theorem 6) and the binomial identities C(N - a - 1, b - a - 1) (N - a) = C(N - a, b - a) (b - a) and C(b - 1, a) b = C(b, a) (b - a) give (1 - δ) √((N - a) b) ≤ 2T (b - a) when the final overlaps on related pairs are at most δ (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sub_of_le). This is the relation that [Amb02], Theorem 5, uses for a = N/2 and b = (1 + ε)N/2.

With bounded error ε ≤ 1/2, an algorithm that accepts weight k and rejects weight k' ≠ k, and need not be correct on any other input, has:

The constants are those of this proof. The sources state Ω(·) bounds.

Main results #

References #

theorem Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sub_of_le {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) {a b : ℕ} (hab : a < b) (hbN : b ≤ N) {δ : ℝ} (hδ : ∀ (x y : BitString N), BitString.weight x = a → BitString.weight y = b → x ≤ y → ‖inner ℂ (run U ψ₀ x T) (run U ψ₀ y T)‖ ≤ δ) :
(1 - δ) * √((↑N - ↑a) * ↑b) ≤ 2 * ↑T * (↑b - ↑a)

Telling weight a from weight b, the δ-form: let a < b ≤ N, and let a T-query algorithm with a unit initial state end in states with overlap at most δ on every pair x ≤ y with |x| = a and |y| = b. Then (1 - δ) √((N - a) b) ≤ 2T (b - a). This is the containment relation of [Amb02], Theorem 5, for general a < b. The constant is that of this proof.

theorem Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_abs_sub_of_weight {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) {k k' : ℕ} (hkk' : k ≠ k') (hk : k ≤ N) (hk' : k' ≤ N) {ε : ℝ} (h₁ : ∀ (x : BitString N), BitString.weight x = k → 1 - ε ≤ measureProb (run U ψ₀ x T) S) (h₂ : ∀ (y : BitString N), BitString.weight y = k' → measureProb (run U ψ₀ y T) S ≤ ε) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √((↑N - ↑(min k k')) * ↑(max k k')) ≤ 2 * ↑T * |↑k - ↑k'|

Telling weight k from weight k' [Amb02], Theorem 5, for general weights: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input of weight k with probability at least 1 - ε and every input of weight k' ≠ k with probability at most ε ≤ 1/2, and need not be correct on any other input, then, with a = min k k' and b = max k k', (1 - 2√(ε(1-ε))) √((N - a) b) ≤ 2T |k - k'|. For k' = k - 1 this is Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_weight. The constant is that of this proof.

theorem Cslib.Quantum.one_sub_mul_add_le_four_mul_mul_abs_sub_of_weight {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) {k k' : ℕ} (hkk' : k ≠ k') (hk : k ≤ N) (hk' : k' ≤ N) {ε : ℝ} (h₁ : ∀ (x : BitString N), BitString.weight x = k → 1 - ε ≤ measureProb (run U ψ₀ x T) S) (h₂ : ∀ (y : BitString N), BitString.weight y = k' → measureProb (run U ψ₀ y T) S ≤ ε) (hε : 2 * ε ≤ 1) {m : ℕ} (hm : min k k' ≤ m) (hm' : m ≤ max k k') :
(1 - 2 * √(ε * (1 - ε))) * (√(↑N * |↑k - ↑k'|) + √(↑m * (↑N - ↑m))) ≤ 4 * ↑T * |↑k - ↑k'|

The Nayak–Wu bound [NW99], Corollary 1.2, with the constants of this proof: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input of weight k with probability at least 1 - ε and every input of weight k' ≠ k with probability at most ε ≤ 1/2, then for every m between k and k', (1 - 2√(ε(1-ε))) (√(N |k - k'|) + √(m (N - m))) ≤ 4T |k - k'|. Dividing by |k - k'| gives the source's Ω(√(N/Δ) + √(m(N-m))/Δ), where the source takes m ∈ {k, k'} farther from N/2. The source proves it by the polynomial method; this proof is by the adversary method.

theorem Cslib.Quantum.one_sub_mul_card_le_four_mul_mul_abs_sub_of_weight {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) {k k' : ℕ} (hkk' : k ≠ k') (hN : 2 * min k k' ≤ N) (hN' : N ≤ 2 * max k k') (hk : k ≤ N) (hk' : k' ≤ N) {ε : ℝ} (h₁ : ∀ (x : BitString N), BitString.weight x = k → 1 - ε ≤ measureProb (run U ψ₀ x T) S) (h₂ : ∀ (y : BitString N), BitString.weight y = k' → measureProb (run U ψ₀ y T) S ≤ ε) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * ↑N ≤ 4 * ↑T * |↑k - ↑k'|

Weights on both sides of N/2, the setting of [Amb02], Theorem 5: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input of weight k with probability at least 1 - ε and every input of weight k' ≠ k with probability at most ε ≤ 1/2, and min k k' ≤ N/2 ≤ max k k', then (1 - 2√(ε(1-ε))) N ≤ 4T |k - k'|. For k = N/2 and k' = (1 + ε')N/2 this is Ω(1/ε'), the bound behind the ε'-approximate median lower bound of [NW99].