Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
CN109376866B - Method and device for recording metadata, and method and device for running quantum program - Google Patents
[go: Go Back, main page]

CN109376866B - Method and device for recording metadata, and method and device for running quantum program - Google Patents

Method and device for recording metadata, and method and device for running quantum program Download PDF

Info

Publication number
CN109376866B
CN109376866B CN201811082312.6A CN201811082312A CN109376866B CN 109376866 B CN109376866 B CN 109376866B CN 201811082312 A CN201811082312 A CN 201811082312A CN 109376866 B CN109376866 B CN 109376866B
Authority
CN
China
Prior art keywords
quantum
metadata
chip
program
qubit
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201811082312.6A
Other languages
Chinese (zh)
Other versions
CN109376866A (en
Inventor
窦猛汉
张嵩昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Benyuan Quantum Computing Technology Hefei Co ltd
Original Assignee
Origin Quantum Computing Technology Co Ltd
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 Origin Quantum Computing Technology Co Ltd filed Critical Origin Quantum Computing Technology Co Ltd
Priority to CN201811082312.6A priority Critical patent/CN109376866B/en
Publication of CN109376866A publication Critical patent/CN109376866A/en
Application granted granted Critical
Publication of CN109376866B publication Critical patent/CN109376866B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请提供了一种元数据的记录方法及装置、量子程序的运行方法及装置,其中,该元数据的记录方法包括:从量子芯片内部或者外部服务器,获取待使用的量子芯片的元数据,记录所述元数据,后续在使用该量子芯片时依据该元数据对进行量子程序进行转换,使得量子程序可以在量子芯片上执行,解决了相关技术中由于缺乏记录元数据的方案导致量子程序运行范围有限的问题,及时准确地记录元数据,增加了量子程序的适用范围。

Figure 201811082312

The present application provides a method and device for recording metadata, and a method and device for running a quantum program, wherein the method for recording metadata includes: obtaining metadata of a quantum chip to be used from an internal quantum chip or an external server, The metadata is recorded, and the quantum program is subsequently converted according to the metadata when the quantum chip is used, so that the quantum program can be executed on the quantum chip, which solves the problem that the quantum program runs due to the lack of a solution for recording metadata in the related art. Problems of limited scope, timely and accurate recording of metadata, increases the applicability of quantum programs.

Figure 201811082312

Description

Method and device for recording metadata and method and device for running quantum program
Technical Field
The present invention relates to, but not limited to, the field of quantum computing, and in particular, to a method and an apparatus for recording metadata, and a method and an apparatus for running a quantum program.
Background
In the related art, quantum computing achieves the purpose of processing information by encoding operation on a quantum system, and the technology is mainly a method for metadata recording of a quantum chip. A quantum chip is a physical chip that carries quantum information processing by integrating quantum wires on a substrate. Metadata (Metadata) is information for describing Data attributes, or Data about describing Data (Data about Data), and Metadata is describing Data about internal attributes of the quantum chip.
Quantum computation takes a Qubit (Qubit) as a basic processing unit, in a quantum computation circuit model structure, a quantum logic gate which only acts on a single Qubit is called a single quantum logic gate, while a quantum logic gate which acts on two qubits is a two-Qubit logic gate, and so on to a multi-Qubit logic gate.
In the related art scheme, there is no general scheme for recording the quantum chip metadata. The developers of quantum chips design their metadata according to their own conditions, and the common schemes do not reach consensus.
Aiming at the problem that the operation range of a quantum program is limited due to the lack of a scheme for recording metadata in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the application provides a method and a device for recording metadata and a method and a device for operating a quantum program, so as to at least solve the problem that the operation range of the quantum program is limited due to the lack of a scheme for recording the metadata in the related art.
According to an embodiment of the present application, there is provided a recording method of metadata, including: acquiring metadata of a quantum chip; the metadata is recorded.
According to another embodiment of the present document, there is also provided an operating method of a quantum program, including: acquiring metadata of a quantum chip to be operated with a first quantum program; converting the first quantum program into a second quantum program according to the metadata; executing the second quantum program on the quantum chip.
According to another embodiment of the present document, there is also provided a metadata recording apparatus including: the acquisition module is used for acquiring metadata of the quantum chip; and the recording module is used for recording the metadata.
According to another embodiment of the present document, there is also provided an apparatus for operating a quantum program, including: the second acquisition module is used for acquiring metadata of a quantum chip to be operated with the first quantum program; the conversion module is used for converting the first quantum program into a second quantum program according to the metadata; an execution module to execute the second quantum program on the quantum chip.
According to a further embodiment of the present application, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present application, there is also provided an electronic device, comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
According to the method and the device, the metadata of the quantum chip to be used is obtained from the server inside or outside the quantum chip, the metadata is recorded, the quantum program is converted according to the metadata when the quantum chip is used subsequently, so that the quantum program can be executed on the quantum chip, the problem that the operation range of the quantum program is limited due to the lack of a scheme for recording the metadata in the related technology is solved, the metadata is timely and accurately recorded, and the application range of the quantum program is increased.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a recording method of metadata according to an embodiment of the present application;
fig. 2 is a flowchart of a recording method of metadata according to an embodiment of the present application;
fig. 3 is a diagram of a quantum chip model according to the related art;
FIG. 4 is a schematic diagram of an example quantum chip link structure represented by an unorganized diagram according to the present application;
fig. 5 is a schematic illustration of a CNOT door and a CZ door according to the present document.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The technical scheme of the application document can be used in the quantum computing scene, and the specific execution device can be a quantum computer or a device for storing metadata of a quantum chip.
Example one
The method provided by the first embodiment of the present application may be executed in a computer terminal, or a similar computing device. Taking an example of the method running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of a recording method of metadata according to an embodiment of the present application. As shown in fig. 1, the computer terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the recording method of metadata in the embodiment of the present application, and the processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In the present embodiment, a method for recording metadata is provided, and fig. 2 is a flowchart of a method for recording metadata according to an embodiment of the present application, where as shown in fig. 2, the flowchart includes the following steps:
step S202, obtaining metadata of the quantum chip;
step S204, recording the metadata.
Through the steps, the metadata of the quantum chip to be used is obtained from the server inside or outside the quantum chip, the metadata is recorded, and the quantum program is converted according to the metadata when the quantum chip is used subsequently, so that the quantum program can be executed on the quantum chip, the problem that the operation range of the quantum program is limited due to the lack of a scheme for recording the metadata in the related technology is solved, the metadata is timely and accurately recorded, and the application range of the quantum program is increased.
Optionally, recording the metadata includes: the metadata is recorded in formatted text. The formatted text may include the form of JSON, XML, ini files, etc.
Optionally, the metadata comprises at least one of the following types: a connection structure between qubits on the quantum chip; a first set of single qubit operation gates supported by each qubit on the qubit chip; a second set of two qubit operation gates supported is connected between every two qubits on the qubit chip.
Optionally, when the metadata is a connection structure between the qubits, the method includes: in the formatted text, the connection structure between the qubits is recorded in the form of an unweighted graph.
Optionally, recording a connection structure between the qubits in the form of an unweighted graph, comprising: and recording the connection structure between the quantum bits by adopting an adjacent matrix method or an adjacent table method.
Optionally, the first set of single-qubit operation gates supported by each qubit on the qubit chip comprises single-qubit operation gates having: the matrix elements of the single-quantum bit operation gate are discrete elements; or, the matrix elements of the single-qubit operation gate are consecutive elements. When the matrix element is a discrete element, the matrix element is represented as a constant value; when the matrix element is a continuous element, it means that the matrix element is configured with at least one parameter, and the parameter may include a range.
Optionally, the second set of two-qubit operation gates supported by the connection between every two qubits on the qubit chip includes two-qubit operation gates having: matrix elements of the two qubit operation gates are discrete elements; alternatively, the matrix elements of the two qubit operation gates are consecutive elements.
According to another embodiment of the present document, there is also provided an operating method of a quantum program, including the steps of:
acquiring metadata of a quantum chip to be operated with a first quantum program;
step two, converting the first quantum program into a second quantum program according to the metadata;
and step three, executing the second quantum program on the quantum chip.
By adopting the steps, the first quantum program to be executed is timely converted into a quantum chip supporting mode, the problem that the operation range of the quantum program is limited due to the lack of a scheme for recording the metadata in the related technology is solved, the metadata is timely and accurately recorded, and the application range of the quantum program is enlarged.
Optionally, before the first quantum program is converted into the second quantum program according to the metadata, it is determined that the first quantum program cannot be run on the quantum chip according to the metadata. On the contrary, when it is determined that the first quantum program can be run on the quantum chip, the first quantum program is directly run without conversion.
The following description is made in conjunction with another embodiment of the present document.
Fig. 3 is a diagram of a quantum chip model according to the related art, and Q1, Q2, Q3, and Q4 represent qubits, as shown in fig. 3.
The metadata of the quantum chip contains the following information: (1) the topological structure of the quantum chip (the connection relation between quantum bits) is included; (2) the single-quantum-bit logic gate comprises a single-quantum-bit logic gate supported by each quantum bit in the quantum chip; (3) including two qubit logic gates supported by any connection in the quantum chip.
Metadata of quantum chips in the related art has two characteristics:
1. the metadata of each chip is a unique attribute of the chip, and in any quantum program, the quantum program can be executed on the chip only if the logic gates contained in the quantum program are consistent with the metadata. Such as: given a quantum chip, which only supports qubit flip operations, the quantum logic gates contained in the designed quantum program must be effectively converted out of the corresponding flip operation gates to be able to run on the chip.
2. In the related art scheme, there is no general scheme for recording the quantum chip metadata. The developers of quantum chips design their metadata according to their own conditions, and the common schemes do not reach consensus.
Some chip developers in the related art do not limit the addition of some quantum logic gates by recording metadata. This greatly increases the difficulty of creating quantum programs. For example, when adapting different quantum chips, the same program needs to be created or translated in different ways between the different chips. Such as: the given quantum chip defines the phase reversal operation, but the phase reversal is set as a general operation in the programming, so when the program is adapted to the quantum chip, because no metadata is recorded, the conversion operation cannot be made, and errors are inevitable.
The application adopts a general method to record the metadata of the quantum chip. The metadata can effectively help the automatic adaptation of the quantum program and the quantum chip, so that the purposes of 'one-time creation and everywhere running' of the quantum program are realized, and the creation of the quantum program is simplified. By recording the metadata, the creation of the quantum program is no longer limited by the chip structure.
The metadata of a quantum chip contains three types of information. First, a connection structure between qubits on a quantum chip; second, the set of single qubit operation gates supported by each qubit (corresponding to a node of the graph, see fig. 3); third, every two qubits connects the two qubit operation gate sets supported (for the edges of the graph in fig. 3).
For the first type of metadata, a connection structure of qubits on a quantum chip. Such connections are usually expressed in the form of "weightless graphs" in graph theory, such as adjacency matrix methods, adjacency list methods, and the like.
Fig. 4 is a schematic diagram of an example of a quantum chip link structure represented by an unweighted graph according to the application, and as shown in fig. 4, the left side is an unweighted graph used for representing an example of a link structure of a quantum chip on the right side, and the vertexes of the graph correspond to quantum bits on the quantum chip in a one-to-one manner. The edges of the graph correspond one-to-one to all the two qubit gates supported in the quantum chip. The edges of the graph are directed or undirected, and are determined according to whether quantum logic operation gates on two qubits are kept unchanged when exchanging positions. Fig. 5 is a schematic diagram of a CNOT gate and a CZ gate according to the present document, as shown in fig. 5, for the CNOT gate, expressed in the manner of a "directed graph" because the position is switched, the operation is not equivalent, as shown on the left side of fig. 5. For the CZ gate, ISWAP gate, we use "undirected graph" to describe, switch positions, and operate equivalently, as shown in the right side of fig. 5.
For the second type of metadata, each qubit on the chip supports a set of single-qubit operation gates. The set contains all the single qubit operating forms (unitary matrix form of 2 x 2) supported by the qubits. The set elements in this form are divided into two types, one is discrete elements, which represent elements whose operation matrix (called unitary transform matrix, quantum logic gate in the field of quantum computation) on a quantum chip is constant, such as Hadamard gate, X gate, Y gate, Z gate, T gate, etc.; the second is a continuous element, which represents an element of the operation matrix on the quantum chip configured by at least one parameter, such as an RX gate, a U3 gate, a U2 gate, and the like.
For the third type of metadata, a set of two qubit gates supported by every two connected qubits on the qubit chip. The set contains all the two-qubit operating forms supported by the two-by-two connection (unitary matrix form of 4 x 4). This form of set element is divided into two types, one being a discrete element which represents an operation whose matrix of operations is constant, such as a CNOT gate, an ISWAP gate, a CZ gate; the second is a continuous element, which represents an element of the operation matrix on the quantum chip configured by at least one parameter, such as a CPHASE gate, a C-U gate.
In the application, formatted text is adopted to record the quantum chip source data. Formatted text is a text file with information about style, layout, and format, and the use of formatted text records is a more optimized and persistent solution (which can be stored on a medium such as a hard disk for a long period of time). For example: compared with general texts, the formatted texts can increase the reading and configuration efficiency in the forms of JSON, XML, ini files and the like.
In the software construction, recording by using the adjacency matrix of the graph is a more optimized temporary recording (i.e. reading in the memory) scheme. Fig. 3 is described using a adjacency matrix, which in graph theory is a common storage representation representing a graph that stores information about data elements (e.g., 1,2,3,4 in fig. 3) and information about relationships (edges or arcs) between data elements (e.g., edges between 1,2,3,4 in fig. 3) in two arrays, respectively. Here, the diagonal elements in the adjacency matrix store the set of single-qubit logic-operated gates supported by the qubits; the off-diagonal elements in the matrix store the connections that can be supported by two qubits, and the two sets of quantum logic operation gates in the connections. The benefit of this scheme is that it is easy to index the relationship between qubits, and the presence of a connection can be judged by the temporal complexity of O (1).
Recording using the adjacency list of the graph is another more optimal temporary recording scheme. The graph is described by using an adjacency list (in graph theory, the adjacency list represents all edges or arcs in one graph), all nodes (corresponding to quantum bits on a chip) are stored by an array, and the nodes comprise single-quantum-bit logic gates supported by the quantum bits; and storing all edges, including the two qubit logic gates supported by this connection, via another array.
In this document, a generic data structure (e.g., formatted text) is used to store the connections on the quantum chip and the set of single-qubit and two-qubit logic gates that are supported. The single-quantum-bit logic gate and the two-quantum-bit logic gate can be a continuous set or a discrete set, and are suitable for the conditions of different quantum chip measurement and control systems. In the above scheme, a persistent storage scheme may be used, or a scheme recorded in a memory may be used.
By adopting the technical scheme, the following technical effects are realized:
1. a universal and unified data structure is used to store the connection relationship on the quantum chip and the collection of single-quantum-bit and two-quantum-bit logic gates supported.
2. Considering that the single-qubit logic gate and the two-qubit logic gate may be continuous and may be discrete sets, which is suitable for different quantum chip measurement and control systems.
3. The data adopts a graph model, is easy to record, and can use a persistent storage scheme or a scheme recorded in a memory.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
Example two
In this embodiment, a metadata recording apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
According to an embodiment of the present document, there is provided a metadata recording apparatus including:
the first acquisition module is used for acquiring metadata of the quantum chip;
and the recording module is used for recording the metadata.
By adopting the technical scheme, the metadata of the quantum chip to be used is obtained from the server inside or outside the quantum chip, the metadata is recorded, and the quantum program is converted according to the metadata when the quantum chip is used subsequently, so that the quantum program can be executed on the quantum chip, the problem that the operation range of the quantum program is limited due to the lack of a scheme for recording the metadata in the related technology is solved, the metadata is timely and accurately recorded, and the application range of the quantum program is increased.
According to another embodiment of the present document, there is also provided an apparatus for operating a quantum program, including:
the second acquisition module is used for acquiring metadata of a quantum chip to be operated with the first quantum program;
the conversion module is used for converting the first quantum program into a second quantum program according to the metadata;
an execution module to execute the second quantum program on the quantum chip.
By adopting the steps, the first quantum program to be executed is timely converted into a quantum chip supporting mode, the problem that the operation range of the quantum program is limited due to the lack of a scheme for recording the metadata in the related technology is solved, the metadata is timely and accurately recorded, and the application range of the quantum program is enlarged.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
EXAMPLE III
Embodiments of the present application also provide a storage medium. Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps:
s1, obtaining metadata of the quantum chip;
and S2, recording the metadata.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Embodiments of the present application further provide an electronic device comprising a memory having a computer program stored therein and a processor configured to execute the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, obtaining metadata of the quantum chip;
and S2, recording the metadata.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present application described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1.一种元数据的记录方法,其特征在于,包括:1. a recording method of metadata, is characterized in that, comprises: 获取量子芯片的元数据;Obtain the metadata of the quantum chip; 记录所述元数据;record said metadata; 其中,所述元数据包括以下类型至少之一:所述量子芯片上量子比特之间的连接结构;所述量子芯片上每个量子比特支持的单量子比特操作门的第一集合;所述量子芯片上每两个量子比特之间连接支持的两量子比特操作门的第二集合。The metadata includes at least one of the following types: a connection structure between qubits on the quantum chip; a first set of single-qubit operation gates supported by each qubit on the quantum chip; the quantum The second set of two-qubit operation gates supported by connections between every two qubits on the chip. 2.根据权利要求1所述的方法,其特征在于,记录所述元数据,包括:在格式化文本中记录所述元数据。2. The method of claim 1, wherein recording the metadata comprises: recording the metadata in formatted text. 3.根据权利要求1所述的方法,其特征在于,在所述元数据为所述量子比特之间的连接结构时,包括:3. The method according to claim 1, wherein when the metadata is a connection structure between the quantum bits, the method comprises: 在格式化文本中,采用无权图的形式记录所述量子比特之间的连接结构。In the formatted text, the connection structure between the qubits is recorded in the form of an unweighted graph. 4.根据权利要求3所述的方法,其特征在于,采用无权图的形式记录所述量子比特之间的连接结构,包括:采用邻接矩阵法或邻接表法记录所述量子比特之间的连接结构。4. The method according to claim 3, wherein recording the connection structure between the qubits in the form of an unweighted graph comprises: recording the connection structure between the qubits by using an adjacency matrix method or an adjacency table method. connection structure. 5.根据权利要求1所述的方法,其特征在于,所述量子芯片上每个量子比特支持的单量子比特操作门的第一集合,包括具有以下特征的单量子比特操作门:5. The method according to claim 1, wherein the first set of single-qubit operation gates supported by each qubit on the quantum chip comprises a single-qubit operation gate with the following characteristics: 单量子比特操作门的矩阵元素为离散元素;The matrix elements of the single-qubit operation gate are discrete elements; 或,单量子比特操作门的矩阵元素为连续元素。Or, the matrix elements of a single-qubit operation gate are consecutive elements. 6.根据权利要求1所述的方法,其特征在于,所述量子芯片上每两个量子比特之间连接支持的两量子比特操作门的第二集合,包括具有以下特征的两量子比特操作门:6. The method according to claim 1, wherein the second set of two-qubit operation gates supported by the connection between every two qubits on the quantum chip comprises two-qubit operation gates with the following characteristics : 两量子比特操作门的矩阵元素为离散元素;The matrix elements of the two-qubit operation gate are discrete elements; 或者,两量子比特操作门的矩阵元素为连续元素。Alternatively, the matrix elements of the two-qubit operation gate are consecutive elements. 7.一种量子程序的运行方法,其特征在于,包括:7. A method for running a quantum program, comprising: 获取待运行第一量子程序的量子芯片的元数据;Obtain the metadata of the quantum chip to be run the first quantum program; 依据所述元数据转化所述第一量子程序为第二量子程序;transforming the first quantum program into a second quantum program according to the metadata; 在所述量子芯片上执行所述第二量子程序;executing the second quantum program on the quantum chip; 其中,所述元数据包括以下类型至少之一:所述量子芯片上量子比特之间的连接结构;所述量子芯片上每个量子比特支持的单量子比特操作门的第一集合;所述量子芯片上每两个量子比特之间连接支持的两量子比特操作门的第二集合。The metadata includes at least one of the following types: a connection structure between qubits on the quantum chip; a first set of single-qubit operation gates supported by each qubit on the quantum chip; the quantum The second set of two-qubit operation gates supported by connections between every two qubits on the chip. 8.根据权利要求7所述的方法,其特征在于,依据所述元数据转化所述第一量子程序为第二量子程序之前,包括:8. The method according to claim 7, wherein before converting the first quantum program into the second quantum program according to the metadata, comprising: 依据所述元数据确定所述量子芯片上无法运行所述第一量子程序。It is determined according to the metadata that the first quantum program cannot be run on the quantum chip. 9.一种元数据的记录装置,其特征在于,包括:9. A recording device for metadata, comprising: 第一获取模块,用于获取量子芯片的元数据;The first acquisition module is used to acquire the metadata of the quantum chip; 记录模块,用于记录所述元数据;a recording module for recording the metadata; 其中,所述元数据包括以下类型至少之一:所述量子芯片上量子比特之间的连接结构;所述量子芯片上每个量子比特支持的单量子比特操作门的第一集合;所述量子芯片上每两个量子比特之间连接支持的两量子比特操作门的第二集合。The metadata includes at least one of the following types: a connection structure between qubits on the quantum chip; a first set of single-qubit operation gates supported by each qubit on the quantum chip; the quantum The second set of two-qubit operation gates supported by connections between every two qubits on the chip. 10.一种量子程序的运行装置,其特征在于,包括:10. A device for running a quantum program, comprising: 第二获取模块,用于获取待运行第一量子程序的量子芯片的元数据;The second acquisition module is used to acquire the metadata of the quantum chip to be run the first quantum program; 转化模块,用于依据所述元数据转化所述第一量子程序为第二量子程序;a conversion module, configured to convert the first quantum program into a second quantum program according to the metadata; 执行模块,用于在所述量子芯片上执行所述第二量子程序;an execution module for executing the second quantum program on the quantum chip; 其中,所述元数据包括以下类型至少之一:所述量子芯片上量子比特之间的连接结构;所述量子芯片上每个量子比特支持的单量子比特操作门的第一集合;所述量子芯片上每两个量子比特之间连接支持的两量子比特操作门的第二集合。The metadata includes at least one of the following types: a connection structure between qubits on the quantum chip; a first set of single-qubit operation gates supported by each qubit on the quantum chip; the quantum A second set of two-qubit operation gates supported by connections between every two qubits on the chip. 11.一种存储介质,其特征在于,所述存储介质中存储有计算机程序,其中,所述计算机程序被设置为运行时执行所述权利要求1至8任一项中所述的方法。11. A storage medium, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the method according to any one of claims 1 to 8 when running. 12.一种电子装置,包括存储器和处理器,其特征在于,所述存储器中存储有计算机程序,所述处理器被设置为运行所述计算机程序以执行所述权利要求1至8任一项中所述的方法。12. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any one of claims 1 to 8 method described in.
CN201811082312.6A 2018-09-17 2018-09-17 Method and device for recording metadata, and method and device for running quantum program Active CN109376866B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811082312.6A CN109376866B (en) 2018-09-17 2018-09-17 Method and device for recording metadata, and method and device for running quantum program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811082312.6A CN109376866B (en) 2018-09-17 2018-09-17 Method and device for recording metadata, and method and device for running quantum program

Publications (2)

Publication Number Publication Date
CN109376866A CN109376866A (en) 2019-02-22
CN109376866B true CN109376866B (en) 2021-03-12

Family

ID=65405415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811082312.6A Active CN109376866B (en) 2018-09-17 2018-09-17 Method and device for recording metadata, and method and device for running quantum program

Country Status (1)

Country Link
CN (1) CN109376866B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12498922B2 (en) 2021-04-21 2025-12-16 Origin Quantum Computing Technology (Hefei) Co., Ltd Quantum computing platform adaptation method and apparatus, and quantum computer operating system

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109816112B (en) * 2019-01-11 2021-01-05 合肥本源量子计算科技有限责任公司 A method and device for parsing quantum program storage files
CN109858628B (en) * 2019-02-28 2021-04-27 北京百度网讯科技有限公司 Method, apparatus, device and computer readable storage medium for compiling quantum circuit
CN109961150B (en) * 2019-03-27 2021-05-07 中国科学技术大学 Quantum program transformation method and system for decoherence
WO2022166851A1 (en) * 2021-02-07 2022-08-11 合肥本源量子计算科技有限责任公司 Quantum computer operating system, quantum computer, and readable storage medium
CN113420883B (en) * 2021-06-28 2022-11-22 山东浪潮科学研究院有限公司 Method and equipment for quantum programming frame to adapt to quantum computer
CN114326494B (en) * 2021-12-21 2024-06-25 华东计算技术研究所(中国电子科技集团公司第三十二研究所) Quantum measurement and control system and method for superconducting quantum computer

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006331249A (en) * 2005-05-30 2006-12-07 Nippon Telegr & Teleph Corp <Ntt> Quantum program conversion apparatus, method thereof, program thereof and recording medium
CN101082927A (en) * 2007-07-02 2007-12-05 浙江大学 File services method based on ContextFS context file systems
CN102082662A (en) * 2011-01-30 2011-06-01 山东量子科学技术研究院有限公司 Quantum safety communication method based on synchronous random number information base information retrieval
CN103473111A (en) * 2013-08-16 2013-12-25 运软网络科技(上海)有限公司 Method and system for brain-like computing virtualization
CN103617046A (en) * 2013-12-12 2014-03-05 用友软件股份有限公司 Method and device for scanning and extracting resources to be translated in target system source codes
CN108154240A (en) * 2017-12-29 2018-06-12 合肥本源量子计算科技有限责任公司 A kind of quantum wire simulation system of low complex degree
CN108256651A (en) * 2013-06-28 2018-07-06 D-波系统公司 For data to be carried out with the method for quantum treatment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101542450B (en) * 2007-05-28 2012-05-23 松下电器产业株式会社 Metadata recording apparatus and metadata recording method
JP4786727B2 (en) * 2009-03-27 2011-10-05 株式会社東芝 Quantum calculation method, quantum computer and program
US8972921B2 (en) * 2013-03-14 2015-03-03 International Business Machines Corporation Symmetric placement of components on a chip to reduce crosstalk induced by chip modes
CN103885123B (en) * 2014-04-16 2016-04-27 上海交通大学 Random polarization state quantum bit projection separating chips and manufacture method thereof
US9524470B1 (en) * 2015-06-12 2016-12-20 International Business Machines Corporation Modular array of vertically integrated superconducting qubit devices for scalable quantum computing
CN105957832B (en) * 2016-05-12 2020-09-22 中国科学院物理研究所 Wiring method and wiring board for surface coding scheme superconducting qubit system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006331249A (en) * 2005-05-30 2006-12-07 Nippon Telegr & Teleph Corp <Ntt> Quantum program conversion apparatus, method thereof, program thereof and recording medium
CN101082927A (en) * 2007-07-02 2007-12-05 浙江大学 File services method based on ContextFS context file systems
CN102082662A (en) * 2011-01-30 2011-06-01 山东量子科学技术研究院有限公司 Quantum safety communication method based on synchronous random number information base information retrieval
CN108256651A (en) * 2013-06-28 2018-07-06 D-波系统公司 For data to be carried out with the method for quantum treatment
CN103473111A (en) * 2013-08-16 2013-12-25 运软网络科技(上海)有限公司 Method and system for brain-like computing virtualization
CN103617046A (en) * 2013-12-12 2014-03-05 用友软件股份有限公司 Method and device for scanning and extracting resources to be translated in target system source codes
CN108154240A (en) * 2017-12-29 2018-06-12 合肥本源量子计算科技有限责任公司 A kind of quantum wire simulation system of low complex degree

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Invariants of quantum programs: characterisations and generation;Mingsheng Ying et al;《POPL 2017: Proceedings of the 44th ACM SIGPLAN Symposium on Principles of Programming Languages》;20170131;第818-832页 *
量子程序设计语言NDQJava2处理系统——代码转换程序;蔡希辉等;《计算机科学与探索》;20130402;第659-666页 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12498922B2 (en) 2021-04-21 2025-12-16 Origin Quantum Computing Technology (Hefei) Co., Ltd Quantum computing platform adaptation method and apparatus, and quantum computer operating system

Also Published As

Publication number Publication date
CN109376866A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN109376866B (en) Method and device for recording metadata, and method and device for running quantum program
CN111767143B (en) Transaction data processing method, device, equipment and system
Silva et al. Management platforms and protocols for internet of things: A survey
GB2574903A (en) Compilable data model
US20210365253A1 (en) Heterogeneity-agnostic and topology-agnostic data plane programming
Zhang et al. Sensor data as a service--a federated platform for mobile data-centric service development and sharing
Sciullo et al. Wot store: Enabling things and applications discovery for the w3c web of things
US8577848B2 (en) Converting two-tier resource mapping to one-tier resource mapping
CN111767144A (en) Transaction routing determination method, device, equipment and system for transaction data
EP4024202A1 (en) Method for constructing intermediate representation, compiler and server
CN112698817B (en) Message access method, device and system based on micro-service architecture and storage medium
JP2025535207A (en) Multimodal network compilation method, system, and storage medium
Sultanow et al. A review of IoT technologies, standards, tools, frameworks and platforms
Kamgueu et al. Architecture for an efficient integration of wireless sensor networks to the Internet through Internet of Things gateways
Mynzhasova et al. Drivers, standards and platforms for the IoT: Towards a digital VICINITY
WO2008063895A2 (en) Automatic configuration of network elements based on service contract definitions
CN113590348A (en) Parameter transmission method, device, equipment and medium based on tree structure
Cecílio et al. Existing middleware solutions for wireless sensor networks
WO2016095509A1 (en) Conversion method and conversion apparatus for object-oriented model data
CN110413338B (en) Method, equipment and readable medium for configuring big data platform
Kifouche et al. Model driven framework to enhance sensor network design cycle
TWI540861B (en) Management system and management method
CN115878702A (en) A method, device and equipment for realizing operation and maintenance data collection
CN117956017B (en) Method for providing service data and related device
CN114168683A (en) DataX-based data exchange task optimization method, device and application

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province

Patentee after: Benyuan Quantum Computing Technology (Hefei) Co.,Ltd.

Country or region after: China

Address before: 230088 6th floor, E2 building, phase II, innovation industrial park, 2800 innovation Avenue, high tech Zone, Hefei City, Anhui Province

Patentee before: ORIGIN QUANTUM COMPUTING COMPANY, LIMITED, HEFEI

Country or region before: China

CP03 Change of name, title or address