Improved Quantum Algorithm for Triangle Finding via Combinatorial Arguments

Similar documents
arxiv: v1 [quant-ph] 24 Jul 2015

Quantum Algorithms for Finding Constant-sized Sub-hypergraphs

Improving Quantum Query Complexity of Boolean Matrix Multiplication Using Graph Collision

The Quantum Query Complexity of Algebraic Properties

arxiv: v2 [quant-ph] 20 Dec 2012

Quantum Algorithms for Graph Traversals and Related Problems

The Quantum Query Complexity of the Determinant

Time-Efficient Quantum Walks for 3-Distinctness

arxiv: v2 [quant-ph] 11 Oct 2016

Finding a Heaviest Triangle is not Harder than Matrix Multiplication

Discrete quantum random walks

arxiv:quant-ph/ v1 29 May 2003

Quantum algorithms based on span programs

From Adversaries to Algorithms. Troy Lee Rutgers University

Lecture 13: Lower Bounds using the Adversary Method. 2 The Super-Basic Adversary Method [Amb02]

Quantum Algorithms for Element Distinctness

arxiv: v1 [quant-ph] 6 Feb 2013

Quantum speedup of backtracking and Monte Carlo algorithms

Quantum query complexity of entropy estimation

The quantum query complexity of read-many formulas

Connections between exponential time and polynomial time problem Lecture Notes for CS294

A better lower bound for quantum algorithms searching an ordered list

Quantum Lower Bounds for Tripartite Versions of the Hidden Shift and the Set Equality Problems

Quantum Algorithms for Element Distinctness

Quantum algorithms. Andrew Childs. Institute for Quantum Computing University of Waterloo

Hamiltonian simulation and solving linear systems

arxiv: v2 [quant-ph] 6 Feb 2018

arxiv: v3 [quant-ph] 29 Oct 2009

Reflections Reflections

The Polynomial Method Strikes Back: Tight Quantum Query Bounds Via Dual Polynomials

Testing Graph Isomorphism

Subcubic Equivalences Between Path, Matrix, and Triangle Problems

A Tight Lower Bound on Certificate Complexity in Terms of Block Sensitivity and Sensitivity

Quantum walk algorithms

Quantum and Classical Query Complexities of Local Search are Polynomially Related

Quantum Complexity of Testing Group Commutativity

arxiv:quant-ph/ v1 15 Apr 2005

Lecture 12: Lower Bounds for Element-Distinctness and Collision

Quantum Property Testing

A semi-definite program for quantum query complexity

From the Shortest Vector Problem to the Dihedral Hidden Subgroup Problem

Speeding up the Four Russians Algorithm by About One More Logarithmic Factor

Matching Triangles and Basing Hardness on an Extremely Popular Conjecture

Data Structures in Java

Quantum Algorithms for Evaluating Min-Max Trees

Lower Bounds for Testing Bipartiteness in Dense Graphs

arxiv: v3 [quant-ph] 5 Mar 2014

Geometric Steiner Trees

Introduction to Quantum Computing

Bounds for Error Reduction with Few Quantum Queries

P, NP, NP-Complete, and NPhard

arxiv: v1 [cs.cc] 16 Mar 2017

Quantum Differential and Linear Cryptanalysis

Testing Expansion in Bounded-Degree Graphs

Quantum Property Testing

Quantum Algorithms for Connectivity and Related Problems

Upper bounds for query complexity inspired by the Elitzur-Vaidman bomb tester

Compute the Fourier transform on the first register to get x {0,1} n x 0.

Quantum algorithms (CO 781, Winter 2008) Prof. Andrew Childs, University of Waterloo LECTURE 11: From random walk to quantum walk

Lecture 14 - P v.s. NP 1

A Nearly Optimal Lower Bound on the Approximate Degree of AC 0

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

arxiv: v1 [cs.cc] 31 May 2014

Limitations of Algorithm Power

Local Maxima and Improved Exact Algorithm for MAX-2-SAT

The complexity of acyclic subhypergraph problems


More on NP and Reductions

Breaking the Rectangle Bound Barrier against Formula Size Lower Bounds

Quantum Searching. Robert-Jan Slager and Thomas Beuman. 24 november 2009

Simulation of quantum computers with probabilistic models

A Review of Quantum Random Walks and their Algorithmic Applications

Reductions to Graph Isomorphism

Quantum Query Complexity of Boolean Functions with Small On-Sets

2-LOCAL RANDOM REDUCTIONS TO 3-VALUED FUNCTIONS

arxiv: v1 [cs.cc] 12 Feb 2009

Quantum pattern matching fast on average

Quantum Counting. 1 Introduction. Gilles Brassard 1, Peter Høyer 2, and Alain Tapp 1

The Complexity of Maximum. Matroid-Greedoid Intersection and. Weighted Greedoid Maximization

Asymptotic Analysis. Slides by Carl Kingsford. Jan. 27, AD Chapter 2

Computer Science 385 Analysis of Algorithms Siena College Spring Topic Notes: Limitations of Algorithms

arxiv: v1 [cs.ds] 20 Nov 2015

Lower Bounds for Dynamic Connectivity (2004; Pǎtraşcu, Demaine)

Lecture 15: The Hidden Subgroup Problem

Classical and Quantum Algorithms for Finding Cycles

Adversary-Based Parity Lower Bounds with Small Probability Bias

arxiv: v1 [quant-ph] 21 Jun 2011

Quantum algorithms for computing short discrete logarithms and factoring RSA integers

Lecture 17 November 8, 2012

1.1 P, NP, and NP-complete

INSTITUTE OF MATHEMATICS THE CZECH ACADEMY OF SCIENCES. A trade-off between length and width in resolution. Neil Thapen

An Architectural Framework For Quantum Algorithms Processing Unit (QAPU)

arxiv:quant-ph/ v2 26 Apr 2007

Bounds on the Traveling Salesman Problem

On the tightness of the Buhrman-Cleve-Wigderson simulation

Complexity Theory of Polynomial-Time Problems

New Results on Quantum Property Testing

Cell-Probe Proofs and Nondeterministic Cell-Probe Complexity

Lower Bounds of Quantum Search for Extreme Point

U.C. Berkeley CS294: Spectral Methods and Expanders Handout 11 Luca Trevisan February 29, 2016

Transcription:

Improved Quantum Algorithm for Triangle Finding via Combinatorial Arguments François Le Gall The University of Tokyo Technical version available at arxiv:1407.0085 [quant-ph]. Background. Triangle finding is a graph-theoretic problem whose complexity is deeply connected to the complexity of several other computational tasks in theoretical computer science, such as solving path or matrix problems [3, 8, 9, 13, 18, 17, 19]. In its standard version (sometimes called unweighted triangle finding), it asks to find, given an undirected and unweighted graph G = (V, E), three vertices v 1, v 2, v 3 V such that {v 1, v 2 }, {v 1, v 3 } and {v 2, v 3 } are edges of the graph. Problems like triangle finding can be studied in the query complexity setting. In the usual model used to describe the query complexity of such problems, the set of edges E of the graph is unknown but can be accessed through an oracle: given two vertices u and v in V, one query to the oracle outputs one if {u, v} E and zero if {u, v} / E. In the quantum query complexity setting, one further assume that the oracle can be queried in superposition. Besides its intrinsic interest, the triangle finding problem has been one of the main problems that stimulated the development of new techniques in quantum query complexity, and the history of improvement of upper bounds on the query complexity of triangle finding parallels the development of general techniques in the quantum complexity setting, as we explain below. Grover search immediately gives, when applied to triangle finding as a search over the space of triples of vertices of the graph, a quantum algorithm with query complexity O(n 3/2 ). Using amplitude amplification, Buhrman et al. [7] showed how to construct a quantum algorithm for triangle finding with query complexity O(n + nm) for a graph with m edges, giving an improvement for sparse graphs. Combining amplitude amplification with clever combinatorial arguments, Szegedy [16] (see also [12]) constructed a quantum algorithm for triangle finding with query complexity Õ(n10/7 ) = Õ(n1.428... ). 1 The quantum technique that led to the next improvement was the concept of quantum walk search developed by Ambainis [1], which has turned out to be one of the most useful tools for the design of quantum algorithms for search problems. Magniez, Santha and Szegedy [12], using quantum walk search, constructed a quantum algorithm for triangle finding with improved query complexity Õ(n13/10 ). Besides Grover search and quantum walks, a third technique to design quantum query algorithms appeared recently when Reichardt [14] proved that the quantum query complexity of a problem can be found by solving a semi-definite positive program. While this optimization problem in general exponentially many constraints, Belovs [5] then developed a technique known as the learning graph approach to restrict the search space to candidates that automatically satisfy the constraints, thus giving an intuitive and efficient way to obtain a (not necessarily optimal) solution of the original optimization problem. Belovs [5] illustrated the power of this new technique by using it to improve the quantum query complexity of triangle finding to O(n 35/27 ) = O(n 1.296... ). Lee, Magniez and Santha [11] then showed, again using learning graphs, how to further improve this query complexity to O(n 9/7 ) = Õ(n1.285... ), which was the best upper bound on the quantum complexity of triangle finding known before the present work. These two results based on learning graphs actually used a simple notion of learning graphs (referred to as non-adaptive learning graphs in [6]) where the queries done by the algorithm do not depend on the values of prior queries, which implies that the same upper bound O(n 9/7 ) holds for edge-weighted 1 The Õ( ) notation removes poly(log n) factors. 1

versions of the triangle finding problem 2 as well. Jeffery, Kothari and Magniez [10] showed how this complexity can also be achieved, up to polylogarithmic factors, using quantum walks by introducing the concept of nested quantum walks. The best known lower bound on the quantum query complexity of triangle finding is the trivial Ω(n). Belovs and Rosmanis [6] recently showed that any quantum algorithm (i.e., not necessarily based on learning graphs) solving the edge-weighted triangle finding problem requires Ω(n 9/7 / log n) queries. Since a non-adaptive learning graph does not treat differently the unweighted triangle finding problem and its weighted versions, as mentioned above, this lower bound for the weighted case implies that any quantum algorithm for unweighted triangle finding constructed using a non-adaptive learning graph requires Ω(n 9/7 / log n) queries as well, which matches, up to logarithmic factors, the best known upper bound described in the previous paragraph. Practically, this means that, in order to improve by more than a 1/ log n factor the O(n 9/7 )-query upper bound on the quantum query complexity of triangle finding, one need to take in consideration the difference between the unweighted triangle finding problem and its edge-weighted version. Moreover, if the learning graph approach is used, then the learning graph constructed must be adaptive. While a concept of adaptive learning graph has been developed by Belovs and used to design a new quantum algorithm for the k-distinctness problem [4], so far no application of this approach to the triangle finding problem has been discovered. Statement of our result. In this work we show that it is possible to overcome the Ω(n 9/7 / log n) barrier, and obtain the following result. Theorem 1. There exists a quantum algorithm that, given as input the oracle of an unweighted graph G on n vertices, outputs a triangle of G with probability at least 2/3 if a triangle exists, and uses Õ(n5/4 ) queries to the oracle. This result shows, for the first time, that in the quantum setting the standard (i.e., unweighted) triangle finding problem is easier than its edge-weighted versions, and thus sheds light on the fundamental difference between these two problems. Indeed, while in the classical time complexity setting evidences exist suggesting that the unweighted version is easier (see, e.g., [13, 18]), Theorem 1, combined with the lower bound by Belovs and Rosmanis [6], enables us to give a separation between the quantum query complexities of these two problems. Naturally, our result exploits the difference between the triangle finding problem and its weighted versions. Our approach does not rely on learning graphs or nested quantum walks, the techniques that were used to obtain the previous best known upper bound. Instead, it relies on combinatorial ideas that exploit the fact that the graph is unweighted, as needed in any attempt to break the Ω(n 9/7 / log n) barrier, combined with Grover search, quantum search with variable costs [2], and usual quantum walks over Johnson graphs. Our quantum algorithm is highly adaptive, in that all later queries depend on the results of the queries done in at a preliminary stage by the algorithm. This gives another example of separation between the query complexity obtained by adaptive quantum query algorithms and the best query complexity that can be achieved using non-adaptive learning graphs (which is Ω(n 9/7 / log n) for triangle finding, as mentioned above), and thus sheds light on limitations of the non-adaptive learning graph approach for graph-theoretical problems such as triangle finding. Overview of our quantum algorithm. Let G = (V, E) denote the undirected and unweighted graph that is the input of the triangle finding problem, and write n = V. For any set Y V, we use the notation E(Y ) = {{u, v} u, v Y } to represent the set of unordered pairs of elements in Y. For any vertex u V, we denote N G (u) = {v V {u, v} E} the set of neighbors of u. The algorithm first takes a set X V consisting of Θ( n log n) vertices chosen uniformly at random from V, and checks if there exists a triangle of G with a vertex in X. This can be checked, with 2 Weighted versions of the triangle finding problem ask to find three vertices in the graph such that the sum of the weights of the corresponding three edges satisfy some condition (e.g., they sum to zero). 2

high probability, using Grover search in ( ) O X E(V ) = (n Õ 5/4) queries. Define S = u X E(N G(u)). If no triangle has been reported, we know that any triangle of G must have an edge in the set E(V )\S. Note that the above preliminary step has already been used in prior works, in particular related to the design of combinatorial algorithms for Boolean matrix multiplication (e.g., [3, 15]) and even in the design of the Õ(n10/7 )-query quantum algorithm for triangle finding in [12, 16]. We now explain how to check whether E(V ) \ S contains an edge of a triangle or not, which is the novel contribution of our work. For any set Y V and any w V, let us define the set G (X, Y, w) E(Y ) as follows: G (X, Y, w) = E(Y N G (w)) \ S. It is easy to see that, with high probability on the choice of X, this set will be sparse. We will not give the precise definition of sparsity here, but instead describe our algorithm in the following ideal (but still typical) situation: there exists a positive constant c such that G (X, Y, w) c Y 2 n for all Y V and w V. (1) Remember that we now want to check if E(V )\S contains an edge of a triangle. Our key observation is the following. Given a vertex w V and a set B V of size n such that G (X, B, w) is known, we can check if there exists a pair {v 1, v 2 } E(B) \ S such that {v 1, v 2, w} is a triangle of G with ( ) O G (X, B, w) = O ( c B 2 n ) = O(n 1/4 ) queries using Grover search and Condition (1), since such {v 1, v 2 } exists if and only if G (X, B, w) E. The remarkable point here is that, if there were no sparsity condition on G (X, B, w) then this search would require Θ( B 2 ) = Θ( n) queries. This improvement from n to n 1/4 is one of the main reasons why we obtain an algorithm for triangle finding with query complexity Õ(n5/4 ) instead of O(n 3/2 ) using straightforward quantum search. The main difficulty when trying to exploit the above observation is that we not only want now to find a vertex w and a set B for which there exists {v 1, v 2 } E(B) \ S such that {v 1, v 2, w} is a triangle, we also need to construct the set G (X, B, w), which requires additional queries. To deal with this problem, we use a quantum walk over a Johnson graph, which enables us to implement the construction of G (X, B, w) concurrently to the search of B and w. By carefully analyzing the resulting quantum walk algorithm, we can show that the improvement by a factor n 1/4 described in the previous paragraph is still preserved as long as we have enough prior information about the set S when executing the walk. The difficulty now is that loading enough information about S during the execution of the quantum walk is too costly. Moreover, constructing S before executing the quantum walk requires Θ(n 3/2 ) queries, which is too costly as well. To solve this difficulty, we first search, using another quantum walk on another Johnson graph, a set A V of size n 3/4 such that ( w V G(X, A, w) ) E, and concurrently construct the set E(A) \ S. We then do exactly as in the previous paragraph, but taking B as a subset of A instead of as a subset of V. Since G (X, B, w) can be created efficiently from the knowledge of E(A) \ S, and E(A) \ S is available in the memory of the new quantum walk, the problem mentioned in the previous paragraph is solved. By carefully designing the new quantum walk, we can show that its query complexity is sufficiently small. To summarize, we obtain a (four-level) recursive procedure involving quantum walks that checks if E(V ) \ S contains an edge of a triangle, and thus checks if G contains a triangle. Several technical difficulties arise when analyzing the performance of this recursive quantum algorithm and showing that its query complexity is Õ(n5/4 ), especially when Condition (1) does not hold. They are dealt with by using additional quantum techniques, such as quantum search with variable costs [2], estimating the size of the involved sets by random sampling, and proving several concentration bounds. 3

References [1] AMBAINIS, A. Quantum walk algorithm for element distinctness. SIAM Journal on Computing 37, 1 (2007), 210 239. [2] AMBAINIS, A. Quantum search with variable times. Theory of Computing Systems 47, 3 (2010), 786 807. [3] BANSAL, N., AND WILLIAMS, R. Regularity lemmas and combinatorial algorithms. Theory of Computing 8, 1 (2012), 69 94. [4] BELOVS, A. Learning-graph-based quantum algorithm for k-distinctness. In Proceedings of the 53rd Symposium on Foundations of Computer Science (2012), pp. 207 216. [5] BELOVS, A. Span programs for functions with constant-sized 1-certificates: extended abstract. In Proceedings of the 44th Symposium on Theory of Computing (2012), pp. 77 84. [6] BELOVS, A., AND ROSMANIS, A. On the power of non-adaptive learning graphs. In Proceedings of the 28th Conference on Computational Complexity (2013), pp. 44 55. [7] BUHRMAN, H., DÜRR, C., HEILIGMAN, M., HØYER, P., MAGNIEZ, F., SANTHA, M., AND DE WOLF, R. Quantum algorithms for element distinctness. SIAM Journal on Computing 34, 6 (2005), 1324 1330. [8] CZUMAJ, A., AND LINGAS, A. Finding a heaviest vertex-weighted triangle is not harder than matrix multiplication. SIAM Journal on Computing 39, 2 (2009), 431 444. [9] ITAI, A., AND RODEH, M. Finding a minimum circuit in a graph. SIAM Journal on Computing 7, 4 (1978), 413 423. [10] JEFFERY, S., KOTHARI, R., AND MAGNIEZ, F. Nested quantum walks with quantum data structures. In Proceedings of the 24th Annual ACM-SIAM Symposium on Discrete Algorithms (2013), pp. 1474 1485. [11] LEE, T., MAGNIEZ, F., AND SANTHA, M. Improved quantum query algorithms for triangle finding and associativity testing. In Proceedings of the 24th Annual ACM-SIAM Symposium on Discrete Algorithms (2013), pp. 1486 1502. [12] MAGNIEZ, F., SANTHA, M., AND SZEGEDY, M. Quantum algorithms for the triangle problem. SIAM Journal on Computing 37, 2 (2007), 413 424. [13] PATRASCU, M. Towards polynomial lower bounds for dynamic problems. In Proceedings of the 42nd Symposium on Theory of Computing (2010), pp. 603 610. [14] REICHARDT, B. Span programs and quantum query complexity: The general adversary bound is nearly tight for every Boolean function. In Proceedings of the 50th Symposium on Foundations of Computer Science (2009), pp. 544 551. [15] SCHNORR, C.-P., AND SUBRAMANIAN, C. R. Almost optimal (on the average) combinatorial algorithms for Boolean matrix product witnesses, computing the diameter (extended abstract). In Proceedings of the 2nd workshop on Randomization and Approximation Techniques in Computer Science (1998), pp. 218 231. [16] SZEGEDY, M. On the quantum query complexity of detecting triangles in graphs. arxiv:quantph/0310107, 2003. 4

[17] VASSILEVSKA WILLIAMS, V., AND WILLIAMS, R. Subcubic equivalences between path, matrix and triangle problems. In Proceedings of the 51th Symposium on Foundations of Computer Science (2010), pp. 645 654. [18] VASSILEVSKA WILLIAMS, V., AND WILLIAMS, R. Finding, minimizing, and counting weighted subgraphs. SIAM Journal on Computing 42, 3 (2013), 831 854. [19] WILLIAMS, R. Faster all-pairs shortest paths via circuit complexity. In Proceedings of the 46th Symposium on Theory of Computing (2014), pp. 664 673. 5