论文标题

为IBM Q体验编译量化

Compiling quantamorphisms for the IBM Q Experience

论文作者

Neri, Ana, Barbosa, Rui Soares, Oliveira, José N.

论文摘要

基于从规范中的经典程序分类推导与量子物理学的类别理论方法之间的联系,本文有助于将古典计划代数的定律扩展到量子编程。这旨在构建要在IBM Q体验中可用的量子设备上部署的正确量子电路。量子电路的可逆性是通过最小补充来递归扩展的。测量值被推迟到此类递归计算的末尾,称为“量化”,从而最大程度地提高了量子效应。 Quantamorlisms是经典的can态,扩展以确保量子可逆性,实施量子周期(vulg。for-loops)和列表上的量子折叠。通过Kleisli对应关系,量词形态可以写成具有量子参数的单声函数程序。这使得使用一种单调的功能编程语言Haskell可以执行实验性工作。在Haskell中制备的这种计算出的量子程序将通过震颤将其推到Qiskit接口到IBM Q量子设备。产生的量子电路(通常很大)表现出预测的行为。但是,在实际量子设备上运行它们会导致大量错误。随着量子设备不断发展,在不久的将来,可靠性可能会提高,从而使我们的程序更准确地运行。

Based on the connection between the categorical derivation of classical programs from specifications and the category-theoretic approach to quantum physics, this paper contributes to extending the laws of classical program algebra to quantum programming. This aims at building correct-by-construction quantum circuits to be deployed on quantum devices such as those available at the IBM Q Experience. Quantum circuit reversibility is ensured by minimal complements, extended recursively. Measurements are postponed to the end of such recursive computations, termed "quantamorphisms", thus maximising the quantum effect. Quantamorphisms are classical catamorphisms which, extended to ensure quantum reversibility, implement quantum cycles (vulg. for-loops) and quantum folds on lists. By Kleisli correspondence, quantamorphisms can be written as monadic functional programs with quantum parameters. This enables the use of Haskell, a monadic functional programming language, to perform the experimental work. Such calculated quantum programs prepared in Haskell are pushed through Quipper to the Qiskit interface to IBM Q quantum devices. The generated quantum circuits - often quite large - exhibit the predicted behaviour. However, running them on real quantum devices incurs into a significant amount of errors. As quantum devices are constantly evolving, an increase in reliability is likely in the near future, allowing for our programs to run more accurately.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源