Quantum Algorithm for the Triangle Problem

We present a new quantum algorithm that either finds a triangle (a copy of K3) in an undirected graph G on n nodes, or it outputs “reject” if G is triangle free. The algorithm uses O(n) queries, and it is based on a new design concept of Ambainis [Amb03] that incorporates the benefits of quantum walks into Grover search [Gro96]. The algorithm both improves on, and is simpler than a recent algorithm of Szegedy [Sze03] which has Õ(n) query complexity. The Triangle Problem was first treated in [BDH01], where an algorithm with O( √ n|E|) query complexity was presented (here |E| is the number of edges of G).

[1]  Andris Ambainis,et al.  Quantum lower bounds by quantum arguments , 2000, STOC '00.

[2]  Lov K. Grover A fast quantum mechanical algorithm for database search , 1996, STOC '96.

[3]  M. Szegedy On the Quantum Query Complexity of Detecting Triangles in Graphs , 2003, quant-ph/0310107.

[4]  Andris Ambainis,et al.  Quantum walk algorithm for element distinctness , 2003, 45th Annual IEEE Symposium on Foundations of Computer Science.

[5]  Ronald de Wolf,et al.  Quantum lower bounds by polynomials , 1998, Proceedings 39th Annual Symposium on Foundations of Computer Science (Cat. No.98CB36280).

[6]  D. Deutsch,et al.  Rapid solution of problems by quantum computation , 1992, Proceedings of the Royal Society of London. Series A: Mathematical and Physical Sciences.

[7]  John Watrous Quantum Simulations of Classical Random Walks and Undirected Graph Connectivity , 2001, J. Comput. Syst. Sci..

[8]  D. Deutsch Quantum theory, the Church–Turing principle and the universal quantum computer , 1985, Proceedings of the Royal Society of London. A. Mathematical and Physical Sciences.

[9]  G. Brassard,et al.  Quantum Amplitude Amplification and Estimation , 2000, quant-ph/0005055.

[10]  Andris Ambainis,et al.  Quantum walks on graphs , 2000, STOC '01.

[11]  Frédéric Magniez,et al.  Quantum algorithms for element distinctness , 2000, Proceedings 16th Annual IEEE Conference on Computational Complexity.

[12]  Andris Ambainis,et al.  One-dimensional quantum walks , 2001, STOC '01.