Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.AmbainisAdversary.Tribes

Tribes and the AND of ORs by the adversary method #

Split s w bits into s blocks of w bits, bit i of block j being bit finProdFinEquiv (j, i). The AND of ORs is true when every block contains a true bit, and Tribes (Cslib.BitString.tribes, an OR of ANDs) is true when some block is all true. The two functions are De Morgan duals.

[Amb02], Theorem 4, shows that the AND of √N ORs of √N bits takes Ω(√N) quantum queries, whereas the √bs(f) lower bounds of the hybrid and polynomial methods give only Ω(N^{1/4}) for it, since its block sensitivity is Θ(√N). The relation is that of single bit flips between the inputs with exactly one true bit in every block and those with one all-false block and exactly one true bit in every other block. An input of the first kind has w neighbors of the second, and an input of the second kind has s neighbors of the first (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_neighbors). So an algorithm computing the AND of ORs with error ε ≤ 1/2 has (1 - 2√(ε(1-ε))) √(w s) ≤ 2T (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_forall_exists), which is Theorem 4 when w = s = √N. The same bound holds for Tribes (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_tribes). At error 1/3 both give w s ≤ 1296 T².

Both bounds require correctness only under the promise that every block has at most one true bit (for the AND of ORs) or at most one false bit (for Tribes), so they hold for the promise problems as well. The constants are those of this proof. The source states Ω(√N).

Main results #

References #

theorem Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_tribes {W : Type u_1} [Fintype W] {w s : ℕ} (U : ℕ → State (s * w) W →ₗᵢ[ℂ] State (s * w) W) {ψ₀ : State (s * w) W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin (s * w) × Bool × W)) {ε : ℝ} (h : ∀ (x : BitString (s * w)), (∀ (j : Fin s), {i : Fin w | x (finProdFinEquiv (j, i)) = false}.card ≤ 1) → |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (BitString.tribes w s x)| ≤ ε) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √(↑w * ↑s) ≤ 2 * ↑T

Tribes takes Ω(√(w s)) queries, the De Morgan dual of [Amb02], Theorem 4: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input x in which every tribe has at most one false bit with probability within ε ≤ 1/2 of Tribes_{w,s}(x), then (1 - 2√(ε(1-ε))) √(w s) ≤ 2T.

theorem Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_forall_exists {W : Type u_1} [Fintype W] {w s : ℕ} (U : ℕ → State (s * w) W →ₗᵢ[ℂ] State (s * w) W) {ψ₀ : State (s * w) W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin (s * w) × Bool × W)) {ε : ℝ} (h : ∀ (x : BitString (s * w)), (∀ (j : Fin s), {i : Fin w | x (finProdFinEquiv (j, i)) = true}.card ≤ 1) → |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (decide (∀ (j : Fin s), ∃ (i : Fin w), x (finProdFinEquiv (j, i)) = true))| ≤ ε) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * √(↑w * ↑s) ≤ 2 * ↑T

The AND of ORs takes Ω(√(w s)) queries [Amb02], Theorem 4: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input x in which every block has at most one true bit with probability within ε ≤ 1/2 of the AND over the s blocks of the OR of their w bits, then (1 - 2√(ε(1-ε))) √(w s) ≤ 2T. Theorem 4 is the case w = s = √N.

theorem Cslib.Quantum.mul_le_mul_sq_of_tribes {W : Type u_1} [Fintype W] {w s : ℕ} (U : ℕ → State (s * w) W →ₗᵢ[ℂ] State (s * w) W) {ψ₀ : State (s * w) W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin (s * w) × Bool × W)) (h : ∀ (x : BitString (s * w)), (∀ (j : Fin s), {i : Fin w | x (finProdFinEquiv (j, i)) = false}.card ≤ 1) → |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (BitString.tribes w s x)| ≤ 1 / 3) :
w * s ≤ 1296 * T ^ 2

Tribes at error 1/3: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input x in which every tribe has at most one false bit with probability within 1/3 of Tribes_{w,s}(x), then w s ≤ 1296 T².

theorem Cslib.Quantum.mul_le_mul_sq_of_forall_exists {W : Type u_1} [Fintype W] {w s : ℕ} (U : ℕ → State (s * w) W →ₗᵢ[ℂ] State (s * w) W) {ψ₀ : State (s * w) W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin (s * w) × Bool × W)) (h : ∀ (x : BitString (s * w)), (∀ (j : Fin s), {i : Fin w | x (finProdFinEquiv (j, i)) = true}.card ≤ 1) → |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (decide (∀ (j : Fin s), ∃ (i : Fin w), x (finProdFinEquiv (j, i)) = true))| ≤ 1 / 3) :
w * s ≤ 1296 * T ^ 2

The AND of ORs at error 1/3 [Amb02], Theorem 4: if a T-query algorithm with a unit initial state accepts, by an outcome in S, every input x in which every block has at most one true bit with probability within 1/3 of the AND over the s blocks of the OR of their w bits, then w s ≤ 1296 T².