English

Quantum Algorithm for the Fixed-Radius Neighbor Search

Quantum Physics 2026-01-05 v2

Abstract

Neighbor search is a computationally demanding problem, usually both time- and memory-consuming. The main problem of this kind of algorithms is the long execution time due to cache misses. In this work, we propose a quantum algorithm for the Fixed RAdius Neighbor Search problem (FRANS) based on the fixed-point version of Grover's algorithm. We propose an efficient circuit for solving the FRANS with linear query complexity with the number of particles NN. The quantum circuit returns the list of all the neighbors' pairs within the fixed radius, together with their distance, avoiding the slow down given by cache miss. We analyzed the gate and the query complexity of the circuit. Our FRANS algorithm presents a query complexity of O(N/M)\mathcal{O}(N/\sqrt{M}), where MM is the number of solutions, reaching the optimal lower bound of the Grover's algorithm. We propose different implementations of the oracle, which must be chosen depending on the precise structure of the database. Among these, we present an implementation using the Chebyshev distance with depth O(q1)\mathcal{O}(q_1), where 2q12^{q_1} is the number of grid points used to discretize a spatial dimension. State-of-the-art algorithms for state preparation allow for a trade-off between depth and width of the circuit, with a volume (depth×\times width) of O(Nlog(N))\mathcal{O}(N\log(N)). This unfavorable scaling can be brought down to O(poly(logN))\mathcal{O}(\text{poly}(\log N)) in case of structured datasets. We proposed a stopping criterion based on Bayes interference and tested its validity on 1D1D simulations. Finally, we accounted for the readout complexity and assessed the resilience of the model to the readout error, suggesting an error correction-free strategy to check the accuracy of the results.

Keywords

Cite

@article{arxiv.2507.03445,
  title  = {Quantum Algorithm for the Fixed-Radius Neighbor Search},
  author = {Luca Cappelli and Claudio Sanavio and Alessandro Andrea Zecchi and Giuseppe Murante and Sauro Succi},
  journal= {arXiv preprint arXiv:2507.03445},
  year   = {2026}
}

Comments

19 pages, 10 figures, 1 table