Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.AmbainisAdversary

Ambainis's quantum adversary method #

Let a T-query algorithm (Cslib.Quantum.run) with a unit initial state be run on related pairs (x, y) ∈ R of inputs, and suppose that at the end the states on every related pair have overlap |⟨ψ_x, ψ_y⟩| ≤ δ. Suppose also that every first input of R is related to at least m inputs and every second input to at least m', and that l_{x,i} l_{y,i} ≤ L for every related pair (x, y) and every coordinate i with x_i ≠ y_i. Here l_{x,i} is the number of pairs of R with first input x that differ at i, and l_{y,i} is the number with second input y. Then (1 - δ) √(m m') ≤ 2T √L (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sqrt), which is [Amb02], Theorem 6, for bit queries. If a measurement accepts every first input with probability at least 1 - ε and every second input with probability at most ε ≤ 1/2, then δ = 2√(ε(1-ε)) (Cslib.Quantum.norm_inner_le_two_mul_sqrt_of_measureProb, [Amb02], Lemma 1). Bounding l_{x,i} ≤ l and l_{y,i} ≤ l' gives [Amb02], Theorem 2: (1 - 2√(ε(1-ε))) √(m m') ≤ 2T √(l l') (Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_le_two_mul_mul_sqrt).

Only the inputs that occur in R are constrained, so the bounds apply to promise problems and partial functions: correctness is required only on those inputs. When the related pairs are the neighbors (x, x ⊕ eᵢ) with x ∈ A and x ⊕ eᵢ ∈ B, l = l' = 1, and the bound reads (1 - δ) √(m m') ≤ 2T with m and m' lower bounds on the numbers of neighbors across (Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_neighbors). The applications to parity, threshold functions and majority are in the module CslibFrontier.Computability.QueryComplexity.Quantum.AmbainisAdversary.Symmetric, and those to Tribes and to the AND of ORs in CslibFrontier.Computability.QueryComplexity.Quantum.AmbainisAdversary.Tribes.

The argument. Viewing Cslib.Quantum.phaseOracle as the value-query oracle Cslib.Quantum.valueOracle Cslib.Quantum.phaseStep on State N W = ValueState (Fin N) Bool W (Cslib.Quantum.runValue_phaseStep) specializes the general value-query Theorem 6 bound Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sqrt_value in CslibFrontier.Computability.QueryComplexity.Quantum.ValueAdversary directly to Boolean bit queries:

Source mapping (numbering of arXiv:quant-ph/0002066v1).

The source states Ω(·) bounds. The constants are those of this proof. As in the polynomial method (CslibFrontier.Computability.QueryComplexity.Quantum.Polynomial), the bounds hold for each algorithm. There is no separate definition of quantum query complexity.

Main results #

References #

theorem Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_mul_sqrt {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) {R : Finset (BitString N × BitString N)} (hR : R.Nonempty) {δ : ℝ} (hδ : ∀ p ∈ R, ‖inner ℂ (run U ψ₀ p.1 T) (run U ψ₀ p.2 T)‖ ≤ δ) {m m' L : ℕ} (hm : ∀ p ∈ R, m ≤ {q ∈ R | q.1 = p.1}.card) (hm' : ∀ p ∈ R, m' ≤ {q ∈ R | q.2 = p.2}.card) (hL : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → {q ∈ R | q.1 i ≠ q.2 i ∧ q.1 = p.1}.card * {q ∈ R | q.1 i ≠ q.2 i ∧ q.2 = p.2}.card ≤ L) :
(1 - δ) * √(↑m * ↑m') ≤ 2 * ↑T * √↑L

Ambainis's adversary bound [Amb02], Theorem 6, for bit queries: let R be a nonempty set of pairs of inputs on which a T-query algorithm with a unit initial state ends in states with overlap at most δ. If every first input of R lies in at least m pairs of R and every second input in at least m', and l_{x,i} l_{y,i} ≤ L for every (x, y) ∈ R and every i with x_i ≠ y_i, where l_{x,i} counts the pairs of R with first input x that differ at i and l_{y,i} those with second input y, then (1 - δ) √(m m') ≤ 2T √L. The constant is that of this proof. The source states Ω(√(m m' / l_max)).

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_le_two_mul_mul_sqrt {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)) {R : Finset (BitString N × BitString N)} (hR : R.Nonempty) {ε : ℝ} (h₁ : ∀ p ∈ R, 1 - ε ≤ measureProb (run U ψ₀ p.1 T) S) (h₂ : ∀ p ∈ R, measureProb (run U ψ₀ p.2 T) S ≤ ε) (hε : 2 * ε ≤ 1) {m m' l l' : ℕ} (hm : ∀ p ∈ R, m ≤ {q ∈ R | q.1 = p.1}.card) (hm' : ∀ p ∈ R, m' ≤ {q ∈ R | q.2 = p.2}.card) (hl : ∀ p ∈ R, ∀ (i : Fin N), {q ∈ R | q.1 i ≠ q.2 i ∧ q.1 = p.1}.card ≤ l) (hl' : ∀ p ∈ R, ∀ (i : Fin N), {q ∈ R | q.1 i ≠ q.2 i ∧ q.2 = p.2}.card ≤ l') :
(1 - 2 * √(ε * (1 - ε))) * √(↑m * ↑m') ≤ 2 * ↑T * √(↑l * ↑l')

Ambainis's adversary bound [Amb02], Theorem 2, for Boolean outputs: let a T-query algorithm with a unit initial state accept, by an outcome in S, the first input of every pair of a nonempty set R with probability at least 1 - ε and the second with probability at most ε ≤ 1/2. If every first input lies in at least m pairs and every second input in at least m', and for every coordinate i every first input lies in at most l pairs differing at i and every second input in at most l', then (1 - 2√(ε(1-ε))) √(m m') ≤ 2T √(l l'). The constant is that of this proof. The source states Ω(√(m m' / (l l'))).

theorem Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_neighbors {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) {A B : Finset (BitString N)} (hA : A.Nonempty) {δ : ℝ} (hδ : ∀ x ∈ A, ∀ (i : Fin N), (Function.update x i !x i) ∈ B → ‖inner ℂ (run U ψ₀ x T) (run U ψ₀ (Function.update x i !x i) T)‖ ≤ δ) {m m' : ℕ} (hm : ∀ x ∈ A, m ≤ {i : Fin N | (Function.update x i !x i) ∈ B}.card) (hm' : ∀ y ∈ B, m' ≤ {i : Fin N | (Function.update y i !y i) ∈ A}.card) :
(1 - δ) * √(↑m * ↑m') ≤ 2 * ↑T

The adversary bound across single bit flips, the case l = l' = 1 of [Amb02], Theorem 2, in which the related pairs are the neighbors (x, x ⊕ eᵢ) with x ∈ A and x ⊕ eᵢ ∈ B: let a T-query algorithm with a unit initial state end, on every such pair, in states with overlap at most δ. If A is nonempty, every input in A has at least m neighbors in B and every input in B has at least m' neighbors in A, then (1 - δ) √(m m') ≤ 2T.

theorem Cslib.Quantum.one_sub_two_mul_sqrt_mul_sqrt_le_two_mul_of_neighbors {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)) {A B : Finset (BitString N)} (hA : A.Nonempty) {ε : ℝ} (h₁ : ∀ x ∈ A, 1 - ε ≤ measureProb (run U ψ₀ x T) S) (h₂ : ∀ y ∈ B, measureProb (run U ψ₀ y T) S ≤ ε) (hε : 2 * ε ≤ 1) {m m' : ℕ} (hm : ∀ x ∈ A, m ≤ {i : Fin N | (Function.update x i !x i) ∈ B}.card) (hm' : ∀ y ∈ B, m' ≤ {i : Fin N | (Function.update y i !y i) ∈ A}.card) :
(1 - 2 * √(ε * (1 - ε))) * √(↑m * ↑m') ≤ 2 * ↑T

The adversary bound across single bit flips, for Boolean outputs: let a T-query algorithm with a unit initial state accept every input in a nonempty set A, by an outcome in S, with probability at least 1 - ε and every input in B with probability at most ε ≤ 1/2. If every input in A has at least m neighbors in B and every input in B has at least m' neighbors in A, then (1 - 2√(ε(1-ε))) √(m m') ≤ 2T.