English

Quantum algorithms for graph problems with cut queries

Data Structures and Algorithms 2020-08-05 v2 Quantum Physics

Abstract

Let GG be an nn-vertex graph with mm edges. When asked a subset SS of vertices, a cut query on GG returns the number of edges of GG that have exactly one endpoint in SS. We show that there is a bounded-error quantum algorithm that determines all connected components of GG after making O(log(n)6)O(\log(n)^6) many cut queries. In contrast, it follows from results in communication complexity that any randomized algorithm even just to decide whether the graph is connected or not must make at least Ω(n/log(n))\Omega(n/\log(n)) many cut queries. We further show that with O(log(n)8)O(\log(n)^8) many cut queries a quantum algorithm can with high probability output a spanning forest for GG. En route to proving these results, we design quantum algorithms for learning a graph using cut queries. We show that a quantum algorithm can learn a graph with maximum degree dd after O(dlog(n)2)O(d \log(n)^2) many cut queries, and can learn a general graph with O(mlog(n)3/2)O(\sqrt{m} \log(n)^{3/2}) many cut queries. These two upper bounds are tight up to the poly-logarithmic factors, and compare to Ω(dn)\Omega(dn) and Ω(m/log(n))\Omega(m/\log(n)) lower bounds on the number of cut queries needed by a randomized algorithm for the same problems, respectively. The key ingredients in our results are the Bernstein-Vazirani algorithm, approximate counting with "OR queries", and learning sparse vectors from inner products as in compressed sensing.

Keywords

Cite

@article{arxiv.2007.08285,
  title  = {Quantum algorithms for graph problems with cut queries},
  author = {Troy Lee and Miklos Santha and Shengyu Zhang},
  journal= {arXiv preprint arXiv:2007.08285},
  year   = {2020}
}

Comments

Corrected an error in Lemma 1. This led to an extra log factor in the complexity of the connectivity and spanning forest algorithms