paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Flexible Type-Based Resource Estimation in Quantum Circuit Description Languages

量子电路描述语言中灵活的基于类型的资源估计
POPL 9(POPL)2025匹配度 3/10 · 论文属于程序语言与静态分析方向,使用效应/细化类型对量子电路进行资源上界推导,兼有形式化与工具实现;但其应用领域是量子电路描述语言,与用户关注的 PL↔AI/Agent、浮点程序分析、贝叶斯程序分析及 LLM 交叉方向均无直接关联。引用 13 inbox
Andrea Colledan, Ugo Dal Lago
crossref: 2026-09-10

AI 速览

一句话:为 Quipper 设计基于效应与细化类型的类型系统,自动推导电路宽度、深度、门数等资源上界。

论文针对量子电路描述语言中难以静态预估电路资源的问题,为 Quipper 提出一个类型系统,用于推导类型化程序所生成电路规模的上界。其核心是效应与细化类型,二者都依赖 index,即通用算术表达式;这些表达式的运算符可根据目标度量采用不同解释,从而统一支持宽度、深度、门数以及仅统计特定线型或门种类的变体。作者通过逻辑谓词证明该方法的正确性,并在对资源度量的合理假设下给出可靠性保证。实现方面,QuRA 工具进行了实证评估,结果表明在许多情况下可以全自动推断出紧致上界。

问题
如何为量子电路描述语言中的程序静态推导电路资源上界,并支持多种资源度量。
方法
为 Quipper 引入含效应与细化类型的类型系统,以 index 算术表达式统一表达宽度、深度、门数等度量,并用逻辑谓词证明可靠性。
评估
通过 QuRA 工具进行实证评估,显示多数情况下可全自动推断紧致上界。
原文摘要(Abstract)

We introduce a type system for the Quipper language designed to derive upper bounds on the size of the circuits produced by the typed program. This size can be measured according to various metrics, including width , depth and gate count , but also variations thereof obtained by considering only some wire types or some gate kinds. The key ingredients for achieving this level of flexibility are effects and refinement types, both relying on indices , that is, generic arithmetic expressions whose operators are interpreted differently depending on the target metric. The approach is shown to be correct through logical predicates, under reasonable assumptions about the chosen resource metric. This approach is empirically evaluated through the QuRA tool, showing that, in many cases, inferring tight bounds is possible in a fully automatic way.

链接与引用

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

BibTeX
@article{ColledanL25,
  title = {Flexible Type-Based Resource Estimation in Quantum Circuit Description Languages},
  author = {Andrea Colledan and Ugo Dal Lago},
  journal = {Proceedings of the ACM on Programming Languages},
  volume = {9},
  number = {POPL},
  year = {2025},
  doi = {10.1145/3704883}
}