Twist: sound reasoning for purity and entanglement in Quantum programs

Author:

Yuan Charles1ORCID,McNally Christopher1ORCID,Carbin Michael1ORCID

Affiliation:

1. Massachusetts Institute of Technology, USA

Abstract

Quantum programming languages enable developers to implement algorithms for quantum computers that promise computational breakthroughs in classically intractable tasks. Programming quantum computers requires awareness of entanglement , the phenomenon in which measurement outcomes of qubits are correlated. Entanglement can determine the correctness of algorithms and suitability of programming patterns. In this work, we formalize purity as a central tool for automating reasoning about entanglement in quantum programs. A pure expression is one whose evaluation is unaffected by the measurement outcomes of qubits that it does not own, implying freedom from entanglement with any other expression in the computation. We present Twist, the first language that features a type system for sound reasoning about purity. The type system enables the developer to identify pure expressions using type annotations. Twist also features purity assertion operators that state the absence of entanglement in the output of quantum gates. To soundly check these assertions, Twist uses a combination of static analysis and runtime verification. We evaluate Twist’s type system and analyses on a benchmark suite of quantum programs in simulation, demonstrating that Twist can express quantum algorithms, catch programming errors in them, and support programs that existing languages disallow, while incurring runtime verification overhead of less than 3.5%.

Publisher

Association for Computing Machinery (ACM)

Subject

Safety, Risk, Reliability and Quality,Software

Reference78 articles.

1. Héctor Abraham . 2019 . Qiskit: An Open-source Framework for Quantum Computing. Héctor Abraham. 2019. Qiskit: An Open-source Framework for Quantum Computing.

2. A Functional Quantum Programming Language

3. Matthew Amy , Martin Roetteler , and Krysta M . Svore . 2017 . Verified Compilation of Space-Efficient Reversible Circuits. In Computer Aided Verification . Matthew Amy, Martin Roetteler, and Krysta M. Svore. 2017. Verified Compilation of Space-Efficient Reversible Circuits. In Computer Aided Verification.

4. An entangling-probe attack on Shor’s algorithm for factorization

5. A probabilistic separation logic

Cited by 8 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Formal Verification of Quantum Programs: Theory, Tools, and Challenges;ACM Transactions on Quantum Computing;2023-12-16

2. Semantic embedding for quantum algorithms;Journal of Mathematical Physics;2023-12-01

3. Static Entanglement Analysis of Quantum Programs;2023 IEEE/ACM 4th International Workshop on Quantum Software Engineering (Q-SE);2023-05

4. CoqQ: Foundational Verification of Quantum Programs;Proceedings of the ACM on Programming Languages;2023-01-09

5. Static Entanglement Analysis of Quantum Programs;2023

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3