arXiv:2610.17648quant-phOct 2026

Manuscript Offprint

arXiv:2610.17648

Nearly Optimal Quantum Sample Complexity of Learning Fourier-Sparse Boolean Functions

Zekun Ye

Abstract

We study the number of uniform quantum examples needed to exactly learn a Boolean function with at most kk nonzero Fourier coefficients. We give a learner with near-optimal O~(k)\widetilde{O}(k) sample complexity independent of the input length nn. The learner uses only separate measurements of individual examples. This improves the previous O(k3/2log⁡2k)O(k^{3/2}\log^{2}k) upper bound [ACL+21^{+}21]. The main ingredient is a candidate set formed by symmetric differences of subsets from independent groups of Fourier samples. A multilinear majority polynomial combines unbiased random approximations into an accurate witness whose Fourier support lies in this set. Granularity then forces the set to contain the entire Fourier support, including subsets never directly sampled. For comparison, we derive the tight classical sample complexity Θ(nk)\Theta(nk) by combining known sparse-recovery and lower-bound results.

Keywords. Quantum learning, exact learning, Fourier sparsity, quantum examples.

1 Introduction

Learning from examples is a central task in computational learning theory [AdW17]. Structure in an unknown function can make learning possible without examining its exponentially large domain. Fourier analysis describes such structure by expressing Boolean functions as linear combinations of parity functions. A function is Fourier-sparse when only a few coefficients are nonzero.

Fourier sparsity counts the nonzero terms in the representation and provides a natural parameter for relating representation complexity to the amount of data needed for learning. The class includes signed parity functions, which have sparsity one, and every function depending on dd variables, whose sparsity is at most 2d2^d. Unlike dependence on a small set of variables, Fourier sparsity also permits the relevant parity functions to involve arbitrarily many input coordinates [ACL+21^{+}21].

Exact Learning. In exact learning, the goal is to identify an unknown target from a known class of functions [AdW17, ACL +^{+}21]. A learner must output a classical description that agrees with the target on every input, with high success probability. For Fourier-sparse Boolean functions, we recover the complete Fourier representation. This requires identifying every nonzero spectral component, including those that contribute little to average prediction error.

Classical and Quantum Examples. We study f:F2n→{−1,1}f : \mathbb{F}_2^n \to \{-1,1\} under the uniform distribution. A uniform classical example is a labeled pair (X,f(X))(X, f(X)), where XX is uniformly distributed on F2n\mathbb{F}_2^n. A uniform quantum example is the state

∣ψf⟩:=2−n/2∑x∈F2n∣x⟩∣bf(x)⟩,bf(x):=1−f(x)2.(1)|\psi_{f}\rangle:=2^{-n/2}\sum_{x\in\mathbb{F}_{2}^{n}}|x\rangle|b_{f}(x)\rangle,\qquad b_{f}(x):=\frac{1-f(x)}{2}. \tag{1}

This quantum-example model was introduced by Bshouty and Jackson [BJ99]; see [AdW17] for a broader account. The objective is to output an exact classical description of the target using as few examples as possible.

Following [HR16a], the sample complexity of exact learning is the minimum number of independent uniform examples needed by a learner to identify any target in the class, with success probability at least 2/3. Classical and quantum sample complexity refer to the corresponding types of examples [ACL +^{+}21].

The essential quantum operation is Fourier sampling. Conditional on an event of probability 1/2, one copy yields a subset of variables S⊆[n]S \subseteq [n] with probability f^(S)2\widehat{f}(S)^2 [BJ99, ACL +^{+}21]. For a signed parity function, a successful Fourier sample reveals SS, and one further classical example determines its sign. Thus learning a signed parity function requires only a constant number of quantum examples, compared with Θ(n)\Theta(n) uniform classical examples [ACL +^{+}21], in both cases with constant success probability. Fourier-sparse functions extend this basic separation from one parity function to a sparse combination of parity functions. Determining their sample complexity asks how much of the advantage survives when several spectral components must be identified simultaneously.

The Gap in Known Bounds. Arunachalam, Chakraborty, Lee, Paraashar, and de Wolf [ACL +^{+}21] gave an O(k3/2log⁡2k)O(k^{3/2} \log^2 k) quantum upper bound independent of nn, together with an Ω(klog⁡k)\Omega(k \log k) lower bound for k≤2cnk \leq 2^{cn} and any fixed c∈(0,1)c \in (0,1). They conjectured that O(k polylog k)O(k \text{ polylog } k) uniform quantum examples suffice to learn every kk-Fourier-sparse Boolean function exactly.

Why the General Case Is Difficult. For k≥2k \geq 2, if every nonzero Fourier coefficient has magnitude comparable to 1/k1/\sqrt{k}, coupon collection finds the support from O(klog⁡k)O(k \log k) Fourier samples. Fixed-target recovery then determines the coefficients from O(klog⁡k)O(k \log k) classical examples [CP11]. In general, however, a nonzero coefficient can have magnitude of order 1/k1/k, so its corresponding subset may appear with probability of order 1/k21/k^2 [GOS +^{+}11, ACL +^{+}21]. Waiting to observe every support element can therefore be too expensive. Existing learners instead find the linear span of the support, but recovering within that span incurs an additional polynomial cost in kk [San19, ACL +^{+}21]. The challenge is to identify a sufficiently small candidate set containing the support without observing every support element directly.