Bounded-error parity, threshold functions and majority by the adversary method #
Ambainis's adversary bound across single bit flips
(Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_neighbors) gives the Ω(N) lower bounds for
parity and majority that [Amb02], §5.3, derives from Theorem 2, and the threshold bound
behind them.
- Parity. Every bit flip changes the parity, so the inputs of odd and of even parity have
Nneighbors across. An algorithm computingPARITY_Nwith errorε ≤ 1/2therefore has(1 - 2√(ε(1-ε))) N ≤ 2T(Cslib.Quantum.one_sub_mul_card_le_two_mul_of_parity), andN ≤ 36 Tat error1/3(Cslib.Quantum.card_le_thirty_six_mul_of_parity). This is bounded-error. The exact boundN ≤ 2TisCslib.Quantum.card_le_two_mul_of_parity. - Weight
kagainst weightk - 1. An input of weightkhaskneighbors of weightk - 1, and an input of weightk - 1hasN - k + 1neighbors of weightk. So an algorithm that tells the two layers apart with errorε ≤ 1/2, and need not be correct on any other input, has(1 - 2√(ε(1-ε))) √(k (N + 1 - k)) ≤ 2T(Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_weight). The same holds for the threshold functionTh^N_k(Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_threshold). - Majority. For
k = ⌈N/2⌉,k (N + 1 - k) ≥ N² / 4, so computingMAJ_Nwith errorε ≤ 1/2needs(1 - 2√(ε(1-ε))) N ≤ 4T(Cslib.Quantum.one_sub_mul_card_le_four_mul_of_majority), andN ≤ 72 Tat error1/3(Cslib.Quantum.card_le_seventy_two_mul_of_majority).
For total functions the parity and threshold bounds would also follow from the
spectral-sensitivity bound Cslib.Quantum.one_sub_mul_spectralSensitivity_le, since
λ(PARITY_N) = N and λ(Th^N_k) = √(k (N - k + 1)); the library does not prove these values.
The layer bound
one_sub_mul_sqrt_le_two_mul_of_weight constrains the algorithm only on two weight layers. The
constants are those of this proof. The source states Ω(N) bounds.
Main results #
Cslib.Quantum.one_sub_mul_card_le_two_mul_of_parity:(1 - 2√(ε(1-ε))) N ≤ 2Tfor parity.Cslib.Quantum.card_le_thirty_six_mul_of_parity:N ≤ 36 Tfor parity at error1/3.Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_weight: weightkagainst weightk - 1.Cslib.Quantum.one_sub_mul_sqrt_le_two_mul_of_threshold: the threshold functionTh^N_k.Cslib.Quantum.one_sub_mul_card_le_four_mul_of_majority:(1 - 2√(ε(1-ε))) N ≤ 4Tfor majority.Cslib.Quantum.card_le_seventy_two_mul_of_majority:N ≤ 72 Tfor majority at error1/3.
References #
Bounded-error parity takes Ω(N) queries [Amb02], §5.3: 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 the parity of x, then (1 - 2√(ε(1-ε))) N ≤ 2T.
Bounded-error parity takes N / 36 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 the
parity of x, then N ≤ 36 T.
Telling weight k from weight k - 1 [Amb02], §5.3: if a T-query algorithm with
a unit initial state accepts every input of weight k, by an outcome in S, with probability at
least 1 - ε and every input of weight k - 1 with probability at most ε ≤ 1/2, then
(1 - 2√(ε(1-ε))) √(k (N + 1 - k)) ≤ 2T. The algorithm is constrained on no other input.
Threshold functions [Amb02], §5.3: 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
Th^N_k(x), then (1 - 2√(ε(1-ε))) √(k (N + 1 - k)) ≤ 2T.
Bounded-error majority takes Ω(N) queries [Amb02], §5.3: 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 the majority of x, then (1 - 2√(ε(1-ε))) N ≤ 4T.
Bounded-error majority takes N / 72 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 the
majority of x, then N ≤ 72 T.