arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1603.08213cs.LO
收藏

从高阶函数程序生成可逆电路

Generating reversible circuits from higher-order functional programs

Benoit Valiron

摘要:

布尔可逆电路是由可逆基本门构成的布尔电路。尽管它们的形式受到限制,但它们可以模拟任何布尔函数。模拟给定函数的可逆电路的综合与验证是一个难题。1973年,Bennett提出从图灵机的执行轨迹生成可逆电路。在本文中,我们提出了一种新的介绍这种方法,适用于高阶程序。从一个类似PCF的语言开始,我们使用一元表示的执行轨迹,把一个常规的布尔程序变成一个电路生成代码。我们表明,一个电路跟踪出的程序计算相同的布尔函数作为原始程序。该技术已成功地应用于量子程序设计语言Quipper生成大型预言机。

英文摘要:

Boolean reversible circuits are boolean circuits made of reversible elementary gates. Despite their constrained form, they can simulate any boolean function. The synthesis and validation of a reversible circuit simulating a given function is a difficult problem. In 1973, Bennett proposed to generate reversible circuits from traces of execution of Turing machines. In this paper, we propose a novel presentation of this approach, adapted to higher-order programs. Starting with a PCF-like language, we use a monadic representation of the trace of execution to turn a regular boolean program into a circuit-generating code. We show that a circuit traced out of a program computes the same boolean function as the original program. This technique has been successfully applied to generate large oracles with the quantum programming language Quipper.

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

↑