Abstract
We show that the quantum query complexity of detecting if an n-vertex graph contains a triangle is \(O(n^{9/7})\). This improves the previous best algorithm of Belovs (Proceedings of 44th symposium on theory of computing conference, pp 77–84, 2012) making \(O(n^{35/27})\) queries. For the problem of determining if an operation \(\circ : S \times S \rightarrow S\) is associative, we give an algorithm making \(O(|S|^{10/7})\) queries, the first improvement to the trivial \(O(|S|^{3/2})\) application of Grover search. Our algorithms are designed using the learning graph framework of Belovs. We give a family of algorithms for detecting constant-sized subgraphs, which can possibly be directed and colored. These algorithms are designed in a simple high-level language; our main theorem shows how this high-level language can be compiled as a learning graph and gives the resulting complexity. The key idea to our improvements is to allow more freedom in the parameters of the database kept by the algorithm.




Similar content being viewed by others
Notes
code is available at https://github.com/troyjlee/learning_graph_lp
References
Belovs, A., Lee, T.: Quantum algorithm for k-distinctness with prior knowledge on the input. In: Technical Report arXiv:1108.3022, arXiv (2011)
Belovs, A., Rosmanis, A.: On the power of non-adaptive learning graphs. In: Proceedings of the 28th IEEE Conference on Computational Complexity (2013)
Belovs, A.: Learning-graph-based quantum algorithm for k-distinctness. In: Prooceedings of 53rd Annual IEEE Symposium on Foundations of Computer Science (2012)
Belovs, A.: Span programs for functions with constant-sized 1-certificates. In: Proceedings of 44th Symposium on Theory of Computing Conference, pp. 77–84 (2012)
Dörn, S., Thierauf, T.: The quantum complexity of group testing. In: Proceedings of the 34th Conference on Current Trends in Theory and Practice of Computer Science, pp. 506–518 (2008)
Grover, L.: A fast quantum mechanical algorithm for database search. In: Proceedings of 28th ACM Symposium on the Theory of Computing, pp. 212–219 (1996)
Høyer, P., Lee, T., Špalek, R.: Negative weights make adversaries stronger. In: Proceedings of 39th ACM Symposium on Theory of Computing, pp. 526–535 (2007)
Høyer, P., Špalek, R.: Lower bounds on quantum query complexity. Bull. Eur. Assoc. Theor. Comput. Sci. 87 (2005). Also arXiv report quant-ph/0509153v1
Jeffery, S., Kothari, R., Magniez, F.: Nested quantum walks with quantum data structures. In: Proceedings of the 24th ACM-SIAM Symposium on Discrete Algorithms (2013)
Kothari, R.: Personal Communication (2011)
Le Gall, F.: Improved quantum algorithm for triangle finding via combinatorial arguments. In: Proceedings of the 55th Annual IEEE Symposium on Foundations of Computer Science, pp. 216–225 (2014)
Lee, T., Magniez, F., Santha, M.: A learning graph based quantum query algorithm for finding constant-size subgraphs. Chic. J. Theor. Comput. Sci. (2012). doi:10.4086/cjtcs.2012.010
Magniez, F., Santha, M., Szegedy, M.: Quantum algorithms for the triangle problem. SIAM J. Comput. 37(2), 413–424 (2007)
Rajagopalan, S., Schulman, L.: Verification of identities. SIAM J. Comput. 29(4), 1155–1163 (2000)
Reichardt, B.: Reflections for quantum query algorithms. In: Proceedings of 22nd ACM-SIAM Symposium on Discrete Algorithms, pp. 560–569 (2011)
Shor, P.: Algorithms for quantum computation: discrete logarithm and factoring. SIAM J. Comput. 26(5), 1484–1509 (1997)
Zhu, Y.: Quantum query complexity of constant-sized subgraph containment. Int. J. Quantum Inf. 10(3), 1250019 (2012)
Acknowledgments
We would like to thank Aleksandrs Belovs for discussions and comments on an earlier draft of this work, and the anonymous referees for their detailed comments which greatly improved the exposition.
Author information
Authors and Affiliations
Corresponding author
Additional information
Partially supported by the French ANR Blanc project ANR-12-BS02-005 (RDAM), the European Commission IST STREP project Quantum Algorithms (QALGO) 600700, and the Singapore National Research Foundation under NRF RF Award No. NRF-NRFF2013-13. Research at the Centre for Quantum Technologies is funded by the Singapore Ministry of Education and the National Research Foundation.
Rights and permissions
About this article
Cite this article
Lee, T., Magniez, F. & Santha, M. Improved Quantum Query Algorithms for Triangle Detection and Associativity Testing. Algorithmica 77, 459–486 (2017). https://doi.org/10.1007/s00453-015-0084-9
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00453-015-0084-9