English

Advances in quantum algorithms for the shortest path problem

Quantum Physics 2026-03-20 v3

Abstract

Given an undirected, weighted graph, with nn vertices and mm edges, and two special vertices ss and tt, the problem is to find the shortest path between them. We give two bounded-error quantum algorithms with improved runtime in the adjacency list model that solve the problem on special classes of graphs defined via pathfinding probabilities of classical random walks and the electrical network framework. Firstly, we give a simple quantum algorithm based on sampling edges from a graph via the quantum flow state and running a classical algorithm on the sampled edges. It runs in O~(l2m)\tilde{O}(l^2\sqrt{m}) expected time and uses O(logn)O(\log{n}) space on graphs where the shortest ss-tt path is also a minimum resistance ss-tt subgraph. Our main algorithm can be thought of as a divide and conquer version of this approach and works on a special class of graphs where classical loop-erased random walk has a probability q>0.537q>0.537 of finding the shortest ss-tt path. In such cases the quantum algorithm outputs the shortest ss-tt path with high probability in O~(m)\widetilde{O}(\ell\sqrt{m}) expected time and O(logn)O(\log{n}) space, where ll is the length (or total weight, in case of weighted graphs) of the shortest ss-tt path. This algorithm can be parallelised to O~(lm)\tilde{O}(\sqrt{lm}) circuit depth when using O(llogn)O(l\log{n}) space. With the latter we partially resolve with an affirmative answer the open problem of whether a path between two vertices can be found in the number of steps required to detect it.

Keywords

Cite

@article{arxiv.2408.10427,
  title  = {Advances in quantum algorithms for the shortest path problem},
  author = {Adam Wesołowski and Stephen Piddock},
  journal= {arXiv preprint arXiv:2408.10427},
  year   = {2026}
}
R2 v1 2026-06-28T18:17:29.646Z