Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.Adversary

Spectral sensitivity bounds quantum queries, and D(f) = O(Q(f)⁴) #

A T-query algorithm computing f with error ε ≤ 1/2 gives (1 - 2√(ε(1-ε))) λ(f) ≤ 2T (Cslib.Quantum.one_sub_mul_spectralSensitivity_le), where λ(f) is the spectral sensitivity (Cslib.BitString.spectralSensitivity). With Huang's deg(f) ≤ λ(f)² (Cslib.QueryComplexity.degree_le_spectralSensitivity_sq) this gives deg(f) ≤ 1296 T² at error 1/3 (Cslib.Quantum.degree_le_mul_sq), and with Midrijanis's D(f) ≤ deg(f) bs(f) and the polynomial method's bs(f) ≤ 16 T² it gives the theorem of Aaronson, Ben-David, Kothari, Rao, Tal: a deterministic decision tree of depth at most 20736 T⁴ = (12 T)⁴ computes f (Cslib.Quantum.complexity_le_mul_pow_four). This improves the 4096 T⁶ of Cslib.Quantum.complexity_le_mul_pow_six once T ≥ 3.

The adversary argument. Let ψₓᵗ be the state after t queries on input x, and fix nonnegative weights u and w on the cube. The progress measure sums u(x) w(x ⊕ eᵢ) |⟨ψₓᵗ, ψ_{x ⊕ eᵢ}ᵗ⟩| over the sensitive edges (x, i) of f.

So (1 - 2√(ε(1-ε))) ⟨u, A_f w⟩ ≤ T (‖u‖² + ‖w‖²) (Cslib.Quantum.one_sub_mul_sum_sensitiveCoords_le), and unit vectors bound λ(f) by Cslib.BitString.spectralSensitivity_le_of_forall_sum_le.

Source mapping (numbering of arXiv:2010.12629v1). complexity_le_mul_pow_four is Theorem 2, D(f) = O(Q(f)⁴), proved as in the source (p. 2) from Midrijanis's inequality (4), bs(f) = O(Q(f)²) and Theorem 3. degree_le_mul_sq is Theorem 3, deg(f) = O(Q(f)²), from Theorem 1 and Lemma 9. one_sub_mul_spectralSensitivity_le is the part λ(f) = O(Q(f)) of Lemma 9 (for total functions). The source proves Lemma 9 by taking the spectral adversary matrix Γ = A_f and citing Q(f) = Ω(SA(f)) [BSS03 in the source]; here the progress-measure argument for this Γ is carried out directly in the query model of Cslib.Quantum.run, with weights from two nonnegative unit vectors in place of a principal eigenvector. The constants 2, 36, 1296 and 20736 are those of this proof; the source states only O(·) bounds. Like the polynomial method, the bounds hold for each algorithm; there is no separate definition of quantum query complexity.

Main results #

References #

theorem Cslib.Quantum.inner_phaseOracle_update_not {N : ℕ} {W : Type u_1} [Fintype W] (x : Fin N → Bool) (i : Fin N) (ψ φ : State N W) :
inner ℂ ((phaseOracle x) ψ) ((phaseOracle (Function.update x i !x i)) φ) = inner ℂ ψ φ - 2 * inner ℂ (ctrlProj i ψ) (ctrlProj i φ)

One query on neighboring inputs: the oracles of x and of x ⊕ eᵢ differ only on query index i with control bit 1, so applying them changes the overlap of two states by 2 ⟨Π_i ψ, Π_i φ⟩.

theorem Cslib.Quantum.norm_inner_run_le {N : ℕ} {W : Type u_1} [Fintype W] {f : BooleanFunction N} {ε : ℝ} (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (f x)| ≤ ε) (hε : 2 * ε ≤ 1) {x y : Fin N → Bool} (hxy : f x ≠ f y) :
‖inner ℂ (run U ψ₀ x T) (run U ψ₀ y T)‖ ≤ 2 * √(ε * (1 - ε))

A query algorithm with a unit initial state and error ε ≤ 1/2 leaves the states on inputs with different values of f with overlap at most 2√(ε(1-ε)).

theorem Cslib.Quantum.one_sub_mul_sum_sensitiveCoords_le {N : ℕ} {W : Type u_1} [Fintype W] {f : BooleanFunction N} {ε : ℝ} (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (f x)| ≤ ε) (hε : 2 * ε ≤ 1) {u w : BitString N → ℝ} (hu : 0 ≤ u) (hw : 0 ≤ w) :
(1 - 2 * √(ε * (1 - ε))) * ∑ x : BitString N, ∑ i ∈ BitString.sensitiveCoords f x, u x * w (Function.update x i !x i) ≤ ↑T * (∑ x : BitString N, u x ^ 2 + ∑ x : BitString N, w x ^ 2)

The adversary bound for the sensitivity graph: if a T-query algorithm with a unit initial state accepts every input x, by an outcome in S, with probability within ε ≤ 1/2 of f(x), then for all nonnegative weights u and w on the cube, (1 - 2√(ε(1-ε))) ⟨u, A_f w⟩ ≤ T (‖u‖² + ‖w‖²), where A_f is the adjacency matrix of the sensitivity graph.

theorem Cslib.Quantum.one_sub_mul_spectralSensitivity_le {N : ℕ} {W : Type u_1} [Fintype W] {f : BooleanFunction N} {ε : ℝ} (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (f x)| ≤ ε) (hε : 2 * ε ≤ 1) :
(1 - 2 * √(ε * (1 - ε))) * BitString.spectralSensitivity f ≤ 2 * ↑T

Spectral sensitivity bounds quantum queries: if a T-query algorithm with a unit initial state accepts every input x, by an outcome in S, with probability within ε ≤ 1/2 of f(x), then (1 - 2√(ε(1-ε))) λ(f) ≤ 2T [ABDK+21], Lemma 9, with the constant of this proof.

theorem Cslib.Quantum.spectralSensitivity_le_thirty_six_mul {N : ℕ} {W : Type u_1} [Fintype W] {f : BooleanFunction N} (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (f x)| ≤ 1 / 3) :

Spectral sensitivity bounds bounded-error quantum queries: if a T-query algorithm with a unit initial state accepts every input x, by an outcome in S, with probability within 1/3 of f(x), then λ(f) ≤ 36 T.

theorem Cslib.Quantum.degree_le_mul_sq {N : ℕ} {W : Type u_1} [Fintype W] {f : BooleanFunction N} (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (f x)| ≤ 1 / 3) :

Degree is at most quadratic in bounded-error quantum queries: if a T-query algorithm with a unit initial state accepts every input x, by an outcome in S, with probability within 1/3 of f(x), then deg(f) ≤ 1296 T² [ABDK+21], Theorem 3, with the constant of this proof.

theorem Cslib.Quantum.complexity_le_mul_pow_four {N : ℕ} {W : Type u_1} [Fintype W] {f : BooleanFunction N} (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (f x)| ≤ 1 / 3) :

Deterministic simulation of bounded-error quantum queries with a quartic overhead: if a T-query algorithm with a unit initial state accepts every input x, by an outcome in S, with probability within 1/3 of f(x), then a deterministic decision tree of depth at most 20736 T⁴ = (12 T)⁴ computes f [ABDK+21], Theorem 2, with the constant of this proof.