NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Improved Quantum Query Complexity on Easier Inputs

Noel T. Anderson, Jay-U Chung, Shelby Kimmel, Da-Yeon Koh, Xiaohan Ye

Abstract

Quantum span program algorithms for function evaluation often exhibit reduced query complexity when the input is promised to have a specific structure. This paper introduces a modified span program framework that achieves these speedups without requiring a prior promise. By incorporating a self-correcting "flag of completion," the authors extend this approach to the more general problem of state conversion. The framework demonstrates exponential and superpolynomial quantum advantages in average query complexity for several search problems, generalizing existing techniques like Montanaro’s Search with Advice.

Introduction

In quantum computing, query complexity serves as a primary metric for algorithmic efficiency, counting the number of times an algorithm must access an input oracle. Traditionally, algorithms are designed to handle the worst-case scenario. However, many real-world problems contain "easy" inputs—instances where the solution could theoretically be found much faster than the worst-case bound. For example, in graph theory, finding a path between two nodes is significantly faster if the path is short.

While some quantum algorithms, like Grover’s search, can be adapted to stop early if a solution is found, more complex frameworks like span programs often cannot. These algorithms typically require a "promise"—a guarantee provided in advance that the input possesses a specific structure—to terminate early. Without this promise, stopping a span program prematurely may result in an incorrect output. This paper addresses this limitation by developing a framework that allows quantum algorithms to be "opportunistically" fast, adapting to the input's difficulty in real-time.

The "Flag" of Completion

The fundamental hurdle in stopping span programs early is the absence of a "flag." In Grover’s search, a candidate solution can be verified with a single query. In contrast, the output of a span program does not naturally provide a simple way to verify its correctness without completing the full computation.

To overcome this, the authors introduce a modified algorithmic structure that uses iterative subroutines. For decision problems (Yes/No questions), the framework interleaves two subroutines: one designed to certify a "Yes" and another to certify a "No." By running these subroutines for exponentially increasing time intervals, the algorithm terminates as soon as one provides a definitive "flag of completion." This "wrapper" effectively transforms a standard span program into one that can signal its own success.

Probing for State Conversion

The paper extends this logic to the more complex task of state conversion—transforming one quantum state into another based on an oracle. Unlike decision problems, state conversion does not naturally allow for measurement-based flags. To solve this, the authors design a probing routine using Quantum Amplitude Estimation. This routine tests whether the current query limit is sufficient to produce the target state before the actual conversion is attempted. This allows the algorithm to find the optimal query depth dynamically.

Average-Case Superiority

A significant contribution of this work is the demonstration of average-case quantum advantage. Even when a quantum algorithm provides only a quadratic speedup over a classical counterpart for any specific input, it can achieve an exponential advantage on average across a distribution of inputs.

By applying their "no-promise" framework to classical decision trees, the authors show that if there is a non-uniform probability distribution over possible inputs, the quantum algorithm can handle the high-probability "easy" cases so much faster than a classical algorithm that the average-case performance gap becomes superpolynomial or even exponential. This generalizes the concept of "Search with Advice," where an algorithm is given hints about the input distribution.

Key Results and Applications

The authors evaluate their framework on several standard mathematical models, yielding significant improvements in query complexity:

  • $st$-connectivity: The algorithm finds a path of length $k$ in a graph of $n$ nodes using $\tilde{O}(\sqrt{kn})$ queries, without needing to know $k$ beforehand.
  • Graph Connectivity: It determines if a graph is connected in $\tilde{O}(n\sqrt{R})$ queries, where $R$ is the average effective resistance, without prior knowledge of $R$.
  • Search Problems: For the problem of finding two marked items in a list, the authors prove an exponential quantum advantage in average query complexity. They also demonstrate a superpolynomial advantage for finding the first occurring marked item in a list.

Limitations and Future Work

While the framework provides a robust way to handle structured inputs, it introduces some trade-offs. In the case of state conversion, the query complexity scales with the error rate as $O(\epsilon^{-5})$, which is less efficient than the $O(\epsilon^{-2})$ scaling found in standard algorithms. This suggests the current approach is best suited for applications where high precision is not the primary constraint.

Furthermore, while the paper focuses on query complexity, the authors acknowledge that total "wall-clock" time depends on the implementation of underlying unitaries. Future research may extend this framework to more complex problems like "Element Distinctness," potentially revealing further areas where quantum computers offer a massive average-case edge over classical systems.

Summary updated

BibTeX
@inproceedings{anderson2024improved,
  author = {Noel T. Anderson and Jay-U Chung and Shelby Kimmel and Da-Yeon Koh and Xiaohan Ye},
  title = {{Improved Quantum Query Complexity on Easier Inputs}},
  booktitle = {Quantum},
  year = {2024},
  doi = {10.22331/q-2024-04-08-1309},
}
Figure