arXiv:2610.24518quant-phOct 2026

Manuscript Offprint

arXiv:2610.24518

Exact Quantum Query Complexity of the Five-Bit Symmetric Boolean Function \Exact3,45\Exact^5_{3,4}

Guoliang Xu, Haoran Zhang, Mengfan Wu, Songyao Xue, Mingke Liu

Abstract

Let f=EXACT3,45f = EXACT_{3,4}^{5} be the Boolean function that equals 1 exactly on inputs of Hamming weight 3 or 4. Earlier numerical studies reported success probabilities close to one using three queries, but the existence of an exact three-query algorithm had remained unresolved. This paper settles this problem by proving that the exact quantum query complexity of f is 4. For the lower bound, we express every three-query algorithm through layer-by-layer Gram matrices of low-degree Fourier coefficients. We then construct a fixed rational dual certificate whose slack matrices are all positive definite. This certificate separates the necessary Gram-matrix region from the exact-output condition and therefore rules out every exact algorithm using at most three queries in the stated model. The positivity verification reduces to five small rational matrices and Sylvester's criterion. For the upper bound, we invoke the previously known four-query algorithm for the seven-bit function EXACT3,47EXACT_{3,4}^{7} and apply the standard padding reduction. To quantify the near-exact behavior, we use the same certificate to derive a valid, though not claimed tight, lower bound 2560043779488192449>0\frac{25600}{43779488192449} > 0 on the worst-case error of every algorithm using at most three queries. This positive error gap is compatible with the near-unit success probabilities reported in earlier numerical studies, which do not establish exact computation.

Keywords: exact quantum query complexity; symmetric Boolean functions; Gram matrices; semidefinite certificates; sum-of-squares representations.

*Corresponding authors: Guoliang Xu (xu1guo2liang@foxmail.com).

1 Introduction

The exact quantum query complexity QE(f)Q_{\mathrm{E}}(f) measures the minimum number of oracle calls needed to compute a Boolean function ff correctly with probability one on every input. It differs from the usual bounded-error query complexity, which allows a certain probability of error. Exact complexity is usually harder to determine because numerical methods, even when they give highly accurate results, cannot directly prove exactness.

For small functions, numerical methods such as semidefinite programming can find highly accurate algorithms, but rounding a numerical output to 1 does not constitute a rigorous proof. In this paper, we resolve the remaining three-versus-four gap by combining the previously known four-query upper bound with a new impossibility certificate for every algorithm using at most three queries in the stated model.

We study the function

f(x)=EXACT3,45(x)={1,∣x∣∈{3,4},0,∣x∣∈{0,1,2,5},x∈{0,1}5,(1.1)f(x)=\mathrm{EXACT}_{3,4}^{5}(x)=\begin{cases}1,&|x|\in\{3,4\},\\0,&|x|\in\{0,1,2,5\},\end{cases}\qquad x\in\{0,1\}^{5}, \tag{1.1}

where ∣x∣=∑j=15xj|x| = \sum_{j=1}^{5} x_j. Methodologically, we rely on the polynomial representation of Beals et al. The amplitudes of a T-query algorithm are multilinear polynomials of degree at most T, and hence its acceptance probability has degree at most 2T [1]. Nisan and Szegedy [2] established foundational relations between polynomial degree and classical decision-tree complexity. Gram-matrix and semidefinite-programming formulations of query algorithms were developed by Barnum, Saks, and Szegedy [3], and are closely related to adversary methods [4, 5, 6]. Špalek and Szegedy [7] proved the equivalence of the then-known adversary formulations. These tools provide the foundation for the exactness arguments in this paper.

Numerical studies of small exact-query problems include Montanaro, Jozsa, and Mitchison [8] and Uyanik [9]. The work of Montanaro, Jozsa, and Mitchison first appeared as an arXiv preprint in 2011; its journal version appeared in Volume 71 of Algorithmica in 2015 [8]. Appendix A.2 of the 2011 preprint lists the five-bit symmetric function with weight-value vector (0,0,0,1,1,0)(0,0,0,1,1,0), indexed by Hamming weights 0,1,…,50,1,\ldots,5. This is exactly the function studied here. Its three-query entry is 1; under the authors' stated convention, this denotes a solver-reported success probability greater than 0.999, rather than an exact value of one [8, arXiv v1, Appendix A]. This numerical evidence therefore neither proves nor disproves the existence of a three-query exact algorithm. Uyanik later studied exact query complexity using a generalized SDP approach [9]. Ambainis, Iraids, and Nagaj [10, Theorem 1] proved that QE(EXACTk,k+12k+1)=k+1Q_{\mathrm{E}}(\mathrm{EXACT}_{k,k+1}^{2k+1}) = k + 1 for k≥1k \geq 1. Taking k=3k = 3 gives a four-query algorithm for EXACT3,47\mathrm{EXACT}_{3,4}^{7}. Since EXACT3,45(x)=EXACT3,47(x1,…,x5,0,0)\mathrm{EXACT}_{3,4}^{5}(x) = \mathrm{EXACT}_{3,4}^{7}(x_1,\ldots,x_5,0,0), padding with two fixed zeros yields QE(EXACT3,45)≤4Q_{\mathrm{E}}(\mathrm{EXACT}_{3,4}^{5}) \leq 4. Combined with the elementary lower bound, the exact complexity of the present function is therefore either three or four.

He, Sun, Yang, and Yuan studied the related partial weight-decision problem using Chebyshev polynomials and a quantum-padding technique, but their promise-function results are distinct from the present total-function certificate [11]. Xu and Qiu [12] studied the relation between SOS representations and exact quantum query algorithms. For the present function, they showed that two specific pairs of SOS representations of ff and 1−f1-f cannot produce an exact three-query algorithm through their construction. This excludes those representations within that construction, but does not determine QE(f)Q_{\mathrm{E}}(f). Yao and Ye [13] obtained tight results for additional subfamilies of EXACTk,ln\mathrm{EXACT}_{k,l}^{n}, where the function equals 1 exactly when ∣x∣∈{k,l}|x| \in \{k, l\}. Their new EXACT results include the cases l−k≥4l - k \geq 4 with k=0k = 0, and l−k≥4l - k \geq 4 with k=1k = 1 and l=n−1l = n - 1. These cases do not include the adjacent-weight instance (n,k,l)=(5,3,4)(n, k, l) = (5, 3, 4) considered here. Podder, Yao, and Ye studied fine-grained quantum and randomized query complexity for symmetric functions, including success probabilities close to 1/2; that broader setting provides context for, but does not replace, the present exact certificate [14].

Structural results for functions with low exact quantum query complexity provide another relevant line of work. Xu and Qiu [15] gave necessary and sufficient conditions for partial Boolean functions to have exact quantum query complexity one. Qiu and Xu [16] reviewed exact one-query algorithms and constructed a partial Boolean function that can be computed with one quantum query but not by the Deutsch–Jozsa algorithm. Xu and Qiu [17] developed polynomial representations under an equivalence relation for such functions and analyzed instances on up to four input bits. For two queries, Ye, Yang, and Huang [18] studied the classification of Boolean functions with exact quantum query complexity two. Their classification relies on the correctness of the numerical classification for four-bit functions.

Earlier exact results for EXACT and THRESHOLD functions are due to Ambainis, Iraids, and Smotrovs [19]; Midrijanis studied general total Boolean functions [20]. For promise functions defined by weight layers, Qiu and Zheng [21] studied a generalization of the Deutsch–Jozsa problem and its optimal quantum algorithm. Xu et al. [22] studied the classical randomized decision tree complexity of the Deutsch–Jozsa problem and a generalization, highlighting the role of allowed error in comparisons between classical and quantum query complexity.

Wu, Hou, Zhang, Li, and Zeng [23] developed variational learning methods for quantum query algorithms and numerically investigated additional EXACT instances, including non-central adjacent-weight cases. These numerical studies provide further motivation for exact certificates that distinguish near-unit success probabilities from exact computation. Taken together, these results motivate the universal three-query certificate developed below.

The main difficulty is to rule out every three-query process, rather than only a particular circuit ansatz. Equivalently, proving QE(EXACT3,45)=4Q_{\mathrm{E}}(\mathrm{EXACT}_{3,4}^{5}) = 4 amounts to excluding every exact algorithm using at most three queries in the stated model. We therefore retain pairwise final-state inner products in a low-degree Fourier basis and use a fixed rational certificate to separate the resulting necessary region from exact-output Gram matrices. The certificate applies to arbitrary finite-dimensional ancillas, arbitrary complex amplitudes, and arbitrary input-independent unitaries; symmetry is used only to compress the certificate and its verification.

The main theorem resolves this three-versus-four gap.

Theorem 1.1. For the function f in (1.1), the exact quantum query complexity in the standard model is

QE(f)=4.(1.2)Q_{\mathrm{E}}(f)=4. \tag{1.2}

The new ingredient is an explicit rational dual certificate excluding every exact three-query algorithm. The four-query upper bound is inherited from prior work.

The remainder of the paper is organized as follows. Section 2 introduces the phase-query model, Fourier notation, the necessary Gram recurrence, and the dual infeasibility lemma. Section 3 gives the explicit rational certificate, compresses its verification using permutation orbits, proves positivity of all slack matrices, and combines these ingredients to complete the proof of the main theorem. Section 4 records the symmetric degree-three SOS representation and derives the quantitative lower bound on the error of every algorithm using at most three queries. Section 5 concludes the paper. Appendix A collects the standard background and notation used throughout. The remaining appendices contain the expanded Fourier–Gram and telescoping proofs, the block-matrix positivity calculations, and the exact verification protocol, followed by the complete embedded source code.

References (28)