betaFeedback

WorksPhysics and Astronomy

Elementary proofs of quantum lower bounds for element distinctness, k-sum and k-distinctness

Abstract

We give elementary proofs of quantum query lower bounds for three well-known problems: the Ω(n2/3)Ω(n^{2/3}) quantum query lower bound for element distinctness, the Ω(nk/(k+1))Ω(n^{k/(k+1)}) lower bound for the kk-sum problem, for fixed kk and sufficiently large groups and the Ω(n3/4−1/(4(2k−1)))Ω(n^{3/4-1/(4(2^k-1))}) lower bound for the kk-distinctness problem, even for small alphabets. The proofs use only basic properties of quantum states and linear algebra, analyzing the differences of algorithm states on different inputs.

Introduction

Element distinctness is a well-known example of a quantum speedup. It is solvable with O(n2/3)O(n^{2/3}) queries quantumly [3] but requires Ω(n)\Omega(n) queries classically. The quantum algorithm played a central role in establishing quantum walks as a general paradigm for algorithm design [22, 19, 21].

The quantum query bound is optimal. The matching Ω(n2/3)\Omega(n^{2/3}) lower bound was first established using the polynomial method, as a consequence of Aaronson and Shi’s Ω(n1/3)\Omega(n^{1/3}) lower bound for the collision problem [1]. Subsequent proofs used the negative-weight adversary method [6] and the compressed oracle method [23, 13]. These proofs involve either substantial mathematical machinery, such as results from polynomial approximation theory, or a technically involved analysis of quantum queries.

In this note, we give an elementary proof of the Ω(n2/3)\Omega(n^{2/3}) quantum lower bound for element distinctness. The proof is slightly more than two pages and requires only basic quantum computing and linear algebra. Our argument refines the original hybrid method of Bennett, Bernstein, Brassard, and Vazirani [10], which established the Ω(n)\Omega(\sqrt{n}) quantum lower bound for unstructured search. The additional ingredient is a second-order difference of algorithm’s states under changes to two input positions.

We find it surprising that this well-studied lower bound has such a short and transparent proof. This raises a broader question: which other quantum lower bounds have substantially simpler proofs than the currently known ones?

We then extend our argument to two other problems. The first is the kk-sum problem, which asks whether an input contains kk entries whose sum equals a prescribed target. This is interesting as the hardest query problem with positive certificates of size kk: any such problem is solvable with O(nk/(k+1))O(n^{k/(k+1)}) queries [14] and, for the kk-sum problem, Belovs and Špalek [9] showed that Ω(nk/(k+1))\Omega(n^{k/(k+1)}) queries are necessary, using the negative-weight adversary method. In this paper, we give an elementary proof of the Ω(nk/(k+1))\Omega(n^{k/(k+1)}) lower bound using higher-order differences of quantum states.

The second problem is kk-distinctness, which asks whether some value occurs at least kk times in the input. Determining its quantum query complexity for fixed k≥3k \ge3 was a longstanding open problem. In 2012, Belovs [7] gave a learning-graph algorithm using O(n3/4−1/(4(2k−1−1)))O(n^{3/4-1/(4(2^{k-1}-1))}) queries whose optimality remained open until 2026: earlier lower bounds from the polynomial method [11, 20] left polynomial gaps, which Belovs [8] finally closed using a new framework. We recover the tight lower bound in an elementary way using higher-order differences, even for alphabets of only nn symbols, resolving the small-alphabet question left open in [8].

AI disclosure. This proof was found while working with ChatGPT 6 Astra on a quantum lower bound for element distinctness in the hybrid query model of [4]. A simplification of the proposed proof in the hybrid model led to the proof in the standard model presented in this note.

Element distinctness lower bound

Theorem 1. Let Σ\Sigma be an alphabet with at least n+1n+1 elements. Any bounded-error quantum algorithm for element distinctness on nn entries over Σ\Sigma uses Ω(n2/3)\Omega(n^{2/3}) queries.

The proof can be extended to cover the case ∣Σ∣=n|\Sigma|=n (which is the smallest alphabet size for which the problem is nontrivial) but becomes more complicated. For simplicity, we present a version which does not cover this case.

Proof. We identify Σ\Sigma with {0,…,m−1}\{0,\ldots,m-1\}, where m=∣Σ∣m=|\Sigma|, and use the standard value-query oracle

Oz∣i,b,w⟩=∣i,(b+zi) mod m,w⟩,(1)O_z\lvert i,b,w\rangle=\lvert i,(b+z_i)\mathbin{\bmod}m,w\rangle, \tag*{(1)}

where i∈[n]i\in[n] is the query index, b∈{0,…,m−1}b\in\{0,\ldots,m-1\} is the answer register, and ww denotes the remaining workspace. By deferring measurements and padding shorter executions, we can assume that the algorithm makes exactly TT queries, with input-independent unitaries between queries. We write the state after tt queries on input zz as

∣ψt(z)⟩=UtOz∣ψt−1(z)⟩,(2)|\psi_t(z)\rangle= U_t O_z |\psi_{t-1}(z)\rangle, \tag*{(2)}

where ∣ψ0⟩|\psi_0\rangle is input-independent, OzO_z denotes the query transformation corresponding to the input zz and UtU_t are the input-independent unitaries. Let PiP_i be the projection to the subspace spanned by basis states with query index ii.

We choose n+1n+1 distinct symbols a,x1,…,xna,x_1,\ldots,x_n uniformly at random, and define an input x=(x1,…,xn)x=(x_1,\ldots,x_n). For each ii, let x(i)x^{(i)} be the input obtained from xx by changing the value of the ithi^{\mathrm{th}} variable to aa. Crucially, x(i)x^{(i)} has the same distribution as xx, because the joint distribution of (a,x1,…,xn)(a,x_1,\ldots,x_n) is invariant under swapping aa and xix_i.

We first bound the effect of replacing a uniformly random input entry on the algorithm’s state. Let

∣δi,t⟩=∣ψt(x(i))⟩−∣ψt(x)⟩.|\delta_{i,t}\rangle= |\psi_t(x^{(i)})\rangle- |\psi_t(x)\rangle.

Lemma 1. For ii chosen uniformly from [n][n], independently of a,x1,…,xna,x_1,\ldots,x_n,

Ea,x,i∥δi,t∥2≤4tn.\mathbb{E}_{a,x,i}\|\delta_{i,t}\|^2 \le\frac{4t}{n}.

Proof. Input-independent unitaries preserve distances, and the oracles OxO_x and Ox(i)O_{x^{(i)}} agree outside query index ii. Thus

∥δi,t+1∥2=∥(I−Pi)δi,t∥2+∥Ox(i)Piψt(x(i))−OxPiψt(x)∥2≤∥δi,t∥2+2∥Piψt(x(i))∥2+2∥Piψt(x)∥2,\begin{aligned} \|\delta_{i,t+1}\|^2 = \|(I-P_i)\delta_{i,t}\|^2 + \|O_{x^{(i)}}P_i\psi_t(x^{(i)})-O_xP_i\psi_t(x)\|^2 \\ &\le\|\delta_{i,t}\|^2+2\|P_i\psi_t(x^{(i)})\|^2+2\|P_i\psi_t(x)\|^2, \end{aligned}

with the last step following from ∥a+b∥2≤2∥a∥2+2∥b∥2\|a+b\|^2\le2\|a\|^2+2\|b\|^2.

For each fixed ii, the inputs x(i)x^{(i)} and xx have the same distribution. Moreover,

Ea,x,i∥Piψt(x)∥2=1nEa,x∑i=1n∥Piψt(x)∥2=1n.\mathbb{E}_{a,x,i}\|P_i\psi_t(x)\|^2 = \frac{1}{n}\mathbb{E}_{a,x}\sum_{i=1}^{n}\|P_i\psi_t(x)\|^2 = \frac{1}{n}.

Taking expectations therefore gives

Ea,x,i∥δi,t+1∥2≤Ea,x,i∥δi,t∥2+4n.\mathbb{E}_{a,x,i}\|\delta_{i,t+1}\|^2 \le\mathbb{E}_{a,x,i}\|\delta_{i,t}\|^2+\frac{4}{n}.

Since δi,0=0\delta_{i,0}=0, the lemma follows.

Let St=Ea,x,i∥δi,t∥S_t=\mathbb{E}_{a,x,i}\|\delta_{i,t}\|. By concavity of the square-root function, Lemma 1 implies

St≤Ea,x,i∥δi,t∥2≤2tn.(3)S_t\le\sqrt{\mathbb{E}_{a,x,i}\|\delta_{i,t}\|^2}\le2\sqrt{\frac{t}{n}}. \tag*{(3)}

We now choose a uniformly random ordered pair of distinct indices (u,v)(u,v), independently of a,xa,x, and plant a collision by replacing both xux_u and xvx_v by aa. Denote the resulting input by yy, and define

∣Δt⟩=∣ψt(y)⟩−∣ψt(x(u))⟩−∣ψt(x(v))⟩+∣ψt(x)⟩.(4)|\Delta_t\rangle= |\psi_t(y)\rangle-|\psi_t(x^{(u)})\rangle-|\psi_t(x^{(v)})\rangle+|\psi_t(x)\rangle. \tag*{(4)}

Then

∣ψt(y)⟩−∣ψt(x)⟩=∣δu,t⟩+∣δv,t⟩+∣Δt⟩.(5)|\psi_t(y)\rangle- |\psi_t(x)\rangle= |\delta_{u,t}\rangle+ |\delta_{v,t}\rangle+ |\Delta_t\rangle. \tag*{(5)}

Let Rt=Ea,x,u,v∥Δt∥R_t = \mathbb{E}_{a,x,u,v}\|\Delta_t\|. Taking expectations, we get

Ea,x,u,v∥ψt(y)−ψt(x)∥≤2St+Rt.\mathbb{E}_{a,x,u,v}\|\psi_t(y)-\psi_t(x)\| \le2S_t + R_t.

StS_t can be upper-bounded using (3). Therefore, it remains to bound RtR_t. Let Di=Ox(i)−OxD_i = O_{x^{(i)}} - O_x. These operators satisfy

Oy=Ox+Du+Dv.∥Di∥≤2O_y = O_x + D_u + D_v. \qquad\|D_i\| \le2

Expanding the terms in (4) according to (2) and regrouping them gives

∣Δt+1⟩=Ut+1(Oy∣Δt⟩+Dv∣δu,t⟩+Du∣δv,t⟩).(6)|\Delta_{t+1}\rangle= U_{t+1}(O_y|\Delta_t\rangle+ D_v|\delta_{u,t}\rangle+ D_u|\delta_{v,t}\rangle). \tag*{(6)}

By unitarity and the triangle inequality,

∥Δt+1∥≤∥Δt∥+2∥Pvδu,t∥+2∥Puδv,t∥.(7)\|\Delta_{t+1}\| \le\|\Delta_t\| + 2\|P_v\delta_{u,t}\| + 2\|P_u\delta_{v,t}\|. \tag*{(7)}

For fixed a,x,ua,x,u, the concavity of the square root gives

Ev:v≠u∥Pvδu,t∥≤∑v≠u∥Pvδu,t∥2n−1≤∥δu,t∥n−1.\mathbb{E}_{v:v\ne u}\|P_v\delta_{u,t}\| \le\sqrt{\frac{\sum_{v\ne u}\|P_v\delta_{u,t}\|^2}{n-1}} \le\frac{\|\delta_{u,t}\|}{\sqrt{n-1}}.

Taking the expectation in (7) and using the symmetry between uu and vv, we get

Rt+1≤Rt+4E∥Pvδu,t∥≤Rt+4Stn−1≤Rt+8tn(n−1).R_{t+1} \le R_t + 4\mathbb{E}\|P_v\delta_{u,t}\| \le R_t + \frac{4S_t}{\sqrt{n-1}} \le R_t + \frac{8\sqrt{t}}{\sqrt{n(n-1)}}.

Since R0=0R_0=0,

RT≤8n(n−1)∑t=0T−1t≤8T3/2n(n−1),R_T \le\frac{8}{\sqrt{n(n-1)}}\sum_{t=0}^{T-1}\sqrt{t} \le\frac{8T^{3/2}}{\sqrt{n(n-1)}},

implying that

Ea,x,u,v∥ψT(y)−ψT(x)∥≤4Tn+8T3/2n(n−1).(8)\mathbb{E}_{a,x,u,v}\|\psi_T(y)-\psi_T(x)\| \le4\sqrt{\frac{T}{n}}+\frac{8T^{3/2}}{\sqrt{n(n-1)}}. \tag*{(8)}

Every xx has distinct entries, whereas every yy has exactly one colliding pair. An algorithm with error at most 1/31/3 must therefore have output probabilities differing by at least 1/31/3 on each pair (x,y)(x,y). Since the difference between the probabilities that the algorithm outputs 1 on xx and yy is at most twice the Euclidean distance between the algorithm’s final states, we must have

∥ψT(y)−ψT(x)∥≥16.\|\psi_T(y)-\psi_T(x)\| \ge\frac{1}{6}.

Thus the left-hand side of (8) is at least 1/61/6, and

Tn+T3/2n=Ω(1).\sqrt{\frac{T}{n}}+\frac{T^{3/2}}{n}=\Omega(1).

This implies T=Ω(n2/3)T=\Omega(n^{2/3}).

The kk-sum lower bound

We generalize the proof of Theorem 1 by replacing second-order differences with kkth-order differences. This gives the lower bound of Belovs and Špalek [9].

Theorem 2. Let k≥2k \ge2 be fixed, let GG be a finite abelian group with ∣G∣≥nk|G| \ge n^k, and let c∈Gc \in G. Any bounded-error quantum algorithm that decides whether x∈Gnx \in G^n contains kk distinct positions whose values sum to cc uses Ω(nk/(k+1))\Omega(n^{k/(k+1)}) queries.

Proof. As in Theorem 1, consider a TT-query algorithm. The queries are similar to (1) but use addition in GG instead of modular addition. The notation ∣ψt(z)⟩|\psi_t(z)\rangle, OzO_z, UtU_t and PiP_i is also the same as in the proof of Theorem 1.

We may assume T≤nT \le n, since otherwise the claimed lower bound is immediate. We choose x,b∈Gnx,b \in G^n independently and uniformly. For V⊆[n]V \subseteq[n], let xVx^V be obtained from xx by replacing xix_i with bib_i for every i∈Vi \in V. We define

∣δU,t(x,b)⟩=∑V⊆U(−1)∣U∣−∣V∣∣ψt(xV)⟩.|\delta_{U,t}(x,b)\rangle= \sum_{V \subseteq U} (-1)^{|U|-|V|}|\psi_t(x^V)\rangle.

In particular, ∣δ∅,t⟩=∣ψt(x)⟩|\delta_{\varnothing,t}\rangle= |\psi_t(x)\rangle. We first establish a higher-order version of Lemma 1.

Lemma 2. For UU chosen uniformly among the jj-subsets of [n][n], independently of x,bx,b,

Ex,b,U∥δU,t(x,b)∥2≤4j(tj)(nj).\mathbb{E}_{x,b,U}\|\delta_{U,t}(x,b)\|^2 \le4^j\frac{\binom{t}{j}}{\binom{n}{j}}.

Here and below, (tj)=0\binom{t}{j}=0 when j>tj>t.

Proof. Let Aj,t=Ex,b,U∥δU,t(x,b)∥2A_{j,t}=\mathbb{E}_{x,b,U}\|\delta_{U,t}(x,b)\|^2. Outside query indices in UU, all the oracles in the alternating sum agree. At an index i∈Ui \in U, the alternating sum after the query is the difference between two oracle images of (j−1)(j-1)st-order differences. Omitting the input-independent unitary and using ∥a−b∥2≤2∥a∥2+2∥b∥2\|a-b\|^2 \le2\|a\|^2+2\|b\|^2 therefore gives

∥δU,t+1(x,b)∥2≤∥δU,t(x,b)∥2+2∑i∈U(∥PiδU∖{i},t(x{i},b)∥2+∥PiδU∖{i},t(x,b)∥2).\|\delta_{U,t+1}(x,b)\|^2 \le\|\delta_{U,t}(x,b)\|^2 + 2\sum_{i\in U}\left(\|P_i\delta_{U\setminus\{i\},t}(x^{\{i\}},b)\|^2+\|P_i\delta_{U\setminus\{i\},t}(x,b)\|^2\right).

Since xix_i and bib_i are independent and uniform, the two terms in parentheses have the same expectation. Averaging over UU yields

Aj,t+1≤Aj,t+4(nj)∑W⊆[n]∣W∣=j−1∑i∉WEx,b∥PiδW,t(x,b)∥2≤Aj,t+4(n−1j−1)(nj)Aj−1,t=Aj,t+4jn−j+1Aj−1,t.(9)\begin{aligned} A_{j,t+1}\le A_{j,t}+\frac{4}{\binom{n}{j}}\sum_{\substack{W\subseteq[n]\\|W|=j-1}}\sum_{i\notin W}\mathbb{E}_{x,b}\|P_i\delta_{W,t}(x,b)\|^2 \\ &\le A_{j,t}+4\frac{\binom{n-1}{j-1}}{\binom{n}{j}}A_{j-1,t} \\ &= A_{j,t}+\frac{4j}{n-j+1}A_{j-1,t}. \tag*{(9)} \end{aligned}

Since A0,t=1A_{0,t}=1 and Aj,0=0A_{j,0}=0 for j≥1j \ge1, induction and Pascal’s identity prove the lemma.

Let Sj,t=Ex,b,U∥δU,t(x,b)∥S_{j,t}=\mathbb{E}_{x,b,U}\|\delta_{U,t}(x,b)\|, with UU a uniform jj-subset. By concavity of the square root, for 1≤j≤n1 \le j \le n and t≤Tt \le T,

Sj,t≤2j(tj)(nj)≤2j(tn)j/2.(10)S_{j,t} \le2^j \sqrt{\frac{\binom{t}{j}}{\binom{n}{j}}} \le2^j \left(\frac{t}{n}\right)^{j/2}. \tag*{(10)}

We now plant a solution. Choose x∈Gnx \in G^n uniformly and an independent uniform kk-subset S⊆[n]S \subseteq[n]. Independently of xx, choose (ai)i∈S(a_i)_{i\in S} uniformly subject to ∑i∈Sai=c\sum_{i\in S}a_i=c. For V⊆SV \subseteq S, let xVx^V now denote replacement by these aia_i, and define ∣δV,t⟩|\delta_{V,t}\rangle using these replacements. Put

y=xS,∣Δt⟩=∣δS,t⟩,Rt=E∥Δt∥.y=x^S,\qquad|\Delta_t\rangle=|\delta_{S,t}\rangle,\qquad R_t=\mathbb{E}\|\Delta_t\|.

Expectations involving these planted differences are over xx, SS, (ai)i∈S(a_i)_{i\in S}. Every proper subset of the aia_i consists of independent uniform elements of GG. Also, a uniform jj-subset of SS is uniform among all jj-subsets of [n][n]. Thus, inclusion–exclusion and the triangle inequality give

∣ψt(y)⟩−∣ψt(x)⟩=∣Δt⟩+∑∅≠V⊊S∣δV,t⟩,|\psi_t(y)\rangle-|\psi_t(x)\rangle=|\Delta_t\rangle+\sum_{\varnothing\ne V\subsetneq S}|\delta_{V,t}\rangle,
E∥ψt(y)−ψt(x)∥≤Rt+∑j=1k−1(kj)Sj,t.(11)\mathbb{E}\|\psi_t(y)-\psi_t(x)\|\le R_t+\sum_{j=1}^{k-1}\binom{k}{j}S_{j,t}. \tag*{(11)}

It remains to bound RtR_t.

For i∈Si\in S, let Di=Ox{i}−OxD_i=O_{x^{\{i\}}}-O_x. As before,

Di=PiDiPi,∥Di∥≤2,Oy=Ox+∑i∈SDi.D_i=P_iD_iP_i,\qquad\|D_i\|\le2,\qquad O_y=O_x+\sum_{i\in S}D_i.

Expanding the definition of Δt+1\Delta_{t+1} gives

∣Δt+1⟩=Ut+1(Oy∣Δt⟩+∑i∈SDi∣δS∖{i},t⟩).(12)|\Delta_{t+1}\rangle=U_{t+1}\left(O_y|\Delta_t\rangle+\sum_{i\in S}D_i|\delta_{S\setminus\{i\},t}\rangle\right). \tag*{(12)}

By unitarity and the triangle inequality,

Rt+1≤Rt+2E∑i∈S∥PiδS∖{i},t∥.(13)R_{t+1}\le R_t+2\mathbb{E}\sum_{i\in S}\|P_i\delta_{S\setminus\{i\},t}\|. \tag*{(13)}

For a uniform i∈Si\in S, the set W=S∖{i}W=S\setminus\{i\} is a uniform (k−1)(k-1)-subset, and ii is uniform outside WW. Restricted to WW, the replacements aja_j are independent and uniform, so we can evaluate this expectation using the independent replacement vector bb from Lemma 2. For fixed xx, bb, WW, the concavity of the square root gives

Ei∉W∥PiδW,t(x,b)∥≤∑i∉W∥PiδW,t(x,b)∥2n−k+1≤∥δW,t(x,b)∥n−k+1.\mathbb{E}_{i\notin W}\|P_i\delta_{W,t}(x,b)\| \le\sqrt{\frac{\sum_{i\notin W}\|P_i\delta_{W,t}(x,b)\|^2}{n-k+1}} \le\frac{\|\delta_{W,t}(x,b)\|}{\sqrt{n-k+1}}.

Averaging and applying (13), we obtain

Rt+1≤Rt+2kSk−1,tn−k+1.(14)R_{t+1} \le R_t + \frac{2kS_{k-1,t}}{\sqrt{n-k+1}}. \tag*{(14)}

Since R0=0R_0=0, (10) implies

RT≤2kn−k+1∑t=0T−1Sk−1,t=Ok(T(k+1)/2nk/2).(15)R_T \le\frac{2k}{\sqrt{n-k+1}}\sum_{t=0}^{T-1}S_{k-1,t}=O_k\left(\frac{T^{(k+1)/2}}{n^{k/2}}\right). \tag*{(15)}

Combining (10), (11), and (15), and using T≤nT\le n, gives

E∥ψT(y)−ψT(x)∥=Ok(Tn+T(k+1)/2nk/2).(16)\mathbb{E}\lVert\psi_T(y)-\psi_T(x)\rVert=O_k\left(\sqrt{\frac{T}{n}}+\frac{T^{(k+1)/2}}{n^{k/2}}\right). \tag*{(16)}

The input yy always contains a solution. Unlike in Theorem 1, xx need not be a negative input, but a union bound gives

Pr⁡[x contains a solution]≤(nk)∣G∣≤1k!≤12.\Pr[x\text{ contains a solution}]\le\frac{\binom{n}{k}}{|G|}\le\frac{1}{k!}\le\frac{1}{2}.

On every pair for which xx is negative, the final measurement argument in Theorem 1 gives

∥ψT(y)−ψT(x)∥≥16.\lVert\psi_T(y)-\psi_T(x)\rVert\ge\frac{1}{6}.

Thus the left-hand side of (16) is at least 1/121/12. It follows that

Tn+T(k+1)/2nk/2=Ωk(1),\sqrt{\frac{T}{n}}+\frac{T^{(k+1)/2}}{n^{k/2}}=\Omega_k(1),

and consequently T=Ω(nk/(k+1))T=\Omega(n^{k/(k+1)}).

The kk-distinctness lower bound

We again use the kkth-order differences of algorithm’s states. The argument follows the same structure as the proof for kk-sum, but requires a different input distribution and new estimates for the lower-order differences.

Theorem 3. Let k≥3k\ge3 be fixed and let Σ\Sigma be an alphabet with at least nn elements. Any bounded-error quantum algorithm for kk-distinctness on nn entries over Σ\Sigma uses Ω(n34−14(2k−1))\Omega(n^{\frac{3}{4}-\frac{1}{4(2k-1)}}) queries.

This gives an optimal lower bound for kk-distinctness, even for alphabets of small size, which was left as an open question in [8].

Proof. We may assume that nn is sufficiently large compared to kk. Set

m=⌊nk2⌋,s=n−m∑r=2k−1r.m=\left\lfloor\frac{n}{k^2}\right\rfloor,\qquad s=n-m\sum_{r=2}^{k-1}r.

We choose xx uniformly among inputs having exactly mm classes of equal elements of each size 2,…,k−12,\ldots,k-1 and ss singletons (elements xix_i that are distinct from any other xjx_j). Let aa be a uniformly random symbol that does not appear in xx. Let L(x)L(x) be the set of singleton positions. For V⊆L(x)V\subseteq L(x), let xVx^V be obtained by replacing every entry indexed by VV by aa.

We have

s≥n/2,m=Θ(n).s\ge n/2,\qquad m=\Theta(n).

As in the proof of Theorem 2, we define

∣δV,t⟩=∑W⊆V(−1)∣V∣−∣W∣∣ψt(xW)⟩.\lvert\delta_{V,t}\rangle=\sum_{W\subseteq V}(-1)^{|V|-|W|}\lvert\psi_t(x^W)\rangle.

For 1≤j≤k1\le j\le k, define expected differences

Aj,t=Ex,a,S∣S∣=j∥δS,t∥2.A_{j,t}=\mathbb{E}_{x,a,S\atop|S|=j}\lVert\delta_{S,t}\rVert^2.

In this and the following expectations, xx and aa are sampled as above, and SS is a uniform subset of L(x)L(x) of the indicated size.

Lemma 3. For all j=1,…,k−1j=1,\ldots,k-1, we have

Aj,t=O((tn)2−21−j).A_{j,t}=O\left(\left(\frac{t}{n}\right)^{2-2^{1-j}}\right).

Proof. Let j≥2j\ge2 and let S⊆L(x)S\subseteq L(x) be a set with ∣S∣=j|S|=j. For each i∈Si\in S, we define

∣Gi⟩=Pi∑V⊆Si∈V(−1)j−∣V∣∣ψt(xV)⟩,\lvert G_i\rangle=P_i\sum_{\substack{V\subseteq S\\i\in V}}(-1)^{j-|V|}\lvert\psi_t(x^V)\rangle,
∣Hi⟩=Pi∣δS∖{i},t⟩,\lvert H_i\rangle=P_i\lvert\delta_{S\setminus\{i\},t}\rangle,

with PiP_i being the projection to the basis states where the query index register contains ii. Then Pi∣δS,t⟩=∣Gi⟩−∣Hi⟩P_i\lvert\delta_{S,t}\rangle=\lvert G_i\rangle-\lvert H_i\rangle. In every input appearing in ∣Gi⟩\lvert G_i\rangle, the value at position ii is aa, whereas in every input appearing in ∣Hi⟩\lvert H_i\rangle, the value there is xix_i. Applying a query to ∣Gi⟩−∣Hi⟩\lvert G_i\rangle-\lvert H_i\rangle changes it to Qa∣Gi⟩−Qxi∣Hi⟩Q_a\lvert G_i\rangle-Q_{x_i}\lvert H_i\rangle, where QbQ_b is the answer-register shift by bb.

For any unitaries Q,Q′Q,Q', the triangle inequality gives

∥Q∣G⟩−Q′∣H⟩∥2−∥∣G⟩−∣H⟩∥2≤(∥G∥+∥H∥)2−(∥G∥−∥H∥)2=4∥G∥∥H∥.\lVert Q\lvert G\rangle-Q'\lvert H\rangle\rVert^2-\lVert\lvert G\rangle-\lvert H\rangle\rVert^2\le\left(\lVert G\rVert+\lVert H\rVert\right)^2-\left(\lVert G\rVert-\lVert H\rVert\right)^2=4\lVert G\rVert\lVert H\rVert.

All components outside SS preserve their norms, as does the common input-independent unitary. Consequently,

Aj,t+1−Aj,t≤4Ex,a,S∑i∈S∥Gi∥∥Hi∥≤4Ex,a,S∑i∈S∥Gi∥2⋅Ex,a,S∑i∈S∥Hi∥2,(17)A_{j,t+1}-A_{j,t}\le4\mathbb{E}_{x,a,S}\sum_{i\in S}\lVert G_i\rVert\lVert H_i\rVert\le4\sqrt{\mathbb{E}_{x,a,S}\sum_{i\in S}\lVert G_i\rVert^2\cdot\mathbb{E}_{x,a,S}\sum_{i\in S}\lVert H_i\rVert^2}, \tag*{(17)}

where the last inequality is by Cauchy-Schwarz. We bound the two expectations separately.

  1. For the HiH_i terms, take expectation over W=S∖{i}W=S\setminus\{i\}. The remaining index ii is uniform in L(x)∖WL(x)\setminus W, so

Ex,a,S∑i∈S∥Hi∥2=js−j+1Ex,a,W∑i∈L(x)∖W∥Pi∣δW,t⟩∥2≤js−j+1Aj−1,t.(18)\begin{aligned} \mathbb{E}_{x,a,S}\sum_{i\in S}\lVert H_i\rVert^2=\frac{j}{s-j+1}\mathbb{E}_{x,a,W}\sum_{i\in L(x)\setminus W}\lVert P_i|\delta_{W,t}\rangle\rVert^2 \\ &\le\frac{j}{s-j+1}A_{j-1,t}. \tag*{(18)} \end{aligned}
  1. For the GiG_i terms, choose ii uniformly from SS, and then choose VV uniformly among the 2j−12^{j-1} subsets of SS containing ii. By Cauchy–Schwarz,

Ex,a,S∑i∈S∥Gi∥2≤2j−1Ex,a,S∑V⊆S∑i∈V∥Pi∣ψt(xV)⟩∥2=j4j−1Ex,a,S,i,V∥Pi∣ψt(xV)⟩∥2.\begin{aligned} \mathbb{E}_{x,a,S}\sum_{i\in S}\lVert G_i\rVert^2\le2^{j-1}\mathbb{E}_{x,a,S}\sum_{V\subseteq S}\sum_{i\in V}\lVert P_i|\psi_t(x^V)\rangle\rVert^2 \\ &=j4^{j-1}\mathbb{E}_{x,a,S,i,V}\lVert P_i|\psi_t(x^V)\rangle\rVert^2. \end{aligned}

We bound the last expectation by conditioning on ∣V∣=r|V|=r. Write z=xVz=x^V.

If r=1r=1, then zz has ss singleton positions and, conditional on zz, the index ii is uniform among them. Therefore,

E[∥Pi∣ψt(z)⟩∥2∣∣V∣=1]=E[1s∑i∈L(z)∥Pi∣ψt(z)⟩∥2∣∣V∣=1]≤1s.\mathbb{E}\left[\lVert P_i|\psi_t(z)\rangle\rVert^2\mid|V|=1\right] =\mathbb{E}\left[\left.\frac{1}{s}\sum_{i\in L(z)}\lVert P_i|\psi_t(z)\rangle\rVert^2\right| |V|=1\right]\le\frac{1}{s}.

If r≥2r\ge2, then zz has m+1m+1 equality classes of size rr. By symmetry, conditional on zz and ∣V∣=r|V|=r, the newly created class VV is uniform among these classes, and ii is uniform within it. Thus ii is uniform among the r(m+1)r(m+1) positions belonging to classes of size rr, giving

E[∥Pi∣ψt(z)⟩∥2∣∣V∣=r]≤1r(m+1).\mathbb{E}\left[\lVert P_i|\psi_t(z)\rangle\rVert^2\mid|V|=r\right]\le\frac{1}{r(m+1)}.

Since s,m=Θ(n)s,m=\Theta(n), each conditional expectation is O(1/n)O(1/n). Averaging over rr, and recalling that j≤k−1j\le k-1 with kk fixed, we obtain

Ex,a,S∑i∈S∥Gi∥2=O(1/n).\mathbb{E}_{x,a,S}\sum_{i\in S}\lVert G_i\rVert^2=O(1/n).

Consequently, we can now upper bound (17):

Aj,t+1−Aj,t=O(1n⋅js−j+1Aj−1,t)=O(1nAj−1,t).(19)A_{j,t+1}-A_{j,t}=O\left(\sqrt{\frac{1}{n}\cdot\frac{j}{s-j+1}A_{j-1,t}}\right)=O\left(\frac{1}{n}\sqrt{A_{j-1,t}}\right). \tag*{(19)}

It remains to solve this recurrence, for which we use induction. The case j=1j=1 follows by the same argument as Lemma 1, with ii uniform over L(x)L(x). Define α1=1\alpha_1=1, αj=1+αj−12\alpha_j=1+\frac{\alpha_{j-1}}{2}. Then αj=2−21−j\alpha_j=2-2^{1-j}. Inductively, if the estimate holds for j−1j-1, summing the upper bound (19) gives

Aj,T=O(1n∑t=0T−1(t/n)αj−1/2)=O((T/n)1+αj−1/2)=O((T/n)2−21−j).A_{j,T}=O\left(\frac{1}{n}\sum_{t=0}^{T-1}(t/n)^{\alpha_{j-1}/2}\right)=O\left((T/n)^{1+\alpha_{j-1}/2}\right)=O\left((T/n)^{2-2^{1-j}}\right).

which proves the lemma.

For 1≤j≤k1\leq j\leq k, define the expected norms

Sj,t=Ex,a,S∣S∣=j∥δS,t∥.S_{j,t}=\mathbb{E}_{x,a,S\atop|S|=j}\left\|\delta_{S,t}\right\|.

By concavity of the square-root function and Lemma 3, for 1≤j≤k−11\leq j\leq k-1,

Sj,t≤Aj,t=O((t/n)1−2−j).(20)S_{j,t}\leq\sqrt{A_{j,t}}=O\left((t/n)^{1-2^{-j}}\right). \tag*{(20)}

Now, we upper bound the kkth-order expected norm.

Lemma 4. We have that

Sk,t=O(t2−21−kn3/2−21−k).S_{k,t}=O\left(\frac{t^{2-2^{1-k}}}{n^{3/2-2^{1-k}}}\right).

Proof. Let S⊆L(x)S\subseteq L(x) have size kk, put y=xSy=x^S, and define Di=Ox{i}−OxD_i=O_{x^{\{i\}}}-O_x for i∈Si\in S. The same expansion as in (12) gives

∣δS,t+1⟩=Ut+1(Oy∣δS,t⟩+∑i∈SDi∣δS∖{i},t⟩).\lvert\delta_{S,t+1}\rangle=U_{t+1}\left(O_y\lvert\delta_{S,t}\rangle+\sum_{i\in S}D_i\lvert\delta_{S\setminus\{i\},t}\rangle\right).

Since Di=PiDiPiD_i=P_iD_iP_i and ∥Di∥≤2\lVert D_i\rVert\leq2, unitarity and the triangle inequality imply

Sk,t+1≤Sk,t+2Ex,a,S∑i∈S∥Pi∣δS∖{i},t⟩∥.S_{k,t+1}\leq S_{k,t}+2\mathbb{E}_{x,a,S}\sum_{i\in S}\left\|P_i\lvert\delta_{S\setminus\{i\},t}\rangle\right\|.

We now apply the averaging argument used to obtain (14), with L(x)L(x) in place of [n][n]. If SS is uniform among the kk-subsets of L(x)L(x) and ii is uniform in SS, then W=S∖{i}W=S\setminus\{i\} is a uniform (k−1)(k-1)-subset of L(x)L(x), and, conditional on xx, aa, WW, the index ii is uniform in L(x)∖WL(x)\setminus W. Consequently,

Ei∈L(x)∖W∥Pi∣δW,t⟩∥≤∥δW,t∥s−k+1.\mathbb{E}_{i\in L(x)\setminus W}\left\|P_i\lvert\delta_{W,t}\rangle\right\|\leq\frac{\left\|\delta_{W,t}\right\|}{\sqrt{s-k+1}}.

and hence

Sk,t+1≤Sk,t+2ks−k+1Sk−1,t.S_{k,t+1} \le S_{k,t} + \frac{2k}{\sqrt{s-k+1}}S_{k-1,t}.

Let α=αk−1=2−22−k\alpha=\alpha_{k-1}=2-2^{2-k}. Since Sk,0=0S_{k,0}=0, summing this recurrence and using (20) gives

Sk,T≤2ks−k+1∑t=0T−1Sk−1,t=O(1n∑t=0T−1(t/n)α/2)=O(T1+α/2n(1+α)/2)=O(T2−21−kn3/2−21−k).\begin{aligned} S_{k,T} &\le\frac{2k}{\sqrt{s-k+1}}\sum_{t=0}^{T-1}S_{k-1,t} =O\left(\frac{1}{\sqrt{n}}\sum_{t=0}^{T-1}(t/n)^{\alpha/2}\right)\\ &=O\left(\frac{T^{1+\alpha/2}}{n^{(1+\alpha)/2}}\right) =O\left(\frac{T^{2-2^{1-k}}}{n^{3/2-2^{1-k}}}\right). \end{aligned}

which proves the lemma.

We now complete the proof of the theorem. Choose SS uniformly among the kk-subsets of L(x)L(x), and put y=xSy=x^S. The same inclusion–exclusion and triangle-inequality argument as in (11) gives

Ex,a,S∥ψT(y)−ψT(x)∥≤∑j=1k(kj)Sj,T.(21)\mathbb{E}_{x,a,S}\|\psi_T(y)-\psi_T(x)\|\le\sum_{j=1}^{k}\binom{k}{j}S_{j,T}. \tag*{(21)}

Here we use that a uniformly chosen jj-subset of SS is uniform among the jj-subsets of L(x)L(x).

We may assume T≤nT\le n, since otherwise the claimed lower bound is immediate. By (20), Sj,T=O(T/n)S_{j,T}=O(\sqrt{T/n}) for j=1,…,k−1j=1,\ldots,k-1. Let α=αk−1=2−22−k\alpha=\alpha_{k-1}=2-2^{2-k}. Combining (21) with Lemma 4, we get

Ex,a,S∣S∣=k∥ψT(y)−ψT(x)∥=O(Tn+T1+α/2n(1+α)/2).\mathbb{E}_{x,a,S\atop|S|=k}\|\psi_T(y)-\psi_T(x)\| =O\left(\sqrt{\frac{T}{n}}+\frac{T^{1+\alpha/2}}{n^{(1+\alpha)/2}}\right).

Every sampled xx is a negative input and every sampled yy is a positive input. As in Theorem 1, an algorithm with error probability at most 1/31/3 must satisfy ∥ψT(y)−ψT(x)∥≥1/6\|\psi_T(y)-\psi_T(x)\|\ge1/6 on every such pair. Consequently,

Tn+T1+α/2n(1+α)/2=Ω(1),\sqrt{\frac{T}{n}}+\frac{T^{1+\alpha/2}}{n^{(1+\alpha)/2}}=\Omega(1),

which implies

T=Ω(n(α+1)/(α+2)),T=\Omega\left(n^{(\alpha+1)/(\alpha+2)}\right),

where

α+1α+2=3−22−k4−22−k=34−14(2k−1).\frac{\alpha+1}{\alpha+2}=\frac{3-2^{2-k}}{4-2^{2-k}}=\frac{3}{4}-\frac{1}{4(2^k-1)}.

Conclusion

The adversary [2, 17] and polynomials [5] methods have been very successful in proving tight quantum lower bounds for a wide range of problems. Our results suggest that elementary arguments based on comparisons of quantum states can also lead to sharp bounds beyond unstructured search. It is natural to ask how far such arguments can be developed and which other lower bounds admit similarly simple proofs.

For collision-like problems, natural extensions include inputs with prescribed multiplicity profiles and the task of finding several collisions. Our kk-distinctness proof uses inputs containing many equality classes of every smaller size. It would be interesting to understand how the argument changes when some of these classes are scarce or absent, and whether it can give bounds on the success probability of algorithms required to find multiple collisions.

More broadly, one may ask whether higher-order differences yield a general approach to problems with planted certificates, including copies of fixed subgraphs. One well-known target is the triangle problem. The best upper bound for the triangle problem is O(n5/4)O(n^{5/4}) [18, 12] where nn is the number of vertices and the best lower bound is the very recent bound of Ω(n13/12)\Omega(n^{13/12}) [15]. Recent lower bounds for cliques and complete bipartite graphs provide further concrete targets [16]. A central question is how the occurrence and overlap of partial certificates affect the growth of these differences.

Acknowledgments. A.A. and M.K. are supported by the HQCC project funded under QuantERA II ERANET Cofund scheme of Horizon 2020 and by the University of Latvia project “Latvian quantum technology excellence and competence centre”. J.V. is supported by the 1.1.1.9 Research application No 1.1.1.9/LZP/2/25/206 of the Activity “Post-doctoral Research” “Practical applications and limitations of quantum search”.

References

  1. [1]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.DOI
  2. [2]Andris Ambainis. Quantum lower bounds by quantum arguments. Journal of Computer and System Sciences, 64(4):750–767, 2002.
  3. [3]Andris Ambainis. Quantum walk algorithm for element distinctness. SIAM Journal on Computing, 37(1):210–239, 2007.
  4. [4]Andris Ambainis, András Gilyén, and Martins Kokainis. Tight bounds for hybrid quantum-classical query algorithms. arXiv:2610.06803, 2026.arxiv.org/abs/2610.06803
  5. [5]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.
  6. [6]Aleksandrs Belovs. Adversary lower bound for element distinctness. arXiv:1204.5074, 2012.arxiv.org/abs/1204.5074
  7. [7]Aleksandrs Belovs. Learning-graph-based quantum algorithm for k-distinctness. In Proceedings of the 53rd Annual IEEE Symposium on Foundations of Computer Science (FOCS), pages 207–216. IEEE, 2012.arxiv.org/abs/1205.1534
  8. [8]Aleksandrs Belovs. Tight quantum lower bound for k-distinctness. In Proceedings of the 67th Annual IEEE Symposium on Foundations of Computer Science. IEEE, 2026. Also available as arXiv:2604.05133.arxiv.org/abs/2604.05133
  9. [9]Aleksandrs Belovs and Robert Špalek. Adversary lower bound for the k-sum problem. In Proceedings of the 4th Innovations in Theoretical Computer Science Conference, pages 323–328. ACM, 2013.arxiv.org/abs/1206.6528
  10. [10]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.DOI
  11. [11]Mark Bun, Robin Kothari, and Justin Thaler. The polynomial method strikes back: Tight quantum query bounds via dual polynomials. In Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing (STOC), pages 297–310. ACM, 2018.
  12. [12]Titouan Carette, Mathieu Laurière, and Frédéric Magniez. Extended learning graphs for triangle finding. In 34th Symposium on Theoretical Aspects of Computer Science (STACS 2017), volume 66 of Leibniz International Proceedings in Informatics, pages 20:1–20:14. Schloss Dagstuhl–Leibniz-Zentrum für Informatik, 2017.
  13. [13]Andrew M. Childs. Lecture notes on quantum algorithms. University of Maryland, https://www.cs.umd.edu/~amchilds/qa/qa.pdf, 2025. Version of April 17, 2025, Section 26.4.
  14. [14]Andrew M. Childs and Jason M. Eisenberg. Quantum algorithms for subset finding. Quantum Information and Computation, 5(7):593–604, 2005.
  15. [15]Arjan Cornelissen, Amin Shiraz Gilani, and Xingyu Zhou. A quantum lower bound for triangle finding, 2026. arXiv:2611.06751.arxiv.org/abs/2611.06751
  16. [16]Amin Shiraz Gilani and Xingyu Zhou. Superlinear quantum query lower bounds for subgraph detection, 2026. arXiv:2609.40263.arxiv.org/abs/2609.40263
  17. [17]Peter Høyer, Troy Lee, and Robert Špalek. Negative weights make adversaries stronger. In Proceedings of the 39th Annual ACM Symposium on Theory of Computing, pages 526–535. ACM, 2007.DOI
  18. [18]François Le Gall. Improved quantum algorithm for triangle finding via combinatorial arguments. In Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science, pages 216–225. IEEE Computer Society, 2014.DOI
  19. [19]Frédéric Magniez, Ashwin Nayak, Jérémie Roland, and Miklos Santha. Search via quantum walk. SIAM Journal on Computing, 40(1):142–164, 2011.
  20. [20]Nikhil S. Mande, Justin Thaler, and Shuchen Zhu. Improved approximate degree bounds for k-distinctness. In 15th Conference on the Theory of Quantum Computation, Communication and Cryptography (TQC 2020), volume 158 of Leibniz International Proceedings in Informatics (LIPIcs), pages 2:1–2:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020.DOI
  21. [21]Miklos Santha. Quantum walk based search algorithms. In Theory and Applications of Models of Computation (TAMC 2008), volume 4978 of Lecture Notes in Computer Science, pages 31–46. Springer, 2008.arxiv.org/abs/0808.0059
  22. [22]Mario Szegedy. Quantum speed-up of Markov chain based algorithms. In Proceedings of the 45th Annual IEEE Symposium on Foundations of Computer Science, pages 32–41. IEEE Computer Society, 2004.DOI
  23. [23]Mark Zhandry. How to record quantum queries, and applications to quantum indifferentiability. In Alexandra Boldyreva and Daniele Micciancio, editors, Advances in Cryptology—CRYPTO 2019, Part II, volume 11693 of Lecture Notes in Computer Science, pages 239–268. Springer, 2019.DOI

Paper details

vlnc:W_mavtdd9x
Published
Added
License
CC BY 4.0
Usage

views · 1

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Physics and Astronomy

ChatGPT 6 Astra

View statement
Looking for related papers…
Contents