alphaFeedback

WorksPhysics and Astronomy

Breaking the quantum barriers for Graph Collision

AI contributions
  • GPT-6 Astra
View details

Abstract

In the graph collision problem, the task is to decide whether a known graph on nn vertices contains an edge with both endpoints marked, given query access to the input bits specifying the marked vertices. We first refute the conjectured Ω(n2/3)Ω(n^{2/3}) query lower bound with a bounded error quantum algorithm using O~(n92/139)\widetilde O(n^{92/139}) queries. We then refine this approach to obtain a O~(n11/17)\widetilde O(n^{11/17}) query algorithm. We also obtain a O~((nq)11/17)\widetilde O((nq)^{11/17}) query bound for all (partial) Boolean output functions with positive certificate complexity at most 2 and alphabet size qq, contrasting a known Ω(n2/3)Ω(n^{2/3}) lower bound for such problems with large alphabet sizes. We complement these algorithms with an Ω(nlog⁡n)Ω(\sqrt{n\log n}) quantum query lower bound for graph collision, exceeding the O(n)O(\sqrt n) certificate complexity barrier for the positive adversary method.

Introduction

In the graph collision problem, a simple undirected graph G=(V,E)G=(V,E) on nn vertices is known in advance, and we have query access to an input x∈{0,1}Vx\in\{0,1\}^{V}. A vertex vv is marked if xv=1x_v=1. The task is to decide whether some edge uv∈Euv\in E has both endpoints marked. Only queries to xx are counted; all computation involving the known graph is free.

Magniez, Santha, and Szegedy introduced graph collision as a subroutine for triangle finding and gave an O(n2/3)O(n^{2/3}) query quantum algorithm for arbitrary graphs [21 JKLGM16]. Their algorithm uses Ambainis’s quantum walk for element distinctness [3]. Subsequent work improved this bound for graphs with few nonedges [JKLGM16], small independence number [7], or small treewidth [ABI+13]. Other bounds depend on the degrees of vertices in independent sets [15 ABI+13]. Despite these improvements for particular graph families, the O(n2/3)O(n^{2/3}) bound remained the best known for arbitrary graphs.

A reduction from unstructured search gives a worst case lower bound of Ω(n)\Omega(\sqrt{n}) [6], leaving a gap between the known upper and lower bounds. Gavinsky and Ito ask whether graph collision admits a O~(n)\widetilde{O}(\sqrt{n}) query algorithm [15 Section 6], while Ambainis et al. and Balodis and Iraids leave an O(n)O(\sqrt{n}) bound for arbitrary graphs open [ABI+13, BI16]. Determining the quantum query complexity of graph collision also appears among the open problems in Kothari’s thesis [19 Open Problem 4.3] and in the work of Bun, Kothari, and Thaler [11 Section 7.2]. In the other direction, Cornelissen, Gilani, and Patro report that the n2/3n^{2/3} bound is believed by some in the community to be optimal [14]. Gilani, Mande, Patro, and Raja formulate a conjecture for detecting marked cliques whose k=2k=2 case asserts that some graph families require Ω(n2/3)\Omega(n^{2/3}) queries for graph collision [16 Conjecture 1.5].

We refute this conjecture. We first give a relatively elementary algorithm using O~(n92/139)\widetilde{O}(n^{92/139}) queries in Section 3. Its central idea is to estimate the number of marked neighbors of each vertex and use these estimates to divide the edges into parts that can be tested efficiently. In § 5, we refine the same approach to obtain the following stronger bound.

Theorem 1.1. There is a quantum algorithm that solves the graph collision problem on any nn-vertex graph with high probability using O~(n11/17)\widetilde{O}(n^{11/17}) queries.

Our upper bound also applies to functions whose positive inputs can be certified by fixing at most 2 input symbols. In § 9, we reduce any such (partial) Boolean output function on nn input symbols from an alphabet of size qq to graph collision on nqnq vertices. By Theorem 1.1, this gives a query bound of O~((nq)11/17)\widetilde{O}((nq)^{11/17}). This contrasts with the Ω(n2/3)\Omega(n^{2/3}) lower bound for element distinctness over large alphabets [5, 2 Ros14], whose positive inputs also have certificates of size 2. More generally, our bound is o(n2/3)o(n^{2/3}) for q=O(n1/3−ε)q=O(n^{1/3-\varepsilon}) and fixed ε>0\varepsilon>0, showing the importance of the alphabet size in lower bounds based on certificate structures [12].

We also improve the lower bound for graph collision. For a fixed graph this is a total Boolean function with positive certificates of size 2, so the positive adversary method cannot prove a lower bound larger than O(n)O(\sqrt{n}) [25 SS06]. We overcome this certificate barrier using the general adversary method, which allows negative weights [17]. Our explicit adversary matrix construction is inspired by the recent framework of Belovs [8] and gives the following result.

Theorem 1.2 (Informal version of Theorem 6.1). There is a family of graphs on nn vertices for which the quantum query complexity of graph collision is Ω(nlog⁡n)\Omega(\sqrt{n\log n}).

This rules out an O(n)O(\sqrt{n}) query algorithm for arbitrary graphs, while leaving open the possibility of a O~(n)\widetilde{O}(\sqrt{n}) query algorithm.

Technical overview

We give an informal overview of the main ideas behind our two algorithms, the reduction for functions with small positive certificates, and the lower bound. Precise statements and proofs appear in Sections 3–6.

An algorithm breaking the O(n2/3)O(n^{2/3}) barrier

We describe the ideas behind the algorithm of Section 3, which achieves query complexity O~(n92/139)\widetilde{O}(n^{92/139}). The algorithm first preprocesses the graph, then estimates neighborhood counts and uses a threshold to divide the remaining edges into two parts. We begin by explaining why such estimates suffice. The improved algorithm of § 5 builds on the same estimation and thresholding argument.

Let G=(V,E)G=(V,E) be the known graph, and let M={v:xv=1}M=\{v:x_v=1\} be its unknown marked set. For any set S⊆VS\subseteq V, write ℓu(S)=∣NG(u)∩S∣\ell_u(S)=|N_G(u)\cap S|, where NG(u)N_G(u) is the neighborhood of uu in the graph GG. In particular, ℓu(M)\ell_u(M) counts the marked neighbors of uu. Suppose for a moment that we knew all these counts. We could then restrict attention to vertices with positive counts and use Grover search to find a marked vertex among them. This would decide graph collision using O(n)O(\sqrt{n}) additional queries.

Approximate counts and marked volume. Computing all the counts exactly would require too many queries. We instead construct a set SS for which the counts ℓu(S)\ell_u(S) approximate ℓu(M)\ell_u(M). Our aim is to bound their total squared error

r=∑u(ℓu(S)−ℓu(M))2.(1)r=\sum_u\left(\ell_u(S)-\ell_u(M)\right)^2. \tag*{(1)}

The set SS need not recover the marked set. We only use its neighborhood counts. Although approximate counts need not identify which vertices have a marked neighbor, they suffice to divide the edges into two parts that can be tested efficiently.

The relevant quantity for these tests is the marked volume vol⁡(G,x)=∑v∈Mdeg⁡G(v)\operatorname{vol}(G,x)=\sum_{v\in M}\deg_G(v), the total degree of marked vertices. Given an upper bound bb on this quantity, variable-time search gives a collision test using O~(n+b)\widetilde{O}(\sqrt{n}+\sqrt{b}) queries.

Choose a threshold τ>0\tau>0 and let P={u:ℓu(S)≤τ}P=\{u:\ell_u(S)\leq\tau\}. Consider first the edges inside PP. The marked volume of G[P]G[P] equals ∑u∈P∣NG(u)∩M∩P∣\sum_{u\in P}|N_G(u)\cap M\cap P|. Each term in this sum is at most ℓu(M)\ell_u(M), which also counts marked neighbors outside PP. The estimated counts are at most τ\tau on PP, and Cauchy–Schwarz bounds the sum of the absolute errors by nr\sqrt{nr}. Consequently,

vol⁡(G[P],x)≤∑u∈Pℓu(M)≤nτ+nr.\operatorname{vol}(G[P],x)\leq\sum_{u\in P}\ell_u(M)\leq n\tau+\sqrt{nr}.

For the edges with at least one endpoint outside PP, the set V∖PV\setminus P contains an endpoint of every such edge and is therefore a vertex cover. The same test applies with a bound on vol⁡(G,V∖P,x)=∑v∈M∖Pdeg⁡G(v)\operatorname{vol}(G,V\setminus P,x)=\sum_{v\in M\setminus P}\deg_G(v), the sum of the degrees of marked vertices in this cover. On an input with no collision, every marked vertex has zero marked neighbors. A marked vertex outside PP must therefore contribute more than τ2\tau^2 to the squared error, which gives ∣M∖P∣≤r/τ2|M\setminus P|\leq r/\tau^2. If the maximum degree is at most dd, the marked volume of this cover is at most dr/τ2dr/\tau^2.

Thus the same error bound controls both edge sets: the counts inside PP bound their marked volume, while inaccurate counts at marked vertices outside PP limit the marked volume of the other cover. We apply the same volume test to both parts, using PP as the cover inside and V∖PV\setminus P as the cover outside. The volume assumptions are needed for rejection on negative inputs; a test detects a collision in its edge set with high probability even if the stated volume bound fails. We can therefore analyze the estimation error on negative inputs and still detect collisions on positive inputs. Figure 1 illustrates the two marked volume bounds.

Illustration of thresholding estimated marked neighbor counts into edges inside P and remaining edges

Figure 1. Thresholding the estimated marked neighbor counts partitions the edges. Inside PP, small estimates and controlled error bound the marked volume of the blue graph. On a negative input, every marked vertex outside PP has a large estimation error, so there are few such vertices. Their degrees are at most dd, giving a small marked volume for the outside cover of the orange edges. Filled vertices are marked; dotted edges belong to the other part.

Estimating neighborhood counts. The main question is how to obtain the approximate counts with few queries. Take qq independent uniform vertices w1,…,wqw_1,\ldots,w_q, query their input bits, and form the estimates

yu=nq∑i=1qxwi1[wi∈NG(u)].y_u = \frac{n}{q}\sum_{i=1}^{q} x_{w_i}\mathbf{1}\left[w_i \in N_G(u)\right].

Each estimate is unbiased, but its sampling error may be large. The true neighborhood counts all come from the same marked set MM. We use this common structure by choosing a single set S⊆VS \subseteq V minimizing

∑u(ℓu(S)−yu)2.\sum_u \left(\ell_u(S)-y_u\right)^2.

The crucial observation is that the true set MM is an allowed choice, so the objective value at SS is no larger than at MM. We can use this inequality to compare the neighborhood counts of SS and MM, even though we do not know MM.

To analyze this comparison, let cvw=∣NG(v)∩NG(w)∣c_{vw} = \lvert N_G(v) \cap N_G(w)\rvert be the number of common neighbors of vv and ww. Define zv=∑u∈NG(v)yuz_v = \sum_{u \in N_G(v)} y_u, which estimates the number of walks of length two from vv to marked vertices. A sampled marked vertex wiw_i contributes n/qn/q to this sum once for each common neighbor of vv and wiw_i, so

zv=nq∑i=1qcvwixwi,E[zv]=∑w∈Mcvw.z_v = \frac{n}{q}\sum_{i=1}^{q} c_{vw_i}x_{w_i}, \qquad\mathbb{E}[z_v] = \sum_{w \in M} c_{vw}.

Counting in two ways gives ∑uℓu(S)yu=∑v∈Szv\sum_u \ell_u(S)y_u = \sum_{v \in S} z_v. Expanding the least squares objective leaves ψz(S)=∑uℓu(S)2−2∑v∈Szv\psi_z(S) = \sum_u \ell_u(S)^2 - 2\sum_{v \in S}z_v, together with a term ∑uyu2\sum_u y_u^2 that is independent of SS. Thus it suffices to compute the common neighbor estimates zvz_v and minimize ψz\psi_z. All these computations use the known graph and the sampled input bits, so they require no further queries. Algorithm 1 gives the procedure.

Comparing ψz(S)\psi_z(S) with ψz(M)\psi_z(M) now bounds the squared estimation error by

r≤2∑v∣zv−E[zv]∣.r \le2\sum_v \left|z_v-\mathbb{E}[z_v]\right|.

This is the useful consequence of choosing all the estimated counts from one set: their total squared error is controlled by the sum of the absolute errors in the sampled common neighbor sums. The improved algorithm uses the same comparison.

The variance of zvz_v is at most (n/q)∑w∈Mcvw2(n/q)\sum_{w\in M}c_{vw}^{2}. Applying Cauchy–Schwarz to the comparison above yields

E[r]≤2n∑vVar⁡(zv)≤2nq(∑w∈M∑vcvw2)1/2.\mathbb{E}[r]\le2\sqrt{n\sum_v\operatorname{Var}(z_v)}\le\frac{2n}{\sqrt{q}}\left(\sum_{w\in M}\sum_v c_{vw}^{2}\right)^{1/2}.

For fixed v,wv,w, the quantity cvw2c_{vw}^{2} counts ordered pairs of common neighbors, or equivalently closed walks w,a,v,b,ww,a,v,b,w of length four. Only walks starting at marked vertices contribute, allowing us to use the reduction in marked volume obtained by sampling even if many edges remain.

Sampling and edge deletion. The squared common neighbor counts may be too large in an arbitrary graph. We therefore preprocess the graph before estimating the counts. A separate, earlier round of sampling reduces the marked volume; further edge deletions bound the degrees and the number of closed walks starting at marked vertices. Each deletion is accompanied by a search or collision test that detects a collision among the deleted edges with high probability. The algorithm returns as soon as a test finds one.

First, take Θ(qlog⁡n)\Theta(q\log n) uniform vertex samples and query their input bits. Search the union of the neighborhoods of the marked samples for a marked vertex. A successful search gives a collision. Otherwise, delete all edges incident to this union. Any vertex with more than n/qn/q marked neighbors is likely to have one of those neighbors sampled, in which case the deletion isolates it. With high probability every remaining vertex has at most n/qn/q marked neighbors. Summing these counts gives vol⁡(G,x)≤n2/q\operatorname{vol}(G,x)\le n^2/q. Algorithm 2 gives this sampling procedure.

References

  1. [2]Andris Ambainis. Polynomial degree and lower bounds in quantum complexity: Collision and element distinctness with small range. Theory of Computing, 1(3):37–46, 2005. URL: https://theoryofcomputing.org/articles/v001a003, doi:10.4086/toc.2005.v001a003.DOI
  2. [3]Andris Ambainis. Quantum walk algorithm for element distinctness. SIAM Journal on Computing, 37(1):210–239, 2007. URL: https://arxiv.org/abs/quant-ph/0311001.
  3. [4]A. Ambainis. Quantum search with variable times. In STACS 2008, pages 49–60, 2008. doi:10.4230/LIPIcs.STACS.2008.1333.
  4. [5]S. Aaronson and Y. Shi. Quantum lower bounds for the collision and the element distinctness problems. Journal of the ACM, 51(4):595–605, 2004. doi:10.1145/1008731.1008735.DOI
  5. [6]Harry Buhrman, Richard Cleve, Ronald de Wolf, and Christof Zalka. Bounds for small-error and zero-error quantum algorithms. In Proceedings of the 40th Annual Symposium on Foundations of Computer Science, pages 358–368, 1999. URL: https://arxiv.org/abs/cs/9904019, doi:10.1109/SFFCS.1999.814607.
  6. [7]Aleksandrs Belovs. Learning-graph-based quantum algorithm for k-distinctness. In Proceedings of the 53rd Annual Symposium on Foundations of Computer Science, pages 207–216, 2012. URL: https://arxiv.org/abs/1205.1534, doi:10.1109/FOCS.2012.18.
  7. [8]Aleksandrs Belovs. Tight quantum lower bound for k-distinctness. arXiv preprint arXiv:2604.05133, 2026.arxiv.org/abs/2604.05133
  8. [9]G. Brassard, P. Høyer, M. Mosca, and A. Tapp. Quantum amplitude amplification and estimation, 2002. URL: https://arxiv.org/abs/quant-ph/0005055.
  9. [11]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. URL: https://theoryofcomputing.org/articles/v016a010/, doi:10.4086/toc.2020.v016a010.DOI
  10. [12]Aleksandrs Belovs and Ansis Rosmanis. On the power of non-adaptive learning graphs. Computational Complexity, 23(2):323–354, 2014. URL: https://arxiv.org/abs/1210.3279, doi:10.1007/s00037-014-0084-1.
  11. [13]E. Chlamtáč, M. Dinitz, and T. Robinson. Approximating the norms of graph spanners. In APPROX/RANDOM 2019, volume 145 of Leibniz International Proceedings in Informatics, pages 11:1–11:22, 2019. doi:10.4230/LIPIcs.APPROX-RANDOM.2019.11.DOI
  12. [14]A. Cornelissen, A. S. Gilani, and S. Patro. Quantum algorithms for path and cycle containment problems, 2026. URL: https://arxiv.org/abs/2605.09017.
  13. [15]D. Gavinsky and T. Ito. A quantum query algorithm for the graph collision problem, 2012. URL: https://arxiv.org/abs/1204.1527.
  14. [16]A. S. Gilani, N. S. Mande, S. Patro, and N. Raja. Quantum query complexity of maximum degree and its generalizations, 2026. URL: https://arxiv.org/abs/2610.13906.
  15. [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, 2007. URL: https://arxiv.org/abs/quant-ph/0611054.
  16. [19]Robin Kothari. Efficient algorithms in quantum query complexity. PhD thesis, University of Waterloo, 2014. URL: https://dspacemainprd01.lib.uwaterloo.ca/server/api/core/bitstreams/879813de-8294-43a8-a21a-f5718e0deaa8/content.
  17. [21]F. Magniez, M. Santha, and M. Szegedy. Quantum algorithms for the triangle problem. SIAM Journal on Computing, 37(2):413–424, 2007. URL: https://arxiv.org/abs/quant-ph/0310134.
  18. [24]T. J. Yoder, G. H. Low, and I. L. Chuang. Fixed-point quantum search with an optimal number of queries. Physical Review Letters, 113:210501, 2014. URL: https://arxiv.org/abs/1409.3305, doi:10.1103/PhysRevLett.113.210501.
  19. [25]Shengyu Zhang. On the power of Ambainis lower bounds. Theoretical Computer Science, 339(2-3):241–256, 2005.DOI

Paper details

vlnc:W_73tn2awr
v1 · latestHistory (1)

published · Fresh — added to the Hub within the last 30 days

added ·

Usage

views · 0

downloads · 0

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

CC BY 4.0

Original source

  • Physics and Astronomy

GPT-6 Astra · View statement →

Looking for related papers…
Contents