arXiv:2609.05812quant-phSep 2026

Manuscript Offprint

arXiv:2609.05812

Quantum Query Algorithms for the Constructive Diagonal Ramsey Theorem

Cheng Xin

Abstract

The constructive diagonal Ramsey problem asks, given adjacency-oracle access to an NN-vertex graph, for a clique or independent set of the order guaranteed by Ramsey's theorem. We give a bounded-error quantum algorithm that, for every K≥2K \geq 2 and N≥4K−1N \geq 4^{K-1}, finds and verifies a homogeneous KK-set using

O(2KKlog⁡Kη)O\left(2^K K \log \frac{K}{\eta}\right)

edge queries with failure probability at most η\eta. At the Ramsey scale N=2nN=2^n, this yields a homogeneous set of order ⌊n/2⌋+1\lfloor n/2 \rfloor + 1 using O(Nlog⁡Nlog⁡(log⁡N/η))O(\sqrt{N} \log N \log (\log N/\eta)) queries, improving on the O(N)O(N) queries of the explicit classical recursion and giving, to our knowledge, the first sublinear worst-case algorithm for the Ramsey relation. We also derive an Ω(N1/12)\Omega(N^{1/12}) quantum lower bound by a reduction from collision finding.

The algorithm runs the constructive recursion over implicit candidate sets. Each set is represented by a short conjunction of adjacency constraints and sampled using capped unknown-solution quantum search, and a scale-aware concentration schedule balances estimation accuracy against the increasing cost of sampling deeper sets. We complement the upper bound with an Ω(N1−1/2)\Omega(N^{1-1/\sqrt{2}}) randomized lower bound, transported from the random-Painter analysis of online Ramsey numbers, which holds on the uniform distribution G(N,1/2)G(N,1/2). On that distribution a greedy quantum search uses only O~(N1/4)\tilde{O}(N^{1/4}) queries, giving a provable polynomial quantum speedup for Ramsey search on random graphs. We also give an estimation-free size-biased recursion and extend it to every fixed number of edge colours.

1 Introduction

Ramsey's theorem guarantees that every graph on N≥4K−1N \geq 4^{K-1} vertices contains a clique or an independent set of order KK. Its classical constructive proof [8] repeatedly chooses a pivot and restricts the candidate set to one of the pivot's two colour neighbourhoods; truncating each retained neighbourhood to half its current size, it finds a homogeneous KK-set with O(N)O(N) adjacency queries. The corresponding total search problem, RAMSEY, has been studied in proof complexity and in TFNP [15, 16, 14, 20, 13]: the input graph on N=2nN=2^n vertices is given by a circuit or an oracle, and the target order is K=n/2K=n/2. The query complexity of this relation in the deterministic, randomized, and quantum models is posed as an open question in [13, Section III]. This paper answers the quantum question up to a polynomial gap and clarifies the lower-bound record on both the quantum and the classical side.

The central observation is that the candidate sets of the constructive proof need not be materialized. After ii rounds, membership in the current set is determined by the ii adjacency constraints imposed by the previous pivots. These short predicates allow quantum search to sample from the same recursion at substantially smaller query cost. The threshold 4K−14^{K-1} is the natural scale for this recursive construction.

modelinputlower boundupper bound
randomizedworst caseΩ(N1−1/2)\Omega(N^{1-1/\sqrt{2}}) [theorem 4.1]O(N)O(N) [8]
randomizedG(N,1/2)G(N, 1/2)Ω(N1−1/2)\Omega(N^{1-1/\sqrt{2}}) [theorem 4.1]O~(N1/2)\tilde{O}(N^{1/2}) [theorem 4.4]
quantumworst caseΩ(N1/12)\Omega(N^{1/12}) [theorem 4.5]O~(N1/2)\tilde{O}(N^{1/2}) [theorem 1.2]
quantumG(N,1/2)G(N, 1/2)openO~(N1/4)\tilde{O}(N^{1/4}) [theorem 4.3]

Table 1: Bounded-error query complexity of finding a homogeneous set of order ⌊n/2⌋+1\lfloor n/2 \rfloor + 1 in a graph on N=2nN = 2^n vertices, in the worst case and on the uniform distribution G(N,1/2)G(N, 1/2); here 1−1/2≈0.29291 - 1/\sqrt{2} \approx 0.2929. The lower bounds are the random-Painter estimate of [5] and the collision reduction of [13] at multiplicity two (theorem 4.5 is stated for order ⌊n/2⌋\lfloor n/2 \rfloor and hence valid here).

References (25)