WO2021179411A1 - Quantum computing-oriented data interaction device, method and apparatus and medium - Google Patents

Quantum computing-oriented data interaction device, method and apparatus and medium Download PDF

Info

Publication number
WO2021179411A1
WO2021179411A1 PCT/CN2020/087156 CN2020087156W WO2021179411A1 WO 2021179411 A1 WO2021179411 A1 WO 2021179411A1 CN 2020087156 W CN2020087156 W CN 2020087156W WO 2021179411 A1 WO2021179411 A1 WO 2021179411A1
Authority
WO
WIPO (PCT)
Prior art keywords
logic unit
arithmetic logic
memory access
quantum
instruction
Prior art date
Application number
PCT/CN2020/087156
Other languages
French (fr)
Chinese (zh)
Inventor
张新
赵雅倩
朱效民
郭振华
Original Assignee
苏州浪潮智能科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 苏州浪潮智能科技有限公司 filed Critical 苏州浪潮智能科技有限公司
Publication of WO2021179411A1 publication Critical patent/WO2021179411A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N10/00Quantum computing, i.e. information processing based on quantum-mechanical phenomena
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30098Register arrangements

Definitions

  • the present invention relates to the field of computer technology, in particular to a data interaction device, method, device and medium for quantum computing.
  • quantum computers are often used as heterogeneous devices to offload slow-efficiency tasks on classical computers. It is called the heterogeneous model of quantum computing.
  • the heterogeneous model of quantum computing is used to deal with the slow efficiency of classical computers. Task to improve the overall efficiency of the task.
  • Figure 1 is a schematic diagram of the processing flow of the existing heterogeneous model.
  • the programming method is to embed the quantum program in the classical program to form a mixed code, and the The quantum part is separated from the classical part.
  • the corresponding quantum instructions are executed on the quantum computer, and the corresponding classical instructions are carried out on the classical computer.
  • the two complete data interaction through an external bus so that the quantum computer and the classical computer complete their respective processing tasks.
  • the data transmission process is cumbersome and complicated when data is exchanged through an external bus, and multiple components are required to complete the transmission process. Therefore, when the data exchange is relatively frequent, the transmission through the external bus will cause a large delay and cause performance loss; and, when the amount of data transmitted is large, the quantum computer will be blocked for a long time, which will affect the calculation. efficient.
  • the hardware upgrade of the external bus connecting the two is usually adopted to provide a higher transmission rate.
  • the latest PCIe4.0 can reach a rate of 16G/s, so that under the current situation, the transmission rate can be increased to a certain extent.
  • this method can alleviate the problem of data congestion, it cannot fundamentally solve the problem.
  • the problem of low transmission efficiency still exists. It can be seen that providing a data interaction device that can improve the efficiency of data transmission in a heterogeneous model has become an urgent problem to be solved at present.
  • the purpose of the present invention is to provide a data interaction device, method, device and medium for quantum computing.
  • the quantum arithmetic logic unit and the classical arithmetic logic unit can be accessed.
  • the logic unit can write and read data from the public register, thereby completing the data interaction between the two.
  • data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register.
  • the whole process only needs two clock cycles, about 1ns to complete .
  • the data interaction process is simple and easy to implement; and the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
  • the present invention provides a quantum computing-oriented data interaction device, including:
  • Quantum arithmetic logic unit used to process quantum data and establish connection with public registers for data transmission
  • a public register for storing the quantum data and the classical data
  • the controller is used to determine whether a memory access instruction for accessing the public register is received; if so, according to the memory access instruction, determine the arithmetic logic unit corresponding to the memory access instruction; The instruction is sent to the arithmetic logic unit to enable the arithmetic logic unit to perform a memory access operation on the common register.
  • it also includes:
  • the hybrid compiler is used to convert the received codes into hybrid instructions according to preset compilation rules to be recognized by the controller.
  • the mixed instruction is specifically a binary instruction.
  • the length of the mixed instruction is specifically 64 bits.
  • the mixed instruction is specifically a single-qubit instruction, a double-qubit instruction, a quantum measurement instruction, a quantum register operation instruction or a classical calculation instruction.
  • the present invention also provides a quantum computing-oriented data interaction method, including:
  • the memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the common register.
  • the determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction specifically includes:
  • the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
  • the present invention provides a quantum computing-oriented data interaction device, including:
  • the judging module is used to judge whether a memory fetching instruction for fetching the public register is received; if so, enter the determining module;
  • the determining module is configured to determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
  • the memory access module is configured to send the memory access instruction to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the public register.
  • the determining module specifically includes:
  • the judging unit is used to judge whether the flag bit of the memory access instruction indicates a quantum identifier; if so, enter the first determining unit; if not, enter the second determining unit;
  • the first determining unit is configured to determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
  • the second determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
  • the present invention provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned quantum computing-oriented data interaction method is realized A step of.
  • the data interaction device for quantum computing includes: a quantum arithmetic logic unit for processing quantum data and establishing a connection with a public register for data transmission; a classical arithmetic logic unit for processing classical data and interacting with The public register establishes a connection for data transmission; the public register is used to store quantum data and classical data; the controller is used to determine whether a memory access instruction for accessing the public register is received; if it is, it is determined according to the memory access instruction The arithmetic logic unit corresponding to the memory access instruction; the memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs memory access operations on the common register.
  • the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two.
  • data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register.
  • the whole process only needs two clock cycles, about 1ns to complete , Much less than the time required to complete data interaction after the external bus is upgraded.
  • the data interaction process is simple and easy to implement; the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
  • a quantum computing-oriented data interaction method, device, and medium provided by the present invention correspond to the foregoing method and have the same beneficial effects.
  • Figure 1 is a schematic diagram of the existing heterogeneous model processing flow
  • FIG. 2 is a structural diagram of a quantum computing-oriented data interaction device provided by an embodiment of the present invention.
  • FIG. 3 is a flowchart of a data interaction method for quantum computing according to an embodiment of the present invention.
  • FIG. 4 is a structural diagram of a data exchange device for quantum computing provided by an embodiment of the present invention.
  • the core of the present invention is to provide a quantum computing-oriented data interaction equipment, method, device and medium.
  • the quantum arithmetic logic unit and the classical arithmetic logic unit can be accessed.
  • the logic unit can write and read data from the public register, thereby completing the data interaction between the two.
  • data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register.
  • the whole process only needs two clock cycles, about 1ns to complete .
  • the data interaction process is simple and easy to implement; and the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
  • FIG. 2 is a structural diagram of a quantum computing-oriented data interaction device provided by an embodiment of the present invention. As shown in Figure 2, a quantum computing-oriented data interaction device provided by an embodiment of the present invention includes:
  • the quantum arithmetic logic unit 10 is used to process quantum data and establish a connection with the public register 12 for data transmission;
  • the classic arithmetic logic unit 11 is used to process classic data and establish a connection with the public register 12 for data transmission;
  • the public register 12 is used to store quantum data and classical data
  • the controller 13 is used to determine whether a memory access instruction for accessing the public register 12 is received; if so, according to the memory access instruction, determine the arithmetic logic unit corresponding to the memory access instruction; send the memory access instruction to the arithmetic logic unit In order to make the arithmetic logic unit access the public registers.
  • the quantum arithmetic logic unit 10 is used for processing quantum data
  • the classical arithmetic logic unit 11 is used for processing classical data.
  • quantum data refers to data that needs to be subjected to quantum calculations
  • classical data refers to data that needs to be subjected to classical calculations; here, the data processed by the quantum arithmetic logic unit 10 and the data processed by the classical arithmetic logic unit 11 are named.
  • the quantum arithmetic logic unit 10 and the classical arithmetic logic unit 11 establish connections with the public register 12 respectively.
  • the controller 13 can be used to receive mixing instructions. It should be noted that a mixed instruction set can be formulated in advance, which contains all quantum operations and classical operations.
  • the controller can control the quantum arithmetic logic unit 10 or the classical arithmetic logic unit 11 to perform operations according to the received mixed instruction.
  • the controller 13 establishes a connection with the quantum arithmetic logic unit 10 and the classical arithmetic logic unit 11.
  • the corresponding arithmetic logic unit can be controlled to perform a memory access operation on the public register 12 according to the memory access instruction.
  • the arithmetic logic unit proposed in the above description of this application specifically includes a quantum arithmetic logic unit and a classical arithmetic logic unit.
  • the controller 13 can control the quantum arithmetic logic unit to write the data to be transmitted into the public register 12, and control the classical arithmetic logic unit 11
  • the data is read from the public register 12, thereby completing the data transmission process from the quantum arithmetic logic unit 10 to the classical arithmetic logic unit 11.
  • the memory access instruction proposed in this embodiment is a mixed instruction, which can be understood as a mixed instruction for accessing the public register 12.
  • the mixed instruction contains a flag bit used to indicate whether the mixed instruction is executed by the quantum arithmetic logic unit 10 or the classical arithmetic logic unit 11.
  • the flag bit occupies one bit of the length of the mixed instruction. For example, when the flag bit is displayed as 0, it can be determined that the mixed instruction is designated to be executed by the quantum arithmetic logic unit 10; when the flag bit is displayed as 1, it can be determined that the mixed instruction is designated to be executed by the classical arithmetic logic unit 11.
  • Those skilled in the art can also determine the length occupied by the flag bit and the representation method according to the actual situation of the set mixed instruction, which is not limited in the embodiment of the present invention.
  • the controller 13 can determine whether the identifier on the flag bit of the memory access instruction indicates a quantum identifier. If so, it means that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic.
  • the logic unit 10 sends the corresponding memory access instruction to the quantum arithmetic logic unit 10 for execution; if not, it means that the arithmetic logic unit corresponding to the memory access instruction is the classical arithmetic logic unit 11, and the memory access instruction is correspondingly The instruction is sent to the classical arithmetic logic unit 11 for execution.
  • the quantum computing-oriented data interaction device provided by the embodiment of the present invention further includes a quantum register and a classical register.
  • the quantum arithmetic logic unit 10 can write the quantum data that needs to be stored into the quantum register
  • the classical arithmetic logic unit 11 can write the classical data that needs to be stored into the classic register.
  • the data interaction device for quantum computing includes: a quantum arithmetic logic unit for processing quantum data and establishing a connection with a public register for data transmission; a classical arithmetic logic unit for processing classical data and interacting with The public register establishes a connection for data transmission; the public register is used to store quantum data and classical data; the controller is used to determine whether a memory access instruction for accessing the public register is received; if it is, it is determined according to the memory access instruction The arithmetic logic unit corresponding to the memory access instruction; the memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs memory access operations on the common register.
  • the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two.
  • data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register.
  • the whole process only needs two clock cycles, about 1ns to complete , Much less than the time required to complete data interaction after the external bus is upgraded.
  • the data interaction process is simple and easy to implement; the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
  • the quantum computing-oriented data interaction device provided by the embodiment of the present invention further includes:
  • the hybrid compiler is used to convert the received codes into hybrid instructions according to preset compilation rules to be recognized by the controller.
  • the hybrid compiler provided by the embodiment of the present invention is used to convert the received code into a hybrid instruction according to a preset compilation rule, so that it can be successfully recognized by the controller to complete the corresponding operation.
  • the compiler provided by the embodiment of the present invention supports the conversion of the Microsoft "Q#" high-level language into the mixed instruction proposed by the embodiment of the present invention.
  • the mixed instruction is specifically a binary instruction.
  • the length of the mixed instruction is specifically 64 bits. It should be noted that those skilled in the art can formulate the type and length of the mixed instruction according to actual application conditions, which is not limited in the embodiment of the present invention.
  • the mixed instruction is generally composed of an operation code and an operand, and the operand and the operation code occupy different bits in the mixed instruction.
  • the controller provided by the embodiment of the present invention performs a code fetching operation after receiving the mixed instruction, and determines whether the mixed instruction needs to be executed on the quantum arithmetic logic unit according to the obtained operation code.
  • Hybrid instructions can be divided into five types: single-qubit instructions, double-qubit instructions, quantum measurement instructions, quantum register operation instructions, and classical computing instructions.
  • the structure of the single-qubit instruction provided by the embodiment of the present invention is shown in Table 1
  • the structure of the double-qubit instruction is shown in Table 2
  • the structure diagram of the quantum measurement instruction is shown in Table 3
  • the structure of the quantum register operation instruction is shown in Table
  • the structure of the classical calculation instruction is shown in Table 5.
  • Instr in the table is the instruction code occupies a bit width of 12 bits, the operands are stored in different registers, and the number of bits occupied is temporarily not fixed.
  • Reg is a classic register
  • QReg is a quantum register
  • CReg is a public register.
  • Mixed instructions can directly access and manipulate classical registers, quantum registers or public registers.
  • the mixed instructions used to implement different operations are formed by instructions with different definitions. Specifically, some instructions are shown in Table 6, as shown in Table 6.
  • FIG. 3 is a flowchart of a quantum computing-oriented data interaction method provided by an embodiment of the present invention. As shown in FIG. 3, a quantum computing-oriented data interaction method provided by an embodiment of the present invention includes step S101-step S103 :
  • Step S101 Determine whether a memory fetch instruction for performing a memory fetch operation on a public register is received; if so, perform step S102;
  • Step S102 Determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction
  • Step S103 Send the memory access instruction to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the common register.
  • the controller establishes a connection with the quantum arithmetic logic unit and the classical arithmetic logic unit.
  • the corresponding arithmetic logic unit can be controlled to perform a memory access operation on the public register according to the memory access instruction.
  • the controller can control the quantum arithmetic logic unit to write the data that needs to be transmitted into the public register, and control the classical arithmetic logic unit to read from the public register Fetch the data to complete the data transmission process from the quantum arithmetic logic unit to the classical arithmetic logic unit.
  • the memory access instruction proposed in this embodiment belongs to a mixed instruction, which can be understood as a mixed instruction for accessing a public register.
  • determining the arithmetic logic unit corresponding to the memory access instruction specifically includes:
  • the arithmetic logic unit corresponding to the memory fetch instruction is a classic arithmetic logic unit.
  • a quantum computing-oriented data interaction method provided by the present invention includes determining whether a memory access instruction for accessing a public register is received; if so, determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction; The memory fetch instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory fetch operation on the common register. It can be seen that the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two.
  • the present invention also provides a corresponding embodiment of a quantum computing-oriented data interaction device.
  • the embodiments are described from the perspective of functional modules.
  • Fig. 4 is a structural diagram of a quantum computing-oriented data interaction device provided by an embodiment of the present invention. As shown in Fig. 4, a quantum computing-oriented data interaction device provided by an embodiment of the present invention includes:
  • the judging module is used to judge whether a memory fetching instruction for fetching the public register is received; if so, enter the determining module;
  • the determining module is used to determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
  • the memory access module is used to send memory access instructions to the arithmetic logic unit so that the arithmetic logic unit performs memory access operations on the public registers.
  • the determining module specifically includes:
  • the judging unit is used to judge whether the flag bit of the memory access instruction indicates a quantum identifier; if it is, then enter the first determining unit; if not, then enter the second determining unit;
  • the first determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
  • the second determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
  • a quantum computing-oriented data interaction device includes judging whether a memory access instruction for accessing a public register is received; if so, determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction; The memory fetch instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory fetch operation on the common register. It can be seen that the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two.
  • the present invention also provides an embodiment corresponding to a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps as recorded in the foregoing method embodiment are implemented.
  • the method in the above embodiment 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.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium. Execute all or part of the steps of the method described in each embodiment of the present invention.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .

Abstract

A quantum computing-oriented data interaction device, comprising: a quantum arithmetic logic unit used for processing quantum data and establishing connection with a common register for data transmission; a classical arithmetic logic unit used for processing classical data and establishing connection with the common register for data transmission; the common register used for storing the quantum data and the classical data; and a controller used for: determining whether a memory access instruction for accessing the common register is received; if yes, according to the memory access instruction, determining an arithmetic logic unit corresponding to the memory access instruction; and sending the memory access instruction to the arithmetic logic unit to enable the arithmetic logic unit to perform memory access operation on the common register. Therefore, the present invention enables a simple and easy-implemented data interaction process, avoids performance loss caused by transmission delay, and greatly improves transmission efficiency. In addition, a quantum computing-oriented data interaction method and apparatus and a medium which are provided in the present invention correspond to the device.

Description

面向量子计算的数据交互设备、方法、装置及介质Data interaction equipment, method, device and medium for quantum computing
本申请要求于2020年3月12日提交中国专利局、申请号为202010173418.8、发明名称为“面向量子计算的数据交互设备、方法、装置及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on March 12, 2020, the application number is 202010173418.8, and the invention title is "quantum computing-oriented data interaction equipment, methods, devices and media". The reference is incorporated in this application.
技术领域Technical field
本发明涉及计算机技术领域,特别是涉及一种面向量子计算的数据交互设备、方法、装置及介质。The present invention relates to the field of computer technology, in particular to a data interaction device, method, device and medium for quantum computing.
背景技术Background technique
随着计算机技术的迅猛发展,常将量子计算机作为异构设备用于卸载经典计算机上效率慢的任务,被称为量子计算的异构模型,通过量子计算的异构模型处理经典计算机上效率慢的任务,以提高任务的整体效率。With the rapid development of computer technology, quantum computers are often used as heterogeneous devices to offload slow-efficiency tasks on classical computers. It is called the heterogeneous model of quantum computing. The heterogeneous model of quantum computing is used to deal with the slow efficiency of classical computers. Task to improve the overall efficiency of the task.
图1为现有的异构模型处理流程的示意图,如图1所示,在使用量子计算的异构模型时,编程方式为经典程序中嵌入量子程序组成混合代码,在编译阶段把程序中的量子部分和经典部分分离,对应的量子指令在量子计算机上执行,对应的经典指令在经典计算机上进行,二者通过外部总线完成数据交互,从而使量子计算机和经典计算机完成各自对应的处理任务。但是,由于通过外部总线进行数据交互时,数据传输过程较为繁琐复杂,需要经过多个部件才能完成传输过程。因此,当数据交互较为频繁时,通过外部总线进行传输将产生较大的延迟,带来的性能损失;并且,当传输的数据量较大时,将导致量子计算机长时间处于阻塞状态,影响计算效率。Figure 1 is a schematic diagram of the processing flow of the existing heterogeneous model. As shown in Figure 1, when the heterogeneous model of quantum computing is used, the programming method is to embed the quantum program in the classical program to form a mixed code, and the The quantum part is separated from the classical part. The corresponding quantum instructions are executed on the quantum computer, and the corresponding classical instructions are carried out on the classical computer. The two complete data interaction through an external bus, so that the quantum computer and the classical computer complete their respective processing tasks. However, the data transmission process is cumbersome and complicated when data is exchanged through an external bus, and multiple components are required to complete the transmission process. Therefore, when the data exchange is relatively frequent, the transmission through the external bus will cause a large delay and cause performance loss; and, when the amount of data transmitted is large, the quantum computer will be blocked for a long time, which will affect the calculation. efficient.
为解决上述问题,现有技术中通常采用对连接二者的外部总线进行硬件升级,以提供更高地传输速率。例如采用最新的PCIe4.0可达到16G/s的速率,从而在当前情况下,能够一定程度上提升传输速率。该方法虽可缓解数据阻塞的问题,但并不能从根本上解决问题,随着需要传输的数据量的增加或交互次数的增加,传输效率低的问题依旧存在。由此可见,提供一种能够提高异构模型中数据传输效率的数据交互设备,成为当前亟待解决地问题。In order to solve the above-mentioned problems, in the prior art, the hardware upgrade of the external bus connecting the two is usually adopted to provide a higher transmission rate. For example, the latest PCIe4.0 can reach a rate of 16G/s, so that under the current situation, the transmission rate can be increased to a certain extent. Although this method can alleviate the problem of data congestion, it cannot fundamentally solve the problem. As the amount of data to be transmitted increases or the number of interactions increases, the problem of low transmission efficiency still exists. It can be seen that providing a data interaction device that can improve the efficiency of data transmission in a heterogeneous model has become an urgent problem to be solved at present.
发明内容Summary of the invention
本发明的目的是提供一种面向量子计算的数据交互设备、方法、装置及介质,通过设置了量子算数逻辑单元和经典算数逻辑单元均可访存的公共寄存器,使量子算数逻辑单元和经典算数逻辑单元可从公共寄存器中写入和读取数据,从而完成了二者之间的数据交互。在需要进行数据交互时,仅需其中一个算数逻辑单元将数据写入公共寄存器中,另一个算数逻辑单元从公共寄存器中读取即可,整个过程仅需两个时钟周期,约1ns即可完成。数据交互过程简单,易于实现;且避免了传输延迟带来的性能损失,大大提高了传输效率。The purpose of the present invention is to provide a data interaction device, method, device and medium for quantum computing. By setting a common register that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, the quantum arithmetic logic unit and the classical arithmetic logic unit can be accessed. The logic unit can write and read data from the public register, thereby completing the data interaction between the two. When data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register. The whole process only needs two clock cycles, about 1ns to complete . The data interaction process is simple and easy to implement; and the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
为解决上述技术问题,本发明提供一种面向量子计算的数据交互设备,包括:To solve the above technical problems, the present invention provides a quantum computing-oriented data interaction device, including:
量子算数逻辑单元,用于处理量子数据并与公共寄存器建立连接以进行数据传输;Quantum arithmetic logic unit, used to process quantum data and establish connection with public registers for data transmission;
经典算数逻辑单元,用于处理经典数据并与公共寄存器建立连接以进行数据传输;Classical arithmetic logic unit, used to process classic data and establish connection with public registers for data transmission;
公共寄存器,用于存储所述量子数据和所述经典数据;A public register for storing the quantum data and the classical data;
控制器,用于判断是否接收到用于访问所述公共寄存器的访存指令;如果是,根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元;将所述访存指令发送至所述算数逻辑单元以使所述算数逻辑单元对所述公共寄存器进行访存操作。The controller is used to determine whether a memory access instruction for accessing the public register is received; if so, according to the memory access instruction, determine the arithmetic logic unit corresponding to the memory access instruction; The instruction is sent to the arithmetic logic unit to enable the arithmetic logic unit to perform a memory access operation on the common register.
优选地,还包括:Preferably, it also includes:
混合编译器,用于根据预先设定的编译规则,将接收到的代码转换为混合指令以被所述控制器识别。The hybrid compiler is used to convert the received codes into hybrid instructions according to preset compilation rules to be recognized by the controller.
优选地,所述混合指令具体为二进制指令。Preferably, the mixed instruction is specifically a binary instruction.
优选地,所述混合指令的长度具体为64位。Preferably, the length of the mixed instruction is specifically 64 bits.
优选地,所述混合指令具体为单量子比特指令、双量子比特指令、量子测量指令、量子寄存器操作指令或经典计算指令。Preferably, the mixed instruction is specifically a single-qubit instruction, a double-qubit instruction, a quantum measurement instruction, a quantum register operation instruction or a classical calculation instruction.
为解决上述技术问题,本发明还提供一种面向量子计算的数据交互方法,包括:In order to solve the above technical problems, the present invention also provides a quantum computing-oriented data interaction method, including:
判断是否接收到用于对公共寄存器进行访存操作的访存指令;Determine whether a memory fetch instruction used to perform a memory fetch operation on a public register is received;
如果是,根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元;If yes, determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
将所述访存指令发送至所述算数逻辑单元以使所述算数逻辑单元对所述公共寄存器进行访存操作。The memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the common register.
优选地,所述根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元具体包括:Preferably, the determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction specifically includes:
判断所述访存指令的标志位是否指示为量子标识;Judging whether the flag bit of the memory access instruction indicates a quantum flag;
如果是,则确定所述访存指令对应的算数逻辑单元为量子算数逻辑单元;If yes, determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
如果否,则确定所述访存指令对应的算数逻辑单元为经典算数逻辑单元。If not, it is determined that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
为解决上述技术问题,本发明提供一种面向量子计算的数据交互装置,包括:In order to solve the above technical problems, the present invention provides a quantum computing-oriented data interaction device, including:
判断模块,用于判断是否接收到用于对公共寄存器进行访存操作的访存指令;如果是,则进入确定模块;The judging module is used to judge whether a memory fetching instruction for fetching the public register is received; if so, enter the determining module;
确定模块,用于根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元;The determining module is configured to determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
访存模块,用于将所述访存指令发送至所述算数逻辑单元以使所述算数逻辑单元对所述公共寄存器进行访存操作。The memory access module is configured to send the memory access instruction to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the public register.
优选地,所述确定模块具体包括:Preferably, the determining module specifically includes:
判断单元,用于判断所述访存指令的标志位是否指示为量子标识;如果是,则进入第一确定单元;如果否,则进入第二确定单元;The judging unit is used to judge whether the flag bit of the memory access instruction indicates a quantum identifier; if so, enter the first determining unit; if not, enter the second determining unit;
第一确定单元,用于确定所述访存指令对应的算数逻辑单元为量子算数逻辑单元;The first determining unit is configured to determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
第二确定单元,用于确定所述访存指令对应的算数逻辑单元为经典算数逻辑单元。The second determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
为解决上述技术问题,本发明提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述的面向量子计算的数据交互方法的步骤。In order to solve the above technical problems, the present invention provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the above-mentioned quantum computing-oriented data interaction method is realized A step of.
本发明所提供的一种面向量子计算的数据交互设备,包括:量子算数逻辑单元,用于处理量子数据并与公共寄存器建立连接以进行数据传输;经典算数逻辑单元,用于处理经典数据并与公共寄存器建立连接以进行数据传输;公共寄存器,用于存储量子数据和经典数据;控制器,用于判断是否接收到用于访问公共寄存器的访存指令;如果是,根据访存指令,确定出与访存指令对应的算数逻辑单元;将访存指令发送至算数逻辑单元以使算数逻辑单元对公共寄存器进行访存操作。由此可见,本发明通过设置了量子算数逻辑单元和经典算数逻辑单元均可访存的公共寄存器,使量子算数逻辑单元和经典算数逻辑单元均可从公共寄存器中存储和获取数据,从而完成了二者之间的数据交互。在需要进行数据交互时,仅需其中一个算数逻辑单元将数据写入公共寄存器中,另一个算数逻辑单元从公共寄存器中读取即可,整个过程仅需两个时钟周期,约1ns即可完成,远小于外部总线升级后完成数据交互所需要的时间。并且,数据交互过程简单,易于实现;避免了传输延迟带来的性能损失,大大提高了传输效率。The data interaction device for quantum computing provided by the present invention includes: a quantum arithmetic logic unit for processing quantum data and establishing a connection with a public register for data transmission; a classical arithmetic logic unit for processing classical data and interacting with The public register establishes a connection for data transmission; the public register is used to store quantum data and classical data; the controller is used to determine whether a memory access instruction for accessing the public register is received; if it is, it is determined according to the memory access instruction The arithmetic logic unit corresponding to the memory access instruction; the memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs memory access operations on the common register. It can be seen that the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two. When data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register. The whole process only needs two clock cycles, about 1ns to complete , Much less than the time required to complete data interaction after the external bus is upgraded. In addition, the data interaction process is simple and easy to implement; the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
此外,本发明所提供的一种面向量子计算的数据交互方法、装置及介质与上述方法对应,具有同样的有益效果。In addition, a quantum computing-oriented data interaction method, device, and medium provided by the present invention correspond to the foregoing method and have the same beneficial effects.
附图说明Description of the drawings
为了更清楚地说明本发明实施例,下面将对实施例中所需要使用的附图做简单的介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention more clearly, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. As far as personnel are concerned, they can also obtain other drawings based on these drawings without creative work.
图1为现有的异构模型处理流程的示意图;Figure 1 is a schematic diagram of the existing heterogeneous model processing flow;
图2为本发明实施例提供的一种面向量子计算的数据交互设备的结构图;2 is a structural diagram of a quantum computing-oriented data interaction device provided by an embodiment of the present invention;
图3为本发明实施例提供的一种面向量子计算的数据交互方法的流程图;3 is a flowchart of a data interaction method for quantum computing according to an embodiment of the present invention;
图4为本发明实施例提供的一种面向量子计算的数据交装置的结构图。FIG. 4 is a structural diagram of a data exchange device for quantum computing provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下,所获得的所有其他实施例,都属于本发明保护范围。The following describes the technical solutions in the embodiments of the present invention clearly and completely with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.
本发明的核心是提供一种面向量子计算的数据交互设备、方法、装置及介质,通过设置了量子算数逻辑单元和经典算数逻辑单元均可访存的公共寄存器,使量子算数逻辑单元和经典算数逻辑单元可从公共寄存器中写入和读取数据,从而完成了二者之间的数据交互。在需要进行数据交互时,仅需其中一个算数逻辑单元将数据写入公共寄存器中,另一个算数逻辑单元从公共寄存器中读取即可,整个过程仅需两个时钟周期,约1ns即可完成。数据交互过程简单,易于实现;且避免了传输延迟带来的性能损失,大大提高了传输效率。The core of the present invention is to provide a quantum computing-oriented data interaction equipment, method, device and medium. By setting up public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, the quantum arithmetic logic unit and the classical arithmetic logic unit can be accessed. The logic unit can write and read data from the public register, thereby completing the data interaction between the two. When data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register. The whole process only needs two clock cycles, about 1ns to complete . The data interaction process is simple and easy to implement; and the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
为了使本技术领域的人员更好地理解本发明方案,下面结合附图和具体实施方式对本发明作进一步的详细说明。In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图2为本发明实施例提供的一种面向量子计算的数据交互设备的结构图;如图2所示,本发明实施例提供的一种面向量子计算的数据交互设备,包括:Figure 2 is a structural diagram of a quantum computing-oriented data interaction device provided by an embodiment of the present invention; as shown in Figure 2, a quantum computing-oriented data interaction device provided by an embodiment of the present invention includes:
量子算数逻辑单元10,用于处理量子数据并与公共寄存器12建立连接以进行数据传输;The quantum arithmetic logic unit 10 is used to process quantum data and establish a connection with the public register 12 for data transmission;
经典算数逻辑单元11,用于处理经典数据并与公共寄存器12建立连接以进行数据传输;The classic arithmetic logic unit 11 is used to process classic data and establish a connection with the public register 12 for data transmission;
公共寄存器12,用于存储量子数据和经典数据;The public register 12 is used to store quantum data and classical data;
控制器13,用于判断是否接收到用于访问公共寄存器12的访存指令;如果是,根据访存指令,确定出与访存指令对应的算数逻辑单元;将访存指令发送至算数逻辑单元以使算数逻辑单元对公共寄存器进行访存操作。The controller 13 is used to determine whether a memory access instruction for accessing the public register 12 is received; if so, according to the memory access instruction, determine the arithmetic logic unit corresponding to the memory access instruction; send the memory access instruction to the arithmetic logic unit In order to make the arithmetic logic unit access the public registers.
在一个实施例中,量子算数逻辑单元10用于处理量子数据,经典算数逻辑单元11用于处理经典数据。需要说明的是,量子数据指代需要进行量子计算的数据,经典数据指代需要进行经典计算的数据;此处对量子算数逻辑单元10处理的数据和经典算数逻辑单元11处理的数据在命名上进行区分,本领域技术人员也可采用其它命名进行区别,本发明实施例不作限定。量子算数逻辑单元10和经典算数逻辑单元11分别与公共寄存器12建立连接。控制器13可用于接收混合指令。需要说明的是,可预先制定混合指令集,该指令集中包含有所有量子运算和经典运算。控制器可根据接收到的混合指令,相应地控制量子算数逻辑单元10或经典算数逻辑单元11进行运算。In one embodiment, the quantum arithmetic logic unit 10 is used for processing quantum data, and the classical arithmetic logic unit 11 is used for processing classical data. It should be noted that quantum data refers to data that needs to be subjected to quantum calculations, and classical data refers to data that needs to be subjected to classical calculations; here, the data processed by the quantum arithmetic logic unit 10 and the data processed by the classical arithmetic logic unit 11 are named. For distinction, those skilled in the art may also use other names for distinction, which is not limited in the embodiment of the present invention. The quantum arithmetic logic unit 10 and the classical arithmetic logic unit 11 establish connections with the public register 12 respectively. The controller 13 can be used to receive mixing instructions. It should be noted that a mixed instruction set can be formulated in advance, which contains all quantum operations and classical operations. The controller can control the quantum arithmetic logic unit 10 or the classical arithmetic logic unit 11 to perform operations according to the received mixed instruction.
在具体实施中,控制器13与量子算数逻辑单元10和经典算数逻辑单元11建立连接。当接收到用于访问公共寄存器12的访存指令时,可根据访存指令,控制相应的算数逻辑单元对公共寄存器12进行访存操作。需要说明的是,本申请上述说明中提出的算数逻辑单元具体包括量子算数逻辑单元和经典算数逻辑单元。当量子算数逻辑单元10想要将计算所得数据传输至经典算数逻辑单元11时,控制器13可控制量子算数逻辑单元将需要传输的数据写入至公共寄存器12中,并控制经典算数逻辑单元11从公共寄存器12中读取该数据,从而完成由量子算数逻辑单元10至经典算数逻辑单元11的数据传输过程。当想要从经典算数逻辑单元11将数据传输至量子算数逻辑单元10时,也可按照上述步骤实现。需要说明的是,本实施例中提出的访存指令属于混合指令,可理解为用于访问公共寄存器12的混合指令。In a specific implementation, the controller 13 establishes a connection with the quantum arithmetic logic unit 10 and the classical arithmetic logic unit 11. When a memory access instruction for accessing the public register 12 is received, the corresponding arithmetic logic unit can be controlled to perform a memory access operation on the public register 12 according to the memory access instruction. It should be noted that the arithmetic logic unit proposed in the above description of this application specifically includes a quantum arithmetic logic unit and a classical arithmetic logic unit. When the quantum arithmetic logic unit 10 wants to transmit the calculated data to the classical arithmetic logic unit 11, the controller 13 can control the quantum arithmetic logic unit to write the data to be transmitted into the public register 12, and control the classical arithmetic logic unit 11 The data is read from the public register 12, thereby completing the data transmission process from the quantum arithmetic logic unit 10 to the classical arithmetic logic unit 11. When it is desired to transmit data from the classical arithmetic logic unit 11 to the quantum arithmetic logic unit 10, the above steps can also be implemented. It should be noted that the memory access instruction proposed in this embodiment is a mixed instruction, which can be understood as a mixed instruction for accessing the public register 12.
在具体实施中,混合指令中包含有用于指示该混合指令是由量子算数逻辑单元10执行还是由经典算数逻辑单元11执行的标志位,通常情况下,标志位占混合指令的长度为一位,例如当标志位显示为0时,可确定该混 合指令指定由量子算数逻辑单元10执行;当标志位显示为1时,确定该混合指令指定由经典算数逻辑单元11执行。本领域技术人员也可根据设定的混合指令的实际情况,确定标志位占用的长度和表示方法,本发明实施例不作限定。In specific implementation, the mixed instruction contains a flag bit used to indicate whether the mixed instruction is executed by the quantum arithmetic logic unit 10 or the classical arithmetic logic unit 11. Normally, the flag bit occupies one bit of the length of the mixed instruction. For example, when the flag bit is displayed as 0, it can be determined that the mixed instruction is designated to be executed by the quantum arithmetic logic unit 10; when the flag bit is displayed as 1, it can be determined that the mixed instruction is designated to be executed by the classical arithmetic logic unit 11. Those skilled in the art can also determine the length occupied by the flag bit and the representation method according to the actual situation of the set mixed instruction, which is not limited in the embodiment of the present invention.
在一个实施例中,控制器13接收到访存指令后,可判断访存指令的标志位上的标识是否指示为量子标识,如果是,则说明该访存指令对应的算数逻辑单元为量子算数逻辑单元10,将相应的将该访存指令发送给量子算数逻辑单元10来执行;如果否,则说明该访存指令对应的算数逻辑单元为经典算数逻辑单元11,则相应的将该访存指令发送给经典算数逻辑单元11来执行。In one embodiment, after the controller 13 receives the memory access instruction, it can determine whether the identifier on the flag bit of the memory access instruction indicates a quantum identifier. If so, it means that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic. The logic unit 10 sends the corresponding memory access instruction to the quantum arithmetic logic unit 10 for execution; if not, it means that the arithmetic logic unit corresponding to the memory access instruction is the classical arithmetic logic unit 11, and the memory access instruction is correspondingly The instruction is sent to the classical arithmetic logic unit 11 for execution.
在具体实施中,本发明实施例提供的面向量子计算的数据交互设备,还包括量子寄存器和经典寄存器。当不需要进行数据交互时,量子算数逻辑单元10可将需要存储的量子数据写入至量子寄存器,经典算数逻辑单元11可将需要存储的经典数据写入至经典寄存器。In specific implementation, the quantum computing-oriented data interaction device provided by the embodiment of the present invention further includes a quantum register and a classical register. When data exchange is not required, the quantum arithmetic logic unit 10 can write the quantum data that needs to be stored into the quantum register, and the classical arithmetic logic unit 11 can write the classical data that needs to be stored into the classic register.
本发明所提供的一种面向量子计算的数据交互设备,包括:量子算数逻辑单元,用于处理量子数据并与公共寄存器建立连接以进行数据传输;经典算数逻辑单元,用于处理经典数据并与公共寄存器建立连接以进行数据传输;公共寄存器,用于存储量子数据和经典数据;控制器,用于判断是否接收到用于访问公共寄存器的访存指令;如果是,根据访存指令,确定出与访存指令对应的算数逻辑单元;将访存指令发送至算数逻辑单元以使算数逻辑单元对公共寄存器进行访存操作。由此可见,本发明通过设置了量子算数逻辑单元和经典算数逻辑单元均可访存的公共寄存器,使量子算数逻辑单元和经典算数逻辑单元均可从公共寄存器中存储和获取数据,从而完成了二者之间的数据交互。在需要进行数据交互时,仅需其中一个算数逻辑单元将数据写入公共寄存器中,另一个算数逻辑单元从公共寄存器中读取即可,整个过程仅需两个时钟周期,约1ns即可完成,远小于外部总线升级后完成数据交互所需要的时间。并且,数据交互过程简单,易于实现;避免了传输延迟带来的性能损失,大大提高了传输效率。The data interaction device for quantum computing provided by the present invention includes: a quantum arithmetic logic unit for processing quantum data and establishing a connection with a public register for data transmission; a classical arithmetic logic unit for processing classical data and interacting with The public register establishes a connection for data transmission; the public register is used to store quantum data and classical data; the controller is used to determine whether a memory access instruction for accessing the public register is received; if it is, it is determined according to the memory access instruction The arithmetic logic unit corresponding to the memory access instruction; the memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs memory access operations on the common register. It can be seen that the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two. When data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register. The whole process only needs two clock cycles, about 1ns to complete , Much less than the time required to complete data interaction after the external bus is upgraded. In addition, the data interaction process is simple and easy to implement; the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
在一个实施例中,本发明实施例提供的面向量子计算的数据交互设备,还包括:In one embodiment, the quantum computing-oriented data interaction device provided by the embodiment of the present invention further includes:
混合编译器,用于根据预先设定的编译规则,将接收到的代码转换为混合指令以被控制器识别。The hybrid compiler is used to convert the received codes into hybrid instructions according to preset compilation rules to be recognized by the controller.
本领域技术人员可知,通常情况下控制器只可识别二进制指令,无法直接识别工作人员输入的程序代码。本发明实施例提供的混合编译器,用于根据预先设定的编译规则,将接收到的代码转换为混合指令,从而能够被控制器成功识别以完成相应的操作。例如,本发明实施例提供的编译器支持将微软“Q#”高级语言转换为本发明实施例提出的混合指令。可以理解地,混合指令具体为二进制指令。在具体实施中,混合指令的长度具体为64位。需要说明的是,本领域技术人员可根据实际应用情况制定混合指令的类型和长度,本发明实施例不作限定。Those skilled in the art can know that, under normal circumstances, the controller can only recognize binary instructions, and cannot directly recognize the program code input by the worker. The hybrid compiler provided by the embodiment of the present invention is used to convert the received code into a hybrid instruction according to a preset compilation rule, so that it can be successfully recognized by the controller to complete the corresponding operation. For example, the compiler provided by the embodiment of the present invention supports the conversion of the Microsoft "Q#" high-level language into the mixed instruction proposed by the embodiment of the present invention. Understandably, the mixed instruction is specifically a binary instruction. In specific implementation, the length of the mixed instruction is specifically 64 bits. It should be noted that those skilled in the art can formulate the type and length of the mixed instruction according to actual application conditions, which is not limited in the embodiment of the present invention.
在一个实施例中,混合指令一般是由操作码和操作数组成的,操作数和操作码在混合指令中占有不同的位数。本发明实施例提供的控制器在接收到混合指令后进行取码操作,根据获取到的操作码确定是否需要在量子算数逻辑单元上执行该混合指令。In one embodiment, the mixed instruction is generally composed of an operation code and an operand, and the operand and the operation code occupy different bits in the mixed instruction. The controller provided by the embodiment of the present invention performs a code fetching operation after receiving the mixed instruction, and determines whether the mixed instruction needs to be executed on the quantum arithmetic logic unit according to the obtained operation code.
混合指令具体可分为单量子比特指令、双量子比特指令、量子测量指令、量子寄存器操作指令和经典计算指令五种类型。本发明实施例提供的单量子比特指令的结构如表1所示,双量子比特指令的结构如表2所示,量子测量指令的结构图如表3所示,量子寄存器操作指令的结构如表4所示,经典计算指令的结构如表5所示。Hybrid instructions can be divided into five types: single-qubit instructions, double-qubit instructions, quantum measurement instructions, quantum register operation instructions, and classical computing instructions. The structure of the single-qubit instruction provided by the embodiment of the present invention is shown in Table 1, the structure of the double-qubit instruction is shown in Table 2, the structure diagram of the quantum measurement instruction is shown in Table 3, and the structure of the quantum register operation instruction is shown in Table As shown in 4, the structure of the classical calculation instruction is shown in Table 5.
表1Table 1
63-6063-60 59-4859-48 47-4647-46 46-4546-45 44-3044-30 29-029-0
CRegCReg InstrInstr Reg1Reg1 QReg1QReg1 Reg2Reg2 undefinedundefined
表2Table 2
63-6063-60 59-4859-48 47-4647-46 46-4546-45 44-4344-43 42-042-0
CRegCReg InstrInstr Reg1Reg1 QReg1QReg1 Qreg2Qreg2 undefinedundefined
表3table 3
63-6063-60 59-4859-48 47-4647-46 46-4546-45 44-044-0
CRegCReg InstrInstr Reg1Reg1 QReg1QReg1 undefinedundefined
表4Table 4
63-6063-60 59-4859-48 47-4647-46 46-4546-45 44-3744-37 36-036-0
CRegCReg InstrInstr Reg1Reg1 QReg1QReg1 Reg2Reg2 undefinedundefined
表5table 5
63-6063-60 59-4859-48 47-4247-42 41-3241-32 31-031-0
CRegCReg InstrInstr Reg1Reg1 undefinedundefined Imm32Imm32
在一个实施例中,表格中Instr为指令编码占据12bit的位宽,操作数存放在不同的寄存器中,占据的位数暂不固定。Reg为经典寄存器,QReg为量子寄存器,CReg为公共寄存器。混合指令可以直接访存和操作经典寄存器、量子寄存器或公共寄存器。通过具有不同定义的指令构成用于实现不同操作的混合指令。具体地,表6中展示了部分的指令,如表6所示。In one embodiment, Instr in the table is the instruction code occupies a bit width of 12 bits, the operands are stored in different registers, and the number of bits occupied is temporarily not fixed. Reg is a classic register, QReg is a quantum register, and CReg is a public register. Mixed instructions can directly access and manipulate classical registers, quantum registers or public registers. The mixed instructions used to implement different operations are formed by instructions with different definitions. Specifically, some instructions are shown in Table 6, as shown in Table 6.
表6Table 6
Figure PCTCN2020087156-appb-000001
Figure PCTCN2020087156-appb-000001
图3为本发明实施例提供的一种面向量子计算的数据交互方法的流程图;如图3所示,本发明实施例提供的一种面向量子计算的数据交互方法,包括步骤S101-步骤S103:FIG. 3 is a flowchart of a quantum computing-oriented data interaction method provided by an embodiment of the present invention; as shown in FIG. 3, a quantum computing-oriented data interaction method provided by an embodiment of the present invention includes step S101-step S103 :
步骤S101:判断是否接收到用于对公共寄存器进行访存操作的访存指令;如果是,则执行步骤S102;Step S101: Determine whether a memory fetch instruction for performing a memory fetch operation on a public register is received; if so, perform step S102;
步骤S102:根据访存指令,确定出与访存指令对应的算数逻辑单元;Step S102: Determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
步骤S103:将访存指令发送至算数逻辑单元以使算数逻辑单元对公共寄存器进行访存操作。Step S103: Send the memory access instruction to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the common register.
在具体实施中,控制器与量子算数逻辑单元和经典算数逻辑单元建立连接。当接收到用于访问公共寄存器的访存指令时,可根据访存指令,控制相应的算数逻辑单元对公共寄存器进行访存操作。当量子算数逻辑单元想要将计算所得数据传输至经典算数逻辑单元时,控制器可控制量子算数逻辑单元将需要传输的数据写入至公共寄存器中,并控制经典算数逻辑单元从公共寄存器中读取该数据,从而完成由量子算数逻辑单元至经典算数逻辑单元的数据传输过程。当想要从经典算数逻辑单元将数据传输至量子算数逻辑单元时,也可按照上述步骤实现。需要说明的是,本实施例中提出的访存指令属于混合指令,可理解为用于访问公共寄存器的混合指令。In specific implementation, the controller establishes a connection with the quantum arithmetic logic unit and the classical arithmetic logic unit. When a memory access instruction for accessing a public register is received, the corresponding arithmetic logic unit can be controlled to perform a memory access operation on the public register according to the memory access instruction. When the quantum arithmetic logic unit wants to transfer the calculated data to the classical arithmetic logic unit, the controller can control the quantum arithmetic logic unit to write the data that needs to be transmitted into the public register, and control the classical arithmetic logic unit to read from the public register Fetch the data to complete the data transmission process from the quantum arithmetic logic unit to the classical arithmetic logic unit. When you want to transfer data from the classical arithmetic logic unit to the quantum arithmetic logic unit, you can also follow the above steps. It should be noted that the memory access instruction proposed in this embodiment belongs to a mixed instruction, which can be understood as a mixed instruction for accessing a public register.
在一个实施例中,本发明实施例提供的面向量子计算的数据交互方法,根据访存指令,确定出与访存指令对应的算数逻辑单元具体包括:In one embodiment, in the quantum computing-oriented data interaction method provided by the embodiment of the present invention, according to the memory access instruction, determining the arithmetic logic unit corresponding to the memory access instruction specifically includes:
判断访存指令的标志位是否指示为量子标识;Determine whether the flag bit of the memory access instruction indicates a quantum flag;
如果是,则确定访存指令对应的算数逻辑单元为量子算数逻辑单元;If yes, determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
如果否,则确定访存指令对应的算数逻辑单元为经典算数逻辑单元。If not, it is determined that the arithmetic logic unit corresponding to the memory fetch instruction is a classic arithmetic logic unit.
本发明所提供的一种面向量子计算的数据交互方法,包括判断是否接收到用于访问公共寄存器的访存指令;如果是,根据访存指令,确定出与访存指令对应的算数逻辑单元;将访存指令发送至算数逻辑单元以使算数逻辑单元对公共寄存器进行访存操作。由此可见,本发明通过设置了量子算数逻辑单元和经典算数逻辑单元均可访存的公共寄存器,使量子算数逻辑单元和经典算数逻辑单元均可从公共寄存器中存储和获取数据,从而完成了二者之间的数据交互。在需要进行数据交互时,仅需其中一个算数逻 辑单元将数据写入公共寄存器中,另一个算数逻辑单元从公共寄存器中读取即可,整个过程仅需两个时钟周期,约1ns即可完成,远小于外部总线升级后完成数据交互所需要的时间。并且,数据交互过程简单,易于实现;避免了传输延迟带来的性能损失,大大提高了传输效率。A quantum computing-oriented data interaction method provided by the present invention includes determining whether a memory access instruction for accessing a public register is received; if so, determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction; The memory fetch instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory fetch operation on the common register. It can be seen that the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two. When data exchange is required, only one arithmetic logic unit needs to write the data into the public register, and the other arithmetic logic unit can read the data from the public register. The whole process only needs two clock cycles, about 1ns. , Much less than the time required to complete data interaction after the external bus is upgraded. In addition, the data interaction process is simple and easy to implement; the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
本发明还提供一种面向量子计算的数据交互装置对应的实施例。从功能模块的角度对实施例进行描述。The present invention also provides a corresponding embodiment of a quantum computing-oriented data interaction device. The embodiments are described from the perspective of functional modules.
图4为本发明实施例提供的一种面向量子计算的数据交互装置的结构图;如图4所示,本发明实施例提供的一种面向量子计算的数据交互装置,包括:Fig. 4 is a structural diagram of a quantum computing-oriented data interaction device provided by an embodiment of the present invention; as shown in Fig. 4, a quantum computing-oriented data interaction device provided by an embodiment of the present invention includes:
判断模块,用于判断是否接收到用于对公共寄存器进行访存操作的访存指令;如果是,则进入确定模块;The judging module is used to judge whether a memory fetching instruction for fetching the public register is received; if so, enter the determining module;
确定模块,用于根据访存指令,确定出与访存指令对应的算数逻辑单元;The determining module is used to determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
访存模块,用于将访存指令发送至算数逻辑单元以使算数逻辑单元对公共寄存器进行访存操作。The memory access module is used to send memory access instructions to the arithmetic logic unit so that the arithmetic logic unit performs memory access operations on the public registers.
在一个实施例中,本发明提供的面向量子计算的数据交互装置,确定模块具体包括:In one embodiment, in the quantum computing-oriented data interaction device provided by the present invention, the determining module specifically includes:
判断单元,用于判断访存指令的标志位是否指示为量子标识;如果是,则进入第一确定单元;如果否,则进入第二确定单元;The judging unit is used to judge whether the flag bit of the memory access instruction indicates a quantum identifier; if it is, then enter the first determining unit; if not, then enter the second determining unit;
第一确定单元,用于确定访存指令对应的算数逻辑单元为量子算数逻辑单元;The first determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
第二确定单元,用于确定访存指令对应的算数逻辑单元为经典算数逻辑单元。The second determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
由于本部分的实施例与方法部分的实施例相互对应,因此本部分的实施例请参见方法部分的实施例的描述,这里暂不赘述。Since the embodiments in this part correspond to the embodiments in the method part, for the embodiments in this part, please refer to the description of the embodiments in the method part, which will not be repeated here.
本发明所提供的一种面向量子计算的数据交互装置,包括判断是否接收到用于访问公共寄存器的访存指令;如果是,根据访存指令,确定出与访存指令对应的算数逻辑单元;将访存指令发送至算数逻辑单元以使算数 逻辑单元对公共寄存器进行访存操作。由此可见,本发明通过设置了量子算数逻辑单元和经典算数逻辑单元均可访存的公共寄存器,使量子算数逻辑单元和经典算数逻辑单元均可从公共寄存器中存储和获取数据,从而完成了二者之间的数据交互。在需要进行数据交互时,仅需其中一个算数逻辑单元将数据写入公共寄存器中,另一个算数逻辑单元从公共寄存器中读取即可,整个过程仅需两个时钟周期,约1ns即可完成,远小于外部总线升级后完成数据交互所需要的时间。并且,数据交互过程简单,易于实现;避免了传输延迟带来的性能损失,大大提高了传输效率。A quantum computing-oriented data interaction device provided by the present invention includes judging whether a memory access instruction for accessing a public register is received; if so, determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction; The memory fetch instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory fetch operation on the common register. It can be seen that the present invention is provided with public registers that can be accessed by both the quantum arithmetic logic unit and the classical arithmetic logic unit, so that both the quantum arithmetic logic unit and the classical arithmetic logic unit can store and obtain data from the public register, thereby completing Data interaction between the two. When data exchange is required, only one arithmetic logic unit needs to write data into the public register, and the other arithmetic logic unit reads the data from the public register. The whole process only needs two clock cycles, about 1ns to complete , Much less than the time required to complete data interaction after the external bus is upgraded. In addition, the data interaction process is simple and easy to implement; the performance loss caused by the transmission delay is avoided, and the transmission efficiency is greatly improved.
最后,本发明还提供一种计算机可读存储介质对应的实施例。计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现如上述方法实施例中记载的步骤。Finally, the present invention also provides an embodiment corresponding to a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps as recorded in the foregoing method embodiment are implemented.
可以理解的是,如果上述实施例中的方法以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。It is understandable that if the method in the above embodiment 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 essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium. Execute all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program code .
以上对本发明所提供的一种面向量子计算的数据交互设备、方法、装置及介质进行了详细介绍。说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。In the above, the quantum computing-oriented data interaction equipment, method, device and medium provided by the present invention have been introduced in detail. The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method part. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and modifications can be made to the present invention, and these improvements and modifications also fall within the protection scope of the claims of the present invention.
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply these entities or operations. There is any such actual relationship or sequence between operations. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.

Claims (10)

  1. 一种面向量子计算的数据交互设备,其特征在于,包括:A data interaction device for quantum computing, which is characterized in that it includes:
    量子算数逻辑单元,用于处理量子数据并与公共寄存器建立连接以进行数据传输;Quantum arithmetic logic unit, used to process quantum data and establish connection with public registers for data transmission;
    经典算数逻辑单元,用于处理经典数据并与公共寄存器建立连接以进行数据传输;Classical arithmetic logic unit, used to process classic data and establish connection with public registers for data transmission;
    公共寄存器,用于存储所述量子数据和所述经典数据;A public register for storing the quantum data and the classical data;
    控制器,用于判断是否接收到用于访问所述公共寄存器的访存指令;如果是,根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元;将所述访存指令发送至所述算数逻辑单元以使所述算数逻辑单元对所述公共寄存器进行访存操作。The controller is used to determine whether a memory access instruction for accessing the public register is received; if so, according to the memory access instruction, determine the arithmetic logic unit corresponding to the memory access instruction; The instruction is sent to the arithmetic logic unit to enable the arithmetic logic unit to perform a memory access operation on the common register.
  2. 根据权利要求1所述的面向量子计算的数据交互设备,其特征在于,还包括:The quantum computing-oriented data interaction device according to claim 1, further comprising:
    混合编译器,用于根据预先设定的编译规则,将接收到的代码转换为混合指令以被所述控制器识别。The hybrid compiler is used to convert the received codes into hybrid instructions according to preset compilation rules to be recognized by the controller.
  3. 根据权利要求2所述的面向量子计算的数据交互设备,其特征在于,所述混合指令具体为二进制指令。The quantum computing-oriented data interaction device according to claim 2, wherein the mixed instruction is specifically a binary instruction.
  4. 根据权利要求2所述的面向量子计算的数据交互设备,其特征在于,所述混合指令的长度具体为64位。The quantum computing-oriented data interaction device according to claim 2, wherein the length of the mixed instruction is specifically 64 bits.
  5. 根据权利要求2所述的面向量子计算的数据交互设备,其特征在于,所述混合指令具体为单量子比特指令、双量子比特指令、量子测量指令、量子寄存器操作指令或经典计算指令。The quantum computing-oriented data interaction device according to claim 2, wherein the mixed instruction is specifically a single-qubit instruction, a double-qubit instruction, a quantum measurement instruction, a quantum register operation instruction, or a classical calculation instruction.
  6. 一种面向量子计算的数据交互方法,其特征在于,包括:A data interaction method oriented to quantum computing is characterized in that it includes:
    判断是否接收到用于对公共寄存器进行访存操作的访存指令;Determine whether a memory fetch instruction used to perform a memory fetch operation on a public register is received;
    如果是,根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元;If yes, determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
    将所述访存指令发送至所述算数逻辑单元以使所述算数逻辑单元对所述公共寄存器进行访存操作。The memory access instruction is sent to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the common register.
  7. 根据权利要求6所述的面向量子计算的数据交互方法,其特征在于,所述根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元具体包括:The quantum computing-oriented data interaction method according to claim 6, wherein the determining the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction specifically comprises:
    判断所述访存指令的标志位是否指示为量子标识;Judging whether the flag bit of the memory access instruction indicates a quantum flag;
    如果是,则确定所述访存指令对应的算数逻辑单元为量子算数逻辑单元;If yes, determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
    如果否,则确定所述访存指令对应的算数逻辑单元为经典算数逻辑单元。If not, it is determined that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
  8. 一种面向量子计算的数据交互装置,其特征在于,包括:A data interaction device oriented to quantum computing is characterized in that it comprises:
    判断模块,用于判断是否接收到用于对公共寄存器进行访存操作的访存指令;如果是,则进入确定模块;The judging module is used to judge whether a memory fetching instruction for fetching the public register is received; if so, enter the determining module;
    确定模块,用于根据所述访存指令,确定出与所述访存指令对应的算数逻辑单元;The determining module is configured to determine the arithmetic logic unit corresponding to the memory access instruction according to the memory access instruction;
    访存模块,用于将所述访存指令发送至所述算数逻辑单元以使所述算数逻辑单元对所述公共寄存器进行访存操作。The memory access module is configured to send the memory access instruction to the arithmetic logic unit so that the arithmetic logic unit performs a memory access operation on the public register.
  9. 根据权利要求8所述的面向量子计算的数据交互装置,其特征在于,所述确定模块具体包括:The quantum computing-oriented data interaction device according to claim 8, wherein the determining module specifically comprises:
    判断单元,用于判断所述访存指令的标志位是否指示为量子标识;如果是,则进入第一确定单元;如果否,则进入第二确定单元;The judging unit is used to judge whether the flag bit of the memory access instruction indicates a quantum identifier; if so, enter the first determining unit; if not, enter the second determining unit;
    第一确定单元,用于确定所述访存指令对应的算数逻辑单元为量子算数逻辑单元;The first determining unit is configured to determine that the arithmetic logic unit corresponding to the memory access instruction is a quantum arithmetic logic unit;
    第二确定单元,用于确定所述访存指令对应的算数逻辑单元为经典算数逻辑单元。The second determining unit is used to determine that the arithmetic logic unit corresponding to the memory access instruction is a classic arithmetic logic unit.
  10. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求6或7所述的面向量子计算的数据交互方法的步骤。A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the quantum computing-oriented data interaction according to claim 6 or 7 is realized Method steps.
PCT/CN2020/087156 2020-03-12 2020-04-27 Quantum computing-oriented data interaction device, method and apparatus and medium WO2021179411A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010173418.8A CN111310929A (en) 2020-03-12 2020-03-12 Quantum computation-oriented data interaction equipment, method, device and medium
CN202010173418.8 2020-03-12

Publications (1)

Publication Number Publication Date
WO2021179411A1 true WO2021179411A1 (en) 2021-09-16

Family

ID=71151590

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/087156 WO2021179411A1 (en) 2020-03-12 2020-04-27 Quantum computing-oriented data interaction device, method and apparatus and medium

Country Status (2)

Country Link
CN (1) CN111310929A (en)
WO (1) WO2021179411A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116187455A (en) * 2022-12-16 2023-05-30 中国人民解放军战略支援部队信息工程大学 Classical and quantum mixed instruction pipeline design method and device

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113869520B (en) * 2021-10-20 2022-07-01 中国人民解放军战略支援部队信息工程大学 Quantum computer system structure for sharing control and computing method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870015A (en) * 2006-06-28 2006-11-29 中山大学 Cooperative quantum computer architecture structural conceptual
US20180260245A1 (en) * 2017-03-10 2018-09-13 Rigetti & Co, Inc. Event Scheduling in a Hybrid Computing System
WO2019222748A1 (en) * 2018-05-18 2019-11-21 Rigetti & Co, Inc. Computing platform with heterogenous quantum processors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1870015A (en) * 2006-06-28 2006-11-29 中山大学 Cooperative quantum computer architecture structural conceptual
US20180260245A1 (en) * 2017-03-10 2018-09-13 Rigetti & Co, Inc. Event Scheduling in a Hybrid Computing System
WO2019222748A1 (en) * 2018-05-18 2019-11-21 Rigetti & Co, Inc. Computing platform with heterogenous quantum processors

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FYRIGOS IOSIF-ANGELOS; NTINAS VASILEIOS; SIRAKOULIS GEORGIOS CH.; DIMITRAKIS PANAGIOTIS; KARAFYLLIDIS IOANNIS: "Memristor Hardware Accelerator of Quantum Computations", 2019 26TH IEEE INTERNATIONAL CONFERENCE ON ELECTRONICS, CIRCUITS AND SYSTEMS (ICECS), IEEE, 27 November 2019 (2019-11-27), pages 799 - 802, XP033693115, DOI: 10.1109/ICECS46596.2019.8965109 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116187455A (en) * 2022-12-16 2023-05-30 中国人民解放军战略支援部队信息工程大学 Classical and quantum mixed instruction pipeline design method and device

Also Published As

Publication number Publication date
CN111310929A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
WO2021179411A1 (en) Quantum computing-oriented data interaction device, method and apparatus and medium
KR20100053593A (en) Mechanism for broadcasting system management interrupts to other processors in a computer system
WO2021120712A1 (en) Instruction generation method and apparatus, instruction execution method, processor, electronic device, and storage medium
CN103049710B (en) Field-programmable gate array (FPGA) chip for SM2 digital signature verification algorithm
CN111045933A (en) Regression strategy updating method and device, storage medium and terminal equipment
JP5479709B2 (en) Server-processor hybrid system and method for processing data
JP6998991B2 (en) Information processing methods and equipment
CN110244983A (en) Method, terminal device and the storage medium of fixed serial port
CN110825435B (en) Method and apparatus for processing data
JP2008234024A (en) Batch processing program, batch processing method and batch processing device
US20190294442A1 (en) Computer system and memory access technology
US8082528B2 (en) Process-independent schema library
WO2023232006A1 (en) Simulation device, simulation system, simulation method, and storage medium
CN113204385A (en) Plug-in loading method and device, computing equipment and readable storage medium
JP2022550059A (en) Processor and its internal interrupt controller
US20140149781A1 (en) Method for Batch Execution of System Calls in an Operating System
CN108874387B (en) Data serialization method and related equipment thereof
US7552269B2 (en) Synchronizing a plurality of processors
CN116243978A (en) Data protocol method, device, medium and training system in distributed training
Pennefather et al. Exploration and design of a synchronous message passing framework for a CPU-NPU heterogeneous architecture
CN111679859B (en) Automatic parallel MPI-I/O acceleration method for I/O intensive high-performance application
CN114217988A (en) Response type responsibility chain mode data processing method based on IO processing
CN101539849B (en) Processor and gating method of register
CN111078596A (en) Flash chip control method, device and system and readable storage medium
US20060070042A1 (en) Automatic clocking in shared-memory co-simulation

Legal Events

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

Ref document number: 20923763

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20923763

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20923763

Country of ref document: EP

Kind code of ref document: A1