Implementation of Grover’s Algorithm & Bernstein-Vazirani Algorithm with IBM Qiskit

Yang-Che Liu, Mei-Feng Liu
{"title":"Implementation of Grover’s Algorithm & Bernstein-Vazirani Algorithm with IBM Qiskit","authors":"Yang-Che Liu, Mei-Feng Liu","doi":"10.33093/jiwe.2024.3.1.6","DOIUrl":null,"url":null,"abstract":"Quantum logic gates differ from classical logic gates as the former involves quantum operators. The conventional gates such as AND, OR, NOT etc., are generally classified as classical gates, however, some of the quantum gates are known as Pauli gates, Toffoli gates and Hadamard gates, respectively. Normally classical states only involve 0 and 1, whereas quantum states involve the superpositions of 0 and 1. Hence, underlying principles of algorithm implementation for classical logic gate and quantum logic gate are indeed different. In this paper, we introduce significant concepts of quantum computations, analyse the discrepancy between classical and quantum gates, compare quantum algorithms using Qiskit against equivalent classical algorithms and analyse their performance in terms of runtime.","PeriodicalId":484462,"journal":{"name":"Journal of Informatics and Web Engineering","volume":"44 1","pages":""},"PeriodicalIF":0.0000,"publicationDate":"2024-02-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Journal of Informatics and Web Engineering","FirstCategoryId":"0","ListUrlMain":"https://doi.org/10.33093/jiwe.2024.3.1.6","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Quantum logic gates differ from classical logic gates as the former involves quantum operators. The conventional gates such as AND, OR, NOT etc., are generally classified as classical gates, however, some of the quantum gates are known as Pauli gates, Toffoli gates and Hadamard gates, respectively. Normally classical states only involve 0 and 1, whereas quantum states involve the superpositions of 0 and 1. Hence, underlying principles of algorithm implementation for classical logic gate and quantum logic gate are indeed different. In this paper, we introduce significant concepts of quantum computations, analyse the discrepancy between classical and quantum gates, compare quantum algorithms using Qiskit against equivalent classical algorithms and analyse their performance in terms of runtime.
用 IBM Qiskit 实现格罗弗算法和伯恩斯坦-瓦齐拉尼算法
量子逻辑门与经典逻辑门不同,前者涉及量子算子。传统的逻辑门,如 AND、OR、NOT 等,一般被归类为经典逻辑门,但一些量子逻辑门则分别被称为保利逻辑门、托福利逻辑门和哈达玛逻辑门。通常,经典状态只涉及 0 和 1,而量子状态则涉及 0 和 1 的叠加。因此,经典逻辑门和量子逻辑门的算法实现原理确实不同。本文介绍了量子计算的重要概念,分析了经典门与量子门之间的差异,比较了使用 Qiskit 的量子算法与等效经典算法,并分析了它们在运行时间方面的性能。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术文献互助群
群 号:604180095
Book学术官方微信