QIn: Enabling Formal Methods to Deal with Quantum Circuits

Jonas Klamroth, Bernhard Beckert, Max Scheerer, Oliver Denninger
{"title":"QIn: Enabling Formal Methods to Deal with Quantum Circuits","authors":"Jonas Klamroth, Bernhard Beckert, Max Scheerer, Oliver Denninger","doi":"10.1109/QSW59989.2023.00029","DOIUrl":null,"url":null,"abstract":"Quantum computers open up new fields of application for hard-to-compute problems due to potential super-polynomial speedup. The design of quantum algorithms is complex and thus error-prone, which makes them a prime target for formal methods. We present our tool QIn to translate quantum circuits into a classical host language (Java). As a result, we can use any tool developed for the host language – and thereby leverage the full power of available formal methods for that language to reason about quantum circuits and create a verification/validation toolchain. Furthermore, QIn enables us to reason about hybrid programs, consisting of classical code and quantum circuits. This is crucial as, for the time being, only single subroutines of a program will be implemented on quantum computers. To show the possibilities of our approach, we present an example of a toolchain based on QIn. This toolchain relies on a software bounded-model checker and can prove the correctness of hybrid programs combining the host language Java with quantum circuits. We use the Java Modeling Language (JML) as the specification language and show the feasibility of our approach on several examples including a bounded version of Shor’s algorithm.","PeriodicalId":254476,"journal":{"name":"2023 IEEE International Conference on Quantum Software (QSW)","volume":"59 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2023 IEEE International Conference on Quantum Software (QSW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/QSW59989.2023.00029","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

Quantum computers open up new fields of application for hard-to-compute problems due to potential super-polynomial speedup. The design of quantum algorithms is complex and thus error-prone, which makes them a prime target for formal methods. We present our tool QIn to translate quantum circuits into a classical host language (Java). As a result, we can use any tool developed for the host language – and thereby leverage the full power of available formal methods for that language to reason about quantum circuits and create a verification/validation toolchain. Furthermore, QIn enables us to reason about hybrid programs, consisting of classical code and quantum circuits. This is crucial as, for the time being, only single subroutines of a program will be implemented on quantum computers. To show the possibilities of our approach, we present an example of a toolchain based on QIn. This toolchain relies on a software bounded-model checker and can prove the correctness of hybrid programs combining the host language Java with quantum circuits. We use the Java Modeling Language (JML) as the specification language and show the feasibility of our approach on several examples including a bounded version of Shor’s algorithm.
秦:使形式化方法能够处理量子电路
由于潜在的超多项式加速,量子计算机为难以计算的问题开辟了新的应用领域。量子算法的设计是复杂的,因此容易出错,这使它们成为形式化方法的主要目标。我们提出了将量子电路翻译成经典宿主语言(Java)的工具QIn。因此,我们可以使用为宿主语言开发的任何工具,从而利用该语言可用的正式方法的全部功能来推理量子电路并创建验证/验证工具链。此外,QIn使我们能够推理由经典代码和量子电路组成的混合程序。这是至关重要的,因为目前,只有一个程序的单个子程序将在量子计算机上实现。为了展示我们的方法的可能性,我们给出了一个基于秦的工具链示例。该工具链依赖于软件有界模型检查器,可以证明将宿主语言Java与量子电路相结合的混合程序的正确性。我们使用Java建模语言(JML)作为规范语言,并在几个示例上展示了我们方法的可行性,其中包括shoor算法的有界版本。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约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学术官方微信