ScaffML:一种面向Scaffold的量子行为接口规约语言
ScaffML: A Quantum Behavioral Interface Specification Language for Scaffold
AI总结:
针对经典程序验证方法无法适用于量子程序的问题,提出面向量子编程语言Scaffold的行为接口规约语言ScaffML,支持前后置条件定义、断言混合编写及多类验证,助力量子程序调试与正确性保障。
摘要:
确保量子程序的正确性对量子软件质量保障至关重要。尽管经典程序已有多种有效的验证方法,但由于量子程序在执行逻辑上存在量子叠加、纠缠等根本性差异,这些方法无法直接应用于量子程序,因此亟需新的方法来验证量子程序的正确性。本文提出了一种面向量子编程语言Scaffold的行为接口规约语言(BISL),命名为ScaffML。ScaffML支持为Scaffold模块定义前置条件和后置条件,还可将断言与Scaffold代码混合编写,从而助力量子程序的调试与验证。本文阐述了ScaffML的设计目标与整体方案,并通过示例介绍了该语言的基本特性。ScaffML为量子程序员提供了易用的规约语言,支持Scaffold程序的静态分析、运行时检查与形式化验证。最后,本文通过多个实例展示了ScaffML的工作流程与功能。
英文摘要:
Ensuring the correctness of quantum programs is crucial for quantum software quality assurance. Although various effective verification methods exist for classical programs, they cannot be applied to quantum programs due to the fundamental differences in their execution logic, such as quantum superposition and entanglement. This calls for new methods to verify the correctness of quantum programs. In this paper, we present a behavioral interface specification language (BISL) called ScaffML for the quantum programming language Scaffold. ScaffML allows the specification of pre- and post-conditions for Scaffold modules and enables the mixing of assertions with Scaffold code, thereby facilitating debugging and verification of quantum programs. This paper discusses the goals and overall approach of ScaffML and describes the basic features of the language through examples. ScaffML provides an easy-to-use specification language for quantum programmers, supporting static analysis, run-time checking, and formal verification of Scaffold programs. Finally, we present several instances to illustrate the workflow and functionalities of ScaffML.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。