qp量子编程框架例子
This guide intends to provide you general technical overview of the q-engine framework which is meant to bring quantum computing to mobile devices. During this study we will use the quantum dice app for Android as example. You can download the app here.
本指南旨在为您提供q引擎框架的一般技术概述,该框架旨在将量子计算引入移动设备。 在这项研究中,我们将以Android的量子骰子应用程序为例。 您可以在此处下载该应用。
According to Eric Johnston in his book Programming Quantum Computers:
根据Eric Johnston在他的《编程量子计算机》一书中所说:
“…a quantum computer is really a co-processor. In the past, computers have used a wide variety of co-processors, each suited to their own specialties, such as floating-point arithmetic, signal processing, and real-time graphics… As with other co-processors such as the GPU (Graphics Processing Unit), programming for a QPU involves the programmer writing code that will primarily run on the CPU (Central Processing Unit) of a normal computer. The CPU issues the QPU co-processor commands only to initiate tasks suited to its capabilities.” [1]
“……量子计算机实际上是协处理器。 过去,计算机使用了各种各样的协处理器,每个协处理器都适合自己的专业,例如浮点算术,信号处理和实时图形……与其他协处理器(例如GPU(图形)处理单元),为QPU进行编程需要程序员编写代码,这些代码将主要在普通计算机的CPU(中央处理单元)上运行。 CPU发出QPU协处理器命令只是为了启动适合其功能的任务。” [1]
And with the quantum computer as a co-processor in mind, the q-engine framework leverages the existing quantum computer cloud to complete quantum processes. Currently the most popular quantum cloud platform is the IBM Q experience and there QISKIT library for python.
考虑到量子计算机是协处理器,q引擎框架利用了现有的量子计算机云来完成量子过程。 当前,最受欢迎的量子云平台是IBM Q体验以及python的QISKIT库。
The q-engine framework describes the overall best practices and approach for implementing a quantum back end for use with mobile devices. In short, the qengine framework conducts whatever simple operation is required on the local CPU then outsources the quantum operation to the cloud.
q引擎框架描述了实现与移动设备一起使用的量子后端的总体最佳实践和方法。 简而言之,qengine框架在本地CPU上执行所需的任何简单操作,然后将量子操作外包给云。
Basic topology of how mobile devices can leverage quantum cloud computing.
移动设备如何利用量子云计算的基本拓扑。