skip to main content
10.1145/3579142.3594298acmconferencesArticle/Chapter ViewAbstractPublication PagesmodConference Proceedingsconference-collections
research-article

Constructing Optimal Bushy Join Trees by Solving QUBO Problems on Quantum Hardware and Simulators

Published:18 June 2023Publication History

ABSTRACT

The join order is one of the most important factors that impact the speed of query processing. Its optimization is known to be NP-hard, such that it is worth investigating the benefits of utilizing quantum computers for optimizing join orders. Hence in this paper, we propose to model the join order problem as quadratic unconstrained binary optimization (QUBO) problem to be solved with various quantum approaches like QAOA, VQE, simulated annealing and quantum annealing. In this paper, we will show the enhanced performance using our QUBO formulation to find valid and optimal shots for real-world queries joining three, four and five relations on D-Wave quantum annealer. The highlight of this study will demonstrate that we were able to generate valid and optimal join orders for five relations using the D-Wave quantum annealer, with values of about 12% and 0.27% respectively and we were able to find the optimal bushy join trees. Experiments for the gate-based simulations were able to produce optimized join order for three and four relations including bushy trees using QAOA and VQE algorithms.

References

  1. 2023. Row estimation examples. https://www.postgresql.org/docs/current/row-estimation-examples.htmlGoogle ScholarGoogle Scholar
  2. Tameem Albash and Daniel A Lidar. 2018. Adiabatic quantum computation. Reviews of Modern Physics 90, 1 (2018), 015002.Google ScholarGoogle ScholarCross RefCross Ref
  3. David Amaro, Carlo Modica, Matthias Rosenkranz, Mattia Fiorentini, Marcello Benedetti, and Michael Lubasch. 2022. Filtering variational quantum algorithms for combinatorial optimization. Quantum Science and Technology 7, 1 (2022), 015021.Google ScholarGoogle ScholarCross RefCross Ref
  4. Rhonda Au-Yeung, Nicholas Chancellor, and Pascal Halffmann. 2022. NP-hard but no longer hard to solve? Using quantum computing to tackle optimization problems. arXiv 2212.10990 (2022). Google ScholarGoogle ScholarCross RefCross Ref
  5. Dimitris Bertsimas and John Tsitsiklis. 1993. Simulated annealing. Statistical science 8, 1 (1993), 10--15.Google ScholarGoogle Scholar
  6. Jacob Biamonte, Peter Wittek, Nicola Pancotti, Patrick Rebentrost, Nathan Wiebe, and Seth Lloyd. 2017. Quantum machine learning. Nature 549, 7671 (2017), 195--202.Google ScholarGoogle Scholar
  7. Olivier Carnal and Jürgen Mlynek. 1991. Young's double-slit experiment with atoms: A simple atom interferometer. Physical review letters 66, 21 (1991), 2689.Google ScholarGoogle Scholar
  8. Marco Cerezo, Andrew Arrasmith, Ryan Babbush, Simon C Benjamin, Suguru Endo, Keisuke Fujii, Jarrod R McClean, Kosuke Mitarai, Xiao Yuan, Lukasz Cincio, et al. 2021. Variational quantum algorithms. Nature Reviews Physics 3, 9 (2021), 625--644.Google ScholarGoogle ScholarCross RefCross Ref
  9. Pablo Díez-Valle, Diego Porras, and Juan José García-Ripoll. 2021. Quantum variational optimization: The role of entanglement and problem hardness. Phys. Rev. A 104 (Dec 2021), 062426. Issue 6. Google ScholarGoogle ScholarCross RefCross Ref
  10. Christoph Durr and Peter Hoyer. 1996. A quantum algorithm for finding the minimum. arXiv preprint quant-ph/9607014 (1996).Google ScholarGoogle Scholar
  11. Edward Farhi, Jeffrey Goldstone, and Sam Gutmann. 2014. A quantum approximate optimization algorithm. arXiv preprint arXiv:1411.4028 (2014).Google ScholarGoogle Scholar
  12. Richard P Feynman. 2018. Simulating physics with computers. In Feynman and computation. CRC Press, 133--153.Google ScholarGoogle Scholar
  13. Aleta Berk Finnila, Maria A Gomez, C Sebenik, Catherine Stenson, and Jimmie D Doll. 1994. Quantum annealing: A new method for minimizing multidimensional functions. Chemical physics letters 219, 5--6 (1994), 343--348.Google ScholarGoogle Scholar
  14. Fred Glover, Gary Kochenberger, and Yu Du. 2018. A tutorial on formulating and using QUBO models. arXiv preprint arXiv:1811.11538 (2018).Google ScholarGoogle Scholar
  15. Fred Glover, Gary Kochenberger, and Yu Du. 2019. A Tutorial on Formulating and Using QUBO Models. arXiv:1811.11538 [cs.DS]Google ScholarGoogle Scholar
  16. David J Griffiths and Darrell F Schroeter. 2018. Introduction to quantum mechanics. Cambridge university press.Google ScholarGoogle Scholar
  17. Lov K Grover. 1996. A fast quantum mechanical algorithm for database search. In Proceedings of the twenty-eighth annual ACM symposium on Theory of computing. 212--219.Google ScholarGoogle ScholarDigital LibraryDigital Library
  18. Lov K Grover. 1997. Quantum mechanics helps in searching for a needle in a haystack. Physical review letters 79, 2 (1997), 325.Google ScholarGoogle Scholar
  19. Tadashi Kadowaki and Hidetoshi Nishimori. 1998. Quantum annealing in the transverse Ising model. Physical Review E 58, 5 (1998), 5355.Google ScholarGoogle ScholarCross RefCross Ref
  20. Scott Kirkpatrick, C Daniel Gelatt Jr, and Mario P Vecchi. 1983. Optimization by simulated annealing. science 220, 4598 (1983), 671--680.Google ScholarGoogle Scholar
  21. Stephen Klassen. 2011. The photoelectric effect: Reconstructing the story for the physics classroom. Science & Education 20 (2011), 719--731.Google ScholarGoogle ScholarCross RefCross Ref
  22. Wen-Yang Ku and J Christopher Beck. 2016. Mixed integer programming models for job shop scheduling: A computational analysis. Computers & Operations Research 73 (2016), 165--173.Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. Mark W. Lewis and Fred W. Glover. 2017. Quadratic Unconstrained Binary Optimization Problem Preprocessing: Theory and Empirical Analysis. CoRR abs/1705.09844 (2017). arXiv:1705.09844 http://arxiv.org/abs/1705.09844Google ScholarGoogle Scholar
  24. Nana Li, Yujuan Liu, Yongfeng Dong, and Junhua Gu. 2008. Application of ant colony optimization algorithm to multi-join query optimization. In Advances in Computation and Intelligence: Third International Symposium, ISICA 2008 Wuhan, China, December 19-21, 2008 Proceedings 3. Springer, 189--197.Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. Ryan Marcus and Olga Papaemmanouil. 2018. Deep reinforcement learning for join order enumeration. In Proceedings of the First International Workshop on Exploiting Artificial Intelligence Techniques for Data Management. 1--4.Google ScholarGoogle ScholarDigital LibraryDigital Library
  26. Sam McArdle, Tyson Jones, Suguru Endo, Ying Li, Simon C Benjamin, and Xiao Yuan. 2019. Variational ansatz-based quantum simulation of imaginary time evolution. npj Quantum Information 5, 1 (2019), 75.Google ScholarGoogle Scholar
  27. Xiao Mingyao and Li Xiongfei. 2015. Embedded database query optimization algorithm based on particle swarm optimization. In 2015 Seventh International Conference on Measuring Technology and Mechatronics Automation. IEEE, 429--432.Google ScholarGoogle ScholarCross RefCross Ref
  28. Florian Neukart, Gabriele Compostella, Christian Seidel, David Von Dollen, Sheir Yarkoni, and Bob Parney. 2017. Traffic flow optimization using a quantum annealer. Frontiers in ICT 4 (2017), 29.Google ScholarGoogle ScholarCross RefCross Ref
  29. Michael A Nielsen and Isaac Chuang. 2002. Quantum computation and quantum information.Google ScholarGoogle Scholar
  30. Christos Papalitsas, Theodore Andronikos, Konstantinos Giannakis, Georgia Theocharopoulou, and Sofia Fanarioti. 2019. A QUBO model for the traveling salesman problem with time windows. Algorithms 12, 11 (2019), 224.Google ScholarGoogle ScholarCross RefCross Ref
  31. Alberto Peruzzo, Jarrod McClean, Peter Shadbolt, Man-Hong Yung, Xiao-Qi Zhou, Peter J Love, Alán Aspuru-Guzik, and Jeremy L O'brien. 2014. A variational eigenvalue solver on a photonic quantum processor. Nature communications 5, 1 (2014), 4213.Google ScholarGoogle Scholar
  32. Daniel E Platt. 1992. A modern analysis of the Stern-Gerlach experiment. American Journal of Physics 60, 4 (1992), 306--308.Google ScholarGoogle ScholarCross RefCross Ref
  33. John Preskill. 2018. Quantum computing in the NISQ era and beyond. Quantum 2 (2018), 79.Google ScholarGoogle ScholarCross RefCross Ref
  34. Jun John Sakurai and Eugene D Commins. 1995. Modern quantum mechanics, revised edition.Google ScholarGoogle Scholar
  35. Wolfgang Scheufele and Guido Moerkotte. 1996. Constructing optimal bushy processing trees for join queries is np-hard. Technical Report. https://pi3.informatik.uni-mannheim.de/~moer/Publications/MA-96-11.pdf Technical reports, Universität Mannheim.Google ScholarGoogle Scholar
  36. Maria Schuld, Ilya Sinayskiy, and Francesco Petruccione. 2015. An introduction to quantum machine learning. Contemporary Physics 56, 2 (2015), 172--185.Google ScholarGoogle ScholarCross RefCross Ref
  37. Manuel Schönberger, Stefanie Scherzinger, and Wolfgang Mauerer. 2023. Ready to Leap (by Co-Design)? Join Order Optimisation on Quantum Hardware. In Proceedings of ACM SIGMOD/PODS International Conference on Management of Data.Google ScholarGoogle ScholarDigital LibraryDigital Library
  38. P Griffiths Selinger, Morton M Astrahan, Donald D Chamberlin, Raymond A Lorie, and Thomas G Price. 1979. Access path selection in a relational database management system. In Proceedings of the 1979 ACM SIGMOD international conference on Management of data. 23--34.Google ScholarGoogle ScholarDigital LibraryDigital Library
  39. Peter W Shor. 1994. Algorithms for quantum computation: discrete logarithms and factoring. In Proceedings 35th annual symposium on foundations of computer science. Ieee, 124--134.Google ScholarGoogle ScholarDigital LibraryDigital Library
  40. Michael Steinbrunn, Guido Moerkotte, and Alfons Kemper. 1997. Heuristic and randomized optimization for the join ordering problem. The VLDB Journal 6 (1997), 191--208.Google ScholarGoogle ScholarDigital LibraryDigital Library
  41. Arun Swami and Anoop Gupta. 1988. Optimization of large join queries. In Proceedings of the 1988 ACM SIGMOD international conference on Management of data. 8--17.Google ScholarGoogle ScholarDigital LibraryDigital Library
  42. Immanuel Trummer and Christoph Koch. 2015. Multiple query optimization on the D-Wave 2X adiabatic quantum computer. arXiv preprint arXiv:1510.06437 (2015).Google ScholarGoogle Scholar
  43. Tobias Winker, Sven Groppe, Valter Uotila, Zhengtong Yan, Jiaheng Lu, Maja Franz, and Wolfgang Mauerer. 2023. Quantum Machine Learning: Foundation, New Techniques, and Opportunities for Database Research. In Proceedings of ACM SIGMOD/PODS International Conference on Management of Data (SIGMOD). Google ScholarGoogle ScholarDigital LibraryDigital Library
  44. Tobias Winker, Umut Çalikyilmaz, Le Gruenwald, and Sven Groppe. 2023. Quantum Machine Learning for Join Order Optimization using Variational Quantum Circuits. In Proceedings of the International Workshop on Big Data in Emergent Distributed Environments (BiDEDE), Seattle, WA, USA. Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    BiDEDE '23: Proceedings of the International Workshop on Big Data in Emergent Distributed Environments
    June 2023
    56 pages
    ISBN:9798400700934
    DOI:10.1145/3579142

    Copyright © 2023 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 18 June 2023

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article

    Acceptance Rates

    BiDEDE '23 Paper Acceptance Rate7of15submissions,47%Overall Acceptance Rate25of47submissions,53%

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader