Majority function 2026-10-07
A majority Boolean function outputs one when more than half its input bits are one. An odd number of inputs avoids a tie convention. For three bits its unique multilinear polynomial is , so the polynomial method for quantum query lower bounds requires at least two exact queries.
Use the bit-query Boolean quantum oracle , where denotes workspace. Initially every probability amplitude is independent of , hence is a constant polynomial. An input-independent unitary gate only forms linear combinations of probability amplitudes, so it does not increase their polynomial degree.
If is an amplitude before a query, its new value is
One query increases polynomial degree by at most one. Inductively, after queries each amplitude has polynomial degree at most . The acceptance probability is a sum of squared absolute values of the accepting amplitudes, so it is a real polynomial of degree at most . Intermediate quantum measurements and classical adaptation can be retained coherently, or handled by summing unnormalized branch probabilities; either approach yields the same degree bound.
An exact algorithm has acceptance probability precisely at every Boolean input. The multilinear reduction on the Boolean cube replaces positive powers of each by , preserving these values without increasing polynomial degree. Therefore the polynomial method for quantum query lower bounds gives
Here is the degree of the unique multilinear polynomial representing the Boolean function, and is its exact quantum query complexity. Uniqueness follows, for example, by evaluating successively on the indicator vectors of subsets: the value on a subset determines its coefficient once all smaller-subset coefficients are known.
For the three-bit majority function, the pair products count how many pairs of input bits are both one. Their sum is zero at Hamming weights zero and one, one at weight two, and three at weight three. Subtracting twice the triple product corrects the last value. Hence
This is a multilinear polynomial of degree three, and its top coefficient is nonzero. Uniqueness of the Boolean multilinear polynomial excludes a degree-two alternative. The polynomial method for quantum query lower bounds therefore yields , and the integer number of queries gives
Boolean conjunction is multiplication on zero-one inputs. The block conjunction of three-bit majorities therefore has the multilinear polynomial
The factors use disjoint variables, so their product remains a multilinear polynomial. Its monomial containing all variables has coefficient ; no term has higher degree. By uniqueness, the representing multilinear polynomial has degree exactly . Applying the polynomial method for quantum query lower bounds gives
This argument concerns exact quantum query complexity; the analogous claim for bounded error does not follow from exact polynomial degree.