arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.22261cs.LOcs.PLmath.CTquant-ph
收藏

带反转和控制的Proto-Quipper

Proto-Quipper with Reversing and Control

Peng Fu, Kohei Kishida, Neil J. Ross, Peter Selinger

AI总结:

本文针对量子编程语言Quipper的反转、控制及with-computed操作,通过 dagger对称幺半范畴和可控范畴形式化语义,扩展Proto-Quipper语言并采用带模态的类型系统跟踪电路属性,证明了语义可靠性。

摘要:

量子编程语言Quipper支持反转和控制特定量子电路等电路操作,还提供with-computed函数,可用于编写g; f; g-dagger形式的电路,这是量子电路设计中的常见模式。与直接用g、f和g-dagger构造g; f; g-dagger电路相比,使用with-computed的一个优势是便于重要优化:若后续控制生成的电路,只需控制f,无需控制g和g-dagger。本文用 dagger对称幺半范畴R解释可逆电路,用可控范畴N(含Quipper的控制和with-computed操作)形式化可逆可控电路的语义,扩展Proto-Quipper语言以支持反转、控制和with-computed操作;因并非所有电路可逆或可控,使用带模态的类型系统跟踪这些属性(推广Fu-Kishida-Ross-Selinger 2023的模态),给出抽象范畴语义,并证明类型系统和操作语义相对于该语义是可靠的。

英文摘要:

The quantum programming language Quipper supports circuit operations such as reversing and controlling certain quantum circuits. Additionally, Quipper provides a function called with-computed, which can be used to program circuits of the form g; f; g-dagger. The latter is a common pattern in quantum circuit design. One benefit of using with-computed, as opposed to constructing the circuit g ; f; g-dagger directly from g, f, and g-dagger, is that it facilitates an important optimization. Namely, if the resulting circuit is later controlled, only f needs to be controlled; the circuits g and g-dagger need not even be controllable. In this paper, we formalize a semantics for reversible and controllable circuits, using a dagger symmetric monoidal category R to interpret reversible circuits, and a new notion we call a controllable category N, which encompasses the control and with-computed operations in Quipper. We extend the language Proto-Quipper with reversing, control and the with-computed operation. Since not all circuits are reversible and/or controllable, we use a type system with modalities to track reversibility and controllability. This generalizes the modality of Fu-Kishida-Ross-Selinger 2023. We give an abstract categorical semantics, and show that the type system and operational semantics are sound with respect to this semantics.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑