arXiv:2611.06751quant-phNov 2026

Manuscript Offprint

arXiv:2611.06751

A Quantum Lower Bound for Triangle Finding

Arjan Cornelissen, Amin Shiraz Gilani, Xingyu Zhou

Abstract

Triangle finding is a fundamental problem in graph theory that has played a central role in the development of quantum algorithmic techniques. For NN-vertex graphs given by their adjacency matrices, a long line of work has improved the quantum query upper bound from O(N3/2)O(N^{3/2}) to O(N5/4)O(N^{5/4}). However, the best known lower bound has remained the elementary Ω(N)\Omega(N) bound obtained from unstructured search. We prove the first superlinear quantum query lower bound for triangle finding, showing that Ω(N13/12)\Omega(N^{13/12}) queries are necessary. Our result also implies the same lower bound for triangle detection and for detecting every fixed connected non-bipartite graph.

The proof builds on the compressed oracle approach of Zhandry and the transfer approaches of Belovs. It compares the computation on graphs with a planted triangle to the computation on random graphs conditioned to be triangle-free, through a map on the input registers that almost commutes with every query. We average over local changes to the input while preserving its distribution, through a procedure known as conditional resampling. Our main technical contribution is a set of estimates that let us control the query error under this averaging, despite the dependence introduced by conditioning a dense graph to be triangle-free.

*Department of Computer Science and Technology, University of Cambridge. ajcornelissen@outlook.com. †Joint Center for Quantum Information and Computer Science, University of Maryland. asgilani@umd.edu. ‡Department of Computer Science, The University of British Columbia. zxingyu@cs.ubc.ca.

Contents 1 Introduction 3 1.1 Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 1.2 Discussion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 2 Proof overview 6 2.1 The comparison method and the input distributions . . . . . . . . . . . . . . . . . . 6 2.2 One candidate: records and the four-input map . . . . . . . . . . . . . . . . . . . . . 7 2.3 Many candidates: averaging over vertex stars . . . . . . . . . . . . . . . . . . . . . . 9 2.4 The price of averaging and the exponent . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.5 From independent bits to the conditioned distribution . . . . . . . . . . . . . . . . . 13 3 Preliminaries 13 3.1 Notation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 3.2 Queries, joint states, and workspace vectors . . . . . . . . . . . . . . . . . . . . . . . 14 4 Comparison and conditional resampling 16 4.1 Comparing two computations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 4.2 Conditional variances and averaging . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.3 Conditioned Boolean inputs and two-coordinate interactions . . . . . . . . . . . . . . 20 4.4 Conditional differences after averaging . . . . . . . . . . . . . . . . . . . . . . . . . . 22 5 Triangle finding 26 5.1 Input distributions and local comparison . . . . . . . . . . . . . . . . . . . . . . . . . 27 5.2 Star averages and sums over triangles . . . . . . . . . . . . . . . . . . . . . . . . . . 29 5.3 Query error and lower bound . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 References 35 2

1 Introduction

Triangle finding asks for three pairwise adjacent vertices in a graph given by queries to its adjacency matrix. It is a basic test of how quantum algorithms exploit the structure of a small certificate: a solution consists of only three edges, but the possible solutions overlap in many ways. For a graph on NN vertices, classical randomized algorithms require Θ(N2)\Theta(N^2) queries in the worst case, whereas searching over all vertex triples with Grover's algorithm uses O(N3/2)O(N^{3/2}) quantum queries [Gro96]. The elementary quantum lower bound is Ω(N)\Omega(N), obtained by embedding unstructured search [BBBV97].

Triangle finding has helped drive the development of quantum algorithmic techniques, with a long line of work yielding progressively better quantum query upper bounds. Table 1 summarizes this progress. The best known quantum query upper bound exponent is 5/45/4 [LG14, CLM20, Kin26]. In contrast, the lower bound has remained linear. The difficulty of proving a superlinear bound has been noted repeatedly in work on quantum graph algorithms [MSS07, CK12, LG14, CGP26].

ApproachQuantum queriesReference
Search over triplesO(N3/2)O(N^{3/2})Grover [Gro96]
Combinatorial arguments and searchO~(N10/7)\widetilde{O}(N^{10/7})Szegedy [Sze03]
Quantum walksO~(N13/10)\widetilde{O}(N^{13/10})Magniez–Santha–Szegedy [MSS07]
Learning graphsO(N35/27)O(N^{35/27})Belovs [Bel12]
Learning graphsO(N9/7)O(N^{9/7})Lee–Magniez–Santha [LMS17]
Nested quantum walksO~(N9/7)\widetilde{O}(N^{9/7})Jeffery–Kothari–Magniez [JKM13]
Combinatorial arguments and walksO~(N5/4)\widetilde{O}(N^{5/4})Le Gall [LG14]
Extended learning graphs (ELGs)O(N5/4)O(N^{5/4})Carette–Laurière–Magniez [CLM20]
Combinatorial arguments and ELGsN5/4/2Ω(log⁡∗N)N^{5/4}/2^{\Omega(\log^* N)}Kintali [Kin26]

Table 1: Progress in quantum query upper bounds for triangle finding in the adjacency matrix model. The first row is the direct application of quantum search to vertex triples. The notation O~\widetilde{O} suppresses polylogarithmic factors. In the last row, log⁡∗N\log^* N denotes the iterated binary logarithm.

The small size of a triangle certificate is itself an obstacle for some lower bound techniques. The certificate complexity barrier limits the adversary method with nonnegative weights to O(N)O(N) for triangle detection [Zha05, ŠS06]. Gilani and Zhou [GZ26] recently proved superlinear quantum query lower bounds for larger cliques and, more generally, every fixed connected subgraph of chromatic number at least four. Their applications do not yield a superlinear bound for triangles.

References (21)