Comparing Grover’s Quantum Search Algorithm with Classical Algorithm on Solving Satisfiability Problem

Runqian Wang
{"title":"Comparing Grover’s Quantum Search Algorithm with Classical Algorithm on Solving Satisfiability Problem","authors":"Runqian Wang","doi":"10.1109/ISEC52395.2021.9764017","DOIUrl":null,"url":null,"abstract":"The emergence of quantum computing provides us the possibility of solving tasks that might take years classically in just a few minutes. For certain problems, quantum computing exhibits quantum supremacy, meaning that the quantum solution runs exponentially faster than classical algorithms and is able to completely take over classical computers. This high efficiency of quantum computing comes not only from the hardware but also the software, quantum algorithms. The algorithms utilize the qubits to make calculations in order to fulfill specific tasks with the lowest time complexity possible. One such algorithm is named the Grover’s algorithm, which is able to perform database search in $\\mathcal{O}(\\sqrt{N})$, and it runs much faster than the traditional algorithm that takes $\\mathcal{O}(N)$ time to solve the same task. For example, when the task is to find the even integers from N integers, traditional computation will need to run through all of the N integers one by one, making at least N steps of calculation, while by using Grover’s algorithm only around $\\sqrt{N}$ calculations are needed. This exponential speed-up makes Grover’s algorithm one of the most important quantum algorithms. Grover’s algorithm has a wide application in many fields and is able to improve the time complexity exponentially. One task that can be solved using Grover’s algorithm is the satisfiability problem. This type of problem asks the computer to find a set of values (commonly true or false) for several variables such that they satisfy certain constraints. We use k-SAT problems to refer to satisfiability problems with k boolean variables to be determined. Grover’s algorithm can effectively solve the k-SAT problem by performing the database search on $2 ^{N}$ possible states of the variables. The algorithm’s square root optimization on searching helps to improve the efficiency of this solution significantly. Furthermore, this optimization of Grover’s algorithm may play a more important role when k grows larger, and consequently the efficiency of the quantum solution could improve faster relative to the traditional solution. Yet this hypothesis is never tested due to the lack of a general k-SAT quantum algorithm. No quantum algorithms solving k-SAT problems where k is greater than 3 have been proposed, thus no test has been performed to compare the quantum solution and the classical solution on more general k-SAT problems. In this research, we formulate a general quantum solution for k-SAT problem and compare such solution with the best classical algorithm to determine whether and when the quantum algorithm performs better on satisfiability problems. The comparison will be done through both theoretical deduction as well as real-world implementation. At the end of this research, we will determine whether the proposed quantum algorithm outperforms the classical algorithm on solving k-satisfiability problems.","PeriodicalId":329844,"journal":{"name":"2021 IEEE Integrated STEM Education Conference (ISEC)","volume":"82 1 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2021-03-13","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2021 IEEE Integrated STEM Education Conference (ISEC)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/ISEC52395.2021.9764017","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

The emergence of quantum computing provides us the possibility of solving tasks that might take years classically in just a few minutes. For certain problems, quantum computing exhibits quantum supremacy, meaning that the quantum solution runs exponentially faster than classical algorithms and is able to completely take over classical computers. This high efficiency of quantum computing comes not only from the hardware but also the software, quantum algorithms. The algorithms utilize the qubits to make calculations in order to fulfill specific tasks with the lowest time complexity possible. One such algorithm is named the Grover’s algorithm, which is able to perform database search in $\mathcal{O}(\sqrt{N})$, and it runs much faster than the traditional algorithm that takes $\mathcal{O}(N)$ time to solve the same task. For example, when the task is to find the even integers from N integers, traditional computation will need to run through all of the N integers one by one, making at least N steps of calculation, while by using Grover’s algorithm only around $\sqrt{N}$ calculations are needed. This exponential speed-up makes Grover’s algorithm one of the most important quantum algorithms. Grover’s algorithm has a wide application in many fields and is able to improve the time complexity exponentially. One task that can be solved using Grover’s algorithm is the satisfiability problem. This type of problem asks the computer to find a set of values (commonly true or false) for several variables such that they satisfy certain constraints. We use k-SAT problems to refer to satisfiability problems with k boolean variables to be determined. Grover’s algorithm can effectively solve the k-SAT problem by performing the database search on $2 ^{N}$ possible states of the variables. The algorithm’s square root optimization on searching helps to improve the efficiency of this solution significantly. Furthermore, this optimization of Grover’s algorithm may play a more important role when k grows larger, and consequently the efficiency of the quantum solution could improve faster relative to the traditional solution. Yet this hypothesis is never tested due to the lack of a general k-SAT quantum algorithm. No quantum algorithms solving k-SAT problems where k is greater than 3 have been proposed, thus no test has been performed to compare the quantum solution and the classical solution on more general k-SAT problems. In this research, we formulate a general quantum solution for k-SAT problem and compare such solution with the best classical algorithm to determine whether and when the quantum algorithm performs better on satisfiability problems. The comparison will be done through both theoretical deduction as well as real-world implementation. At the end of this research, we will determine whether the proposed quantum algorithm outperforms the classical algorithm on solving k-satisfiability problems.
Grover量子搜索算法与经典算法求解可满足性问题的比较
量子计算的出现为我们提供了在几分钟内解决可能需要几年时间的任务的可能性。对于某些问题,量子计算表现出量子霸权,这意味着量子解决方案的运行速度比经典算法快得多,并且能够完全取代经典计算机。量子计算的高效率不仅来自硬件,也来自软件——量子算法。这些算法利用量子比特进行计算,以便以尽可能低的时间复杂度完成特定任务。其中一种算法被称为Grover算法,它能够在$\mathcal{O}(\sqrt{N})$中执行数据库搜索,并且它比传统算法运行得快得多,传统算法需要$\mathcal{O}(N)$时间来解决相同的任务。例如,当任务是从N个整数中找到偶数时,传统的计算将需要逐一遍历所有N个整数,进行至少N步计算,而使用Grover算法只需要大约$\sqrt{N}$计算。这种指数级的加速使得格罗弗算法成为最重要的量子算法之一。Grover算法在许多领域都有广泛的应用,它能成倍地提高时间复杂度。一个可以用格罗弗算法解决的任务是可满足性问题。这种类型的问题要求计算机为几个变量找到一组值(通常为真或假),以便它们满足某些约束。我们用k- sat问题来指代有k个待确定布尔变量的可满足性问题。Grover算法通过对变量的$2 ^{N}$个可能状态进行数据库搜索,可以有效地解决k-SAT问题。该算法在搜索上的平方根优化有助于显著提高求解效率。此外,当k变大时,这种Grover算法的优化可能会发挥更重要的作用,因此量子解的效率相对于传统解可以更快地提高。然而,由于缺乏通用的k-SAT量子算法,这一假设从未得到验证。目前还没有提出解决k大于3的k- sat问题的量子算法,因此没有对更一般的k- sat问题的量子解和经典解进行比较的测试。在本研究中,我们制定了k-SAT问题的一般量子解,并将该解与最佳经典算法进行比较,以确定量子算法是否以及何时在可满足性问题上表现更好。比较将通过理论推导和现实世界的实施来完成。在本研究的最后,我们将确定所提出的量子算法在解决k-可满足性问题上是否优于经典算法。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信