Manuscript Offprint
arXiv:2611.05117Quantum Query Lower Bounds from Classical Moment Matching
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We prove a quantum analogue of the classical moment matching method, a popular framework used to prove lower bounds in property testing. For two random variables and whose moments match up to the first moments, the classical moment matching method says that no classical algorithm can reliably distinguish between input instances of length constructed from and , respectively, unless it performs at least queries. While this method has been widely explored since its inception in the seminal work of Raskhodnikova, Ron, Shpilka, and Smith (STOC 2007) to prove lower bounds for symmetric properties, it has remained an open question whether a quantum analogue of it could be proved.
We prove two variants of this quantum moment matching method, which are incomparable. Our first quantum query lower bound scales as , while our second moment matching theorem yields a sharper lower bound of , albeit for smaller parameter ranges. Our results combine a new continuous hybrid argument with the polynomial method. The continuous hybrid argument compares two hard input distributions generated from i.i.d. samples by continuously varying both distributions, keeping them identically distributed at every intermediate stage. It reduces the comparison to the effect of changing the distribution of a single sample. The polynomial method then cancels the terms determined by the matched moments.
We apply these moment matching theorems to prove new optimal lower bounds on -distinctness, -star-freeness, planarity and outerplanarity testing, as well as to improve prior lower bounds on image size testing and -junta testing by logarithmic factors. A key advantage of our framework is its simplicity: it reduces quantum lower bound proofs to the construction of suitable moment-matching distributions, which in many cases have already been constructed for establishing corresponding classical lower bounds.
*Email: chandrimakayal2012@gmail.com †Email: frederic.magniez@irif.fr ‡Email: sayantan789@gmail.com §Email: szabo.daniel@lmu.de
Contents
1 Introduction 1 1.1 Context and motivations ..... 1 1.2 Our results ..... 3 1.3 Technical overview ..... 6 1.3.1 First step: input distributions ..... 6 1.3.2 Second step: forming the acceptance probability polynomial ..... 7 1.3.3 Third step: using the hybrid argument ..... 7 1.3.4 Fourth step: using the matching moments ..... 8 1.3.5 A better bound for some regimes ..... 9
2 Problem setting and main results 11 2.1 Construction of the input distributions ..... 11 2.2 Main theorems ..... 13
3 Moment matching: framework and first bound 15 3.1 Polynomial and probabilistic tools ..... 15 3.1.1 Symmetrization ..... 15 3.1.2 Approximation and moment bounds ..... 16 3.2 Hybrid arguments and moment matching ..... 18 3.2.1 Continuous hybrid argument ..... 18 3.2.2 Connection to standard hybrid arguments ..... 19 3.2.3 Moment matching ..... 20 3.3 Proof of Theorem 2.5 ..... 21
4 Stronger bound for fixed support 24 4.1 Proof of Theorem 2.6 ..... 24 4.2 Proof of Lemma 4.1 ..... 26 4.2.1 Newton coefficients as block differences ..... 26 4.2.2 Bounding the block differences ..... 27 4.2.3 Newton coefficient bounds ..... 31 4.3 Proof of Lemma 4.2 ..... 33
5 Applications 33 5.1 Preliminaries for applications ..... 34 5.2 Testing distinctness and graph properties ..... 34 5.2.1 The classical frequencies give a quantum lower bound ..... 35 5.2.2 Graph consequences ..... 35 5.3 Image-size and junta testing ..... 37 5.3.1 Classical moment construction ..... 37 5.3.2 Image-size testing ..... 37 5.3.3 Junta testing by reduction ..... 38
References 39
A Deferred proofs on polynomials 42
B Deferred construction of matching moments 44
1.1 Context and motivations
Property testing In this era of big data, even just reading the input in its entirety can be prohibitively costly. However, from a practical perspective, we can often tolerate some sort of approximation. The field of property testing focuses on such a setting: here the goal is to distinguish whether the input object (in this work a function or a graph) satisfies some property of interest, or is far from all such objects under some suitable distance measure, by accessing the input as few times as possible. The tester can either accept or reject when the distance of the input from the property does not satisfy the condition. Perhaps surprisingly, it is often possible to design testers whose complexity scales sublinearly with the size of the input. Over the last two and a half decades, property testing has become a vast and active area of research, see [Gol17, BY22, Ron09, CS10, RS11, Can20, Can22] for more details.
Property testing has naturally also been explored in the quantum setting [FMSS03, BFNR03]. For several important problems such as junta testing, graph isomorphism, bipartiteness and expansion testing, polynomial quantum speedups are known [ACL11, ABRdW16, AMSS25, CAH24], see the survey [MdW16] for a detailed discussion. Naturally, understanding the limit of quantum advantage has been a prime focus in the community.
Our starting point is a function , where . For a property (aka. collection) of such functions, the input is -far from if at least values must be changed to obtain a function in . Given oracle access to an unknown function , an -tester must distinguish whether , or -far from with success probability at least , by performing as few queries as possible to the oracle of . A classical query reveals at a chosen index , while a quantum algorithm has coherent access to , and can query several indices in quantum superposition.
Many natural properties of interest, such as injectivity, the absence of -collisions, or having an image of at least a given size, depend only on how many times each output value occurs, i.e., on their frequencies (aka. multiplicities). Writing
the image size of is the number of with , and has a -collision precisely when some . The vector is called the frequency vector of . Indeed, these properties remain invariant under permutations of the input indices and the output labels. Such properties are called symmetric or label-invariant properties and play an important role in both classical and quantum property testing, and have been extensively studied in the literature, see [Val11, VV11, VV17, WY19, CFG25] and the references therein.
Since these symmetric properties only depend on the multiplicities of the output labels, a natural approach to prove lower bounds for such properties is to consider hard instances based on frequencies and then randomize the positions and labels. Thus the task is to construct two hard input instances (or distributions of instances), one in the property , and another far from , and prove that any algorithm performing only a few queries cannot reliably distinguish them.
Moment-matching method Moment-matching method is a powerful classical framework that is used to achieve this dichotomy. In general, for some symmetric property , a pair of input instances with one instance in the property and the other being far from , and whose moments match up to moments for some integer , would require queries to distinguish them with probability at least 2/3. To build its intuition, let us consider the example of distinguishing a uniformly random 1-to-1 function from a uniformly random 2-to-1 function . Let us choose a label uniformly from , and let for . Note that with probability 1 and is either 0 or 2, each with probability 1/2. Then the moment-matching method proves that distinguishing between these two cases with probability at least 2/3 requires queries.
The intuition for this framework stems from the fact that since is symmetric, moments are all that matter. One can alternatively define and for the non-zero frequencies. In that case, is uniformly sampled from . Then and with probability 1 for our example. One can show that exact moment matching for can be translated to proportional moment matching for , and this is usually the expression that is used in the literature.
The classical moment matching framework was introduced in the seminal work of [RRSS09], where the authors used this framework to prove lower bounds on estimating the support size and the entropy of a distribution, and the number of distinct elements in a sequence. Then [VV11] extended this framework to approximately matching moments and proved lower bounds on various distribution testing problems such as distance estimation. Later, Wu and Yang [WY19] connected the matching moments framework to polynomial approximation and obtained sharp bounds for entropy and support-size estimation. Since then, there have been a flurry of results in the context of proving distribution testing lower bounds that employ this framework [AOST17, CJKL22, DKS18, GR23, CSY25]. The same framework was used to prove a -collision-freeness lower bound by Hellweg and Sohler [HS12] for , which was later extended to arbitrary by Peng and Wang [PW23], which they transfer to directed subgraph-freeness via a reduction.
Notably, there are two important ingredients of this framework: (i) when using it, one has to construct suitable random variables so that the framework can be applied; and (ii) the proof of the framework provides that no algorithm can reliably distinguish them by performing only a few queries. While these series of works use different input instance constructions and moment conditions, all of these proofs use the Poissonization trick: instead of considering a fixed number of samples, taking a set of samples distributed according to the Poisson distribution makes the frequencies of different symbols independent, thereby greatly simplifying the proofs.
Toward a quantum analogue Due to the wide success of this framework and its simplicity to use in practice for proving new lower bounds, it was naturally considered whether a similar lower bound framework exists for the quantum query model. Ambainis, Belovs, Regev, and de Wolf [ABRdW16] were the first to propose whether combining the construction of [RRSS09] with quantum lower-bound techniques could be used to obtain stronger bounds for junta testing [ABRdW16]. Without answering directly to this question, several problems, for which the moment matching frameworks can be applied classically, were studied in the quantum setting using mostly the dual polynomial method and quite involved mathematical constructions. First, improved lower bounds for junta testing and several other important problems, like image size testing, were achieved in a subsequent work [BKT20]. Later on, [AMSS25] establishes lower bounds for collision-freeness and directed subgraph-freeness testing, which was later extended by [PW27]. Thus, quantum lower bounds of some specific problems were tackled, but not directly the general matching moments method. We now briefly discuss the bottleneck.
Recall that the second ingredient of matching-moments-based lower bound proofs is to prove indistinguishability: a classical algorithm that performs too few queries cannot reliably distinguish between the two hard distributions. Since the use of Poissonization makes the number of occurrences of every label independent, it allows to compare the histogram distributions based on the input distributions. Since the property is symmetric, the algorithm's decision depends only on this histogram. Consequently, if two histogram distributions are close in total variation distance, no algorithm making only a few queries can distinguish them with high probability.
However, a quantum algorithm can query several indices of the input in superposition, without measuring the answer register after each query. In fact, measuring the outcome of each query can remove coherence used by subsequent queries and thereby change the algorithm's acceptance probability. Thus, even for symmetric properties, a quantum query algorithm cannot be analyzed by merely processing a classical histogram constructed from its samples. A quantum moment-matching argument must therefore control what coherent queries can distinguish, which has not been studied in the literature. Thus, despite a long series of works, the following question remained wide open:
Does there exist a quantum moment matching framework for proving quantum query lower bounds?
1.2 Our results
In this work, we answer the above question in the affirmative:
There exists a quantum moment matching framework for proving quantum query lower bounds.
We prove that indeed such a general lower bound framework exists in the quantum query realm, transferring each corresponding classical bound to the quantum bound , and even sometimes to the higher bound .
Quantum analogue of classical moment matching framework We provide two variants of the moment matching theorem: the first one works for a large range of parameters, useful for broader applicability, whereas the second one, while restricted to smaller parameter ranges, yields better bounds on several problems of interest. Let us start with the first variant of our quantum moment matching framework.
In both theorems, we start as in the classical setting. Fix an integer . Suppose are two random variables supported on such that for an integer ,
These random variables refer to the statistics of the frequency vector of any candidate function in the hard distributions. Indeed from them, and any given integer , one can construct a pair of hard distributions and (constructed from and , respectively) of functions .
Theorem 1.1 (Informal statement of Theorem 2.5). Assume that satisfy Equation 1. When and , any -query quantum algorithm can only distinguish between and with probability at least whenever .
Note that the above result gives a quadratic decrease in the lower bound compared to the classical setting, reflecting the possibility of quantum speedups. The above theorem is similar to the matching moment theorem of [RRSS09], and it holds for a large range of parameters and (see
Theorem 2.5 for the exact ranges of the parameters). We employ this theorem to prove optimal quantum query lower bounds on image size testing and junta testing.
However, for several properties like -distinctness and subgraph-freeness testing, the bound obtained from the above theorem remains sub-optimal. To achieve the optimal lower bounds for these properties, we further improve the above theorem to give tighter bounds, albeit for more restricted parameter ranges.
Theorem 1.2 (Informal statement of Theorem 2.6). Assume that satisfy Equation 1. For fixed , any -query quantum algorithm can only distinguish between and with probability at least whenever .
A crucial appeal of this framework lies in its simplicity for proving new quantum query lower bounds. These theorems can be used as black-box: all it needs is input instances that satisfy the conditions of the theorems, and we directly obtain a new quantum query lower bound! This is indeed the case of various applications. In fact, in many cases, it is sufficient to consider the classical moment-matching lower bound construction, and even designing new hard instances is not required.
Applications of the quantum moment matching framework As applications of our two moment matching theorems, we obtain several new quantum query lower bounds, even optimal ones, with either polynomial or logarithmic improvements. Moreover, all these lower bounds are now proven in a more direct and streamlined fashion. Our results are summarized in Table 1.
While Theorem 1.2 proves a sharper lower bound compared to Theorem 1.1, as we mentioned, Theorem 1.2 holds for smaller parameter ranges. For our applications of image size testing and junta testing, applying Theorem 1.2 would not yield optimal lower bounds and Theorem 1.1 needs to be applied. On the other hand, for -distinctness, directed -star-freeness and directed planarity and outerplanarity testing, Theorem 1.2 is required for proving the optimal bounds. Thus, Theorem 1.1 and Theorem 1.2 are incomparable from an application standpoint.
We start with the -distinctness testing problem. Here, given access to a function , the goal is to distinguish whether every output value of occurs fewer than times or one needs to change the value of at least positions to make it so. This is also often called -collision-freeness testing. Next we consider four problems in directed bounded-degree graphs in the unidirectional model, where the algorithm can only query the outgoing neighbors of each vertex. The first two problems are testing -star-freeness and -source-subgraph-freeness: whether a -star or any given subgraph with source components appear as subgraphs in the graph (see Section 5.2.2 for the definition). Then, we consider planarity and outerplanarity testing: given query access to a graph in the unidirectional model, the algorithm has to distinguish whether the underlying undirected graph is planar or outerplanar, or far from being so. Our results for these problems are summarized in the following theorem, see Table 1 for the best prior classical and quantum bounds.
Theorem 1.3 (Informal statement of Corollary 5.1 and Corollary 5.2). The quantum query complexity of property testing:
(i) -distinctness for strings of length is ;
(ii) -star-freeness and -source-subgraph-freeness for -vertex graphs in the unidirectional model is ;
(iii) planarity and outerplanarity of -vertex graphs in the unidirectional model is .
| Property testing problem | Previous bounds | This work | |
|---|---|---|---|
| Classical | Quantum | Quantum | |
| -distinctness | [PW23] | [AMSS25] | Corollary 5.1 |
| [HS12] | [AMSS25] | ||
| -star-freeness and -source-subgraph-freeness | [PW23] | [AMSS25] | Corollary 5.2 |
| [HS12] | [AMSS25] | ||
| Planarity and outerplanarity | [PW23] | consequence of [Zha15] | Corollary 5.2 |
| Image-size testing | any fixed [RRSS09] | [BKT20] | Corollary 5.5 |
| [WY19] | [Mon16] | ||
| -junta testing | [Sağ18] | [BKT20] | Corollary 5.7 |
| [Bla09] | [ABRdW16] | ||
Table 1: Query bounds for our applications, with explicit logarithmic factors, . For each problem, the previous bounds occupy two rows: lower bounds above, upper bounds below. This work gives the lower bounds in the last column. The -distinctness and directed subgraph-freeness entries are for . In the image-size testing row, is an arbitrary constant.
Suppose we are given query access to a function . In the image size testing problem, our goal is to distinguish whether takes at most a prescribed number of distinct values, or is far from all such functions. Similarly, in -junta testing, our goal is to test if depends on at most input coordinates among its coordinates. Such a function admits a low-dimensional representation and has been widely studied in the literature. Our results are stated as follows:
Theorem 1.4 (Informal statements of Corollaries 5.5 and 5.7). The quantum query complexity of (i) Image size testing for strings of length is ,
(ii) -junta testing is .
The best known prior classical and quantum bounds on these problems are presented in Table 1. A detailed discussion of techniques and prior works on these applications is presented in Section 5.
1.3 Technical overview
We first give an overview of the proof of Theorem 1.1, then move to Theorem 1.2. Our proofs combine the polynomial method with a continuous hybrid argument. We express acceptance probabilities as polynomials and use the hybrid argument to compare their expectations under the hard input distributions.
Polynomial and discrete hybrid arguments have previously been combined, for instance in Zhandry's construction of quantum-secure pseudorandom functions [Zha21], but not so often applied since. Here, continuous interpolation preserves the i.i.d. structure of our multiple samples, while moment matching cancels the low-degree contributions at each stage.
1.3.1 First step: input distributions
We start with two random variables supported on that correspond to positive frequency statistics and have proportional moments up to order . Let for . From we define a related mean-one frequency statistics as follows: keep a sample from with probability and replace it by zero otherwise. The resulting random variable includes zero frequencies and has support on . It also satisfies
The additional zero value is crucial, it lets us obtain mean one while converting proportional moments into matching moments.
For , we now construct a random function from prescribed positive frequency statistics , or equivalently, its associated mean-one frequency statistics . Let be the underlying distribution of . This is not as easy as defining statistics from a given function . The main difficulty is that we would like a sampling process that samples with as many i.i.d samples from as possible. However, for an input , the sum of the frequencies has to be exactly , and because of the randomness of the samples we cannot be sure to achieve this after any number of samples from .
To overcome this issue, we will use a randomized variant of the frequency construction of [RRSS09] to define from i.i.d. samples of .
-
We sample independent multiplicities according to the distribution of ; each nonzero draw specifying the multiplicity of a distinct output label. Set .
-
If , we add new output values that occur once each (aka. singletons) yielding multiplicity vector , and assign output labels and input positions uniformly at random.
-
If , is set to be the all-1 vector, thus after taking uniformly random labels we obtain a uniformly random bijection.
This gives a function on exactly inputs. The construction ensures that the original multiplicity samples are independent. For this construction, we say that we draw where is the uniform distribution over functions with the prescribed output multiplicities , up to relabeling. This complete randomized procedure defines the distribution over functions. After sampling , we provide the quantum algorithm with oracle access to that fixed function. Therefore, its average acceptance probability is .
It is important to note that our construction differs slightly from the original one of [RRSS09]. Indeed, [RRSS09] obtains independence of the frequency statistics of the observed values, rather than of the input multiplicities. For this, they use a Poissonization argument: instead of taking samples to answer queries, they consider a Poisson() number of such samples.
1.3.2 Second step: forming the acceptance probability polynomial
Our main goal is to show that any quantum algorithm that performs few queries has almost the same acceptance probability under the two input distributions whose moments match up to moments. We will use the polynomial method, i.e., the fact that the acceptance probability of a -query quantum algorithm is a polynomial of degree at most in the indicators of the oracle values [BBC+01].
Averaging over the random assignments of positions and labels gives a symmetric polynomial of degree at most in the label multiplicities. More precisely, Lemma 3.1 gives
for every feasible frequency vector . Writing for the frequency vector produced by our construction from the sampled multiplicities , including the fallback case, we obtain
Symmetry means that permuting the entries of leaves unchanged. It also allows us to express in terms of the power sums , connecting the acceptance probability to the frequency moments. However, the critical point is that it is not yet necessarily a polynomial in .
However, we assume that and match only their first moments, while may have degree as large as , with much larger than . Thus, moment matching does not directly bound the difference between the two acceptance probabilities.
The main idea is therefore to use a hybrid argument, changing the distribution of one sampled multiplicity at a time, and approximate the acceptance probability, as a function of that multiplicity with the others fixed, by a polynomial of degree below . The expectations of this approximation under and agree exactly by moment-matching, and we show that the remaining error is small.
1.3.3 Third step: using the hybrid argument
We now describe the hybrid argument to analyze the success probability of any given algorithm against two different input distributions. Recall that is the frequency vector obtained from the sampled multiplicities by our input construction, including singleton completion and the fallback when . For , define by
Thus is the average acceptance probability for fixed sampled multiplicities . Since permuting only permutes the entries of , the symmetry of implies that is invariant under permutations of its coordinates. Moreover,
For two probability distributions on , define the usual hybrids
Define , for and . We are interested in the quantity , i.e., the difference of the expected acceptance probabilities when the whole input is sampled according to or .
The usual hybrid changes one coordinate at each step and telescopes . By symmetry, each increment is
For the formal proof we use a continuous version of this argument in Lemma 3.7, where is a continuous, piecewise continuously differentiable path from to . Setting and , we get
Then the RHS is upper bounded by , for the linear path .
The advantage of the continuous formulation is that the remaining multiplicities are i.i.d. with common distribution at every intermediate step. For each , the number of coordinates of equal to therefore follows , so standard binomial estimates apply directly. In the discrete increment , these multiplicities remain independent but have two different distributions, and . The corresponding number is then a sum of two binomial variables. Preserving the i.i.d. structure thus simplifies the averaging of estimates involving .
1.3.4 Fourth step: using the matching moments
Bringing back the degree bound In the rest of this overview, we only consider samples such that . The opposite event has exponentially small probability to happen and can be bounded separately using Hoeffding's inequality.
For every integer , we have . Hence the completion procedure discussed in Section 1.3.1 does not overflow and the resulting frequency vector contains one -tuple and singletons added to . Therefore, each -th power sum of it satisfies .
Since we start with a polynomial in in Equation (2), the function is also a polynomial in with the same degree bound as . It takes values in for every integer .
Matching moments Since is a degree-2T polynomial in s, let be its Taylor-truncation up to degree r - 1. The moment-matching assumption can be used to cancel the contribution of in Equation (3). Indeed, since and have matching moments below order r, so do have and , for any . As a consequence in fact does not depend on u (specific case of Lemma 3.4). Therefore and
As a consequence we get this special case of Lemma 3.8:
Combining small degree and matching moments In the regime and , Taylor approximation (Lemma 3.2) provides the approximation of the tail of , using that for every integer . After taking its expectation over , this leads to
Therefore
So finally
up to an additional exponential small term (bounded by ) due to our original assumption that . Thus, when and , this quantity can only be large when the number of queries .
1.3.5 A better bound for some regimes
For proving the second theorem, we use two main lemmas: Lemma 4.2 and Lemma 4.1. First we discuss how to prove the theorem using these lemmas and then continue with the lemmas.
As before, let be the distribution of for over and denote . Lemma 4.2 provides a distribution that has the same first moments as and , is -close to both and , and satisfies for every . The distribution is used for the continuous hybrid approach: we will combine two paths for that have the same moments up to order as and .
Denoting , the goal is to bound . Similar to the previous theorem's proof, we can use Lemma 3.8 to bound each term for . The second term of the bound obtained this way corresponds to the exceptional event , which can again be bounded using Hoeffding's inequality. For the first term, instead of using the Taylor bound as before, we now use the Newton bound from Lemma 3.3 to bound the inside expression as follows:
Now we use the other main lemma of this proof: Lemma 4.1 provides an upper bound of on the expectation of where and a is a lower bound on the probabilities in : this is why the lower bound on the probabilities in is crucial. Then, with little calculation (explained in full detail in Section 4), one can obtain the required upper bound
up to a small additive term bounded by due to the assumption . Thus, when and are fixed, this quantity can only be large when the number of queries .
Obtaining the distribution The proof of Lemma 4.2 first starts from and adds a small amount of mass uniformly, ensuring that every point receives positive mass. However, this changes the total mass and the first moments. Then, using Lagrange interpolation (Lemma 3.5), we adjust the masses at suitably chosen points to restore them. The interpolation bound controls this correction, preserving the required lower bound on every probability and the closeness to and .
Newton coefficients of Now we turn to proving Lemma 4.1, and introduce some notation. First, we write the input function as a string , i.e., . We partition the set of indices according to the value takes there, leading to “blocks” of indices, one for each value. The size of each block is the frequency of the corresponding value. Let us take an such that contains at least one block of size , and let denote the number of blocks of size . Moreover, let denote one plus the number of blocks of size (for ), and . Also, let be the algorithm’s acceptance probability on input .
We define the following distribution for each . We first take a uniformly random partition of to block sizes prescribed by the frequency vector (coming from the original input distribution), and mark a uniformly random block of size . Now let us choose a size- subset of the marked block uniformly at random, call this subset , and split the other positions into singletons. We assign distinct labels uniformly at random to the blocks, and define as the label of the block containing . Then we choose uniformly among all -tuples of distinct labels from . So is a distribution of tuples . One can see that the marginal distribution of according to is the same as , thus .
For a subset , define as the input one obtains from by turning into for each . Based on this, let us define the block difference operator as
where is any (scalar or vector-valued) function on . We usually omit from the notation. Take and (i.e., the acceptance probability). For each , splitting it off leaves an -block (and new singletons). Because of uniformity, the expected acceptance probability for this term is . Thus, using the definition of the Newton coefficients (for ), we obtain that (Proposition 4.3)
Bounding expected block differences As we mentioned, Lemma 4.1 gives an upper bound of on the expectation of . This is done by bounding each and then averaging over using the binomial bounds of Lemma 3.6. For bounding each , the special case when (which we call the singleton case) is handled separately in Lemma 4.8 simply by using the Newton bound (Lemma 3.3). The other cases are treated in Lemma 4.9 by combining the last equation of the previous paragraph and the bound on the expected block differences (remember that ) provided by Lemma 4.6. Finally, the bounds on the inverse binomial moments of Lemma 3.6 turn the dependence on and to the required factor.
Query-gain argument Now we turn to proving Lemma 4.6, which is the core of the proof of Theorem 2.6. Our argument is similar to the query-gain argument in [Bel26], for which we only present here a high-level intuition. Recall that the goal is to prove an upper bound on . Similarly to the standard adversary bound, the proof analyzes how the state of the -query algorithm on input changes query by query. Let be the state after query and the state before query . We apply on the vector-valued function . Clearly, is independent of the input, and is closely related to the acceptance probability . For instance, if the accepting state is only , then . We deal with the general case in the main proof in Section 4.
Let us define difference vector . One can telescope these differences to write (which is a linear function of ) as a rather simple combination of the vectors. Lemma 4.5 combined with Claim 4.7 provides bound . Combining these facts, one can obtain that can be upper bounded by the expression , thus finishing the proof.
2 Problem setting and main results
2.1 Construction of the input distributions
For an integer , let . We also usually write finite real vectors in bold face and their coordinates in normal font, such as .
Frequency vector The frequency vector of any given function is . A vector is feasible if , equiva-lently if for some . We call any such vector a feasible frequency vector, or simply a feasible .
For a feasible (frequency vector) , let be the uniform distribution on functions whose frequency vector is a permutation of . To sample from , one can first uniformly permute the entries of to obtain , then choose uniformly among all sequences in which each output label occurs exactly times.
The following random variable describes the frequency of a uniformly chosen output label. For a function drawn from , define its positive frequency statistics , where is uniformly chosen from . Equivalently,
Choosing instead uniformly from gives another random variable, the mean-one frequency statistics . Since , we have
So the normalization simply corresponds to including unused output labels. When it is clear from the context, we will refer to any of these statistics simply as frequency statistics.
From frequency statistics to functions We now construct a random function from prescribed positive frequency statistics , or equivalently its associated mean-one frequency statistics as in Equation (4). We use a randomized variant of the frequency construction of [RRSS09, Definition 5.4]. We sample multiplicities i.i.d. according to , each nonzero draw specifying the multiplicity of a distinct output label. If their sum is , we add additional output labels, each occurring exactly once. Note that adding singleton labels changes the final frequency statistics.
Definition 2.1 (Induced input distribution). Fix an integer and positive frequency statistics supported on . Denote , and define its associated mean-one frequency statistics by (4). For , let be the distribution of obtained as follows:
-
Draw independent multiplicities according to the distribution of ; put .
-
If , form by taking the non-zero entries of , then adding entries equal to 1, and finally zeros to length . If , set .
-
Draw .
Observe that the vector in step 2 is always feasible: its non-zero entries sum to .
Remark 2.2. Let , . Let be the probability distribution of , that is for . Then is directly connected to as follows. For , let be the frequency vector obtained in step 2 of Definition 2.1. Then generating according to is equivalent to generating according to and then according to .
In particular, for every algorithm with query access to , we have
Example 2.3. Consider and , and let equal 1 or 3, each with probability . Then and
To sample , draw four independent multiplicities from this distribution. If the draws are , their sum is s = 4, so we add four output values of multiplicity one and obtain
Thus there is one output value of multiplicity three and five of multiplicity one. One possible outcome after assigning labels and positions is
For comparison, the draw has and triggers the fallback , producing a uniformly random bijection.
The number of draws equal to 3 has distribution . Values or produce a bijection, while produce one or two output values of multiplicity three, respectively. Hence the full input distribution is
2.2 Main theorems
Fix an integer , and two positive frequency statistics supported on [A]. We define their respective induced input distributions and according to Definition 2.1, and consider the following distinguishability problem.
A single function is drawn before the algorithm starts. The (quantum) algorithm receives standard (quantum) query access to this fixed function , with hidden. Our goal is to bound the difference between its acceptance probabilities under and in terms of the moments and the number of queries it makes.
The following proposition expresses exact moment matching of the mean-one frequency statistics as proportional moments of the positive frequency statistics.
Recall that, for and , we define by
Since , these probabilities are nonnegative and sum to one. Equivalently, we keep an independent draw from with probability and replace it by zero otherwise.
Proposition 2.4 (Normalization of moments). For and every integer ,
Consequently, for every integer ,
Proof. The proof is direct using, for .
In particular, all denominators are non-zero since , so cross-multiplication proves the equivalence. The case provides .
We now introduce our two main theorems, which share the same moment hypothesis. Theorem 2.5 remains useful when the support bound and the number of matched moments grow with . For fixed , Theorem 2.6 gives a stronger quantum query lower bound for constant distinguishing bias, at the cost of an exponential factor .
Theorem 2.5 is proved in Section 3 and Theorem 2.6 in Section 4. The constants c, C can be chosen the same in both theorems.
Theorem 2.5. Fix an integer and positive frequency statistics supported on [A]. Define according to Definition 2.1 applied to and . Suppose that they satisfy the following, for an integer :
There are absolute constants such that, for integers and , every -query quantum algorithm satisfies
In particular, if and , this difference is whenever as . Each probability includes the initial draw of and the algorithm's measurement outcomes.
Theorem 2.6. Fix an integer and positive frequency statistics supported on [A]. Define according to Definition 2.1 applied to and . Suppose that they satisfy the following, for an integer :
There are absolute constants such that, for integers and , every -query quantum algorithm satisfies
In particular, for fixed , this difference is whenever as . Each probability includes the initial draw of and the algorithm's measurement outcomes.
Remark on the case . This base case also appears in [RRSS09, Definition 5.4, Theorem 5.6 and Corollary 5.7]. When , the proportional-moment condition is vacuous, so both theorems apply directly. Consider , , and . Then is uniform on bijections, whereas has output values of multiplicity 2, completed with singletons. With probability , at least such values occur, so the function is at distance at least from injectivity. This is element distinctness testing: injective versus far from injective; the second distribution need not be two-to-one. Theorem 2.5 gives an quantum query lower bound, while Theorem 2.6 recovers the known bound for testing injectivity. The latter follows from the lower bound on the collision problem [AS04] by noticing that a two-to-one function is a special case of a far from injective function.
3 Moment matching: framework and first bound
We begin by introducing the general tools that will be used in the proofs of our two main theorems, and then prove the first one, namely Theorem 2.5.
3.1 Polynomial and probabilistic tools
3.1.1 Symmetrization
We use the frequency-vector notation of Subsection 2.1. The following lemma establishes the connection between quantum query complexity and the moment-matching technique used in our proof. It shows that, after averaging over random permutations of the domain and range, the acceptance probability of any quantum algorithm making at most queries can be expressed as a symmetric polynomial of degree at most in the output frequencies.
Moreover, its representation in terms of power sums, together with the weighted-degree restriction, allows us to obtain a low-degree univariate polynomial when varying a single multiplicity while keeping others fixed. This polynomial structure is crucial for applying moment matching to cancel the lower-order terms and using polynomial inequalities to bound the remaining contribution.
Lemma 3.1 (Symmetrization). For every quantum algorithm making at most queries, there is a symmetric polynomial of degree at most such that, for every feasible ,
If , one can write , where is the -th power-sum symmetric polynomial, and every monomial of satisfies .
Proof. First, following [BBC+01], the acceptance probability is a polynomial of degree at most in the indicators .
For an input with frequency vector , averaging over independent uniform domain and range permutations induces . On valid encodings of , each monomial either vanishes or is the indicator of a partial function. If it fixes domain points and uses distinct output values with multiplicities , its average is
This is a symmetric polynomial of degree at most , proving the assertion about . The fundamental theorem of symmetric polynomials and Newton's identities express each homogeneous component of in power sums of the same weighted degree [Mac95], giving .
3.1.2 Approximation and moment bounds
We begin by stating some polynomial tools that will be used in the proofs of Theorems 2.5 and 2.6. The first provides a bound on the Taylor remainder of a low-degree polynomial whose values are bounded on an integer interval, while the second gives a Newton expansion and a corresponding remainder estimate. These results will allow us to control the higher-order terms that remain after moment matching. For completeness, we provide their proofs in Appendix A.
Lemma 3.2 (Taylor bound). Let and be integers with . Let be any polynomial of degree at most such that for . For an integer , let . Then for every real ,
Lemma 3.3 (Newton bound). Let and be integers, and let be any polynomial of degree at most such that for . Its Newton coefficients are
For an integer , let . At every ,
where empty sums are understood to be zero.
Assume moreover that . Then, for every integer and ,
We first establish a basic consequence of moment matching. The following lemma shows that when two probability distributions have matching moments up to a given order, the corresponding lower-order terms vanish in the difference of expectations of a polynomial. This cancellation holds in both the monomial and Newton bases and will be used to control the differences in acceptance probabilities.
Lemma 3.4 (Moment cancellation). Let be integers, and let be probability distributions on with matching moments through order , that is,
Choose one of the two bases , or , for . Suppose on , for an integer . Then
(12)
Proof. The moment identities also hold for , since both distributions have total mass 1. For either basis, is a polynomial of degree . Thus, for , writing gives
Expanding q and interchanging the finite sums therefore yields
Finally, for either basis, on , so
We next recall the Lagrange polynomial interpolation result on integer intervals. For completeness, we provide a proof in Appendix A.
Lemma 3.5 (Lagrange interpolation). Let and be integers, and let belong to . Define
Every polynomial of degree at most satisfies . Moreover, at every integer .
The following lemma provides bounds on inverse moments of binomial random variables. These estimates will be used to control the inverse block-count factors that arise when averaging the bounds on the Newton coefficients, required later in the proof of Theorem 2.6. Importantly, this result does not require independence between the random variables.
Lemma 3.6 (Inverse binomial moments). Let be an integer, let , and let have marginal distributions and . They need not be independent. Then
For with ,
Proof. Since , we have
The same bound holds for with in place of . Hölder's inequality with weights (the third factor being 1) then gives
3.2 Hybrid arguments and moment matching
As discussed in the overview, interpolation between multiplicity distributions turns the global comparison into a one-coordinate calculation. This is a reminiscence of the quantum hybrid argument in [BBBV97]. The two lemmas of this section make this reduction explicit.
We start by defining a new notion of continuous hybrid argument. Then we explain why it is generalizing the usual one. Finally, we state a lemma that will be used to exploit the moment-matching condition.
In this full subsection, fix integers , and let . They will be used as follows: is the largest possible sampled multiplicity, is the number of multiplicities we sample and is the set of possible values of one multiplicity.
3.2.1 Continuous hybrid argument
Let be invariant under permutations of its coordinates. Symmetry lets us move any chosen coordinate to the last position. For this reason, for , with and , we define .
The following derivative identity in Lemma 3.7 provides a continuous version of the usual hybrid bound. We will elaborate on this after presenting its proof. Its final inequality additionally takes the absolute value inside the expectation over .
Lemma 3.7 (Continuous hybrid argument). Let be invariant under permutations of its coordinates. Define , for . Let be a continuous, piecewise path of probability distributions on , and denote . At every differentiability point of the path, with , the following holds:
Consequently,
Proof. Writing the expectation as a finite sum and differentiating each product term gives us
For each fixed , let us set and . Symmetry gives . Hence the inner sum is
This expression is independent of i, so summing over i proves (13).
Finally, is continuous and piecewise , so . Therefore we can conclude by using .
3.2.2 Connection to standard hybrid arguments
In our applications, these coordinates are multiplicity draws: is the value of one draw and contains the other values. More explicitly, is the mean of the algorithm's acceptance probability after fixing the multiplicity vector and averaging over the subsequent random functions in . So is indeed symmetric. We remind that, according to Equation (5) of Remark 2.2, if each coordinate of is sampled i.i.d. according to the same distribution on , then
Standard hybrid argument We now describe the usual hybrid argument to analyze the success probability of any given algorithm against two different input distributions. For two probability distributions on , define the standard hybrids as
We are interested in the quantity , i.e., the difference of the expected acceptance probabilities when the whole input is sampled according to or . The usual hybrid changes one coordinate at each step and telescopes . By symmetry, each increment is
Continuous hybrid argument We now give a continuous version of this argument in Lemma 3.7. Let be a continuous, piecewise path of probability distributions on joining to , and let
Here and . To see the connection with the usual hybrid argument, consider the special case of the linear path . Then symmetry gives
Differentiating with respect to yields
The weights are nonnegative and each integrates to 1, so
Thus the derivative identity in Lemma 3.7 recovers the standard hybrid bound.
Final remark The continuous formulation in Lemma 3.7 is useful in Section 4 because the remaining draws are independent and have the same distribution: the count has distribution . This permits the direct use of Lemma 3.6 in Lemma 4.1. A fixed discrete hybrid generally has two different coordinate distributions and would require corresponding count estimates. For the polynomial proof in Section 3, the standard discrete hybrid would give the same bound.
3.2.3 Moment matching
Moment matching allows us to replace by its approximation error in the derivative formula of Lemma 3.7. We state this below in a lemma that will provide us a common comparison bound for Theorems 2.5 and 2.6. It also bounds the contribution of exceptional choices of for which we do not control the approximation error.
Lemma 3.8. Let be invariant under permutations of its coordinates. Define , for . Let be a continuous, piecewise path of probability distributions on whose moments through order are constant in , for an integer . Let us denote . For each , let be a polynomial of degree below . For every ,
(15)
Proof. Fix . Then for two values , the two distributions have matching moments through order . Since , Lemma 3.4 gives . Thus is constant in .
Therefore, at every point where it is differentiable,
Consequently,
Equation (14) of Lemma 3.7, split over and its complement, gives
We apply (16) in the first term. For the second term, gives
These bounds prove (15), completing the proof.
3.3 Proof of Theorem 2.5
We are now almost ready to prove our first main theorem. This full subsection is devoted to this. Let us fix the parameters of Theorem 2.5 and let be a quantum algorithm making at most queries to . The case is immediate.
Assume and with . Put , and , and let be the distribution of for . For , let be the frequency vector obtained in step 2 of Definition 2.1, and define
Note that with this symmetrization, h is not yet necessarily a polynomial in z.
For , let and . We first establish the following polynomial approximation.
Lemma 3.9 (Taylor approximation). For every with , the function admits a 2T-degree polynomial extension, also denoted , such that
with real coefficients and satisfying , for every . Then every mean-one random variable Z supported on S satisfies
(17)
Proof. Let us fix with and set . The parameter conditions give us , , and .
As in step 2 of Definition 2.1, for each integer , we form by taking the non-zero entries of , adding entries equal to one, and padding with zeros, if required, to make it of length . This vector is feasible since . We extend to these integers by
For , we have , so this is exactly the completion used to define .
By Lemma 3.1, we know that there is a symmetric polynomial P of degree at most d such that
Let us write , where has weighted degree at most . For , we have , where the terms come from the fixed multiplicities, the completion singletons, and the added multiplicity . Consequently is indeed a degree-2T polynomial in :
extends the integer values and has degree at most d.
Since is its truncation below degree r, Lemma 3.2 gives
using the fact that , , and .
Finally, we are ready to prove our first main theorem.
End of proof of Theorem 2.5. By Proposition 2.4 and the moment matching condition (7), the distributions of have mean one and matching moments through order . Let us apply on the linear path of probability distributions for . Its moments through order are constant, since
Let , so for . Apply Lemma 3.8 with
where is defined as in Lemma 3.9 for the given w and order r. This gives
On , Lemma 3.9 bounds the residual inside the expectation above by
where the first inequality uses the fact that .
Under , the remaining draws are independent, bounded by , and have mean one. Thus , and Hoeffding's inequality [Hoe63] gives, for every ,
Also, . Substituting these bounds into the comparison above and using gives
(19)
Using and , the first term is at most
This proves (8) with and c = 1/8. This completes the proof.
4 Stronger bound for fixed support
We prove Theorem 2.6 by the same comparison lemma as the polynomial estimate (Lemma 3.8). However, instead of using the Taylor bound, we now apply a truncated Newton expansion. We first give the main proof using the coefficient bound of Lemma 4.1 and the interpolation paths of Lemma 4.2, which are proved in Subsections 4.2 and 4.3, respectively.
4.1 Proof of Theorem 2.6
Let us fix a -query quantum algorithm on functions , with acceptance probability . Similarly to the previous section, let , and let be the distribution of for . For , let be the frequency vector constructed in Definition 2.1, and define . For , let and for .
Let us write the Newton coefficients of :
Let for and . The following two lemmas provide the averaged residual bound and a path along which it is integrable. They are proved in Subsections 4.2 and 4.3, respectively.
Lemma 4.1. Assume , , and . Let satisfy . Let be a mean-one distribution on with for every . There is an absolute constant such that
Lemma 4.2. Let and let be two distinct distributions on with matching moments through order , and denote . There is a distribution with these same moments such that
Using these lemmas, we now prove Theorem 2.6.
Proof of Theorem 2.6. By Proposition 2.4, the distributions of have mean one and matching moments through order . We know that . The conclusion is immediate if or ; hence let us assume , and . If , then it must be that since a distribution on a domain of size is uniquely determined by its first moments. Hence we assume as well. We choose the constants in the theorem so that and . The claim trivially follows when . Otherwise,
so Lemma 4.1 applies to every remaining coefficient.
Let be given by Lemma 4.2, so it has the same first moments as and , and define . For each , we use the linear path of probability distributions on given by
Using the fact that the first moments of and match, we get that they also match the moments of , which are therefore independent of . Also
Here , and both paths end at . We can bound the difference for each using Lemma 3.8. We apply the lemma with and of degree (where Newton coefficients are defined in (20)) to upper bound by
We now restrict our attention to bounding the two terms in the above equation.
We apply the Newton expansion in Lemma 3.3 to obtain
For , we apply Lemma 4.1 with distribution and to get and thus
We absorb into by increasing the absolute constant. The expression inside the integral of the first term in (21) is then at most
The exceptional-event probability (i.e. the probability of in the second term) is at most . As , integration in (21) and the triangle inequality at the common endpoint give
Consider , , and . Since and for , . Absorbing the finite sum and its exponential factors into yields
The left-hand side is at most one, so we may replace by : the latter is either at least one or dominates the former, since . This completes the proof.
4.2 Proof of Lemma 4.1
Recall that we have fixed a -query quantum algorithm on functions , with acceptance probability .
We prove the upper bound on the expectation of the Newton coefficients in Lemma 4.1 by first bounding each Newton coefficient and then averaging over . We call the case the singleton case. We treat the singleton case separately in Lemma 4.8. For the other cases, we first introduce some new notation.
4.2.1 Newton coefficients as block differences
Assume , , and fix with and some . Let . For notational convenience, in this subsection we identify input with its value vector , so coordinates of are oracle query positions. The parts of with the same output label are called blocks, their sizes correspond to the non-zero frequency entries.
For , the sampled inputs corresponding to have the same block sizes as those of , except that the -block corresponding to the last sampled multiplicity is replaced by an -block and singletons (all singletons when ).
Let be the number of blocks of size , and the total number of blocks. The completion is feasible since , and and .
For , starting from the fixed frequency vector , we construct a joint distribution by sampling an input , a marked -block , and fresh replacement labels . To sample from , we first draw a uniform partition of with block sizes given by , and mark a uniform -block. Now let us choose a uniform -subset of the marked block, split its other positions into singletons, and give all blocks distinct uniform labels in , finally obtaining . There are blocks, so at least labels are unused. Choose a uniform -tuple of distinct fresh labels. We write for expectation with respect to this distribution.
For , let us define such that
The same tuple is used for every , so the inputs are generated jointly. In particular, for , if and is chosen uniformly in , then , as shown in the proof of Proposition 4.4. Together with the original triple , this gives a coupling between and .
The marginal distribution of under is . In particular, it is when . Thus
For any scalar- or vector-valued function of the input , let us now define the block difference operator by
We henceforth suppress a from the notation for better readability.
The next lemma identifies (the Newton coefficients of ) with the average block difference of the acceptance probability .
Proposition 4.3. For every and satisfying the assumptions stated above, we have:
Proof. In the definition of , taking for leaves an -block and singletons in place of ; when , all positions become singletons. Let us take the expectation over and group the subsets by their size. There are subsets of size , and averaging over all subsets of this size makes the split partition uniform with these block sizes by Proposition 4.4. So the resulting mean acceptance is . Consequently, summing over the different block sizes and denoting we obtain the following expression:
Thus, for proving Lemma 4.1, it suffices to bound the average block difference of the acceptance probability.
4.2.2 Bounding the block differences
Consider a feasible frequency vector with and . For the bounds below, we use notations is the number of blocks of size for . Let for , and .
The following identity of the block difference operator is going to be useful in our proofs. For , uses the labels with , also when evaluated at for .
Proposition 4.4. Let and . For a fixed , the input has distinct uniform labels on the partition obtained by splitting the positions in into singletons.
Moreover, for any scalar- or vector-valued function and every , the following identity holds for every sampled triple , using the same replacement labels throughout:
Proof. Conditional on the partition and , the block labels and the replacement labels are jointly uniform and distinct. For a fixed , the input uses a subcollection of these labels, so its block labels are also uniform and distinct.
For the identity, let us fix a sampled triple and . Now we separate the subsets according to whether they contain :
The last equality uses , since all replacements use the same tuple .
In the proof of the next lemma, the main fact used is that, conditional on , the marked block is uniform among its blocks of size . The first statement provides a way to go from a level quantity to a level quantity. Its proof is based on a double-counting bijection between level and level . The second statement gives an explicit bound. When applying this lemma, is going to represent the function mapping input to the corresponding state of the algorithm with query access to .
Lemma 4.5. Let be a vector-valued function of the input. Then
Moreover, if for every f, then
Proof. We provide the proofs of the two statements separately.
Proof of the first statement. Choose uniformly in and replace by . The modified input , the marked block , and the remaining fresh labels in correspond to the level distribution. Indeed, the old block label remains in use, and the remaining fresh tuple is uniform among labels unused in the new input. Conditional on this new experiment, is uniform among its unmarked singletons: merging any one of them back into the mark by changing its label, and then setting to its former label, gives a unique preimage of the same probability. Writing for these singleton positions gives
Proof of the second statement. Note that is a signed sum of vectors (for each ). Thus, applying Cauchy–Schwarz for each gives
Now let us group the terms by . Conditional on the resulting input , the remaining marked block is uniform among its blocks of size . Indeed, applying on the input a permutation of positions and one of labels simultaneously preserves the experiment; and if the pair of permutations does not change the input, it acts transitively on its blocks of a given size. In either case, the marked block's expected query mass is at most , since the total query mass is one and there are at least blocks of size . Thus the last display has expectation at most , proving (25).
Now we turn to the main lemma of this part, that upper bounds the expected block difference of the acceptance probability. Our argument is an elementary form of the more involved query-gain argument in [Bel26].
Lemma 4.6. Under the preceding assumptions, the acceptance probability of every T-query quantum algorithm on functions satisfies
where C is an absolute constant.
Proof. By deferring measurements and uncomputing, we are going to make the accepting amplitude linear in the final state, which costs a factor 2 in queries. Let denote the whole unitary transformation, including the queries to , which is applied to the initial state, . Let denote the accepting projector. Let . Since is a projector, is unitary. Moreover
Since involves both and , it makes queries to , of them being reverse queries. Nonetheless, these can be rewritten as forward ones by inserting some unitary. Indeed, consider the query model . Then using the unitary , we get .
So we consider forward queries in . Since , we get , thus it suffices to bound for any -query unitary circuit. Let us write . Absorb the final unitary into , and use the averaged norm
When there is no ambiguity, we suppress the input in the notation for states; expressions involving also depend on the sampled and .
Let (or explicitly, as a vector-valued function of the input, ) be the state after query and the state before query , so . For , define
Since input-independent unitaries commute with and preserve these norms, we have . Moreover, applied to a constant function gives 0, thus . The following claim, which we prove by induction after completing the proof of the lemma, bounds this as follows.
Claim 4.7. For every , consider as defined above. Then
It remains to bound the expected block difference at size . We first control the contribution of each query using differences on blocks of size . We then sum these contributions over the queries and average over the uniformly chosen marked -block to obtain
Claim 4.7 then gives the desired bound.
tribution of one query. Let be the oracle action on the answer register when the queried position is , so and . Let . By Proposition 4.4, the difference vector
has components
Each vector corresponds to the component of with query register in state . Thus the vectors are orthogonal and the oracle difference has norm at most two. Thus (24) gives
(28)
Summing over all queries. We now take and express as a sum of the query contributions, using the matrix element defining . The difference will be paired with the fixed vector , so the computation can stay linear. This allows the uniform choice of among blocks of size to be exploited to gain a factor .
Let be the part of the circuit after query , with , and let be the unit vector obtained by propagating backwards through the circuit . Telescoping the query errors from (27) gives . Therefore, recalling that ,
Since lives on query addresses in , we have , where projects the query address onto . For a fixed input with its mark forgotten, is fixed and is uniform among the disjoint -blocks of . Hence , and Cauchy-Schwartz combined with (28) and Claim 4.7 finishes the proof of the lemma:
Using and , and enlarging the absolute constant , proves the lemma. □
Proof of Claim 4.7. In the setting of the previous proof, for , let
Proposition 4.4 gives and . In the last step we used that in the first term the th label is always , and in the second it is always . Rewrite the last expression as .
For any unitaries and vectors ,
Apply this to compare and address by address, i.e. use , , and . Sum over , since outside the query leaves the difference norm unchanged. Applying Cauchy-Schwarz to the sum gives
We prove the claim by induction on , using the two bounds in Lemma 4.5. Summing the increments up to any query time and then taking the maximum gives a bound on .
For , the first expectation is the expected query mass of on the marked position (i.e. ) on input , which is uniform among singletons, so this is at most . The second expectation has the same interpretation, but on input . Refreshing this label preserves the labeled input distribution, thus both expectations in the last display are at most . Each increment is therefore at most . Since , summing over queries gives .
For , apply (25) to the first expectation to obtain upper bound . Then applying (24) to the second expectation gives upper bound . Thus, the increment is at most . The initial differences vanish, so summing over at most queries yields
Use the induction hypothesis together with , and , to obtain
□
4.2.3 Newton coefficient bounds
Now we return to Newton coefficients, the original goal of Lemma 4.1. As mentioned earlier, we first consider the singleton case, i.e., .
Lemma 4.8. Suppose , , and . Let satisfy . For every ,
where C is an absolute constant.
Proof. For integer , let be mean acceptance for one -block and singletons, uniformly positioned and labeled. This function agrees with on , and the cases both give the all-singleton partition. Its power sums are for , so Lemma 3.1 extends to a polynomial of degree at most , bounded in at the integers .
Since , we apply Lemma 3.3 with , remainder order , and . The remainder at this point is exactly , giving
The last inequality follows from and
Now we continue with general , using the block difference bounds. We assume , , and , and fix with .
Lemma 4.9. Let satisfy . First, let us complete with singletons, let count its -blocks, and let count its -blocks for . Let and . Then
where C is an absolute constant.
Proof. The completion is feasible since . If for all , Lemma 4.8 gives , which proves (29) with , , and : the exponent is zero for , and for .
Otherwise, the completed partition has at most blocks, thus Lemma 4.6 applies. By Proposition 4.3, the expected block difference is . Using the bound of Lemma 4.6 finishes the proof.
Now we have to average over w to finish the proof.
Proof of Lemma 4.1. The independent draws have mean one and is in , so . Hoeffding's inequality [Hoe63] gives the stated bound on .
Let count the draws equal to . Under the unconditioned product distribution, . On , at least completion singletons are present, and the counts in Lemma 4.9 satisfy
For the following bound, we first apply Lemma 4.9 and we drop the event indicator. We also use the following facts: since , on we have ; and . Thus
In the last step we used Lemma 3.6 (since ) with the fact that , and absorbed factor into .
4.3 Proof of Lemma 4.2
We prove Lemma 4.2 by adding a small uniform component and correcting its low moments on r suitable support points.
Proof of Lemma 4.2. Let , , and . Let index the largest coordinates of . For its Lagrange basis and , moment cancellation and Lemma 3.5 give
Thus the th largest coordinate of is at least . On the set of the largest coordinates,
Let be uniform on , let now denote the Lagrange basis on , and let be unit mass at . Let us set
For every polynomial of degree below , interpolation gives . Thus the correction has zero moments through order , including zero total mass. Lemma 3.5 gives . Since , both on and outside it, we have
The last inequality uses the fact that for . Hence is a probability distribution with the required moments. Finally,
5 Applications
In this section, we illustrate the moment matching method on various applications such as k-distinctness testing, testing some graph properties, image-size testing, and junta testing. For all these problems, classical frequency-moment constructions supply the hard inputs and Theorems 2.5 and 2.6 give quantum lower bounds, which we transfer to graph testing problems and junta testing by reductions. Table 1 compares the resulting bounds with previous randomized and quantum query bounds and identifies the argument used. The list of applications is not exhaustive, the purpose of this section is only to provide some interesting examples where our main theorems can be applied. Throughout, k and testing proximity parameter are considered to be constants, and we use shorthand . Before presenting the application results, we discuss some preliminaries.
5.1 Preliminaries for applications
We denote . In the query complexity model, we consider inputs over a finite alphabet and indexed by a set . When the input is a string of positive integers , then and .
In the bounded-degree graph model, we query the adjacency lists of the vertices of the input graph. For a graph with vertex set and maximum degree bound , we have and . Here we assume that each vertex has a fixed order of its neighbors, and a query returns the -th neighbor of if it exists, and a special character otherwise. For directed graphs, one can distinguish two variants of this model. In the unidirectional model, the algorithm only has access to the list of out-neighbors of the vertices. On the other hand, in the bidirectional model, there are two lists: one for the out-neighbors and one for the in-neighbors, so the algorithm has to specify if it would like to learn the -th in- or out-neighbor of a vertex . This can be achieved, for example, by the query containing one additional bit.
In quantum query complexity, the algorithm can use a unitary query operator, and for input one way to define it as follows: , for and .
A property is a predicate over domain . We say that an input satisfies if . The distance of two inputs is defined as
We say that is -far from a property if for all .
In the case of graphs, a graph property is defined as a set of graphs that is closed under graph isomorphism. In the case of bounded-degree graphs with maximum degree bound , the distance of two graphs is the number of edges that one needs to add or delete in order to transform one to the other (up to isomorphism) divided by .
In property testing, an algorithm, also called a -tester, accepts inputs in and rejects those -far from , each with probability at least 2/3. The tester can either output accept or reject when the above two conditions do not hold.
The problem of -source-subgraph-freeness testing, and its special case, -star-freeness testing, were introduced in [HS12] and their quantum versions were studied in [AMSS25]. The former is a general directed subgraph-freeness problem where the forbidden subgraph is restricted to having “source components”, where a source component is a set of vertices with no edge going from vertices outside to . An (incoming) -star consists of a center node and outer nodes all having an edge to the center.
We also present directed planarity and outerplanarity testing lower bounds. Here, planarity and outerplanarity refer to the underlying undirected graph obtained by ignoring arc directions and replacing each antiparallel edge pair by a single edge, but the oracle gives only outgoing neighbors in the unidirectional model defined above. Recall that an undirected graph is said to be planar if it can be drawn in the plane such that edges intersect only at common endpoints. Similarly, is said to be outerplanar if it can be drawn in a planar way with every vertex on the boundary of the outer (unbounded) face.
5.2 Testing distinctness and graph properties
We apply Theorem 2.6 to the classical hard instances considered by Peng and Wang [PW23], then transfer the distinctness bound to graph testing through a local encoding.
5.2.1 The classical frequencies give a quantum lower bound
The classical random variables on from [PW23, Section 2.2, Lemma 11] have proportional moments. We take the classical hard distribution from [PW23] and apply Theorem 2.6; it remains to check that its input distributions satisfy the testing promises.
Corollary 5.1 (Testing -distinctness). For any , let us fix . Also let . For every , testing
has quantum query complexity , even when every multiplicity is at most , where .
Proof. Let us consider from [PW23, Section 2.2]. Besides their proportional moments, they satisfy
For , let us use the input distribution of Definition 2.1. Under , every input belongs to . In Definition 2.1, each sampled multiplicity equals with probability . Using a concentration argument, we can say that with probability , no overflow event happens and contains at least values of multiplicity . Each such value requires at least one change, so with probability , such inputs are -far from , and thus a tester has acceptance gap .
For , the lower bound is immediate. Otherwise, Theorem 2.6, with , gives us
Thus . Embedding the outputs into preserves the distance bound and costs only constantly many queries. This completes the proof.
Previous quantum bounds The bound in [AMSS25, Theorem 4.1] comes from dual polynomials, and [PW27, Theorem 7.2] obtained the same bound (with a worse logarithmic factor) even for bounded multiplicities. Corollary 5.1 improves this exponent for , and our new bound matches the upper bound from [AMSS25, Sections 1.3 and 1.5.1]. The optimal lower bound of for was known from [AS04] (since a two-to-one function is -far from injectivity), our result proves optimal bounds for . It is interesting to note that the problem of finding -collisions in random functions has the same query complexity as the property testing variant [LZ19].
5.2.2 Graph consequences
We describe the standard local reduction that maps a k-collision to a k-star; the other consequences (planarity and outerplanarity) use the same construction. Recall that for planarity and outerplanarity testing, while the graph is directed and accessed in the unidirectional model, the property to test is whether the underlying undirected graphs are planar and outerplanar, respectively.
Let denote the complete bipartite graph with the two parts having size and . In its directed variant, every arc is directed from the first part to the second. From a distinctness testing instance , we form a directed graph of size with vertices and , for , for some constant parameter , and arcs
By this construction, each value of multiplicity gives a directed component, leading to a graph of maximum outdegree . Moreover, by this reduction, -distinctness testing turns into different subgraph-freeness testing problems:
-
For and any constant , the reduction gives the -star-freeness testing problem, which is a special case of -source-subgraph-freeness testing.
-
For and , the reduction gives a planar graph in the 3-collision-free case and a far from planar one (containing many disjoint subgraphs) in the far from 3-collision-free case.
-
For and , the reduction gives an outerplanar graph in the 3-collision-free case and a far from outerplanar one (containing many disjoint subgraphs) in the far from 3-collision-free case.
Thus, we obtain the following corollary.
Corollary 5.2 (Graph testing problems). In the unidirectional bounded-degree model, the following quantum query lower bounds hold for -vertex input graphs:
-
For any constant and , testing -source-subgraph-freeness has quantum query complexity . A special case is -star-freeness.
-
For , testing planarity with maximum outdegree 3 has quantum query complexity .
-
For , testing outerplanarity with maximum outdegree 2 has quantum query complexity .
The bounds hold already on bipartite directed acyclic graphs whose indegree and undirected degree are at most in the first case, and at most 3 in the last two cases.
Proof. Under the promise that multiplicities are at most , a function that is -far from -distinctness of input length has at least values of multiplicity : changing one occurrence of each such value to an unused label repairs the function. We form similar to Eq. (30). Thus has that many disjoint forbidden components and each component requires an original arc to be deleted. With and adding isolated vertices if required, the distance is at least . Correctness follows from the underlying component graphs in the following table.
| property | allowed components | forbidden component |
|---|---|---|
| -star-freeness | ||
| planarity | ||
| outerplanarity |
We finally apply Corollary 5.1, with the same for the first row, and for the last two rows.
Previous quantum bounds For -star-freeness and -source-subgraph-freeness testing, the lower bound in [AMSS25] transfers its -distinctness testing bound of through the described local graph encoding (for ). The same lower bound was extended to the bounded indegree case by [PW27]. For planarity and outerplanarity testing, using the lower bound of , the same reduction gives a bound of and, to the best of the authors' knowledge, this is the current best lower bound.
5.3 Image-size and junta testing
We use proportional moments on support . The polynomial estimate gives a square-root bound for image size testing, which can be transferred to junta testing by a well-known addressing reduction.
5.3.1 Classical moment construction
Let us first revisit the classical moment construction for this problem. In fact, [RRSS09, Theorem 4.5] presented a similar construction for the distinct elements problem, which is related to image size testing. Their construction considers . However, for our applications, we need . We will prove the next lemma by using polynomial approximation and linear-programming duality, following the approach of [WY19, Appendix A]. The proof is deferred to Appendix B.
Lemma 5.3. For fixed and every , there exist random variables on , with , such that
Here depends only on .
Remark 5.4. The quadratic bound on the largest multiplicity also improves the lower bound obtained from the classical argument of [RRSS09]. Their construction [RRSS09, Theorem 4.5] uses and their lower bound is [RRSS09, Corollary 2.2]. Replacing that construction by Lemma 5.3, while retaining their other arguments, gives a lower bound . In particular, this gives an improved lower bound on the distinct elements and support-size estimation problems, although the optimal lower bound is .
5.3.2 Image-size testing
We consider inputs . The image-size testing problem considered in [ABRdW16], corresponds to testing the property of having image size at most where is any parameter. Then, [BKT20] considered a special case of distinguishing image size at most for from image size exactly . In this work, we consider a different special case of the version in [ABRdW16], where we distinguish image size at most from at least . This hard instance provides the same lower bound for the more general variant of image-size testing.
We apply Theorem 2.5 with the random variables provided by Lemma 5.3. Singleton completion preserves the gap in image sizes.
Corollary 5.5 (Image-size testing). Let . Testing at proximity has quantum query complexity .
Proof. Let us take , , and the variables of Lemma 5.3. Now we denote and . Following Definition 2.1, each sampled multiplicity has mean 1 and is nonzero with probability . Singleton completion therefore gives us
where the correction term corresponds to the overflow event, which happens with probability . Using the properties of and , for we get expected image size at least , and for , it is at most . Concentration of the sampled multiplicities, together with the overflow bound, gives with very high probability for the input coming from and for the one coming from . Removing an output value requires changing at least one position, thus and is 1/8-far, so a tester must have acceptance gap at least .
Applying Theorem 2.5 directly to using the fact that , and combining the resulting acceptance gap upper bound with the previous lower bound, we obtain .
Previous quantum bounds Ambainis, Belovs, Regev, and de Wolf [ABRdW16] proved a lower bound of on the general image-size testing problem using that the collision problem (distinguishing one-to-one and two-to-one functions) is a special case. Bun, Kothari and Thaler [BKT20, Theorem 6.2 and Section 6.1.2] improved the lower bound to using their special case of distinguishing image size from at most . Our Corollary 5.5 removes the term, via the special case of distinguishing image size at most and greater than . Our lower bound matches the quantum upper bound from [Mon16, Theorem 2].
Remark 5.6. Theorem 2.6 improves the lower bound from Theorem 2.5 when and are fixed, but its exponential dependence on can make it ineffective when the multiplicities grow with the input size. Image-size testing provides a concrete example. In the proof of Corollary 5.5, we take . Applying Theorem 2.6 would yield a suboptimal lower bound of . By the reduction, the same holds for junta testing as well.
5.3.3 Junta testing by reduction
A Boolean -junta depends on at most input coordinates. We apply the addressing reduction of [ABRdW16, Lemma 6.3] (already present in [AS07]) to Corollary 5.5. Since this reduction is standard in the literature (see e.g., [BKT20, Section 6.2]), we only state the result.
Corollary 5.7 (Junta testing). Testing Boolean -juntas at proximity has quantum query complexity .
Previous quantum bounds [ABRdW16] proved a lower bound of , which was later improved by [BKT20] to . Both results used a reduction from image size testing.
Acknowledgements
CK's and FM's research was supported in part by a bilateral grant between the Université Paris Cité and the National University of Singapore (2026-01-RESEARCH/UPCité-NUS and ANR-18-IDEX-0001), the French PEPR integrated projects EPIQ (ANR-22-PETQ-0007) and HQI (ANR-22-PNCQ-0002), and the ERC Advanced Grant PARQ.
SS's research was supported by the NRF Investigatorship award (NRF-NRFI10-2024-0006) and CQT Young Researcher Career Development Grant (25-YRCDG-SS).
DS's research was supported by the German Federal Ministry of Research, Technology and Space (QuSol, 13N17173), by the Deutsche Forschungsgemeinschaft under Germany's Excellence Strategy – EXC-2111 – 390814868, and by the Munich Quantum Valley.
AI statement. We used GPT-6 Astra, GPT-6.1 Sol and Claude Opus 5.5 to explore proof strategies, refine mathematical arguments, search for related literature, and improve the presentation. The authors subsequently verified, simplified, and organized the argument, and rewrote its exposition. Important concepts and ideas were manually factored out and written down in an intuitive, understandable way. The authors take full responsibility for the correctness and content of the paper.
References
[ABRdW16] Andris Ambainis, Aleksandrs Belovs, Oded Regev, and Ronald de Wolf. Efficient quantum algorithms for (gapped) group testing and junta testing. In Proceedings of the 27th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), 2016. arXiv:1507.03126.
[ACL11] Andris Ambainis, Andrew M. Childs, and Yi-Kai Liu. Quantum property testing for bounded-degree graphs. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM), pages 365–376. Springer, 2011. arXiv:1012.3174.
[AMSS25] Simon Apers, Frédéric Magniez, Sayantan Sen, and Dániel Szabó. Quantum property testing in sparse directed graphs. In Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2025), volume 353 of Leibniz International Proceedings in Informatics (LIPIcs), pages 32:1–32:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. Theorem numbering follows the full version. arXiv:2410.05001v3.
[AOST17] Jayadev Acharya, Alon Orlitsky, Ananda Theertha Suresh, and Himanshu Tyagi. Estimating Rényi entropy of discrete distributions. IEEE Transactions on Information Theory, 63(1):38–56, 2017. arXiv:1408.1000.
[AS04] Scott Aaronson and Yaoyun Shi. Quantum lower bounds for the collision and the element distinctness problems. Journal of the ACM, 51(4):595–605, 2004. Preliminary versions: arXiv:quant-ph/0111102 and arXiv:quant-ph/0112086.
[AS07] Alp Atici and Rocco A. Servedio. Quantum algorithms for learning and testing juntas. Quantum Information Processing, 6(5):323–348, 2007. arXiv:0707.3479.
[BBBV97] Charles H. Bennett, Ethan Bernstein, Gilles Brassard, and Umesh Vazirani. Strengths and weaknesses of quantum computing. SIAM Journal on Computing, 26(5):1510–1523, 1997. arXiv:quant-ph/9701001.
[BBC+01] Robert Beals, Harry Buhrman, Richard Cleve, Michele Mosca, and Ronald de Wolf. Quantum lower bounds by polynomials. Journal of the ACM, 48(4):778–797, 2001. arXiv:quant-ph/9802049.
[Bel26] Aleksandrs Belovs. Tight quantum lower bound for k-distinctness. In Proceedings of the 67th IEEE Symposium on Foundations of Computer Science (FOCS). IEEE, 2026. To appear. Lemma and theorem numbering follows the full version. arXiv:2604.05133.
[BFNR03] Harry Buhrman, Lance Fortnow, Ilan Newman, and Hein Röhrig. Quantum property testing. In Proceedings of the 14th Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 480–488, 2003. arXiv:quant-ph/0201117.
[BKT20] Mark Bun, Robin Kothari, and Justin Thaler. The polynomial method strikes back: Tight quantum query bounds via dual polynomials. Theory of Computing, 16(10):1–71, 2020. Conference version in STOC, 2018. arXiv:1710.09079.
[Bla09] Eric Blais. Testing juntas nearly optimally. In Proceedings of the 41st Annual ACM Symposium on Theory of Computing (STOC), pages 151–158, 2009.
[BY22] Arnab Bhattacharyya and Yuichi Yoshida. Property Testing: Problems and Techniques. Springer Nature, 2022.
[CAH24] Kuo-Chin Chen, Simon Apers, and Min-Hsiu Hsieh. (quantum) complexity of testing signed graph clusterability. In 19th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2024), volume 310 of Leibniz International Proceedings in Informatics (LIPIcs), pages 8:1–8:16. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2024. arXiv:2311.10480.
[Can20] Clément L. Canonne. A survey on distribution testing: Your data is big, but is it blue? Theory of Computing, Graduate Surveys, 9:1–100, 2020. ECCC TR15-063.
[Can22] Clément L. Canonne. Topics and techniques in distribution testing: A biased but representative sample. Foundations and Trends in Communications and Information Theory, 19(6):1032–1198, 2022.
[CFG+25] Sourav Chakraborty, Eldar Fischer, Arijit Ghosh, Gopinath Mishra, and Sayantan Sen. Exploring the gap between tolerant and non-tolerant distribution testing. IEEE Transactions on Information Theory, 71(2):1153–1170, 2025. arXiv:2110.09972.
[CJKL22] Clément L. Canonne, Ayush Jain, Gautam Kamath, and Jerry Li. The price of tolerance in distribution testing. In Conference on Learning Theory, volume 178 of Proceedings of Machine Learning Research, pages 573–624. PMLR, 2022. arXiv:2106.13414.
[CS10] Artur Czumaj and Christian Sohler. Sublinear-time algorithms. In Property Testing - Current Research and Surveys. Springer, 2010.
[CSY25] Clément L. Canonne, Sayantan Sen, and Joy Qiping Yang. Settling the complexity of testing grainedness of distributions, and application to uniformity testing in the huge object model. In 16th Innovations in Theoretical Computer Science Conference (ITCS 2025), volume 325 of Leibniz International Proceedings in Informatics (LIPIcs), pages 26:1–26:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. DROPS.
[DKS18] Ilias Diakonikolas, Daniel M. Kane, and Alistair Stewart. Sharp bounds for generalized uniformity testing. In Advances in Neural Information Processing Systems, volume 31, 2018. arXiv:1709.02087.
[DL93] R. A. DeVore and G. G. Lorentz. Constructive Approximation. Springer, 1993.
[DLM] NIST digital library of mathematical functions. National Institute of Standards and Technology. Section 3.3(i), Lagrange interpolation.
[FMSS03] Katalin Friedl, Frédéric Magniez, Miklos Santha, and Pranab Sen. Quantum testers for hidden group properties. In International Symposium on Mathematical Foundations of Computer Science, pages 419–428. Springer, 2003. Journal version: Fundamenta Informaticae 91(2):325–340, 2009. arXiv:quant-ph/0208184.
[Gol17] Oded Goldreich. Introduction to property testing. Cambridge University Press, 2017.
[GR23] Oded Goldreich and Dana Ron. A lower bound on the complexity of testing grained distributions. computational complexity, 32(2):11, 2023. ECCC TR21-129.
[Hoe63] W. Hoeffding. Probability inequalities for sums of bounded random variables. Journal of the American Statistical Association, 58(301):13–30, 1963.
[HS12] Frank Hellweg and Christian Sohler. Property testing in sparse directed graphs: Strong connectivity and subgraph-freeness. In European Symposium on Algorithms, pages 599–610. Springer, 2012.
[LZ19] Qipeng Liu and Mark Zhandry. On finding quantum multi-collisions. In Advances in Cryptology (EUROCRYPT), pages 189–218. Springer International Publishing, 2019.
[Mac95] I. G. Macdonald. Symmetric Functions and Hall Polynomials. Oxford University Press, second edition, 1995. Chapter I, §2.
[MdW16] Ashley Montanaro and Ronald de Wolf. A survey of quantum property testing. Theory of Computing, Graduate Surveys, 7:1–81, 2016. arXiv:1310.2035.
[Mon16] Ashley Montanaro. The quantum complexity of approximating the frequency moments. Quantum Information and Computation, 16(13–14):1169–1190, 2016. arXiv:1505.00113.
[PW23] Pan Peng and Yuyang Wang. An optimal separation between two property testing models for bounded degree directed graphs. In 50th International Colloquium on Automata, Languages, and Programming (ICALP), volume 261, pages 96:1–96:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. arXiv:2305.13089.
[PW27] Pan Peng and Jingyu Wu. Quantum property testing for bounded-degree directed graphs. In Proceedings of the 2027 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA). SIAM, 2027. To appear. arXiv:2604.07954v2.
[Ron09] Dana Ron. Algorithmic and analysis techniques in property testing. Foundations and Trends in Theoretical Computer Science, 5(2):73–205, 2009.
[RRSS09] Sofya Raskhodnikova, Dana Ron, Amir Shpilka, and Adam Smith. Strong lower bounds for approximating distribution support size and the distinct elements problem. SIAM Journal on Computing, 39(3):813–842, 2009.
[RS11] Ronitt Rubinfeld and Asaf Shapira. Sublinear time algorithms. SIAM Journal on Discrete Mathematics, 25(4):1562–1588, 2011.
[Sağ18] Mert Saglam. Near log-convexity of measured heat in (discrete) time and consequences. In 2018 IEEE 59th Annual Symposium on Foundations of Computer Science (FOCS), pages 967–978. IEEE, 2018. arXiv:1808.06717.
[Val11] Paul Valiant. Testing symmetric properties of distributions. SIAM Journal on Computing, 40(6):1927–1968, 2011. Preliminary version in STOC 2008. ECCC TR07-135.
[VV11] Gregory Valiant and Paul Valiant. The power of linear estimators. In Proceedings of the 52nd IEEE Symposium on Foundations of Computer Science (FOCS), pages 403–412. IEEE, 2011.
[VV17] Gregory Valiant and Paul Valiant. Estimating the unseen: improved estimators for entropy and other properties. Journal of the ACM, 64(6):37:1–37:41, 2017.
[WY19] Yihong Wu and Pengkun Yang. Chebyshev polynomials, moment matching, and optimal estimation of the unseen. The Annals of Statistics, 47(2):857–883, 2019. arXiv:1504.01227.
[Zha15] Mark Zhandry. A note on the quantum collision and set equality problems. Quantum Information and Computation, 15(7–8):557–567, 2015. arXiv:1312.1027.
[Zha21] Mark Zhandry. How to construct quantum random functions. Journal of the ACM, 68(5):33:1–33:43, 2021. Preliminary version in FOCS 2012. ECCC TR12-140.
A Deferred proofs on polynomials
We provide the missing proofs of some lemmas from Section 3.1.2. We restate these lemmas for ease of reading.
Lemma 3.2 (Taylor bound). Let and be integers with . Let be any polynomial of degree at most such that for . For an integer , let . Then for every real ,
Proof. Denote . Markov's inequality gives
where denotes the first order derivative of q. A point attaining M lies within 1/2 of an integer, so
If , the Taylor remainder is zero. Otherwise, applying the higher-order Markov inequality and rescaling from to , gives
where denotes the r-th order derivative and for the last inequality we use [DL93]. Applying Taylor's theorem we get (10).
Lemma 3.3 (Newton bound). Let and be integers, and let be any polynomial of degree at most such that for . Its Newton coefficients are
For an integer , let . At every ,
where empty sums are understood to be zero.
Assume moreover that . Then, for every integer and ,
Proof. First we observe that
Indeed, for , substituting the definition of gives the coefficient for . This is one for and zero otherwise, proving the expansion and the remainder identity.
For the bound, extend to the stated polynomial. The polynomial interpolates at . If , both and have degree at most . Since they agree at points, they must be identical polynomials. Otherwise, the interpolation remainder formula and the derivative estimate in the proof of Lemma 3.2 give
At integer , the product is zero; at , it is at most .
Lemma 3.5 (Lagrange interpolation). Let and be integers, and let belong to . Define
Every polynomial of degree at most satisfies . Moreover, at every integer .
Proof. The first identity is the standard Lagrange interpolation formula [DLM, §3.3(i)]. At a node, . Otherwise, the -th largest distance from to a grid point is at most , so the numerator of each is at most . Integer spacing bounds its denominator below by . Hence
To prove the last inequality, observe that is the coefficient of in the binomial expansion
The largest coefficient of is 4. Multiplication by replaces each coefficient by itself plus twice the preceding coefficient, increasing the maximum by a factor of at most 3. Thus every coefficient of is at most .
B Deferred construction of matching moments
Our last missing proof is for a lemma in Section 5.3.1.
Lemma 5.3. For fixed and every , there exist random variables on , with , such that
Here depends only on .
Proof of Lemma 5.3. Let , , and . Define
The bound follows by choosing the constant polynomial . A polynomial with degree at most that minimizes the above satisfies for .
Applying Lemma 3.2 to , with keeping only the constant Taylor term, and comparing the approximation errors at 1 and B, gives us
Let us write in the monomial basis, now taking the linear programming dual of the constraints , we have
For an optimal solution, the constraint implies that . Hence and are probability distributions with matching moments through degree . For , the objective gives . Since , we have and . Define
Then and , proving the claims.