Documentation

CslibFrontier.Computability.QueryComplexity.Quantum.Polynomial

Quantum query lower bounds by polynomials #

The polynomial method of Beals, Buhrman, Cleve, Mosca, de Wolf bounds the queries of a quantum algorithm below by the degree of a polynomial. In the query model of Cslib.Quantum.run, each amplitude of the state after t queries is, as a function of the input x, a complex function of degree at most t on the cube (Cslib.Quantum.amplitude_mem_lowDegree): the oracle multiplies each amplitude by 1 - 2 b x_i, of degree 1, and the isometries between queries take linear combinations of amplitudes, which keeps the degree. So the probability ∑_{p ∈ S} |ψ_p|² of measuring an outcome in a set S is a real function of degree at most 2T (Cslib.Quantum.measureProb_run_mem_lowDegree), the sum of the squares of the real and imaginary parts of the amplitudes (Cslib.BitString.re_mem_lowDegree, Cslib.BitString.im_mem_lowDegree).

An algorithm that accepts each input x with probability within ε of f(x) thus gives an ε-approximation of f of degree at most 2T, so adeg_ε(f) ≤ 2T (Cslib.Quantum.approxDegree_le_two_mul), and deg(f) ≤ 2T if it computes f exactly (Cslib.Quantum.degree_le_two_mul). The Nisan–Szegedy argument (Cslib.QueryComplexity.one_sub_two_mul_mul_blockSensitivity_le_of_mem_Icc), applied to this polynomial with values in [0, 1], bounds the block sensitivity: bs(f) ≤ 8 T² for exact algorithms and bs(f) ≤ 16 T² for error 1/3 (Cslib.Quantum.blockSensitivity_le_eight_mul_sq, Cslib.Quantum.blockSensitivity_le_sixteen_mul_sq). With D(f) ≤ bs(f)³ a deterministic decision tree of depth at most 4096 T⁶ computes f (Cslib.Quantum.complexity_le_mul_pow_six); the quartic bound D(f) ≤ 20736 T⁴, through spectral sensitivity, is in CslibFrontier.Computability.QueryComplexity.Quantum.Adversary. Since bs(OR_N) = N, computing the disjunction of N bits with error 1/3 takes T ≥ √N / 4 queries (Cslib.Quantum.card_le_sixteen_mul_sq_of_threshold_one_right): the decision form of the search lower bound, whose search form is the BBBV bound Cslib.Quantum.card_sub_two_le. Since deg(PARITY_N) = N, computing the parity of N bits exactly takes T ≥ N / 2 queries (Cslib.Quantum.card_le_two_mul_of_parity).

Source mapping (numbering of arXiv:quant-ph/9802049v3). The source models a network as unitaries U₀, O, U₁, …, O, U_T on m qubits, where the query O maps |i, b, z⟩ to |i, b ⊕ x_i, z⟩, followed by a measurement of the final state (§3.2). Here the isometries are arbitrary, the workspace is any finite type, and the oracle is the controlled phase oracle, which is the bit oracle conjugated by Hadamard gates on the control bit (Cslib.Quantum.phaseOracle). Lemma 4.1 is amplitude_mem_lowDegree, and Lemma 4.2 is measureProb_run_mem_lowDegree, for an arbitrary set of outcomes. Theorem 4.3 (Q_E(f) ≥ deg(f)/2) is degree_le_two_mul and Theorem 4.8 (Q_2(f) ≥ adeg(f)/2) is approxDegree_le_two_mul, for an arbitrary error ε. Theorem 4.13 (Q_E(f) ≥ √(bs(f)/8) and Q_2(f) ≥ √(bs(f)/16)) is blockSensitivity_le_eight_mul_sq and blockSensitivity_le_sixteen_mul_sq, and Theorem 5.4 (D(f) ≤ 4096 Q_2(f)⁶) is complexity_le_mul_pow_six. The bound √N / 4 for OR_N and the bound N / 2 for exact PARITY_N are stated in §6. Like the source, these bounds hold for each algorithm; there is no separate definition of quantum query complexity.

Main results #

References #

theorem Cslib.BitString.re_mem_lowDegree {ι : Type u_1} {D : ℕ} {f : (ι → Bool) → ℂ} (hf : f ∈ lowDegree ℂ ι D) :
(fun (x : ι → Bool) => (f x).re) ∈ lowDegree ℝ ι D

The real part of a complex function of degree at most D on the cube has degree at most D.

theorem Cslib.BitString.im_mem_lowDegree {ι : Type u_1} {D : ℕ} {f : (ι → Bool) → ℂ} (hf : f ∈ lowDegree ℂ ι D) :
(fun (x : ι → Bool) => (f x).im) ∈ lowDegree ℝ ι D

The imaginary part of a complex function of degree at most D on the cube has degree at most D.

theorem Cslib.Quantum.amplitude_mem_lowDegree {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) (ψ₀ : State N W) (t : ℕ) (p : Fin N × Bool × W) :
(fun (x : Fin N → Bool) => (run U ψ₀ x t).ofLp p) ∈ BitString.lowDegree ℂ (Fin N) t

The amplitudes after t queries are polynomials of degree at most t Beals, Buhrman, Cleve, Mosca, de Wolf: for every basis state p, the amplitude of p after t queries is, as a function of the input, a complex function of degree at most t on the cube.

theorem Cslib.Quantum.measureProb_run_mem_lowDegree {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) (ψ₀ : State N W) (T : ℕ) (S : Finset (Fin N × Bool × W)) :
(fun (x : Fin N → Bool) => measureProb (run U ψ₀ x T) S) ∈ BitString.lowDegree ℝ (Fin N) (2 * T)

The acceptance probability after T queries is a polynomial of degree at most 2T Beals, Buhrman, Cleve, Mosca, de Wolf: for every set S of outcomes, the probability that measuring the state after T queries gives an outcome in S is, as a function of the input, a real function of degree at most 2T on the cube.

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

Approximate degree bounds quantum queries Beals, Buhrman, Cleve, Mosca, de Wolf: if a T-query algorithm accepts every input x, by an outcome in S, with probability within ε of f(x), then adeg_ε(f) ≤ 2T.

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

Degree bounds exact quantum queries Beals, Buhrman, Cleve, Mosca, de Wolf: if a T-query algorithm accepts every input x, by an outcome in S, with probability exactly f(x), then deg(f) ≤ 2T.

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

Block sensitivity bounds exact quantum queries Beals, Buhrman, Cleve, Mosca, de Wolf: if a T-query algorithm accepts every input x, by an outcome in S, with probability exactly f(x), then bs(f) ≤ 8 T².

theorem Cslib.Quantum.one_sub_two_mul_mul_blockSensitivity_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 * ε) * ↑(QueryComplexity.blockSensitivity f) ≤ 8 * (1 - ε) * ↑T ^ 2

Block 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/2 of f(x), then (1 - 2ε) bs(f) ≤ 8 (1 - ε) T².

theorem Cslib.Quantum.blockSensitivity_le_sixteen_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) :

Block sensitivity bounds bounded-error quantum queries Beals, Buhrman, Cleve, Mosca, de Wolf: 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 bs(f) ≤ 16 T².

theorem Cslib.Quantum.complexity_le_mul_pow_six {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 Beals, Buhrman, Cleve, Mosca, de Wolf: 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 4096 T⁶ computes f.

theorem Cslib.Quantum.card_le_sixteen_mul_sq_of_threshold_one_right {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)) (h : ∀ (x : Fin N → Bool), |measureProb (run U ψ₀ x T) S - BitString.bitVal ℝ (threshold N 1 x)| ≤ 1 / 3) :
N ≤ 16 * T ^ 2

The search lower bound, decision form Beals, Buhrman, Cleve, Mosca, de Wolf: if a T-query algorithm with a unit initial state computes the disjunction OR_N of its N input bits with error at most 1/3, accepting every input x, by an outcome in S, with probability within 1/3 of OR_N(x), then N ≤ 16 T².

theorem Cslib.Quantum.card_le_two_mul_of_parity {N : ℕ} {W : Type u_1} [Fintype W] (U : ℕ → State N W →ₗᵢ[ℂ] State N W) (ψ₀ : State N W) (T : ℕ) (S : Finset (Fin N × Bool × W)) (h : ∀ (x : Fin N → Bool), measureProb (run U ψ₀ x T) S = BitString.bitVal ℝ (parity N x)) :
N ≤ 2 * T

Exact parity takes N / 2 queries Beals, Buhrman, Cleve, Mosca, de Wolf: if a T-query algorithm accepts every input x, by an outcome in S, with probability exactly the parity of x, then N ≤ 2T.