Skip to main content

Quantum Algorithms for Matrix Products over Semirings

  • Conference paper
Algorithm Theory – SWAT 2014 (SWAT 2014)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 8503))

Included in the following conference series:

Abstract

In this paper we construct quantum algorithms for matrix products over several algebraic structures called semirings, including the ( max , min )-matrix product, the distance matrix product and the Boolean matrix product. In particular, we obtain the following results.

  • We construct a quantum algorithm computing the product of two n×n matrices over the ( max , min ) semiring with time complexity O(n 2.473). In comparison, the best known classical algorithm for the same problem has complexity O(n 2.687). As an application, we obtain a O(n 2.473)-time quantum algorithm for computing the all-pairs bottleneck paths of a graph with n vertices, while classically the best upper bound for this task is O(n 2.687).

  • We construct a quantum algorithm computing the ℓ most significant bits of each entry of the distance product of two n×n matrices in time O(20.64ℓ n 2.46). In comparison, prior to the present work, the best known classical algorithm for the same problem had complexity O(2 n 2.69). Our techniques lead to further improvements for classical algorithms as well, reducing the classical complexity to O(20.96ℓ n 2.69), which gives a sublinear dependency on 2.

The above two algorithms are the first quantum algorithms that perform better than the \(\tilde O(n^{5/2})\)-time straightforward quantum algorithm based on quantum search for matrix multiplication over these semirings. We also consider the Boolean semiring, and construct a quantum algorithm computing the product of two n×n Boolean matrices that outperforms the best known classical algorithms for sparse matrices.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Amossen, R.R., Pagh, R.: Faster join-projects and sparse matrix multiplications. In: Proceedings of ICDT, pp. 121–126 (2009)

    Google Scholar 

  2. Boyer, M., Brassard, G., Høyer, P., Tapp, A.: Tight bounds on quantum searching. Fortschritte der Physik 46(4-5), 493–505 (1998)

    Article  Google Scholar 

  3. Buhrman, H., Špalek, R.: Quantum verification of matrix products. In: Proceedings of SODA, pp. 880–889 (2006)

    Google Scholar 

  4. Bürgisser, P., Clausen, M., Shokrollahi, M.A.: Algebraic complexity theory. Springer (1997)

    Google Scholar 

  5. Duan, R., Pettie, S.: Fast algorithms for (max, min)-matrix multiplication and bottleneck shortest paths. In: Proceedings of SODA, pp. 384–391 (2009)

    Google Scholar 

  6. Dubois, D., Prade, H.: Fuzzy sets and systems: Theory and applications. Academic Press (1980)

    Google Scholar 

  7. Dürr, C., Høyer, P.: A quantum algorithm for finding the minimum. arXiv:quant-ph/9607014 (1996)

    Google Scholar 

  8. Grover, L.K.: A fast quantum mechanical algorithm for database search. In: Proceedings of STOC, pp. 212–219 (1996)

    Google Scholar 

  9. Huang, X., Pan, V.Y.: Fast rectangular matrix multiplication and applications. Journal of Complexity 14(2), 257–299 (1998)

    Article  MATH  MathSciNet  Google Scholar 

  10. Jeffery, S., Kothari, R., Magniez, F.: Improving quantum query complexity of Boolean matrix multiplication using graph collision. In: Czumaj, A., Mehlhorn, K., Pitts, A., Wattenhofer, R. (eds.) ICALP 2012, Part I. LNCS, vol. 7391, pp. 522–532. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  11. Le Gall, F.: Faster algorithms for rectangular matrix multiplication. In: Proceedings of FOCS, pp. 514–523 (2012)

    Google Scholar 

  12. Le Gall, F.: Improved output-sensitive quantum algorithms for Boolean matrix multiplication. In: Proceedings of SODA, pp. 1464–1476 (2012)

    Google Scholar 

  13. Le Gall, F.: A time-efficient output-sensitive quantum algorithm for Boolean matrix multiplication. In: Chao, K.-M., Hsu, T.-S., Lee, D.-T. (eds.) ISAAC 2012. LNCS, vol. 7676, pp. 639–648. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  14. Le Gall, F.: Powers of tensors and fast matrix multiplication. In: Proceedings of ISSAC (to appear, 2014)

    Google Scholar 

  15. Le Gall, F., Nishimura, H.: Quantum algorithms for matrix products over semirings. Full version of the present paper, available as arXiv:1310.3898

    Google Scholar 

  16. Magniez, F., Santha, M., Szegedy, M.: Quantum algorithms for the triangle problem. SIAM Journal on Computing 37(2), 413–424 (2007)

    Article  MATH  MathSciNet  Google Scholar 

  17. Matoušek, J.: Computing dominances in E n. Information Processing Letters 38(5), 277–278 (1991)

    Article  MATH  MathSciNet  Google Scholar 

  18. Shapira, A., Yuster, R., Zwick, U.: All-pairs bottleneck paths in vertex weighted graphs. In: Proceedings of SODA, pp. 978–985 (2007)

    Google Scholar 

  19. Vassilevska, V.: Efficient Algorithms for Path Problems in Weighted Graphs. PhD thesis, Carnegie Mellon University (2008)

    Google Scholar 

  20. Vassilevska, V., Williams, R.: Finding a maximum weight triangle in n 3 − δ time, with applications. In: Proceedings of STOC, pp. 225–231 (2006)

    Google Scholar 

  21. Vassilevska, V., Williams, R., Yuster, R.: All pairs bottleneck paths and max-min matrix products in truly subcubic time. Theory of Computing 5(1), 173–189 (2009)

    Article  MathSciNet  Google Scholar 

  22. Vassilevska Williams, V.: Multiplying matrices faster than Coppersmith-Winograd. In: Proceedings of STOC, pp. 887–898 (2012)

    Google Scholar 

  23. Yuster, R.: Efficient algorithms on sets of permutations, dominance, and real-weighted APSP. In: Proceedings of SODA, pp. 950–957 (2009)

    Google Scholar 

  24. Yuster, R., Zwick, U.: Fast sparse matrix multiplication. ACM Transactions on Algorithms 1(1), 2–13 (2005)

    Article  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2014 Springer International Publishing Switzerland

About this paper

Cite this paper

Le Gall, F., Nishimura, H. (2014). Quantum Algorithms for Matrix Products over Semirings. In: Ravi, R., Gørtz, I.L. (eds) Algorithm Theory – SWAT 2014. SWAT 2014. Lecture Notes in Computer Science, vol 8503. Springer, Cham. https://doi.org/10.1007/978-3-319-08404-6_29

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-08404-6_29

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-08403-9

  • Online ISBN: 978-3-319-08404-6

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics