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 [3] but requires queries classically. The quantum algorithm played a central role in establishing quantum walks as a general paradigm for algorithm design [17, 15, 16].
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 [1]. Subsequent proofs used the negative-weight adversary method [6] and the compressed oracle method [18, 11]. 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 occupies less 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 [9], 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 [12] and, for the -sum problem, Belovs and Špalek [8] 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 [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 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 define
Let be the total sensitivity to these single-coordinate replacements, with the expectation taken over a random choice of . First, we show
Lemma 1. .
Proof. Input-independent unitaries preserve the distances. During a query, the two oracles and agree outside query index . Thus
The second step follows from and the unitarity of the oracles. The last step follows from the distributions of and being identical and from . Since , this proves the lemma. □
We now choose a uniformly random unordered pair , and plant a collision. Let be the input obtained from by replacing and by . We define the second-order difference of the algorithm’s states as
Then
Since has distinct entries and contains a collision, algorithm’s final states must be a constant distance apart. We will upper bound by bounding the three terms on the right-hand side of (3). Since each index belongs to the random pair with probability , we have
It remains to bound . Let . These operators satisfy
Expanding the terms in (2) according to (1) and regrouping them gives
The last two terms have different query indices and are therefore orthogonal. Consequently,
with the expectations taken over a random choice of , , , . Here, the equality follows from the orthogonality of the two vectors, and the first inequality uses and .
Since , unrolling (5) and applying Cauchy–Schwarz to the terms obtained from that yields
Combining (3), (4), and (7) and using gives
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 [8]. We retain the notation , , and from § 2.
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. We first establish a higher-order version of Lemma 1. We choose independently and uniformly. For , let be obtained from by replacing with for every . We define
In particular, and . We claim that
Lemma 2. .
Here and below, when .
Proof. To prove this, we apply the argument for Lemma 1 to each . 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
The two terms in parentheses have the same expectation: and are independent and uniform, and the difference indexed by does not otherwise use . Summing over yields
Since for , induction proves the lemma.
We now plant a solution. Choose uniformly and an independent uniform -subset . Independently of , we choose uniformly subject to . For , let now denote replacement by these , and let . Let be the counterpart of for this replacement.
Every proper subset of the consists of independent uniform elements of . Thus, for , has the same distribution as the corresponding difference under independent replacements. We denote . Inclusion–exclusion gives the analogue of (3):
We will estimate each of these terms for .
For , let . As before, , and . The expansion that gave (5) now yields
The terms for different are orthogonal, since they have different query indices. Averaging over gives, similarly to (6),
Here, expectations involving the planted differences are over , and . Expectations involving retain their earlier definition with independent replacements.
Unrolling (11) and applying Cauchy–Schwarz exactly as in (7), then using Lemma 2, we obtain
For the terms in (10), each fixed -subset is contained in with probability . Hence, for ,
We may assume , since otherwise the claimed lower bound is immediate. Applying Cauchy–Schwarz to the terms in (10) and combining (13) and (14) 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 (15) is at least . It follows that , and consequently .
Conclusion
Adversary [2, 13] 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.
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 [7] 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 [14, 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]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]Andris Ambainis. Quantum lower bounds by quantum arguments. Journal of Computer and System Sciences, 64(4):750–767, 2002.
- [3]Andris Ambainis. Quantum walk algorithm for element distinctness. SIAM Journal on Computing, 37(1):210–239, 2007.
- [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]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]Aleksandrs Belovs. Adversary lower bound for element distinctness. arXiv:1204.5074, 2012.arxiv.org/abs/1204.5074
- [7]Aleksandrs Belovs. Tight quantum lower bound for k-distinctness. arXiv:2604.05133, 2026.arxiv.org/abs/2604.05133
- [8]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
- [9]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.
- [10]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.
- [11]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.
- [12]Andrew M. Childs and Jason M. Eisenberg. Quantum algorithms for subset finding. Quantum Information and Computation, 5(7):593–604, 2005.DOI
- [13]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
- [14]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
- [15]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.
- [16]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
- [17]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
- [18]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