Advances in quantum algorithms for the shortest path problem
Abstract
Given an undirected, weighted graph, with vertices and edges, and two special vertices and , 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 expected time and uses space on graphs where the shortest - path is also a minimum resistance - 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 of finding the shortest - path. In such cases the quantum algorithm outputs the shortest - path with high probability in expected time and space, where is the length (or total weight, in case of weighted graphs) of the shortest - path. This algorithm can be parallelised to circuit depth when using 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.
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}
}