Quantum operation processing method, apparatus, and system

By receiving control instructions from the processor, it obtains quantum operation instructions and determines the target electronic device, and generates waveform signals. It solves the control complexity problem caused by the increase in the number of electronic devices in quantum computing and achieves efficient control of multiple quantum devices. .

WO2024187994A1PCT designated stage expired Publication Date: 2024-09-19ALIBABA (CHINA) CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/075865
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-10
Filing Date
2024-02-04
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

In quantum computing, when the number of electronic devices that need to be controlled increases, the control complexity also increases, and existing technology cannot effectively solve this problem.

Method used

By receiving control instructions from the processor, obtaining quantum operation instructions, and determining target electronic devices, these devices are used to generate waveform signals for executing quantum devices to achieve unified control of multiple quantum devices.

Benefits of technology

It improves the processing efficiency of quantum operations, simplifies instruction execution, reduces control complexity, and achieves efficient control of multiple quantum devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024075865_19092024_PF_FP_ABST
    Figure CN2024075865_19092024_PF_FP_ABST
Patent Text Reader

Abstract

Disclosed in the present invention are a quantum operation processing method, apparatus, and system. The solution relates to the field of quantum technologies. The method comprises: receiving a control instruction from a processor, wherein the control instruction is used for instructing to carry out a quantum operation on a plurality of quantum devices; on the basis of the control instruction, acquiring a quantum operation instruction from a storage device externally mounted on the processor; and determining a plurality of target electronic devices corresponding to the quantum operation instruction, wherein the plurality of target electronic devices are respectively used for generating, on the basis of the quantum operation instruction, a waveform signal used for carrying out the quantum operation on the corresponding quantum devices. The present invention solves the technical problem in the prior art that when the number of electronic devices needing to be controlled is increased, the realized control amount is also correspondingly increased, resulting in increase of the control complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Quantum operation processing method, device and system Technical Field

[0001] The present invention relates to the field of quantum technology, and in particular to a quantum operation processing method, device and system. Background Art

[0002] In quantum computing, it is necessary to control electronic equipment to generate the required microwave signals according to a specific timing, collect microwave signals within a set time window, and control quantum devices (for example, quantum bits) based on the collected microwave signals. When controlling a quantum device, the control of the quantum device can be achieved by generating microwave signals through an electronic device. However, when the number of quantum devices increases, the number of electronic devices that need to be controlled will also increase. In related technologies, when the number of electronic devices that need to be controlled increases, the amount of control that can be achieved also increases accordingly, resulting in the problem of increased control complexity.

[0003] To address the above-mentioned problems, no effective solutions have been proposed so far.

[0004] Summary of the Invention

[0005] Embodiments of the present invention provide a quantum operation processing method, apparatus, and system to at least address the technical problem in related technologies where, as the number of electronic devices to be controlled increases, the amount of control implemented also increases accordingly, leading to increased control complexity.

[0006] According to one aspect of an embodiment of the present invention, a quantum operation processing method is provided, comprising: receiving a control instruction from a processor, wherein the control instruction is used to instruct the execution of a quantum operation on multiple quantum devices; based on the control instruction, obtaining the quantum operation instruction from a storage device external to the processor; and determining multiple target electronic devices corresponding to the quantum operation instruction, wherein the multiple target electronic devices are respectively used to generate waveform signals for executing the quantum operation on the corresponding quantum devices based on the quantum operation instruction.

[0007] Optionally, before acquiring a plurality of quantum operation instructions from a storage device external to the processor based on the control instruction, the method further includes: storing different types of quantum operation instructions in different address partitions in the storage device.

[0008] Optionally, the storage device is mounted on the system bus of the processor via a memory mapped input / output interface MMIO.

[0009] Optionally, determining the multiple target electronic devices corresponding to the quantum operation instruction includes: when the quantum operation instruction carries a first set of information, broadcasting the quantum operation instruction to multiple candidate electronic devices, wherein the first set of information is used to indicate the electronic devices targeted by the quantum operation instruction; obtaining a matching result between the first set of information carried in the quantum operation instruction and a second set of information of the multiple candidate electronic devices; and determining the multiple target electronic devices based on the matching results corresponding to the multiple candidate electronic devices.

[0010] Optionally, after determining multiple target electronic devices corresponding to the quantum operation instruction, it also includes: when the quantum operation instruction is a non-waveform operation instruction, obtaining a mapping relationship between the non-waveform operation instruction and the waveform operation instruction; based on the mapping relationship, mapping the non-waveform operation instruction to a waveform operation instruction, wherein the waveform operation instruction is used to generate the waveform signal.

[0011] Optionally, converting the non-waveform operation instruction into a waveform operation instruction based on the mapping relationship includes: when the non-waveform operation instruction includes a first gate operation instruction, determining that the mapping relationship is a first relationship, wherein the first relationship is a correspondence between a gate operation instruction and a waveform operation instruction; and mapping the first gate operation instruction to a first waveform operation instruction based on the first relationship.

[0012] Optionally, converting the non-waveform operation instruction into a waveform operation instruction based on the mapping relationship includes: when the non-waveform operation instruction includes an application operation instruction, determining the mapping relationship as a first relationship and a second relationship, wherein the first relationship is a correspondence relationship between a gate operation instruction and a waveform operation instruction, and the second relationship is a correspondence relationship between an application operation instruction and a gate operation instruction; mapping the application operation instruction to a second gate operation instruction based on the second relationship; and mapping the second gate operation instruction to a second waveform operation instruction based on the first relationship.

[0013] Optionally, the method further includes: determining the mapping relationship based on at least two memories, wherein one of the at least two memories is used to store the time of the quantum operation corresponding to the mapping, and the other is used to store the identifier of the quantum operation corresponding to the mapping.

[0014] Optionally, the method further includes: receiving a relationship update instruction; and updating the mapping relationship in response to the relationship update instruction.

[0015] Optionally, the quantum device is a quantum bit, and the quantum bit is a Fluxonium quantum bit.

[0016] According to another aspect of the present invention, a quantum operation processing apparatus is provided, comprising: a receiving module for receiving a control instruction from a processor, wherein the control instruction is used to instruct the execution of a quantum operation on a plurality of quantum devices; an acquiring module for acquiring the quantum operation instruction from a storage device external to the processor based on the control instruction; and a determining module for determining a plurality of target electronic devices corresponding to the quantum operation instruction, wherein the plurality of target electronic devices are respectively used to generate, based on the quantum operation instruction, a waveform signal for executing the quantum operation on the corresponding quantum device.

[0017] According to another aspect of the present invention, a quantum operation processing system is provided, comprising: a main control device and a digital-to-analog conversion device, wherein the main control device includes a processor, a storage device, and an actuator, and the digital-to-analog conversion device includes: an analyzer and an electronic device, wherein the processor is used to generate control instructions, wherein the control instructions are used to instruct the execution of quantum operations on multiple quantum devices; the storage device is used to store quantum operation instructions; the actuator is used to obtain the quantum operation instructions from the storage device external to the processor based on the control instructions; the analyzer is used to determine multiple target electronic devices corresponding to the quantum operation instructions; and the electronic device is used to generate waveform signals for executing the quantum operations on corresponding quantum devices based on the quantum operation instructions.

[0018] Optionally, the main control device is connected to the digital-to-analog conversion device via a star connector, so as to transmit the quantum operation instruction acquired by the actuator to the parser.

[0019] Optionally, the system further includes: an analog-to-digital conversion device, wherein the analog-to-digital conversion device is used to read the quantum state of the quantum chip, obtain a reading result, and transmit the reading result to the storage device.

[0020] Optionally, the storage device is mounted on the system bus of the processor via a memory mapped input / output interface MMIO.

[0021] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned quantum operation processing methods.

[0022] According to another aspect of the present invention, a computer device is provided, comprising: a memory and a processor, wherein the memory stores a computer program; and the processor is configured to execute the computer program stored in the memory, wherein when the computer program is executed, the processor executes any one of the aforementioned quantum operation processing methods.

[0023] In an embodiment of the present invention, a control instruction is received from a processor, wherein the control instruction is used to instruct the execution of a quantum operation on multiple quantum devices; based on the control instruction, a quantum operation instruction is obtained from a storage device external to the processor; multiple target electronic devices corresponding to the quantum operation instruction are determined, and waveform signals for executing the quantum operation on the corresponding quantum devices are generated by the multiple target electronic devices based on the quantum operation instruction. Because the processor's control instruction can execute quantum operations on multiple quantum devices at once, compared to the related art, where a quantum operation on a quantum device requires a separate quantum operation instruction and a separate control instruction, a single control instruction can be used to operate on multiple quantum devices. This effectively improves the processing efficiency of quantum operations, achieves high instruction efficiency, and solves the technical problem in the related art that when the number of electronic devices to be controlled increases, the amount of control to be achieved also increases accordingly, thereby increasing the control complexity. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0025] FIG1 is a block diagram of the hardware structure of a quantum operation processing system provided by an embodiment of the present invention;

[0026] FIG2 is a flow chart of a quantum operation processing method according to Embodiment 1 of the present invention;

[0027] FIG3 is a system architecture diagram of a quantum operation processing system provided in an optional embodiment of the present invention;

[0028] FIG4 is a schematic diagram of a connection structure between a processor and a storage device in a quantum operation instruction processing method provided in an optional embodiment of the present invention;

[0029] FIG5 is a schematic diagram of a mapping relationship between quantum operation instructions provided according to an optional embodiment of the present invention;

[0030] FIG6 is a block diagram of a quantum operation processing device according to an embodiment of the present invention;

[0031] FIG7 is a structural block diagram of a computer terminal according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0033] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0034] First, some nouns or terms that appear in the description of the embodiments of the present application are subject to the following interpretations:

[0035] Quantum computing is a new computing model that uses quantum information units to perform calculations according to the laws of quantum mechanics. Compared to traditional general-purpose computers, whose theoretical model is the universal Turing machine, a general-purpose quantum computer is a universal Turing machine reinterpreted using the laws of quantum mechanics. In terms of computable problems, quantum computers can only solve problems that traditional computers can. However, in terms of computational efficiency, due to the existence of quantum superposition, some known quantum algorithms can process problems faster than traditional general-purpose computers.

[0036] The Central Processing Unit (CPU), the computing and control core of a computer system, is the final execution unit for information processing and program execution. The CPU is one of the main components of an electronic computer and the core component of the computer. Its primary function is to interpret computer instructions and process data in computer software. The CPU is the core component in a computer responsible for reading, decoding, and executing instructions. The CPU consists of two main parts: the controller and the arithmetic unit, which also includes cache memory and the data and control bus that connects them. The three core components of an electronic computer are the CPU, internal memory, and input / output devices. The CPU's primary functions are processing instructions, executing operations, controlling time, and processing data. In computer architecture, the CPU is the core hardware unit that controls and coordinates all of a computer's hardware resources (such as memory and input / output units) and performs general-purpose operations. The CPU is the computing and control core of the computer. All software-level operations in a computer system are ultimately mapped to CPU operations through the instruction set. In a CPU performing quantum control, different control functions can be implemented using multiple cores. For example, some cores can control classical instructions while others control quantum instructions.

[0037] Electronic equipment, or room temperature measurement and control equipment, refers to waveform acquisition equipment, arbitrary waveform generators, and microwave sources. In embodiments of the present invention, this refers to a device system that generates corresponding waveform signals based on waveform operation instructions. The process of generating waveform signals includes generating waveforms and acquiring the desired waveform signals from the generated waveforms. It should be noted that the aforementioned electronic equipment can be a general term for the processing modules involved in the aforementioned waveform signal generation process, and can also be referred to as an electronic system.

[0038] A microinstruction is a set of micro-operations executed by simultaneous control signals in a microprogram-controlled computer. Microinstructions are formed by the aggregation of information related to these simultaneous control signals. An instruction is broken down into several microinstructions, which are executed sequentially to achieve the instruction's function. Several microinstructions constitute a microprogram, and a microprogram corresponds to a machine instruction. A microinstruction is a set of microcommands that implement a specific operation within a single CPU cycle, describing micro-operations. Microcommands are various control commands issued by the control unit to the execution unit via control lines. Operation microinstructions describe the operation of the controlled circuit, while branch microinstructions describe the branching of the control circuit. The function of a machine instruction is implemented as a sequence of several microinstructions. That is, the operation performed by a machine instruction is divided into several microinstructions, which are interpreted and executed by the microinstructions. This sequence of microinstructions is often called a microprogram. The compilation method of microinstructions is the primary factor in determining their format. Different compilation methods are used in computer design for reasons such as speed and cost. Therefore, microinstruction formats are generally divided into two categories: horizontal and vertical.

[0039] The sw / lw operations refer to data write and read operations, and in the embodiment of the present invention, respectively represent the CPU storing data into the data memory (writing data, corresponding to a write instruction) and reading data from the data memory (corresponding to a load instruction).

[0040] MMIO (Memory Mapping I / O) is part of the PCI (Peripheral Component Interconnect) specification. It places I / O devices in memory space rather than I / O space. From the CPU's perspective, memory-mapped I / O allows system devices to be accessed just like memory. This allows access to the graphics card's frame buffer, the Basic Input / Output System (BIOS), and PCI devices using the same assembly instructions used to read and write memory, simplifying programming and interface complexity. I / O, a communication channel between the CPU and peripherals, is primarily categorized into two types: Port I / O and MMIO (Memory Mapping I / O). The former, often referred to as an I / O port, should actually be referred to as the I / O address space.

[0041] Random Access Memory (RAM), also known as main memory, is internal storage that exchanges data directly with the CPU. It can be read and written at any time (except when refreshing) and is highly efficient. It is typically used as temporary data storage for operating systems or other running programs. While operating, RAM can write (store) or read (retrieve) information from any specified address at any time. The biggest difference between RAM and ROM is data volatility: stored data is lost upon power loss. In computers and digital systems, RAM is used to temporarily store programs, data, and intermediate results.

[0042] Example 1

[0043] According to an embodiment of the present invention, a method embodiment of a quantum operation processing method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0044] The method embodiment provided in Example 1 of the present application can be executed in a quantum operation processing system. Figure 1 is a hardware structure block diagram of the quantum operation processing system provided in an embodiment of the present invention. As shown in Figure 1, the quantum operation processing system includes: a main control device 10 and a digital-to-analog conversion device 20, wherein the main control device 10 includes a processor 101, a storage device 102, and an actuator 103, and the digital-to-analog conversion device 20 includes: a parser 201 and an electronic device 202, wherein the processor 101 is used to generate a control instruction, wherein the control instruction is used to instruct the execution of a quantum operation on multiple quantum devices; the storage device 102 is used to store the quantum operation instruction; the actuator 103 is used to obtain the quantum operation instruction from the storage device external to the processor based on the control instruction; the parser 201 is used to determine multiple target electronic devices corresponding to the quantum operation instruction; the electronic device 202 is used to generate a waveform signal for executing a quantum operation on the corresponding quantum device based on the quantum operation instruction.

[0045] Through the above structure, since the processor's control instructions can perform quantum operations on multiple quantum devices at one time, compared with the related art in which quantum operations on a quantum device require separate quantum operation instructions and separate control instructions, it can realize the operation of multiple quantum devices with one control instruction, effectively improving the processing efficiency of quantum operations, achieving high efficiency of instructions, and solving the technical problem in the related art that when the number of electronic devices to be controlled increases, the amount of control to be achieved also increases accordingly, thereby increasing the control complexity.

[0046] As an optional embodiment, the master control device 10 can be connected to the digital-to-analog conversion device 20 through various connection methods. For example, the master control device 10 can be connected to the digital-to-analog conversion device 20 through a star connector to transmit the quantum operation instructions obtained by the actuator 103 to the parser 201. The star connector connection method not only enables the integration of multiple types of connections, but also enables flexible configuration between multiple connections.

[0047] As an optional embodiment, the system further includes an analog-to-digital conversion device 30, wherein the analog-to-digital conversion device 30 is configured to read the quantum state of the quantum chip, obtain a reading result, and transmit the reading result to the storage device 102. The addition of the analog-to-digital conversion device 30 to the system includes the digital-to-analog conversion device 20. Since the digital-to-analog conversion device 20 can convert control instructions issued by the processor into control instructions for the quantum chip, the analog-to-digital conversion device 30 can read the quantum state of the quantum chip and feed the quantum state back to the processor. Therefore, through the above structure, not only can the processor control the quantum chip, but the quantum chip state can also be fed back to the processor, achieving bidirectional interactive processing between the processor and the quantum chip.

[0048] As an optional embodiment, the processor 101 and the storage device 102 can interact in various ways. For example, the processor 101 can read data from or write data to the storage device 102 via a common interface. To achieve efficient read and write operations, the storage device 102 external to the processor 101 can be configured to function as memory via a predetermined interface, that is, the external storage device 102 can be configured to function as the processor 101's memory to perform data read and write operations. For example, a memory-mapped input / output interface can be used, where the storage device 102 is mounted on the system bus of the processor 101 via a memory-mapped input / output interface (MMIO). Through this process, the storage device 102 external to the processor 101 can function as the processor 101's memory. Therefore, when the processor 101 reads data from the storage device 102, it is equivalent to reading data from its own memory; when the processor 101 writes data to the storage device 102, it is equivalent to writing data to its own memory. Through the above structure, efficient data read and write operations between the processor 101 and the storage device 102 can be achieved.

[0049] Under the above hardware structure or optional hardware structure, in order to solve the above problems mentioned in this application, this application provides a quantum operation processing method as shown in Figure 2. Figure 2 is a flow chart of the quantum operation processing method according to embodiment 1 of the present invention. As shown in Figure 2, the process includes the following steps:

[0050] Step S202, receiving a control instruction from a processor, wherein the control instruction is used to instruct to perform a quantum operation on a plurality of quantum devices;

[0051] As an optional embodiment, the execution entity of the method of this embodiment can be a hardware chip or software module for implementing quantum operation processing, or a combination of a hardware chip and a software module. The combination of the hardware chip and software module can be a partial component on a single hardware device or multiple partial components on different hardware devices. The component implementing the software module can be a local computer terminal or a remote computer terminal; it can be a client device or a server. The server can also be of various types, for example, a local server or a virtual cloud server. The server can be a single computer device or a computer cluster integrating multiple computer devices based on its computing power.

[0052] As an optional embodiment, the control instruction may be one or more, with one of the one or more instructions being used to instruct the execution of a quantum operation on multiple quantum devices. The correspondence between the control instruction and the quantum operation, or between quantum devices, can be considered a one-to-many relationship, i.e., multiple quantum operations can be controlled by a single control instruction.

[0053] As an optional embodiment, the above-mentioned quantum device may refer to a quantum element used to realize a certain function. The types of devices may include multiple types, for example, quantum bits, quantum gates, quantum controllers, quantum reading resonant cavities, quantum processors, etc.

[0054] As an optional embodiment, the quantum operations performed on the quantum device may also be various types of operations, for example, quantum state control operations, quantum logic operations, quantum gate operations, quantum measurement operations, quantum initialization operations, etc.

[0055] As an optional embodiment, when the above-mentioned quantum device is a quantum bit, it can be a superconducting quantum bit. The type of superconducting quantum bit can be various, for example, it can be a Transmon quantum bit, or a Fluxonium quantum bit, etc.

[0056] As an optional embodiment, when the above-mentioned control instruction is used to instruct the execution of a quantum operation on multiple quantum devices, it can instruct the execution of the same quantum operation on multiple quantum devices, and the multiple quantum devices can also be quantum devices of the same type; the above-mentioned control instruction can also instruct the execution of different operations on multiple quantum devices, which is related to the configuration of the control instruction.

[0057] Step S204: Based on the control instruction, obtain the quantum operation instruction from the storage device external to the processor;

[0058] As an optional embodiment, the quantum operation instruction retrieved from the storage device may correspond to multiple quantum devices. For example, quantum operations on multiple quantum devices may be performed based on the quantum operation instruction. For example, a quantum operation instruction may include an identifier indicating that the quantum operation targets multiple quantum devices. Thus, when the quantum operation instruction is subsequently parsed, quantum operations on multiple quantum devices are performed. Therefore, the correspondence between quantum operation instructions and quantum devices, or quantum operations, may also be a one-to-many relationship, enabling quantum operations on multiple quantum devices to be performed using a single quantum operation instruction.

[0059] As an optional embodiment, a storage device can be attached to the processor in various ways. For example, the storage device can be attached to the processor's system bus via a memory-mapped input / output interface (MMIO). Through this process, when the processor needs to read quantum operation instructions from the storage device or write quantum operation instructions to the storage device, it can operate the external storage device as its own memory, achieving efficient reading and writing of quantum operation instructions.

[0060] As an optional embodiment, before retrieving multiple quantum operation instructions from a storage device external to the processor based on control instructions, the quantum operation instructions can be stored in the external storage device in various ways. For example, each quantum operation instruction can be stored separately and numbered for easy retrieval. To further improve the management of quantum operation instructions in the storage device, different types of quantum operation instructions can be stored in different address partitions within the storage device. Storing different types of quantum operation instructions in address partitions enables efficient management of quantum operation instructions, not only making the writing process clearer but also facilitating efficient subsequent reading.

[0061] Step S206 : determining a plurality of target electronic devices corresponding to the quantum operation instruction, wherein the plurality of target electronic devices are respectively configured to generate waveform signals for performing quantum operations on corresponding quantum devices based on the quantum operation instruction.

[0062] As an optional embodiment, multiple target electronic devices corresponding to a quantum operation instruction can be determined in a variety of ways. For example, the following processing method can be used: when the quantum operation instruction carries a first set of information, the quantum operation instruction is broadcast to multiple candidate electronic devices, where the first set of information is used to indicate the electronic devices targeted by the quantum operation instruction; a matching result between the first set of information carried in the quantum operation instruction and the second set of information of the multiple candidate electronic devices is obtained; and based on the matching results corresponding to the multiple candidate electronic devices, multiple target electronic devices are determined. In this manner, the target electronic devices are determined based on the matching results between the group information carried in the quantum operation instruction (indicating the electronic devices corresponding to the quantum device to perform the quantum operation) and the group information corresponding to the multiple candidate electronic devices themselves. It should be noted that the aforementioned process of identifying the target electronic device can be implemented based on the electronic device's own identification function. That is, the electronic device receives the broadcast quantum operation instruction, parses the group information carried therein, and compares the parsed group information with its own corresponding group information. If the comparison results are consistent, it is determined that the quantum operation instruction requires processing by the electronic device, that is, the electronic device directly performs the signal processing of the quantum operation corresponding to the quantum operation instruction. By using the aforementioned method of carrying group information in the quantum operation instruction to implement quantum operations on multiple quantum devices, quantum operations on multiple quantum devices can be implemented with a single quantum operation instruction, that is, batch quantum operation processing, greatly improving the simplicity of quantum operation instructions.

[0063] It should be noted that the above-mentioned first group of information or second group of information can be represented in a variety of ways, for example, it can be represented by a mask. Different identifiers are used in the mask to mark the electronic devices corresponding to the quantum devices that need to perform quantum operations together. For example, the mask set for an electronic device is in the form of a hexadecimal code: 0000 0000 1010 0001, where the 1st, 6th, and 8th bits are 1, indicating that the device belongs to group 0, 5, and 7. That is, when group 0, 5, and 7 are carried in the quantum operation instruction, the electronic devices all need to participate in the execution of the corresponding quantum operation, that is, they all need to provide corresponding waveform signals for the corresponding quantum operation.

[0064] As an optional embodiment, after determining the multiple target electronic devices corresponding to the quantum operation instruction, the method further includes: if the quantum operation instruction is a non-waveform operation instruction, obtaining a mapping relationship between the non-waveform operation instruction and the waveform operation instruction; and based on the mapping relationship, mapping the non-waveform operation instruction into a waveform operation instruction, wherein the waveform operation instruction is used to generate a waveform signal. Through this processing, when complex quantum programs need to be processed, the processor does not need to send complex and large quantum operation instructions. Instead, the electronic device that receives the high-level quantum operation instruction maps the high-level quantum operation instruction into a waveform operation instruction capable of executing the quantum operation, thereby simplifying and efficiently executing quantum operation instructions.

[0065] It should be noted that non-waveform operation instructions include various types, such as gate operation instructions, application operation instructions for specific applications, and other more advanced quantum operation instructions. The following examples illustrate non-waveform operation instructions as gate operation instructions and application operation instructions.

[0066] As an optional embodiment, based on a mapping relationship, a non-waveform operation instruction is converted into a waveform operation instruction. The following process can be used: when the non-waveform operation instruction includes a first gate operation instruction, the mapping relationship is determined to be a first relationship, wherein the first relationship is a corresponding relationship between a gate operation instruction and a waveform operation instruction; and based on the first relationship, the first gate operation instruction is mapped to the first waveform operation instruction. Through the above process, when the non-waveform operation instruction is a gate operation instruction, since the gate operation instruction is a more advanced instruction than the waveform operation instruction, the obtained first gate operation instruction can be directly mapped to the first waveform operation instruction based on the first relationship between the gate operation instruction and the waveform operation instruction. It should be noted that when mapping between the gate operation instruction and the waveform operation instruction, it can be a one-to-one mapping or a one-to-many mapping. For example, one gate operation instruction can be mapped to one waveform operation instruction, or one gate operation instruction can be mapped to multiple waveform operation instructions, depending on the functional requirements of the operation.

[0067] As an optional embodiment, when converting non-waveform operation instructions into waveform operation instructions based on a mapping relationship, the following processing method can also be adopted: when the non-waveform operation instructions include application operation instructions, the mapping relationship is determined to be a first relationship and a second relationship, wherein the first relationship is the correspondence between the gate operation instruction and the waveform operation instruction, and the second relationship is the correspondence between the application operation instruction and the gate operation instruction; based on the second relationship, the application operation instruction is mapped to the second gate operation instruction; based on the first relationship, the second gate operation instruction is mapped to the second waveform operation instruction.

[0068] Based on the above processing, when non-waveform operation instructions include application operation instructions, since the application operation is a higher-level instruction relative to the gate operation instruction, and the gate operation instruction is another higher-level instruction relative to the waveform operation instruction. Therefore, when mapping the application operation instruction to the waveform operation instruction, a layer-by-layer mapping method can be used. For example, based on the second relationship between the application operation instruction and the gate operation instruction, the obtained application operation instruction is first mapped to the second gate operation instruction; then, based on the first relationship between the gate operation and the waveform operation instruction, the second gate operation instruction is mapped to the second waveform operation instruction, thereby obtaining the mapping of the application operation instruction to the waveform operation instruction. It is also explained here that since the mapping between the application operation instruction and the gate operation instruction can be one-to-one or one-to-many, the mapping between the gate operation instruction and the waveform operation instruction can also be one-to-one or one-to-many. Therefore, when the mapping between the application operation instruction and the gate operation instruction is one-to-many, and the mapping between the gate operation instruction and the waveform operation instruction is also one-to-many, the waveform operations obtained by mapping the application operation instruction will be quite large. Therefore, through the above mapping relationship, it can be seen that the above method can effectively avoid the maintenance of a large number of control instructions in the processor or quantum operation instructions in the storage device, effectively realizing the simplification and efficiency of the entire instruction.

[0069] As an optional embodiment, given that the above-mentioned mapping relationship may be complex, in order to achieve an orderly mapping between the above-mentioned different quantum operation instructions, the above-mentioned mapping relationship can be managed in an orderly manner. For example, different storage spaces are used for storage based on different contents in the mapping relationship. For example, the time and specific operation content of the quantum operation can be stored separately. For example, the above-mentioned mapping relationship can be determined based on at least two memories, wherein one of the at least two memories is used to store the time of the quantum operation corresponding to the mapping, and the other is used to store the identifier of the quantum operation corresponding to the mapping. It should be noted that the above-mentioned memory can be RAM, that is, the storage of the above-mentioned mapping relationship is achieved through two RAMs. Through the above-mentioned separate storage method, on the one hand, different information can be read separately, and on the other hand, due to the independence of the information, storage is also simple and convenient.

[0070] As an optional embodiment, the above-mentioned mapping relationship can be updated and modified when necessary. For example, the mapping relationship can be updated based on the upper computer receiving a relationship update instruction and responding to the relationship update instruction. It should be noted that updating the mapping relationship can include multiple methods, such as adding a new mapping relationship, modifying a mapping relationship, and deleting a mapping relationship. The relationship between the number of mapping relationships can be updated, and the content of the mapping relationship can also be updated, such as updating the time content corresponding to the mapping relationship or the quantum operation content.

[0071] Through the above-mentioned processing, a control instruction is received from a processor, wherein the control instruction is used to instruct the execution of a quantum operation on multiple quantum devices; based on the control instruction, a quantum operation instruction is obtained from a storage device external to the processor; multiple target electronic devices corresponding to the quantum operation instruction are determined, and waveform signals for executing the quantum operation on the corresponding quantum devices are generated by the multiple target electronic devices based on the quantum operation instruction. Because the control instruction of the processor can execute quantum operations on multiple quantum devices at once, compared with the related art that requires a separate quantum operation instruction and a separate control instruction for quantum operations on a quantum device, a single control instruction can be used to operate on multiple quantum devices, effectively improving the processing efficiency of quantum operations and achieving high efficiency of instructions. This solves the technical problem in the related art that when the number of electronic devices to be controlled increases, the amount of control to be achieved also increases accordingly, thereby increasing the control complexity.

[0072] Based on the above embodiment and optional embodiment, an optional implementation manner is provided.

[0073] Regarding related technologies, as the number of electronic devices requiring control increases, the amount of control required also increases accordingly, leading to increased control complexity. Among possible implementations, some have attempted to employ sub-circuit-level parallel solutions. For example, a quantum circuit is divided into multiple sub-circuits, and the compiler generates corresponding instructions for each sub-circuit. For sub-circuits that can be parallelized, multiple processing units execute the corresponding instructions in parallel. However, this approach does not significantly reduce the number of instructions, but rather utilizes multi-core processors for parallel execution, resulting in a high level of complexity. Another approach has attempted to employ a 32-bit instruction set for a seven-qubit superconducting quantum processor with a two-dimensional square lattice connection structure. Quantum gate operations are flexible, allowing a group of gates to be redefined at compile time. However, this approach is not easily applicable to systems with larger numbers of qubits.

[0074] To solve the above problems, in this optional implementation, a modular quantum operation instruction processing solution is provided.

[0075] FIG3 is a system architecture diagram of a quantum operation processing system provided according to an optional embodiment of the present invention. As shown in FIG3 , the system includes a host, a main control device, a digital-to-analog conversion device, an analog-to-digital conversion device, and a quantum chip. The main control device communicates with the digital-to-analog conversion device and the analog-to-digital conversion chip via a star connector. The host, acting as a host computer, implements configuration and modification of the main control device, the digital-to-analog conversion device, and the analog-to-digital conversion device through human-computer interaction. The main control device includes a command parsing unit, a CPU (which may include kernel groups for processing various types of services), RAM, a process executor, and the like. Based on received commands, the main control device is configured to obtain corresponding control instructions based on the CPU unit and RAM. These control instructions can be quantum control instructions, classical control instructions, or both. The digital-to-analog conversion device is configured to convert instructions transmitted from the main control device into basic waveform operation instructions that can be executed by physical hardware. These waveform operation instructions then generate corresponding waveform signals, thereby performing quantum operations on the quantum chip. The analog-to-digital conversion device is used to receive instructions from the main control device, measure the quantum state of the quantum chip, obtain the measurement result, and feed the measurement result back to the main control device, and store the measurement result in the RAM on the main control device.

[0076] In this optional embodiment, based on the aforementioned quantum operation processing system, this quantum operation processing solution simplifies all quantum operation instructions into sw / lw operations performed by the CPU on peripheral memory. Modular quantum operation instructions are used to represent different types of quantum operations. For example, different types of quantum operation instructions may include waveform operation instructions, gate operation instructions, and application operation instructions. Waveform operation instructions, gate operation instructions, and application-specific operation instructions based on multiple qubits can be distinguished by different address spaces, using the MMIO interface.

[0077] FIG4 is a schematic diagram of the connection structure between the processor and the storage device in the quantum operation instruction processing method provided according to an optional embodiment of the present invention. As shown in FIG4 , the processor (CPU) is connected to the storage device via the MMIO interface. Quantum operation refers to the operation performed on quantum bits via microwave signals, including single-bit gates, two-bit gates, etc. In this optional embodiment, the electronic device (system) that generates microwave signals is mounted as a peripheral on the system bus of the CPU, and the interface is MMIO. The CPU performs sw / lw operations on the system bus through MMIO to implement all quantum operations. Different quantum operation instructions are distinguished by address.

[0078] Based on the above structure, when expanding new quantum operation instructions, the unallocated address space in the memory space connected to the MMIO can be designated as the mapping area for the new instructions, and correspondingly, modules for parsing the new instructions can be added in the electronic device for these newly added address spaces.

[0079] When a control instruction from the CPU is received, for example, the control instruction is used to instruct the execution of a certain quantum operation on multiple quantum devices, the corresponding quantum operation instruction is read from the storage device through the above-mentioned lw operation, and then the quantum operation instruction is preliminarily parsed to obtain a preliminary parsing result, which is then sent to the electronic device, which then further parses the above-mentioned preliminary parsing result.

[0080] When re-analyzing the preliminary analysis results, some mapping operations can be performed on some more complex quantum operation instructions (or some advanced quantum operation instructions) to map them into simplified quantum operation instructions. Therefore, it is possible to add some mapping relationships between different quantum operation instructions in the electronic device. For example, for waveform operation instructions, gate operation instructions, and application operation instructions, mappings can be added between gate operation instructions and waveform operation instructions, and application-specific operation instructions (i.e., the application operation instructions referred to above) and gate operation instructions. When running a complex quantum program, the CPU sends application-specific operation instructions, and the electronic system parses the complete waveform operation.

[0081] FIG5 is a schematic diagram of the mapping relationship between quantum operation instructions provided according to an optional embodiment of the present invention. As shown in FIG5 , the mapping between quantum operation instructions can be realized based on the mapping relationship. For example, in the figure, the operation instruction A of a specific application can be expressed as: executing the gate operation instruction A1 at time a1, executing the gate operation instruction A2 at time a2, and executing the gate operation instruction A3 at time a3. It should be noted that the above mapping relationship can be modified by the host computer. For example, the existing mapping relationship for the operation instruction A of a specific application can be expressed as: executing the gate operation instruction A1 at time a1, executing the gate operation instruction A2 at time a2, and executing the gate operation instruction A3 at time a3; then the mapping relationship is modified, and the operation instruction A of the specific application can be modified to: executing the gate operation instruction A1 at time a1, executing the gate operation instruction A3 at time a2, and executing the gate operation instruction A2 at time a3.

[0082] It should be noted that each mapping can be maintained by two RAMs, one to store time information a1, a2, a3, etc., and the other to store operation numbers A1, A2, A3, etc. The information stored in the RAM can also be modified by the host computer.

[0083] In order to achieve the function of executing multiple quantum operations through a single quantum operation instruction, a mask for storing group information (i.e., the group information referred to above) can be set in the electronic device. Certain quantum bits are pre-encoded into a group, such as group 5. The sixth bit of the group information mask in the electronic device corresponding to these quantum bits needs to be set to 1. For example, 16'h00a1 indicates that the electronic device belongs to group 0, group 5, and group 7. When it is necessary to operate multiple quantum bits to perform the same operation at the same time, the operation can be performed on the group. The specific implementation is as follows: the group information is encoded into the instruction, and then the instruction is broadcast to all electronic devices; after receiving the instruction, the electronic device parses the group information and operation information. The group information is compared with its own group mask, and the corresponding operation is performed when they are consistent. The group configuration can also be modified by the host computer.

[0084] The above optional implementations can achieve the following beneficial effects:

[0085] Easy to extend with new instructions:

[0086] The modular design combined with MMIO makes adding new instructions as simple as performing sw / lw operations on new addresses. Simply specify a new MMIO address space as the mapping area for the new instruction. This eliminates the need for additional CPU I / O or a new execution module for the new instruction. Therefore, the combination of modular quantum instruction design and MMIO makes it extremely convenient to design new quantum instructions within this quantum microinstruction architecture.

[0087] Able to achieve high efficiency of instructions:

[0088] On the one hand, the CPU only needs to send simple high-level quantum operation instructions. In related technologies, complex quantum programs need to be compiled into a set of multiple basic waveform operations, which requires the CPU to issue more instructions. However, through mapping management between three types of operations (waveform operation instructions, gate operation instructions, and application operation instructions), only high-level quantum operation instructions (for example, application operation instructions or gate operation instructions) need to be sent, and the electronic equipment will parse out the basic waveform operation set.

[0089] Furthermore, by setting groups and broadcasting instructions, any number of qubits can be easily configured into groups to perform the same complex quantum operation, significantly reducing the number of quantum instructions required compared to traditional methods. In related technologies, performing the same operation on multiple qubits requires sequentially controlling these electronic devices. This alternative implementation, through the design of group masks and broadcast instructions, can achieve the effect of controlling multiple qubits simultaneously with a single instruction.

[0090] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0091] It should be noted that for the aforementioned method embodiments, for simplicity of description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that the present invention is not limited by the order of the actions described, because according to the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.

[0092] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention.

[0093] Example 2

[0094] According to an embodiment of the present invention, a device for implementing the above-mentioned quantum operation processing method is also provided. FIG6 is a structural block diagram of the quantum operation processing device provided according to an embodiment of the present invention. As shown in FIG6 , the device includes: a receiving module 60, an obtaining module 62, and a determining module 64. The device is described below.

[0095] A receiving module 60 is configured to receive control instructions from a processor, wherein the control instructions are configured to instruct execution of quantum operations on a plurality of quantum devices. An acquisition module 62 is connected to the receiving module 60 and configured to acquire quantum operation instructions from a storage device external to the processor based on the control instructions. A determination module 64 is connected to the acquisition module 62 and configured to determine a plurality of target electronic devices corresponding to the quantum operation instructions, wherein the plurality of target electronic devices are respectively configured to generate waveform signals for executing quantum operations on corresponding quantum devices based on the quantum operation instructions.

[0096] It should be noted here that the above-mentioned receiving module 60, acquisition module 62 and determination module 64 correspond to steps S202 to S204 in Example 1. The instances and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned Example 1.

[0097] Example 3

[0098] The embodiment of the present invention can provide a computer terminal, which can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the computer terminal can also be replaced by a terminal device such as a mobile terminal.

[0099] Optionally, in this embodiment, the computer terminal may be located in at least one network device among a plurality of network devices of a computer network.

[0100] In this embodiment, the computer terminal can execute the program code of the following steps in the quantum operation processing method of the application: receiving a control instruction from a processor, wherein the control instruction is used to instruct to perform a quantum operation on multiple quantum devices; based on the control instruction, obtaining the quantum operation instruction from a storage device external to the processor; and determining multiple target electronic devices corresponding to the quantum operation instruction, wherein the multiple target electronic devices are respectively used to generate waveform signals for performing quantum operations on corresponding quantum devices based on the quantum operation instruction.

[0101] Alternatively, Figure 7 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in Figure 7, the computer terminal may include: one or more (only one is shown in the figure) processor units 72, a memory unit 74, and the like.

[0102] The memory unit can be used to store software programs and modules, such as the program instructions / modules corresponding to the quantum operation processing method and device in the embodiments of the present invention. The processor unit executes various functional applications and data processing by running the software programs and modules stored in the memory unit, that is, realizing the above-mentioned quantum operation processing method. The memory unit may include a high-speed random access memory unit, and may also include a non-volatile memory unit, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory units. In some instances, the memory unit may further include a memory unit remotely located relative to the processor unit, and these remote memory units may be connected to the computer terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0103] The processor unit can call the information and application programs stored in the memory unit through the transmission device to perform the following steps: receiving a control instruction from the processor, wherein the control instruction is used to instruct to perform a quantum operation on multiple quantum devices; based on the control instruction, obtaining the quantum operation instruction from a storage device external to the processor; determining multiple target electronic devices corresponding to the quantum operation instruction, wherein the multiple target electronic devices are respectively used to generate waveform signals for performing quantum operations on corresponding quantum devices based on the quantum operation instruction.

[0104] The processor unit can also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: before obtaining multiple quantum operation instructions from the storage device attached to the processor based on the control instruction, it also includes: storing different types of quantum operation instructions in different address partitions in the storage device.

[0105] The processor unit can also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: the storage device is mounted on the system bus of the processor through the memory mapped input and output interface MMIO.

[0106] The processor unit can also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: determining multiple target electronic devices corresponding to the quantum operation instruction, including: when the quantum operation instruction carries a first set of information, broadcasting the quantum operation instruction to multiple candidate electronic devices, wherein the first set of information is used to indicate the electronic device targeted by the quantum operation instruction; obtaining the matching results between the first set of information carried in the quantum operation instruction and the second set of information of multiple candidate electronic devices; and determining multiple target electronic devices based on the matching results corresponding to the multiple candidate electronic devices.

[0107] The processor unit can also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: after determining the multiple target electronic devices corresponding to the quantum operation instruction, it also includes: when the quantum operation instruction is a non-waveform operation instruction, obtaining a mapping relationship between the non-waveform operation instruction and the waveform operation instruction; based on the mapping relationship, mapping the non-waveform operation instruction to a waveform operation instruction, wherein the waveform operation instruction is used to generate a waveform signal.

[0108] The processor unit can also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: based on the mapping relationship, convert the non-waveform operation instruction into a waveform operation instruction, including: when the non-waveform operation instruction includes a first gate operation instruction, determine the mapping relationship as a first relationship, wherein the first relationship is the correspondence between the gate operation instruction and the waveform operation instruction; based on the first relationship, map the first gate operation instruction to the first waveform operation instruction.

[0109] The processor unit can also call the information and application stored in the memory unit through the transmission device to perform the following steps: based on the mapping relationship, convert the non-waveform operation instruction into a waveform operation instruction, including: when the non-waveform operation instruction includes an application operation instruction, determine the mapping relationship as a first relationship and a second relationship, wherein the first relationship is the correspondence between the gate operation instruction and the waveform operation instruction, and the second relationship is the correspondence between the application operation instruction and the gate operation instruction; based on the second relationship, map the application operation instruction to a second gate operation instruction; based on the first relationship, map the second gate operation instruction to a second waveform operation instruction.

[0110] The processor unit can also call the information and application stored in the memory unit through the transmission device to perform the following steps: the mapping relationship is determined based on at least two memories, wherein one of the at least two memories is used to store the time of the quantum operation corresponding to the mapping, and the other is used to store the identifier of the quantum operation corresponding to the mapping.

[0111] The processor unit may also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: receiving a relationship update instruction; and updating the mapping relationship in response to the relationship update instruction.

[0112] The processor unit can also call the information and application programs stored in the memory unit through the transmission device to perform the following steps: the quantum device is a quantum bit, and the quantum bit is a Fluxonium quantum bit.

[0113] Those skilled in the art will appreciate that the structure shown in FIG7 is merely illustrative, and the computer terminal may also be a smartphone (such as an Android phone, iOS phone, etc.), a tablet computer, a handheld computer, a mobile Internet device (MID), a PAD, or other terminal device. FIG7 does not limit the structure of the above-mentioned electronic devices. For example, the computer terminal 7 may include more or fewer components (such as a network interface, a display device, etc.) than those shown in FIG7, or may have a configuration different from that shown in FIG7.

[0114] A person skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium. The computer-readable storage medium may include: a flash drive, a read-only memory unit (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a magnetic disk or an optical disk, etc.

[0115] Example 4

[0116] The embodiment of the present invention further provides a computer-readable storage medium. Optionally, in this embodiment, the computer-readable storage medium can be used to store the program code executed by the quantum operation processing method provided in the first embodiment.

[0117] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0118] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for executing the following steps: receiving a control instruction from a processor, wherein the control instruction is used to instruct the performance of a quantum operation on a plurality of quantum devices; based on the control instruction, obtaining a quantum operation instruction from a storage device external to the processor; and determining a plurality of target electronic devices corresponding to the quantum operation instruction, wherein the plurality of target electronic devices are respectively used to generate a waveform signal for performing a quantum operation on the corresponding quantum device based on the quantum operation instruction.

[0119] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for executing the following steps: before obtaining multiple quantum operation instructions from a storage device external to the processor based on the control instruction, the further step includes: storing different types of quantum operation instructions in different address partitions in the storage device.

[0120] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program codes for executing the following steps: the storage device is mounted on the system bus of the processor via a memory-mapped input / output interface MMIO.

[0121] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for executing the following steps: determining multiple target electronic devices corresponding to the quantum operation instruction, including: when the quantum operation instruction carries a first set of information, broadcasting the quantum operation instruction to multiple candidate electronic devices, wherein the first set of information is used to indicate the electronic device targeted by the quantum operation instruction; obtaining a matching result between the first set of information carried in the quantum operation instruction and a second set of information of multiple candidate electronic devices; and determining multiple target electronic devices based on the matching results corresponding to the multiple candidate electronic devices.

[0122] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for executing the following steps: after determining multiple target electronic devices corresponding to the quantum operation instruction, it also includes: when the quantum operation instruction is a non-waveform operation instruction, obtaining a mapping relationship between the non-waveform operation instruction and the waveform operation instruction; based on the mapping relationship, mapping the non-waveform operation instruction to a waveform operation instruction, wherein the waveform operation instruction is used to generate a waveform signal.

[0123] Optionally, in this embodiment, the computer-readable storage medium is also configured to store program code for performing the following steps: based on a mapping relationship, converting a non-waveform operation instruction into a waveform operation instruction, including: when the non-waveform operation instruction includes a first gate operation instruction, determining that the mapping relationship is a first relationship, wherein the first relationship is a correspondence relationship between the gate operation instruction and the waveform operation instruction; mapping the first gate operation instruction to a first waveform operation instruction based on the first relationship.

[0124] Optionally, in this embodiment, the computer-readable storage medium is also configured to store program code for executing the following steps: based on a mapping relationship, converting a non-waveform operation instruction into a waveform operation instruction, including: when the non-waveform operation instruction includes an application operation instruction, determining the mapping relationship as a first relationship and a second relationship, wherein the first relationship is a correspondence relationship between a gate operation instruction and a waveform operation instruction, and the second relationship is a correspondence relationship between an application operation instruction and a gate operation instruction; mapping the application operation instruction to a second gate operation instruction based on the second relationship; mapping the second gate operation instruction to a second waveform operation instruction based on the first relationship.

[0125] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program code for executing the following steps: the mapping relationship is determined based on at least two memories, wherein one of the at least two memories is used to store the time of the quantum operation corresponding to the mapping, and the other is used to store the identifier of the quantum operation corresponding to the mapping.

[0126] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program codes for executing the following steps: receiving a relationship update instruction; and updating the mapping relationship in response to the relationship update instruction.

[0127] Optionally, in this embodiment, the computer-readable storage medium is further configured to store program codes for executing the following steps: the quantum device is a quantum bit, and the quantum bit is a Fluxonium quantum bit.

[0128] The serial numbers of the above embodiments of the present invention are for description only and do not represent the advantages or disadvantages of the embodiments.

[0129] In the above embodiments of the present invention, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0130] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0131] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0132] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0133] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a computer-readable storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0134] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as within the scope of protection of the present invention.

Claims

1. A quantum operation processing method, characterized in that: include: receiving a control instruction from a processor, wherein the control instruction is used to instruct to perform a quantum operation on a plurality of quantum devices; Based on the control instruction, obtaining a quantum operation instruction from a storage device external to the processor; Determine a plurality of target electronic devices corresponding to the quantum operation instruction, wherein the plurality of target electronic devices are respectively used to generate waveform signals for performing the quantum operation on corresponding quantum devices based on the quantum operation instruction.

2. The method according to claim 1, characterized in that Before acquiring a plurality of quantum operation instructions from a storage device externally mounted on the processor based on the control instruction, the method further includes: Different types of quantum operation instructions are stored in different address partitions in the storage device.

3. The method according to claim 1, characterized in that: The storage device is mounted on the system bus of the processor via a memory mapped input and output interface MMIO.

4. The method according to claim 1, characterized in that: The step of determining a plurality of target electronic devices corresponding to the quantum operation instruction comprises: In a case where the quantum operation instruction carries a first set of information, broadcasting the quantum operation instruction to a plurality of candidate electronic devices, wherein the first set of information is used to indicate the electronic devices targeted by the quantum operation instruction; Obtaining a matching result between a first set of information carried in the quantum operation instruction and a second set of information of the plurality of candidate electronic devices; Based on the matching results corresponding to the multiple candidate electronic devices, the multiple target electronic devices are determined.

5. The method according to claim 1, characterized in that After determining a plurality of target electronic devices corresponding to the quantum operation instruction, the method further includes: In the case where the quantum operation instruction is a non-waveform operation instruction, obtaining a mapping relationship between the non-waveform operation instruction and the waveform operation instruction; Based on the mapping relationship, the non-waveform operation instruction is mapped to a waveform operation instruction, wherein the The waveform operation instruction is used to generate the waveform signal.

6. The method according to claim 5, characterized in that The converting the non-waveform operation instruction into a waveform operation instruction based on the mapping relationship includes: In the case where the non-waveform operation instruction includes a first gate operation instruction, determining the mapping relationship to be a first relationship, wherein the first relationship is a corresponding relationship between the gate operation instruction and the waveform operation instruction; The first gate operation instruction is mapped to a first waveform operation instruction based on the first relationship.

7. The method according to claim 5, characterized in that The converting the non-waveform operation instruction into a waveform operation instruction based on the mapping relationship includes: In the case where the non-waveform operation instruction includes an application operation instruction, determining the mapping relationship to be a first relationship and a second relationship, wherein the first relationship is a corresponding relationship between a gate operation instruction and a waveform operation instruction, and the second relationship is a corresponding relationship between an application operation instruction and a gate operation instruction; mapping the application operation instruction to a second door operation instruction based on the second relationship; The second gate operation instruction is mapped to a second waveform operation instruction based on the first relationship.

8. The method according to claim 5, characterized in that The method further includes: the mapping relationship is determined based on at least two memories, wherein one of the at least two memories is used to store the time of the quantum operation corresponding to the mapping, and the other is used to store the identifier of the quantum operation corresponding to the mapping.

9. The method according to claim 5, characterized in that The method further comprises: receiving a relationship update instruction; In response to the relationship update instruction, the mapping relationship is updated.

10. The method according to any one of claims 1 to 9, characterized in that The quantum device is a quantum bit, and the quantum bit is a Fluxonium quantum bit.

11. A quantum operation processing device, characterized in that: include: A receiving module, configured to receive a control instruction from a processor, wherein the control instruction is used to instruct to perform a quantum operation on a plurality of quantum devices; An acquisition module, configured to acquire a quantum operation instruction from a storage device external to the processor based on the control instruction; A determination module is used to determine a plurality of target electronic devices corresponding to the quantum operation instruction, wherein the plurality of target electronic devices are respectively used to generate a corresponding quantum device based on the quantum operation instruction. The waveform signal that the device performs the quantum operation.

12. A quantum operation processing system, characterized in that: include: A main control device and a digital-to-analog conversion device, wherein the main control device includes a processor, a storage device, and an actuator, and the digital-to-analog conversion device includes: a parser and an electronic device, wherein: The processor is used to generate a control instruction, wherein the control instruction is used to instruct to perform a quantum operation on a plurality of quantum devices; The storage device is used to store quantum operation instructions; The actuator is used to obtain the quantum operation instruction from the storage device external to the processor based on the control instruction; The parser is used to determine a plurality of target electronic devices corresponding to the quantum operation instruction; The electronic device is used to generate a waveform signal for performing the quantum operation on the corresponding quantum device based on the quantum operation instruction.

13. The system according to claim 12, characterized in that The main control device is connected to the digital-to-analog conversion device via a star connector, and is used to transmit the quantum operation instruction acquired by the actuator to the parser.

14. The system according to claim 12, characterized in that The system further includes: an analog-to-digital conversion device, wherein the analog-to-digital conversion device is used to read the quantum state of the quantum chip, obtain a reading result, and transmit the reading result to the storage device.

15. The system according to any one of claims 12 to 14, characterized in that The storage device is mounted on the system bus of the processor via a memory mapped input and output interface MMIO.

Citation Information

Patent Citations

  • Simulation method, device and equipment for random quantum measurement and storage medium

    CN114580645A

  • Data transmission method, system and device, electronic equipment and storage medium

    CN114614909A

  • Apparatus and method for specifying quantum operation parallelism for a quantum control processor

    US20210182724A1

  • Systems and methods for using distributed quantum computing simulators

    US20220309374A1