量子电路描述语言中基于类型的灵活资源估计
Flexible Type-Based Resource Estimation in Quantum Circuit Description Languages
AI总结:
本文为 Quipper 设计结合效应与精化类型的类型系统,利用指标相关索引灵活推导电路宽度、深度和门数等资源上界,并经逻辑谓词验证与 QuRA 实验证明可自动推断紧界。
摘要:
我们为 Quipper 语言引入了一种类型系统,旨在推导由带类型程序生成的电路规模的上界。该规模可根据多种指标进行度量,包括宽度、深度和门数量,也可通过仅考虑某些线路类型或某些门类别而得到其变体。实现这种灵活性的关键要素是效应(effects)和精化类型(refinement types),二者都依赖于索引,即通用算术表达式,其运算符会根据目标指标得到不同解释。在对所选资源指标作出合理假设的条件下,通过逻辑谓词证明了该方法的正确性。该方法还通过 QuRA 工具进行了实证评估,结果表明在许多情况下,完全自动地推断紧界是可能的。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。