paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Qunity: A Unified Language for Quantum and Classical Computing

Qunity:一个统一量子与经典计算的语言
POPL 7(POPL)2023匹配度 2/10 · 论文属于量子编程语言、类型系统与指称语义,虽与程序语言和形式化相关,但应用域是量子计算,与用户关注的 PL+AI/LLM、浮点程序分析或贝叶斯程序分析无直接交集。引用 34 inbox
Finn Voichick, Liyi Li, Robert Rand, Michael Hicks
crossref: 2026-09-10

AI 速览

一句话:提出统一量子与经典计算的语言 Qunity,以统一语法和指称语义保证量子有效性,并可编译到 OpenQASM。

现有量子编程语言多将量子特性作为经典语言的附加组件,缺乏统一视角。Qunity 将量子计算视为经典计算的推广,提出统一语法:同一构造可同时具有量子与经典效应,例如用和类型实现线性算子直和、异常处理实现投影测量、别名引发纠缠。语言利用被忽视的 BQP 子程序定理,通过反计算垃圾输出从不可逆量子算法构造可逆子程序。论文给出 Qunity 的语法、类型系统与新型指称语义,保证程序量子力学有效,并展示其能清晰表达若干量子算法,且可编译到 OpenQASM 等低级量子比特电路语言,证明设计的可实现性。

问题
如何用一个统一的语言和语义框架,将量子计算自然地推广经典计算,而非把量子门作为经典语言的附加组件?
方法
提出 Qunity,统一语法使经典构造具有量子与经典效应,给出类型系统和新型指称语义保证量子有效性,并利用 BQP 子程序定理支持可逆子程序构造。
评估
通过表达若干量子算法并展示到 OpenQASM 等低级量子比特电路语言的编译,验证设计的表达能力和可实现性。
原文摘要(Abstract)

We introduce Qunity, a new quantum programming language designed to treat quantum computing as a natural generalization of classical computing. Qunity presents a unified syntax where familiar programming constructs can have both quantum and classical effects. For example, one can use sum types to implement the direct sum of linear operators, exception-handling syntax to implement projective measurements, and aliasing to induce entanglement. Further, Qunity takes advantage of the overlooked BQP subroutine theorem, allowing one to construct reversible subroutines from irreversible quantum algorithms through the uncomputation of "garbage" outputs. Unlike existing languages that enable quantum aspects with separate add-ons (like a classical language with quantum gates bolted on), Qunity provides a unified syntax and a novel denotational semantics that guarantees that programs are quantum mechanically valid. We present Qunity's syntax, type system, and denotational semantics, showing how it can cleanly express several quantum algorithms. We also detail how Qunity can be compiled into a low-level qubit circuit language like OpenQASM, proving the realizability of our design.

链接与引用

DOI 原文 · PDF(开放获取) ·

BibTeX
@article{paperbot2087,
  title = {Qunity: A Unified Language for Quantum and Classical Computing},
  author = {Finn Voichick and Liyi Li and Robert Rand and Michael Hicks},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {7},
  number = {POPL},
  year = {2023},
  doi = {10.1145/3571225}
}