Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.Progress

Weighted progress measures for quantum query adversary arguments #

A T-query quantum algorithm (Cslib.Quantum.run) running from a unit initial state ψ₀ preserves inner products up to the positions where two inputs x and y differ: one controlled phase-oracle step changes ⟨ψ, φ⟩ by 2 ∑_{i : xᵢ ≠ yᵢ} ⟨Π_i ψ, Π_i φ⟩ (Cslib.Quantum.inner_phaseOracle_phaseOracle), where Π_i is Cslib.Quantum.ctrlProj.

For any finite set R of input pairs and nonnegative pair weights γ : BitString N × BitString N → ℝ, the weighted progress measure after t queries is ∑_{(x, y) ∈ R} γ(x, y) |⟨ψₓᵗ, ψ_yᵗ⟩| (Cslib.Quantum.weightedProgress). Identifying Cslib.Quantum.run with Cslib.Quantum.runValue Cslib.Quantum.phaseStep (Cslib.Quantum.runValue_phaseStep) specializes the general value-query progress bounds of CslibFrontier.Computability.QueryComplexity.Quantum.ValueAdversary directly to phase-oracle algorithms (weightedProgress_zero, weightedProgress_zero_sub_le, and Cslib.Quantum.one_sub_mul_sum_le_of_sq_le), used by the spectral sensitivity bound (CslibFrontier.Computability.QueryComplexity.Quantum.Adversary) and weighted adversary schemes (CslibFrontier.Computability.QueryComplexity.Quantum.WeightedAdversary).

Main definitions #

Main results #

theorem Cslib.Quantum.inner_phaseOracle_phaseOracle {N : ℕ} {W : Type u_1} [Fintype W] (x y : Fin N → Bool) (ψ φ : State N W) :
inner ℂ ((phaseOracle x) ψ) ((phaseOracle y) φ) = inner ℂ ψ φ - 2 * ∑ i : Fin N with x i ≠ y i, inner ℂ (ctrlProj i ψ) (ctrlProj i φ)

One query on two inputs: the oracles of x and y differ only on the query indices i with xᵢ ≠ yᵢ and control bit 1, so applying them changes the overlap of two states by 2 ∑_{i : xᵢ ≠ yᵢ} ⟨Π_i ψ, Π_i φ⟩.

theorem Cslib.Quantum.norm_inner_phaseOracle_phaseOracle_ge {N : ℕ} {W : Type u_1} [Fintype W] (x y : Fin N → Bool) (ψ φ : State N W) :
‖inner ℂ ψ φ‖ - 2 * ∑ i : Fin N with x i ≠ y i, ‖ctrlProj i ψ‖ * ‖ctrlProj i φ‖ ≤ ‖inner ℂ ((phaseOracle x) ψ) ((phaseOracle y) φ)‖

One query lowers the overlap of the states on two inputs by at most 2 ∑_{i : xᵢ ≠ yᵢ} ‖Π_i ψ‖ ‖Π_i φ‖.

theorem Cslib.Quantum.sum_sq_norm_ctrlProj_le {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (x : BitString N) (t : ℕ) :
∑ i : Fin N, ‖ctrlProj i (run U ψ₀ x t)‖ ^ 2 ≤ 1

The query magnitudes of a unit state sum to at most 1.

noncomputable def Cslib.Quantum.weightedProgress {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) (ψ₀ : State N W) (R : Finset (BitString N × BitString N)) (γ : BitString N × BitString N → ℝ) (t : ℕ) :

The weighted progress measure of a quantum query adversary argument: the weighted sum of state overlaps on R after t queries.

theorem Cslib.Quantum.weightedProgress_zero {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (R : Finset (BitString N × BitString N)) (γ : BitString N × BitString N → ℝ) :
weightedProgress U ψ₀ R γ 0 = ∑ p ∈ R, γ p

Before any query the states agree, so the weighted progress measure is ∑ p ∈ R, γ p.

theorem Cslib.Quantum.weightedProgress_zero_sub_le {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) {ψ₀ : State N W} (hψ₀ : ‖ψ₀‖ = 1) (R : Finset (BitString N × BitString N)) (γ : BitString N × BitString N → ℝ) (a b : BitString N × BitString N → Fin N → ℝ) (α β : BitString N → ℝ) (hγ : ∀ p ∈ R, 0 ≤ γ p) (ha : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → 0 ≤ a p i) (hb : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → 0 ≤ b p i) (hγsq : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → γ p ^ 2 ≤ a p i * b p i) (hα : ∀ x ∈ Finset.image Prod.fst R, ∀ (i : Fin N), ∑ p ∈ R with p.1 i ≠ p.2 i ∧ p.1 = x, a p i ≤ α x) (hβ : ∀ y ∈ Finset.image Prod.snd R, ∀ (i : Fin N), ∑ p ∈ R with p.1 i ≠ p.2 i ∧ p.2 = y, b p i ≤ β y) (T : ℕ) :
weightedProgress U ψ₀ R γ 0 - weightedProgress U ψ₀ R γ T ≤ ↑T * (∑ x ∈ Finset.image Prod.fst R, α x + ∑ y ∈ Finset.image Prod.snd R, β y)

Telescoping: T queries lower weightedProgress by at most T times the endpoint weight budgets.

theorem Cslib.Quantum.one_sub_mul_sum_le_of_sq_le {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)) (γ : BitString N × BitString N → ℝ) {δ : ℝ} (hδ : ∀ p ∈ R, ‖inner ℂ (run U ψ₀ p.1 T) (run U ψ₀ p.2 T)‖ ≤ δ) (a b : BitString N × BitString N → Fin N → ℝ) (α β : BitString N → ℝ) (hγ : ∀ p ∈ R, 0 ≤ γ p) (ha : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → 0 ≤ a p i) (hb : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → 0 ≤ b p i) (hγsq : ∀ p ∈ R, ∀ (i : Fin N), p.1 i ≠ p.2 i → γ p ^ 2 ≤ a p i * b p i) (hα : ∀ x ∈ Finset.image Prod.fst R, ∀ (i : Fin N), ∑ p ∈ R with p.1 i ≠ p.2 i ∧ p.1 = x, a p i ≤ α x) (hβ : ∀ y ∈ Finset.image Prod.snd R, ∀ (i : Fin N), ∑ p ∈ R with p.1 i ≠ p.2 i ∧ p.2 = y, b p i ≤ β y) :
(1 - δ) * ∑ p ∈ R, γ p ≤ ↑T * (∑ x ∈ Finset.image Prod.fst R, α x + ∑ y ∈ Finset.image Prod.snd R, β y)

Weighted quantum adversary inequality: if after T queries the states on every pair in R have overlap at most δ, and weights a, b satisfy γ(p)² ≤ a(p, i) b(p, i) whenever p.1 i ≠ p.2 i with coordinatewise fiber budgets α and β, then (1 - δ) ∑_{p ∈ R} γ p ≤ T (∑_{x ∈ fst(R)} α x + ∑_{y ∈ snd(R)} β y).