Abstract
It has recently been shown that starting with a classical query algorithm (decision tree) and a guessing algorithm that tries to predict the query answers, we can design a quantum algorithm with query complexity $O(\sqrt{GT})$ where $T$ is the query complexity of the classical algorithm (depth of the decision tree) and $G$ is the maximum number of wrong answers by the guessing algorithm [arXiv:1410.0932, arXiv:1905.13095]. In this paper we show that, given some constraints on the classical algorithms, this quantum algorithm can be implemented in time $\tilde O(\sqrt{GT})$. Our algorithm is based on non-binary span programs and their efficient implementation. We conclude that various graph theoretic problems including bipartiteness, cycle detection and topological sort can be solved in time $O(n^{3/2}\log n)$ and with $O(n^{3/2})$ quantum queries. Moreover, finding a maximal matching can be solved with $O(n^{3/2})$ quantum queries in time $O(n^{3/2}\log n)$, and maximum bipartite matching can be solved in time $O(n^2\log n)$.
Introduction
Quantum computing often promises "query-optimal" algorithms—meaning they look at the input data as few times as possible. However, a major bottleneck in quantum algorithm design is time complexity: an algorithm might be query-optimal but so computationally expensive to run that the speedup vanishes in practice.
In this work, Beigi, Taghavi, and Tajdini bridge this gap. They demonstrate how to take classical decision trees (augmented with a "guessing" algorithm) and transform them into quantum algorithms that are not just query-optimal, but also time-efficient.
Methods
The authors utilize non-binary span programs (NBSP) and a series of structural modifications to the underlying decision trees:
- The Guessing Framework: They start with a classical algorithm $\mathcal{A}$ (the decision tree) and a guessing algorithm $\mathcal{G}$. Edges in the tree are colored "black" if the guess is correct and "red" if it's a mistake.
- Graph Transformation: To make the quantum reflections efficient, they modify the decision tree into a "decision graph." They add "returning" edges to turn paths of correct guesses (black paths) into black cycles.
- Fourier Implementation: Because these black paths are now cycles, the authors can use the Quantum Fourier Transform (QFT) to implement the necessary reflections in logarithmic time.
- Subroutine Requirements: They define three classical subroutines—
Local,BlackPath, andPostProcess—that must be efficient ($O(\text{poly} \log n)$) for the overall quantum algorithm to maintain its speed.
Key Insights
- The "Black Cycle" Trick: The difficulty of reflecting through the kernel of a span program matrix stems from the linear structure of decision paths. By adding pseudo-edges to create cycles, the kernel takes on a circulant-like structure that the QFT can diagonalize efficiently.
- Finding vs. Detecting: Unlike previous span-program-based algorithms (like those for st-connectivity) that only detect if a property exists, this framework allows the algorithm to actually find and output the path or matching.
- Generality: The framework handles non-binary alphabets ($\ell > 2$) by reducing them to binary trees with a minimal $\sqrt{\log \ell}$ overhead.
Results
The authors prove that if the required classical subroutines are efficient, the quantum algorithm runs in $\tilde{O}(\sqrt{GT})$ time. They apply this to several landmark problems in both the adjacency matrix and adjacency list models.
For many of these problems, the results provide the first explicit poly-logarithmic factors for time complexity, confirming that the quantum query speedup is achievable in practice.
Limitations and Future Work
- QRAM Requirement: The algorithm assumes access to Quantum RAM (QRAM). While standard in theoretical papers, physical QRAM is still a significant hardware challenge.
- Classical Subroutine Design: The speedup is contingent on the ability to "traverse black paths" at low cost. While the authors show this is possible for BFS/DFS-based algorithms, it may not be true for all classical algorithms.
- Non-Binary Reduction: The current approach for non-binary inputs involves a reduction to binary trees. A more direct implementation of non-binary span program reflections might yield even tighter bounds.
Summary updated