WO2023272891A1 - 一种量子编程框架适配量子计算机的方法以设备 - Google Patents

一种量子编程框架适配量子计算机的方法以设备 Download PDF

Info

Publication number
WO2023272891A1
WO2023272891A1 PCT/CN2021/112478 CN2021112478W WO2023272891A1 WO 2023272891 A1 WO2023272891 A1 WO 2023272891A1 CN 2021112478 W CN2021112478 W CN 2021112478W WO 2023272891 A1 WO2023272891 A1 WO 2023272891A1
Authority
WO
WIPO (PCT)
Prior art keywords
quantum
programming framework
communication adapter
instruction
framework
Prior art date
Application number
PCT/CN2021/112478
Other languages
English (en)
French (fr)
Inventor
薛长青
刘强
于洪真
Original Assignee
山东浪潮科学研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 山东浪潮科学研究院有限公司 filed Critical 山东浪潮科学研究院有限公司
Publication of WO2023272891A1 publication Critical patent/WO2023272891A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the present application relates to the technical field of quantum computing, and in particular to a method and device for adapting a quantum programming framework to a quantum computer.
  • Quantum computer is a kind of physical device that follows the laws of quantum mechanics to perform high-speed mathematical and logical operations, store and process quantum information. When a device processes and computes quantum information and runs quantum algorithms, it is a quantum computer. In addition, quantum computers have the advantages of large amount of stored information, low energy consumption, fast calculation, high accuracy, and long life.
  • quantum programming framework cannot be directly used on quantum computers, and it cannot be adapted to multiple Quantum programming framework and various types of quantum computers.
  • the embodiment of the present application provides a method and equipment for adapting a quantum programming framework to a quantum computer, so as to solve the problem that the existing quantum programming framework cannot be directly used on a quantum computer, and that multiple quantum programming frameworks and multiple types of quantum computers cannot be realized. Adaptation technical issues.
  • the embodiment of the present application provides a method for adapting a quantum programming framework and a quantum computer.
  • the method includes: obtaining a trigger command to determine the quantum communication adapter corresponding to the trigger command; determining the corresponding quantum communication adapter according to the preset matching database Quantum programming framework; based on the quantum programming framework, generate quantum instructions; wherein, the quantum instructions are used to instruct the quantum in the quantum simulator and/or quantum physical machine to perform calculations; according to the preset matching database, obtain the quantum simulation corresponding to the quantum communication adapter machine and/or quantum physical machine, so that quantum instructions are sent to the quantum simulation machine and/or quantum physical machine through the quantum communication adapter to run.
  • the adaptation method provided by the embodiment of the present application realizes automatic matching between the quantum programming framework and the quantum communication adapter through the preset matching database; after determining the corresponding quantum programming framework through the quantum communication adapter, based on the quantum programming framework, the server implements The quantum programming framework corresponds to the acquisition of the execution code.
  • the quantum communication adapter corresponds to the quantum simulation machine and/or quantum physical machine, and sends various types of quantum programming frameworks (quantum instructions) to the corresponding quantum simulation machine and/or quantum physical machine through various types of quantum communication adapters , enabling the server to realize the technical effect of adapting various types of quantum programming frameworks to various types of quantum simulation machines and/or quantum physical machines within the same period of time.
  • the first preset interface data of the quantum programming framework corresponding to the quantum communication adapter is obtained; the first preset interface data is loaded to obtain the quantum programming framework .
  • the adaptation method provided by the embodiment of the present application obtains the quantum programming framework through the first preset interface, which reduces the storage consumption of the server, improves the usage rate of the quantum programming framework, and reduces some unnecessary repeated programming.
  • the quantum communication adapter includes at least a quantum metadata file and a quantum implementation class; wherein, the quantum metadata file includes at least quantum instruction metadata and quantum channel metadata; the quantum implementation class includes at least any of the following One or more items: quantum simulation implementation class, quantum real machine implementation class.
  • the quantum communication adapter is used to obtain the feedback data after the quantum simulation machine and/or the quantum physical machine runs the quantum instruction; store the feedback data, and display the feedback data through a visual interface.
  • the quantum programming framework includes at least quantum programming framework instruction metadata and rule definition files; wherein, the quantum programming framework instruction metadata is used to define the quantum programming framework; the rule definition file contains preset definition rules and Correspondence between quantum programming framework and quantum communication adapter.
  • the quantum programming framework is obtained through the first preset interface; the quantum programming framework is triggered to obtain a visual programming interface corresponding to the quantum programming framework; and the instruction metadata of the quantum programming framework is obtained through the visual programming interface.
  • the adaptation method provided by the embodiment of the present application facilitates the editing of the quantum programming framework by quantum instruction programmers through the visual programming interface; the quantum programming framework instruction metadata corresponding to the quantum programming framework is obtained through the visual programming interface, so that quantum programming
  • the framework can adapt to the quantum simulator and/or quantum physical machine to be input to the greatest extent, which improves the scalability of the quantum programming framework.
  • the implementation code corresponding to the quantum programming framework, the data information corresponding to the rule definition file, and the instruction metadata of the quantum programming framework are obtained; the implementation code corresponding to the quantum programming framework and the data information corresponding to the rule definition file And the quantum programming framework instruction metadata is encapsulated, and the first preset interface is generated; through the quantum cloud platform, the first preset interface is shared.
  • the first preset interface corresponding to the quantum programming framework shared by the quantum cloud platform is obtained; the second preset interface corresponding to the quantum communication adapter shared by the quantum cloud platform is obtained; the first preset interface is And the second preset interface is stored in the preset interface database; wherein, the preset interface database includes a preset interface, and the preset interface is used to display the first preset interface and the second preset interface.
  • the quantum programming framework is in one-to-one correspondence with the quantum communication adapter; the quantum communication adapter is in one-to-one correspondence with the quantum simulation machine and/or the quantum physical machine.
  • the embodiment of the present application also provides a quantum programming framework and a quantum computer adaptation device, the device includes: a processor; and a memory on which executable code is stored, when the executable code is executed, so that A method for adapting a quantum programming framework and a quantum computer for the processor to execute any of the above items.
  • FIG. 1 is a flow chart of a quantum programming framework and a quantum computer adaptation method provided by the embodiment of the present application;
  • Fig. 2 is a schematic diagram of the internal structure of a quantum programming framework and a quantum computer adaptation device provided by the embodiment of the present application.
  • a computer made with qubits as the basic unit is called a quantum computer.
  • Classical bits are used to represent 1 and 0 respectively with high and low levels, thereby encoding information.
  • quantum bits use to encode 0 and 1?
  • energy appears one by one and this phenomenon is called quantization.
  • particle in a special state, and its energy has only two states, a low energy level (ground state) and a high energy level (excited state).
  • ground state low energy level
  • excited state high energy level
  • particles are people, and different energy levels are steps. Standing below the step means you are in the ground state, and standing above the step means you are in the excited state.
  • the embodiment of the present application provides a method for adapting a quantum programming framework to a quantum computer to solve the problem that the existing quantum programming framework cannot be directly used on a quantum computer, and it is impossible to realize multiple quantum programming frameworks and multiple types of quantum computers.
  • a method for adapting a quantum programming framework and a quantum computer proposed in the embodiment of the present application is executed by a server.
  • Fig. 1 is an adaptation method between a quantum programming framework and a quantum computer provided by the embodiment of the present application.
  • the adaptation method provided in the embodiment of this application mainly includes the following steps:
  • Step 101 Obtain a trigger instruction to determine the quantum communication adapter corresponding to the trigger instruction.
  • the trigger instruction can be a button preset on the server running interface, and when the operator who is adapting the quantum programming framework to the quantum computer triggers the button, the server automatically generates the trigger instruction.
  • the triggering instruction is in one-to-one correspondence with the quantum communication adapter.
  • the quantum communication adapter includes at least a quantum metadata file and a quantum implementation class.
  • the quantum metadata file is a preset running code that defines the quantum communication adapter. The running code can be mainly divided into two types of data: quantum instruction metadata and quantum channel metadata.
  • the quantum instruction metadata is the preset operating rules of the quantum communication adapter, such as the way of uploading data
  • the quantum channel metadata is the preset communication rules of the quantum communication adapter, such as, corresponding to the A button, and B Corresponding to quantum-like programming framework, corresponding to C-class quantum simulator and/or quantum physical machine, etc.
  • the quantum implementation class is the implementation method corresponding to the quantum communication adapter preset by the server, which can be a quantum simulation implementation class or a quantum real machine implementation class.
  • the quantum simulation implementation class corresponds to the quantum simulator
  • the quantum real machine implementation class corresponds to the quantum physical machine.
  • the server when the preset button on the corresponding operation interface of the server is triggered (clicked), the server generates a trigger instruction, and there is a corresponding relationship between the trigger instruction and the second preset interface corresponding to the quantum communication adapter, and the service uses the trigger instruction Bringing it into the corresponding relationship, the second preset interface corresponding to the quantum communication adapter corresponding to the trigger command is obtained.
  • the server reads the second preset interface, and acquires the quantum communication adapter corresponding to the second preset interface. It should be noted that when the server detects that it does not store the second preset interface, it will retrieve and obtain the second preset interface on the quantum cloud platform to obtain the quantum communication adapter corresponding to the second preset interface.
  • Step 102 Determine the quantum programming framework corresponding to the quantum communication adapter according to the preset matching database.
  • the preset matching database is used to store the corresponding relationship between the quantum communication adapter and the first preset interface corresponding to the quantum programming framework, for example, a class of quantum communication adapters corresponds to a first preset interface of a class of quantum programming framework .
  • the quantum programming framework includes at least quantum programming framework instruction metadata and rule definition files; wherein, the rule definition file contains preset definition rules and the corresponding relationship between the quantum programming framework and the quantum communication adapter; the quantum programming framework instruction metadata is used to define quantum Programming framework;
  • the quantum programming framework is read by the server in the form of the first preset interface. After the server completes the reading of the first preset interface, the operator can choose whether to pop up the The visual programming interface corresponding to the quantum programming framework.
  • the quantum programming framework instruction metadata in the quantum programming framework can be stored in advance, or it can be written by the operator in the pop-up visual programming interface.
  • Writing, the operation interface corresponding to the server has a button corresponding to the pop-up visual interface, click this button, and the server pops up the visual programming interface corresponding to the quantum programming framework.
  • the visual programming interface is mainly used for operators to write metadata of quantum programming framework instructions.
  • the server can also generate the first preset interface. Specifically, there is a button for generating the first preset interface on the operation interface corresponding to the server, and when the operator clicks the button, an input box pops up.
  • the input box is used for the operator to input the implementation code corresponding to the quantum programming framework, the data information corresponding to the rule definition file, and the quantum programming framework instruction metadata (it needs to be further explained that the quantum programming framework instruction metadata can also be Write, when the first preset interface corresponding to the quantum programming framework is read, the operator can choose to pop up the visual programming interface, and then can write the instruction metadata of the quantum programming framework), after completing the writing of the input box, Click the Finish button, the server will encapsulate the implementation code corresponding to the input quantum programming framework, the data information corresponding to the rule definition file, and the quantum programming framework instruction metadata, and then generate the first preset interface, and through the quantum cloud platform, the second A preset interface for data sharing; enabling other servers to read the first preset interface and obtain the quantum programming framework encapsulated by the first preset interface.
  • the quantum programming framework instruction metadata can also be Write, when the first preset interface corresponding to the quantum programming framework is read, the operator can choose to pop up the visual programming interface, and then can write the instruction metadata
  • the preset matching database includes the corresponding relationship between the quantum adapter and the first preset interface corresponding to the quantum programming framework; after the server acquires the quantum communication adapter in step 101, it brings the quantum communication adapter into the default matching database to obtain the quantum communication adapter.
  • Step 103 Generate quantum instructions based on the quantum programming framework; wherein, the quantum instructions are used to instruct the quantum in the quantum simulator and/or the quantum physical machine to perform calculations.
  • the quantum instruction is a quantum programming framework with complete quantum programming framework instruction metadata.
  • the operator can choose whether to pop up the visual programming interface corresponding to the quantum programming framework according to actual needs. If the operator does not perform the operation, the server does not pop up the visual programming interface by default, and the server defaults that the quantum programming framework instruction metadata in the quantum programming framework is complete, and the quantum programming framework is set as a quantum instruction; if the operator chooses to pop up the visual programming interface Interface, input and save the quantum programming framework instruction metadata to be supplemented in the visual programming interface, and the server will set the saved quantum programming framework as the quantum instruction.
  • Step 104 obtain the quantum simulator and/or the quantum physical machine corresponding to the quantum communication adapter, so as to send the quantum instruction to the quantum simulator and/or the quantum physical machine to run through the quantum communication adapter.
  • the default matching database also includes the corresponding relationship between the quantum communication adapter and the quantum simulator and/or quantum physical machine.
  • the quantum programming framework corresponds to the quantum communication adapter one by one; the quantum communication adapter and the quantum simulation There is a one-to-one correspondence between quantum machines and/or quantum physical machines.
  • the server inputs the quantum communication adapter into the preset matching database, obtains the quantum simulation machine and/or quantum physical machine corresponding to the quantum communication adapter, and then sends the quantum instruction to the quantum communication adapter.
  • the quantum simulation machine and/or quantum physics machine corresponding to the adapter.
  • the feedback result of the operation will be sent to the server through the quantum communication adapter.
  • the server receives the feedback result of the quantum instruction, it can store the feedback result, and can also display the feedback result through a visual interface.
  • the embodiment of the present application also provides a quantum programming framework and a quantum computer adaptation device, as shown in Figure 2, on which executable instructions are stored, and when the executable instructions are executed, the following A method for adapting the above-mentioned quantum programming framework to a quantum computer.
  • the server sends an execution instruction to the memory through the bus, and when the memory receives the execution instruction, it sends an execution signal to the processor through the bus to activate the processor.
  • the processor is used to obtain the trigger instruction to determine the quantum communication adapter corresponding to the trigger instruction; determine the quantum programming framework corresponding to the quantum communication adapter according to the preset matching database; generate quantum instructions based on the quantum programming framework; among them, the quantum The instruction is used to instruct the quantum in the quantum simulator and/or quantum physical machine to perform calculations; according to the preset matching database, obtain the quantum simulator and/or quantum physical machine corresponding to the quantum communication adapter, so as to send the quantum instruction through the quantum communication adapter to run on quantum simulators and/or quantum physics machines.
  • each embodiment in the present application is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments.
  • the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Condensed Matter Physics & Semiconductors (AREA)
  • Computational Mathematics (AREA)
  • Artificial Intelligence (AREA)
  • Data Mining & Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Superconductor Devices And Manufacturing Methods Thereof (AREA)

Abstract

本申请公开了一种量子编程框架与量子计算机的适配方法以及设备,用以解决现有的量子编程框架无法直接使用在量子计算机上,以及无法实现多个量子编程框架与多种类量子计算机适配技术问题。方法包括:获取触发指令,以确定触发指令对应的量子通讯适配器;根据预设匹配数据库,确定量子通讯适配器对应的量子编程框架;基于量子编程框架,生成量子指令;根据预设匹配数据库,获取量子通讯适配器对应的量子模拟机和/或量子物理机,以通过量子通讯适配器将量子指令发送至量子模拟机和/或量子物理机中运行。本申请通过上述方法实现了量子编程框架与量子计算机的适配,以及实现了多个量子编程框架与多种类量子计算机的适配。

Description

一种量子编程框架适配量子计算机的方法以设备 技术领域
本申请涉及量子计算技术领域,尤其涉及一种量子编程框架适配量子计算机的方法及设备。
背景技术
量子计算机是一类遵循量子力学规律进行高速数学和逻辑运算、存储及处理量子信息的物理装置。当某个装置处理和计算的是量子信息,运行的是量子算法时,它就是量子计算机。另外,量子计算机具有存储信息量大,能耗低,运算快,精确度高,寿命长等优点。
但是,由于量子计算机对其的操作环境的要求极为严格,与目前市面上的计算机相比,难以实现有效的普及。且现有的量子计算平台均基于传统的计算机平台,由于传统的计算机云平台在计算和接口上与量子计算机不同,无法将量子编程框架无法直接使用在量子计算机上,以及无法实现适配多个量子编程框架与多种类量子计算机。
发明内容
本申请实施例提供了一种量子编程框架适配量子计算机的方法及设备,用以解决现有的量子编程框架无法直接使用在量子计算机上,以及无法实现多个量子编程框架与多种类量子计算机适配的技术问题。
一方面,本申请实施例提供了一种量子编程框架与量子计算机的适配方法,方法包括:获取触发指令,以确定触发指令对应的量子通讯适配器;根据预设匹配数据库,确定量子通讯适配器对应的量子编程框架;基于量子编程框架,生成量子指令;其中,量子指令用于指示量子模拟机和/或量子物理机中的量子 进行计算;根据预设匹配数据库,获取量子通讯适配器对应的量子模拟机和/或量子物理机,以通过量子通讯适配器将量子指令发送至量子模拟机和/或量子物理机中运行。
本申请实施例提供的适配方法,通过预设匹配数据库,实现了量子编程框架与量子通讯适配器的自动匹配;在通过量子通讯适配器确定对应的量子编程框架之后,基于该量子编程框架,服务器实现了该量子编程框架对应执行代码的获取。在完善该量子编程框架对应的执行代码后,通过将完善好的量子编程框架转换为量子指令,使该量子指令能够最大程度的贴合对应的量子模拟机和/或量子物理机;通过预先将量子通讯适配器与量子模拟机和/或量子物理机对应起来,以及通过多种类型的量子通讯适配器将多种类型的量子编程框架(量子指令)发送给对应的量子模拟机和/或量子物理机,使服务器实现了在同一时间段内实现多种类型的量子编程框架与多种类型的量子模拟机和/或量子物理机适配的技术效果。
在本申请的一种实现方式中,根据量子通讯适配器以及预设匹配数据库,获取量子通讯适配器对应的量子编程框架的第一预设接口数据;加载第一预设接口数据,以获取量子编程框架。
本申请实施例提供的适配方法,通过第一预设接口获取量子编程框架,降低了服务器存储的消耗,同时提高了该量子编程框架的使用率以及减少了部分不必要的重复编程。
在本申请的一种实现方式中,量子通讯适配器至少包括量子元数据文件以及量子实现类;其中,量子元数据文件至少包括量子指令元数据以及量子通道元数据;量子实现类至少包括以下任意一项或者多项:量子模拟实现类、量子真机实现类。
在本申请的一种实现方式中,通过量子通讯适配器,获取量子模拟机和/或量子物理机运行量子指令后的反馈数据;存储反馈数据,并通过可视化界面展示反馈数据。
在本申请的一种实现方式中,量子编程框架至少包括量子编程框架指令元数据以及规则定义文件;其中,量子编程框架指令元数据用于定义量子编程框架;规则定义文件包含预设定义规则以及量子编程框架与量子通讯适配器的对应关系。
在本申请的一种实现方式中,通过第一预设接口获取量子编程框架;触发量子编程框架,以获取量子编程框架对应的可视化编程界面;通过可视化编程界面,获取量子编程框架指令元数据。
本申请实施例提供的适配方法,通过可视化编程界面,方便了量子指令编程人员对该量子编程框架的编辑;通过可视化编程界面获取该量子编程框架对应的量子编程框架指令元数据,使量子编程框架能够最大程度的适应将要输入的量子模拟机和/或量子物理机,提高了量子编程框架的扩展性。
在本申请的一种实现方式中,获取量子编程框架对应的实现代码、规则定义文件对应的数据信息以及量子编程框架指令元数据;将量子编程框架对应的实现代码、规则定义文件对应的数据信息以及量子编程框架指令元数据进行封装,并生成第一预设接口;通过量子云平台,共享第一预设接口。
在本申请的一种实现方式中,获取量子云平台共享的量子编程框架对应的第一预设接口;获取量子云平台共享的量子通讯适配器对应的第二预设接口;将第一预设接口以及第二预设接口存储在预设接口数据库中;其中,预设接口数据库包含预设界面,预设界面用于显示第一预设接口以及第二预设接口。
在本申请的一种实现方式中,量子编程框架与量子通讯适配器一一对应;量子通讯适配器与量子模拟机和/或量子物理机一一对应。
另一方面,本申请实施例还提供了一种量子编程框架与量子计算机的适配设备,设备包括:处理器;以及存储器,其上存储有可执行代码,当可执行代码被执行时,使得处理器执行上述任一项的一种量子编程框架与量子计算机的适配方法。
附图说明
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:
图1为本申请实施例提供的为本申请实施例提供的一种量子编程框架与量子计算机的适配方法流程图;
图2为本申请实施例提供的一种量子编程框架与量子计算机的适配设备内部结构示意图。
具体实施方式
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
以量子比特为基本单位制成的计算机即为量子计算机。经典比特是用电平的高低来分别表示1和0,从而对信息进行编码。而量子比特是用什么编码0和1呢?之前我们提到过,在量子世界里,能量是一份一份出现的,这种现象被我们称为量子化。我们选取一种特殊状态的粒子,它的能量只有两种状态,低能级(基态),高能级(激发态)。打一个比方,粒子是人,而不同的能级是台阶。站在台阶下边意味着处于基态,站在台阶上边则是处于激发态。我们把低能级编码为0,高能级编码为1,这就是量子比特。
基于此,本申请施例提供了一种量子编程框架适配量子计算机的方法,用以解决现有的量子编程框架无法直接使用在量子计算机上,以及无法实现多个量子编程框架与多种类量子计算机适配的技术问题。
另外,在本申请实施例中提出的一种量子编程框架与量子计算机的适配方法,其执行主体是服务器。
下面通过附图对本申请实施例提出的技术方案进行详细的说明。
图1为本申请实施例提供的一种量子编程框架与量子计算机的适配方法。如图1所示,本申请实施例提供的适配方法,主要包括以下步骤:
步骤101、获取触发指令,以确定触发指令对应的量子通讯适配器。
需要说明的是,触发指令可以为预设在服务器运行界面上的按钮,当进行量子编程框架与量子计算机适配的操作人员触发该按钮时,服务器自动生成触发指令。另外,该触发指令与量子通讯适配器一一对应。其中,量子通讯适配器至少包括量子元数据文件以及量子实现类。需要说明的是,量子元数据文件为预设的定义该量子通讯适配器的运行代码。该运行代码主要可以分为两类数据:量子指令元数据以及量子通道元数据。其中,量子指令元数据为预设的该量子通讯适配器的运行规则,如,上传数据的方式;量子通道元数据为预设的该量子通讯适配器的通讯规则,如,与A按钮对应、与B类量子编程框架对应、与C类量子模拟机和/或量子物理机对应等。另外,需要说明的是,量子实现类为服务器预设的该量子通讯适配器对应的实现方式,可以是量子模拟实现类、也可以是量子真机实现类。其中,量子模拟实现类对应的是量子模拟机;量子真机实现类对应的是量子物理机。
具体地,当服务器对应的操作界面上的预设按钮被触发(单击)时,服务器生成触发指令,存在触发指令与量子通讯适配器对应的第二预设接口的对应关系,服务将该触发指令带入到该对应关系中,获得该触发指令对应的量子通讯适配器对应的第二预设接口。服务器读取该第二预设接口,获取该第二预设接口对应的量子通讯适配器。需要说明的是,当服务器检测到本身没有存储第二预设接口时,将在量子云平台上检索并获取该第二预设接口,以获取该第二预设接口对应的量子通讯适配器。
步骤102、根据预设匹配数据库,确定量子通讯适配器对应的量子编程框架。
需要说明的是,预设匹配数据库用于存储量子通讯适配器与量子编程框架对应的第一预设接口的对应关系,如,一类量子通讯适配器与一类量子编程框架的第一预设接口对应。另外,量子编程框架至少包括量子编程框架指令元数据以及规则定义文件;其中,规则定义文件包含预设定义规则以及量子编程框架与量子通讯适配器的对应关系;量子编程框架指令元数据用于定义量子编程框架;需要说明的是,量子编程框架是以第一预设接口的形式被服务器读取的,在服务器完成该第一预设接口的读取后,操作人员可以根据实际需求选择是否弹出该量子编程框架对应的可视化编程界面,需要说明的是,量子编程框架中的量子编程框架指令元数据可以是预先存储的,也可以是该操作人员在弹出的可视化编程界面中撰写的,如果需要后续撰写,服务器对应的操作界面存在弹出可视化界面对应的按钮,单击该按钮,服务器弹出该量子编程框架对应的可视化编程界面。其中,该可视化编程界面主要用于操作人员撰写量子编程框架指令元数据。
进一步地,服务器除了可以读取第一预设接口以外,服务器还可以生成第一预设接口。具体地,服务器对应的操作界面上存在生成第一预设接口的按钮,当操作人员单击该按钮时,弹出输入框。需要说明的是,输入框用于操作人员输入量子编程框架对应的实现代码、规则定义文件对应的数据信息以及量子编程框架指令元数据(需要进一步说明的是,量子编程框架指令元数据也可以不写,当该量子编程框架对应的第一预设接口被读取时,操作人员可以选择弹出可视化编程界面,届时可以再对该量子编程框架指令元数据进行撰写),完成输入框的撰写后,点击完成按钮,服务器将输入的量子编程框架对应的实现代码、规则定义文件对应的数据信息以及量子编程框架指令元数据进行封装,然后生成第一预设接口,并通过量子云平台,将该第一预设接口进行数据共享; 以使其他服务器读取该第一预设接口,并获得该第一预设接口封装的量子编程框架。
具体地,预设匹配数据库包含量子适配器与量子编程框架对应的第一预设接口的对应关系;服务器在步骤101获取到量子通讯适配器后,将量子通讯适配器带入预设匹配数据库中,获取量子通讯适配器对应的量子编程框架的第一预设接口;服务器读取该第一预设接口,以获得该第一预设接口对应的量子编程框架。需要说明的是,当服务器检测到本身没有存储第一预设接口时,将在量子云平台上检索并获取该第一预设接口,以获取该第一预设接口对应的量子编程框架。
步骤103、基于量子编程框架,生成量子指令;其中,量子指令用于指示量子模拟机和/或量子物理机中的量子进行计算。
需要说明的是,量子指令为具有完整的量子编程框架指令元数据的量子编程框架。
具体地,在服务器获得量子编程框架后,操作人员可以根据实际需求选择是否弹出量子编程框架对应的可视化编程界面。如果操作人员不执行操作,服务器默认不弹出可视化编程界面,服务器默认该量子编程框架中的量子编程框架指令元数据为完整的,将该量子编程框架设置为量子指令;如果操作人员选择弹出可视化编程界面,在可视化编程界面中输入并保存要补充的量子编程框架指令元数据,服务器将保存好的量子编程框架设置为量子指令。
步骤104、根据预设匹配数据库,获取量子通讯适配器对应的量子模拟机和/或量子物理机,以通过量子通讯适配器将量子指令发送至量子模拟机和/或量子物理机中运行。
需要说明的是,预设匹配数据库还包含量子通讯适配器与量子模拟机和/或量子物理机的对应关系,需要说明的是,量子编程框架与量子通讯适配器一一对应;量子通讯适配器与量子模拟机和/或量子物理机一一对应。
具体地,在服务器获取到量子指令后,服务器将量子通讯适配器输入到预设匹配数据库中,获取该量子通讯适配器对应的量子模拟机和/或量子物理机,然后将该量子指令发送到量子通讯适配器对应的量子模拟机和/或量子物理机中。需要说明的是,当量子模拟机和/或量子物理机完成该量子指令的运行后,会将运行的反馈结果通过量子通讯适配器发送给服务器。服务器在接收到该量子指令的反馈结果后,可以存储该反馈结果,同时也可以将该反馈结果通过可视化界面展示出来。
除此之外,本申请实施例还提供了一种量子编程框架与量子计算机的适配设备,如图2所示,其上存储有可执行指令,在该可执行指令被执行时,实现如上述的一种量子编程框架与量子计算机的适配方法。具体地,服务器端通过总线向存储器发送执行指令,当存储器接收到执行指令时,通过总线向处理器发送执行信号,以激活处理器。
需要说明的是,处理器用于获取触发指令,以确定触发指令对应的量子通讯适配器;根据预设匹配数据库,确定量子通讯适配器对应的量子编程框架;基于量子编程框架,生成量子指令;其中,量子指令用于指示量子模拟机和/或量子物理机中的量子进行计算;根据预设匹配数据库,获取量子通讯适配器对应的量子模拟机和/或量子物理机,以通过量子通讯适配器将量子指令发送至量子模拟机和/或量子物理机中运行。
本申请中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括 一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。

Claims (10)

  1. 一种量子编程框架与量子计算机的适配方法,其特征在于,所述方法包括:
    获取触发指令,以确定所述触发指令对应的量子通讯适配器;
    根据预设匹配数据库,确定所述量子通讯适配器对应的量子编程框架;
    基于所述量子编程框架,生成量子指令;其中,所述量子指令用于指示量子模拟机和/或量子物理机中的量子进行计算;
    根据所述预设匹配数据库,获取所述量子通讯适配器对应的所述量子模拟机和/或量子物理机,以通过所述量子通讯适配器将所述量子指令发送至所述量子模拟机和/或量子物理机中运行。
  2. 根据权利要求1所述的一种量子编程框架与量子计算机的适配方法,其特征在于,根据预设匹配数据库,确定所述量子通讯适配器对应的量子编程框架,具体包括:
    根据所述量子通讯适配器以及所述预设匹配数据库,获取所述量子通讯适配器对应的所述量子编程框架的第一预设接口数据;
    加载所述第一预设接口数据,以获取所述量子编程框架。
  3. 根据权利要求1所述的一种量子编程框架与量子计算机的适配方法,其特征在于,
    所述量子通讯适配器至少包括量子元数据文件以及量子实现类;
    其中,所述量子元数据文件至少包括量子指令元数据以及量子通道元数据;
    所述量子实现类至少包括以下任意一项或者多项:量子模拟实现类、量子真机实现类。
  4. 根据权利要求3所述的一种量子编程框架与量子计算机的适配方法,其特征在于,所述方法还包括:
    通过所述量子通讯适配器,获取所述量子模拟机和/或量子物理机运行所述量子指令后的反馈数据;
    存储所述反馈数据,并通过可视化界面展示所述反馈数据。
  5. 根据权利要求1所述的一种量子编程框架与量子计算机的适配方法,其特征在于,
    所述量子编程框架至少包括量子编程框架指令元数据以及规则定义文件;
    其中,所述量子编程框架指令元数据用于定义所述量子编程框架;所述规则定义文件包含预设定义规则以及所述量子编程框架与所述量子通讯适配器的对应关系。
  6. 根据权利要求5所述的一种量子编程框架与量子计算机的适配方法,其特征在于,所述方法还包括:
    通过第一预设接口获取所述量子编程框架;
    触发所述量子编程框架,以获取所述量子编程框架对应的可视化编程界面;
    通过所述可视化编程界面,获取所述量子编程框架指令元数据。
  7. 根据权利要求1所述的一种量子编程框架与量子计算机的适配方法,其特征在于,所述方法还包括:
    获取所述量子编程框架对应的实现代码、所述规则定义文件对应的数据信息以及所述量子编程框架指令元数据;
    将所述量子编程框架对应的实现代码、所述规则定义文件对应的数据信息以及所述量子编程框架指令元数据进行封装,并生成第一预设接口;
    通过量子云平台,共享所述第一预设接口。
  8. 根据权利要求1所述的一种量子编程框架与量子计算机的适配方法,其特征在于,所述方法还包括:
    获取所述量子云平台共享的所述量子编程框架对应的第一预设接口;
    获取所述量子云平台共享的所述量子通讯适配器对应的第二预设接口;
    将所述第一预设接口以及所述第二预设接口存储在预设接口数据库中;其中,所述预设接口数据库包含预设界面,所述预设界面用于显示所述第一预设接口以及所述第二预设接口。
  9. 根据权利要求1所述的一种量子编程框架与量子计算机的适配方法,其特征在于,所述方法还包括:
    所述量子编程框架与所述量子通讯适配器一一对应;
    所述量子通讯适配器与所述量子模拟机和/或量子物理机一一对应。
  10. 一种量子编程框架与量子计算机的适配设备,其特征在于,所述设备包括:
    处理器;
    以及存储器,其上存储有可执行代码,当所述可执行代码被执行时,使得所述处理器执行如权利要求1-9任一项所述的一种量子编程框架与量子计算机的适配方法。
PCT/CN2021/112478 2021-06-28 2021-08-13 一种量子编程框架适配量子计算机的方法以设备 WO2023272891A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110720716.9 2021-06-28
CN202110720716.9A CN113420883B (zh) 2021-06-28 2021-06-28 一种量子编程框架适配量子计算机的方法及设备

Publications (1)

Publication Number Publication Date
WO2023272891A1 true WO2023272891A1 (zh) 2023-01-05

Family

ID=77717000

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/112478 WO2023272891A1 (zh) 2021-06-28 2021-08-13 一种量子编程框架适配量子计算机的方法以设备

Country Status (2)

Country Link
CN (1) CN113420883B (zh)
WO (1) WO2023272891A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024025328A1 (ko) * 2022-07-27 2024-02-01 주식회사 큐심플러스 양자정보기술 시스템 설계/검증 및 사용자 이용 편의성 향상 처리 장치 및 방법

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050182614A1 (en) * 2004-02-12 2005-08-18 Microsoft Corporation Systems and methods that facilitate quantum computer simulation
CN109213603A (zh) * 2018-05-31 2019-01-15 合肥本源量子计算科技有限责任公司 一种用于对接量子计算机与用户的云平台及平台运行方法
CN109508182A (zh) * 2018-09-18 2019-03-22 广州虎牙信息科技有限公司 快速生成指令的方法、服务器以及计算机存储介质
CN112214327A (zh) * 2020-10-23 2021-01-12 济南浪潮高新科技投资发展有限公司 一种基于量子云平台的量子计算机资源调度的系统及方法
CN113010374A (zh) * 2021-02-26 2021-06-22 济南浪潮高新科技投资发展有限公司 一种基于监控平台的量子设备监控的方法、系统

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AUPO798697A0 (en) * 1997-07-15 1997-08-07 Silverbrook Research Pty Ltd Data processing method and apparatus (ART51)
CN103177156A (zh) * 2013-02-27 2013-06-26 北京视博数字电视科技有限公司 一种企业应用集成适配器的设计器系统及其设计方法
CN105183452B (zh) * 2015-08-06 2020-09-25 福州闽嘉电力科技有限公司 一种用于配电设备监测基于Spring AOP的远程规约服务系统
CN109543845B (zh) * 2018-09-17 2020-04-14 合肥本源量子计算科技有限责任公司 单量子比特逻辑门的转化方法及装置
CN109376866B (zh) * 2018-09-17 2021-03-12 合肥本源量子计算科技有限责任公司 元数据的记录方法及装置、量子程序的运行方法及装置
CN109828751A (zh) * 2019-02-15 2019-05-31 福州大学 集成化的机器学习算法库与统一编程框架
CN110083454B (zh) * 2019-05-05 2023-01-24 山东浪潮科学研究院有限公司 一种带有量子计算机的混合云服务编排方法
CN110069348B (zh) * 2019-05-05 2023-09-19 山东浪潮科学研究院有限公司 一种高效利用云中心量子计算机资源的方法
CN111651788B (zh) * 2020-06-03 2022-06-10 山东省计算中心(国家超级计算济南中心) 一种基于格密码的终端访问控制系统及方法
CN111782304B (zh) * 2020-07-21 2024-04-02 深圳赛安特技术服务有限公司 分页加载数据逻辑控制方法、装置、计算机设备及介质
CN112230818A (zh) * 2020-10-30 2021-01-15 合肥本源量子计算科技有限责任公司 一种在终端界面编辑量子逻辑门的方法及装置
CN112596904A (zh) * 2020-12-25 2021-04-02 济南浪潮高新科技投资发展有限公司 一种基于量子云平台量子服务资源调用优化的方法
CN112819170B (zh) * 2021-01-22 2021-11-05 北京百度网讯科技有限公司 控制脉冲生成方法、装置、系统、设备及存储介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050182614A1 (en) * 2004-02-12 2005-08-18 Microsoft Corporation Systems and methods that facilitate quantum computer simulation
CN109213603A (zh) * 2018-05-31 2019-01-15 合肥本源量子计算科技有限责任公司 一种用于对接量子计算机与用户的云平台及平台运行方法
CN109508182A (zh) * 2018-09-18 2019-03-22 广州虎牙信息科技有限公司 快速生成指令的方法、服务器以及计算机存储介质
CN112214327A (zh) * 2020-10-23 2021-01-12 济南浪潮高新科技投资发展有限公司 一种基于量子云平台的量子计算机资源调度的系统及方法
CN113010374A (zh) * 2021-02-26 2021-06-22 济南浪潮高新科技投资发展有限公司 一种基于监控平台的量子设备监控的方法、系统

Also Published As

Publication number Publication date
CN113420883A (zh) 2021-09-21
CN113420883B (zh) 2022-11-22

Similar Documents

Publication Publication Date Title
US20210026932A1 (en) Detecting and tracking virtual containers
US9424160B2 (en) Detection of data flow bottlenecks and disruptions based on operator timing profiles in a parallel processing environment
US20150278335A1 (en) Scalable business process intelligence and predictive analytics for distributed architectures
US10242061B2 (en) Distributed execution of expressions in a query
US20180096030A1 (en) Materialized query tables with shared data
US10783112B2 (en) High performance compliance mechanism for structured and unstructured objects in an enterprise
US10621003B2 (en) Workflow handling in a multi-tenant cloud environment
CN104809124B (zh) 云虚拟文件系统及其输入/输出请求处理方法
WO2023272891A1 (zh) 一种量子编程框架适配量子计算机的方法以设备
CN111444158A (zh) 长短期用户画像生成方法、装置、设备及可读存储介质
US11321318B2 (en) Dynamic access paths
US11455574B2 (en) Dynamically predict optimal parallel apply algorithms
US11308086B2 (en) Increasing database performance through query aggregation
WO2023278943A1 (en) Registering additional type systems using a hub data model for data processing
US9158796B1 (en) Data source modeling methods for heterogeneous data sources and related computer program products and systems
US20180260142A1 (en) Performance oriented data deduplication and duplication
US8589475B2 (en) Modeling a cloud computing system
US11841833B2 (en) File reorganization
US11372734B1 (en) Database recovery based on workload priorities
US10901652B2 (en) Heat value tracking
US9792326B1 (en) Dynamically switching between execution paths for user-defined functions
US20200174909A1 (en) Automatically initiating tracing of program code based on statistical analysis
US20150120605A1 (en) Virtual data write-back for business intelligence reporting
US20180046691A1 (en) Query governor rules for data replication
US10956416B2 (en) Data schema discovery with query optimization

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21947829

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE