A Quantum Time-Space Tradeoff for Directed $st$-Connectivity
Stacey Jeffery, Galina Pass
TL;DR
This work proposes a quantum time-space tradeoff for directed st-connectivity (DSTCON). By separating quantum space from the dominant classical space, the authors design a quantum algorithm that, for any $S \ge \log^2(n)$, uses total space $S$ and achieves time $T \le 2^{\tfrac{1}{2}\log(n)\log(n/S)+O(\log n\log\log n)}$ with only $O(\log^2 n)$ quantum space, yielding a quadratic or near-quadratic speedup over the best known classical tradeoffs in the small-space regime. The core technical advance is a quantum short-path subroutine, Dist$_L$, built via recursively constructed switching networks, enabling a reversible, bounded-error quantum evaluation of reachability within path-length $L$. The results demonstrate that classical space can be traded for quantum time in a nontrivial way for a NL-complete problem and open directions toward tighter quantum-space bounds and broader directed-graph applications. The framework relies on span-program-inspired switching networks to compose quantum subroutines without incurring prohibitive overheads, marking a first quantum time-space tradeoff for DSTCON with practical quantum-space guarantees.
Abstract
Directed $st$-connectivity (DSTCON) is the problem of deciding if there exists a directed path between a pair of distinguished vertices $s$ and $t$ in an input directed graph. This problem appears in many algorithmic applications, and is also a fundamental problem in complexity theory, due to its ${\sf NL}$-completeness. We show that for any $S\geq \log^2(n)$, there is a quantum algorithm for DSTCON using space $S$ and time $T\leq 2^{\frac{1}{2}\log(n)\log(n/S)+o(\log^2(n))}$, which is an (up to quadratic) improvement over the best classical algorithm for any $S=o(\sqrt{n})$. Of the $S$ total space used by our algorithm, only $O(\log^2(n))$ is quantum space - the rest is classical. This effectively means that we can trade off classical space for quantum time.
