Manuscript Offprint

arXiv:2611.09809

Beyond the n/2n/2 Threshold: Quantum Query Complexity for Computing Hamming Weight and Symmetric Functions

Yuan Deng, Zihan Hao, Honghao Lin, Qipeng Liu, Vahab Mirrokni, Jianan Shao, David P. Woodruff

Abstract

The oracle-interrogation algorithm [van Dam, FOCS '98] computes every nn-bit Boolean function with bounded error using n/2+O(n)n/2 + O(\sqrt{n}) quantum queries. In contrast, parity can be computed exactly using ⌈n/2⌉\lceil n/2 \rceil queries, but whether an additive overhead beyond n/2n/2 is necessary for a single Boolean output has remained open.

In this work, we construct an explicit family of symmetric Boolean functions requiring n/2+Ω(n1/3)n/2 + \Omega(n^{1/3}) quantum queries at a fixed positive constant error. We also give an algorithm that recovers the exact Hamming weight using n/2+O(n1/3)n/2 + O(n^{1/3}) quantum queries with bounded error, and therefore computes every symmetric Boolean function within the same query bound. Together, these results determine the optimal additive order for Hamming weight recovery and for the worst case over symmetric Boolean functions at sufficiently small constant error.

1 Introduction

How many quantum queries are necessary to compute a Boolean function of nn input bits? The value n/2n/2 is a natural threshold. Parity can be computed exactly with ⌈n/2⌉\lceil n/2 \rceil quantum queries, and this bound is optimal even with bounded error [BBC⁺01]. In the other direction, van Dam's oracle-interrogation algorithm recovers the entire input with any fixed error using n/2+O(n)n/2 + O(\sqrt{n}) queries [vD98]. Farhi, Goldstone, Gutmann, and Sipser proved that this square-root overhead is optimal for recovering the entire input with bounded error [FGGS99]. Consequently, the same query upper bound holds for computing any Boolean function with constant error.

For symmetric Boolean functions, Paturi characterized the approximate degree up to constant factors [Pat92]. The threshold n/2n/2 is also the ceiling of the standard approximate-degree lower bound. Every nn-bit Boolean function has an exact multilinear polynomial representation of degree at most nn; the standard polynomial method suggests that quantum query lower bound is at least half the approximate degree [BBC⁺01, Lemmas 4.1–4.2]. Thus approximate degree alone cannot prove a query complexity greater than n/2n/2. Therefore, it is intriguing to ask:

Is any additive overhead beyond n/2n/2 unavoidable when the task is only to compute a single Boolean output, and if so, what is its optimal worst-case overhead?

*Google Research. dengyuan@google.com †UC San Diego. z1hao@ucsd.edu ‡Google Research. honghaol3010@gmail.com §UC San Diego. qipengliu@ucsd.edu ¶Google Research. mirrokni@google.com ∥UC San Diego. jis140@ucsd.edu **Google Research and Carnegie Mellon University. dpwoodru@gmail.com

The basic question of whether such a function exists is due to Shelby Kimmel and appears in Aaronson's 2014 problem list [Aar14].

Ambainis, Bačkurs, Smotrovs, and de Wolf gave a complementary lower bound: almost all Boolean functions require n/2−o(n)n/2 - o(n) quantum queries [ABSdW13]. Their proof uses the sum-of-squares structure of quantum acceptance probabilities. Together with van Dam's upper bound, their result identifies n/2n/2 as the major term for almost all Boolean functions, while leaving the additive question unresolved.

In this paper, we answer the existence question affirmatively. We show a symmetric function, which requires strictly greater than n/2n/2 quantum queries to be computed in worst-case. A function is symmetric if its value depends only on the Hamming weight ∣x∣=∑i=1nxi|x| = \sum_{i=1}^{n} x_i. We give explicit symmetric functions requiring n/2+Ω(n1/3)n/2 + \Omega(n^{1/3}) queries, together with an algorithm that computes every symmetric function (indeed, the hamming weight) using n/2+O(n1/3)n/2 + O(n^{1/3}) queries. In particular, the results achieve the tightest bound for computing hamming weights with a constant probability. This also points out an interesting distinction between recovering hamming weight and recovering the entire string.

References (49)