WorksPhysics and Astronomy
Elementary proofs of quantum lower bounds for element distinctness and k-sum
Abstract
We give elementary proofs of the quantum query lower bound for element distinctness and the lower bound for the -sum problem, for fixed and sufficiently large groups. 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 queries quantumly [1] but requires queries classically. The quantum algorithm played a central role in establishing quantum walks as a general paradigm for algorithm design [16, 17, 18].
The quantum query bound is optimal. The matching lower bound was first established using the polynomial method, as a consequence of Aaronson and Shi’s lower bound for the collision problem [11]. Subsequent proofs used the negative-weight adversary method [12] and the compressed oracle method [13, 14]. 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 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 [15], which established the quantum lower bound for unstructured search. The additional ingredient is a second-order difference of algorithm 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 also extend our argument to the -sum problem, which asks whether an input contains entries whose sum equals a prescribed target. This is interesting as the hardest query problem with certificate size : any problem with positive certificates of size for a fixed is solvable with queries [2] and, for the -sum problem, Belovs and Špalek [4] showed that queries are necessary. Their proof uses the negative-weight adversary method, to go beyond the certificate-complexity limit of the nonnegative adversary method. In this paper, we give an elementary proof of the lower bound using higher-order differences of quantum states.
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 [3]. 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 be an alphabet with at least elements. Any bounded-error quantum algorithm for element distinctness on entries over uses queries.
The proof can be extended to cover the case (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 with , where , and use the standard value-query oracle
where is the query index, is the answer register, and denotes the remaining workspace.
By deferring measurements and padding shorter executions, we can assume that the algorithm makes exactly queries, with input-independent unitaries between queries. We write the state after queries on input as
where is input-independent, denotes the query transformation corresponding to the input and are the input-independent unitaries. Let be the projection to the subspace spanned by basis states with query index .
We choose distinct symbols uniformly at random, and define an input . For each , let be the input obtained from by changing the value of the variable to . Crucially, has the same distribution as , because the joint distribution of is invariant under swapping and .
We first bound the effect of replacing a uniformly random input entry on the algorithm’s state. Let
Lemma 1. For chosen uniformly from , independently of ,
Proof. Input-independent unitaries preserve distances, and the oracles and agree outside query index . Thus
with the last step following from .
For each fixed , the inputs and have the same distribution. Moreover,
Taking expectations therefore gives
Since , the lemma follows. ◻
Let . By concavity of the square-root function, Lemma 1 implies
We now choose a uniformly random ordered pair of distinct indices , independently of , and plant a collision by replacing both and by . Denote the resulting input by , and define
Then
Let . Taking expectations, we get
can be upper-bounded using ((3)). Therefore, it remains to bound . Let . These operators satisfy
Expanding the terms in ((4)) according to ((2)) and regrouping them gives
By unitarity and the triangle inequality,
For fixed , the concavity of the square root gives
Taking the expectation in ((7)) and using the symmetry between and , we get
Since ,
implying that
Every has distinct entries, whereas every has exactly one colliding pair. An algorithm with error at most must therefore have output probabilities differing by at least on each pair . Since the difference between the probabilities that the algorithm outputs 1 on and is at most twice the Euclidean distance between the algorithm’s final states, we must have
Thus the left-hand side of ((8)) is at least , and
This implies . ◻
The -sum lower bound
We extend the proof of Theorem 1 by replacing second-order differences with th-order differences. This gives the lower bound of Belovs and Špalek [4].
Theorem 2. Let be fixed, let be a finite abelian group with , and let . Any bounded-error quantum algorithm that decides whether contains distinct positions whose values sum to uses queries.
Proof. As in Theorem 1, consider a -query algorithm. The queries are similar to ((1)) but use addition in instead of modular addition. The notation , , and is also the same as in the proof of Theorem 1.
We may assume , since otherwise the claimed lower bound is immediate. We choose independently and uniformly. For , let be obtained from by replacing with for every . We define
In particular, . We first establish a higher-order version of Lemma 1.
Lemma. For chosen uniformly among the -subsets of , independently of , Here and below, when .
Proof. Let . Outside query indices in , all the oracles in the alternating sum agree. At an index , the alternating sum after the query is the difference between two oracle images of st-order differences. Omitting the input-independent unitary and using therefore gives
Since and are independent and uniform, the two terms in parentheses have the same expectation. Averaging over yields
Since and for , induction and Pascal’s identity prove the lemma. ◻
Let , with a uniform -subset. By concavity of the square root, for and ,
We now plant a solution. Choose uniformly and an independent uniform -subset . Independently of , choose uniformly subject to . For , let now denote replacement by these , and define using these replacements. Put
Expectations involving these planted differences are over .
Every proper subset of the consists of independent uniform elements of . Also, a uniform -subset of is uniform among all -subsets of . Thus, inclusion–exclusion and the triangle inequality give
It remains to bound .
For , let . As before,
Expanding the definition of gives
By unitarity and the triangle inequality,
For a uniform , the set is a uniform -subset, and is uniform outside . The replacements on are independent and uniform. For fixed , concavity of the square root gives
Averaging and applying ((12)), we obtain
Since , ((10)) implies
Combining ((10)), ((11)), and ((13)), and using , gives
The input always contains a solution. Unlike in Theorem 1, need not be a negative input, but a union bound gives
On every pair for which is negative, the final measurement argument in Theorem 1 gives
Thus the left-hand side of ((14)) is at least 1/12. It follows that
and consequently . ◻
Conclusion
Adversary [8, 9] and polynomials [7] 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.
The approach in this paper looks most promising for problems with small positive certificates. Two more challenging targets are -distinctness and triangle finding. Belovs recently established the optimal quantum lower bound for -distinctness [5] using a substantial technical framework; an elementary proof would be valuable. For triangle finding in an -vertex graph accessed through adjacency-matrix queries, a gap remains between the upper bound [6, 10] and the lower bound. Here, the challenge is to prove a superlinear lower bound.
For triangle finding, a difficulty is that we are not aware of a simple probability distribution over graphs for which the triangle problem seems to require queries. Such a probability distribution is effectively necessary for any quantum lower bound approach, including ours.
Acknowledgments. This research was 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”.
References
- [1]Ambainis, A. (2007). Quantum Walk Algorithm for Element Distinctness. SIAM Journal on Computing, 37(1), 210–239. https://doi.org/10.1137/S0097539705447311
- [2]Childs, A. M., & Eisenberg, J. M. (2005). Quantum algorithms for subset finding. Quantum Information and Computation, 5(7), 593–604. https://doi.org/10.26421/QIC5.7-7
- [3]Ambainis, A., Gilyén, A., & Kokainis, M. (2026). Tight Bounds for Hybrid Quantum-Classical Query Algorithms. In arXiv:2610.06803. https://arxiv.org/abs/2610.06803
- [4]Belovs, A., & Špalek, R. (2013). Adversary Lower Bound for the $k$-Sum Problem. Proceedings of the 4th Innovations in Theoretical Computer Science Conference, 323–328. https://doi.org/10.1145/2422436.2422474
- [5]Belovs, A. (2026). Tight Quantum Lower Bound for $k$-Distinctness. In arXiv:2604.05133. https://arxiv.org/abs/2604.05133
- [6]Le Gall, F. (2014). Improved Quantum Algorithm for Triangle Finding via Combinatorial Arguments. Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science, 216–225. https://doi.org/10.1109/FOCS.2014.31
- [7]Beals, R., Buhrman, H., Cleve, R., Mosca, M., & Wolf, R. de . (2001). Quantum Lower Bounds by Polynomials. Journal of the ACM, 48(4), 778–797. https://doi.org/10.1145/502090.502097
- [8]Ambainis, A. (2002). Quantum Lower Bounds by Quantum Arguments. Journal of Computer and System Sciences, 64(4), 750–767. https://doi.org/10.1006/jcss.2002.1826
- [9]Høyer, P., Lee, T., & Špalek, R. (2007). Negative Weights Make Adversaries Stronger. Proceedings of the 39th Annual ACM Symposium on Theory of Computing, 526–535. https://doi.org/10.1145/1250790.1250867
- [10]Carette, T., Laurière, M., & Magniez, F. (2017). Extended Learning Graphs for Triangle Finding. 34th Symposium on Theoretical Aspects of Computer Science (STACS 2017), 66, 20:1–20:14. https://doi.org/10.4230/LIPIcs.STACS.2017.20
- [11]Aaronson, S., & Shi, Y. (2004). Quantum Lower Bounds for the Collision and the Element Distinctness Problems. Journal of the ACM, 51(4), 595–605. https://doi.org/10.1145/1008731.1008735
- [12]Belovs, A. (2012). Adversary Lower Bound for Element Distinctness. In arXiv:1204.5074. https://arxiv.org/abs/1204.5074
- [13]Zhandry, M. (2019). How to Record Quantum Queries, and Applications to Quantum Indifferentiability. Advances in Cryptology---CRYPTO 2019, Part II, 11693, 239–268. https://doi.org/10.1007/978-3-030-26951-7_9
- [14]Childs, A. M. (2025). Lecture Notes on Quantum Algorithms. In University of Maryland, https://www.cs.umd.edu/ amchilds/qa/qa.pdf.
- [15]Bennett, C. H., Bernstein, E., Brassard, G., & Vazirani, U. (1997). Strengths and Weaknesses of Quantum Computing. SIAM Journal on Computing, 26(5), 1510–1523. https://doi.org/10.1137/S0097539796300933
- [16]Szegedy, M. (2004). Quantum Speed-Up of Markov Chain Based Algorithms. Proceedings of the 45th Annual IEEE Symposium on Foundations of Computer Science, 32–41. https://doi.org/10.1109/FOCS.2004.53
- [17]Magniez, F., Nayak, A., Roland, J., & Santha, M. (2011). Search via Quantum Walk. SIAM Journal on Computing, 40(1), 142–164. https://doi.org/10.1137/090745854
- [18]Santha, M. (2008). Quantum Walk Based Search Algorithms. Theory and Applications of Models of Computation (TAMC 2008), 4978, 31–46. https://doi.org/10.1007/978-3-540-79228-4_3