Quantum random access memory architecture, quantum computer operating system and quantum computer

By introducing parallel binary tree modules and quantum circuits into the quantum random access memory architecture, the problems of slow parallel data reading speed and high error rate in the existing technology are solved, and more efficient data processing and security are achieved.

CN118607650AActive Publication Date: 2024-09-06ORIGIN QUANTUM COMPUTING TECH (HEFEI) CO LTD

Patent Information

Application Number
CN202310198104.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2024-09-06
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

In the existing technology, quantum random access memory (QRAM) has shortcomings in realizing parallel reading of data and accelerating data processing speed. It also has a high execution error rate and lacks effective parallel architecture solutions.

Method used

A parallel quantum random access memory architecture is proposed, including a pre-built binary tree module, address routing module, data extraction module and address exchange module. It is executed in a parallel manner, uses the preset addressing method to determine the address path, and executes the preset timing sequence Read data of preset word length at one time to reduce execution error rate.

Benefits of technology

Through the parallel quantum random access memory architecture, a QRAM-based data parallel reading method is implemented, which speeds up data processing, optimizes time complexity, and reduces the execution error rate of the QRAM architecture, providing more efficient data processing and Security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607650A
    Figure CN118607650A
Patent Text Reader

Abstract

The invention discloses a quantum random access memory architecture, a quantum computer operating system and a quantum computer, the quantum random access memory architecture comprises a pre-constructed binary tree module, an address routing module, a data extraction module and an address switching module, the address routing module is used for determining a path corresponding to an address according to the address by using a preset addressing mode; the data extraction module is used for copying each bit of binary data of the address from a current target layer subtree node to a root node according to the path and reading the binary data; the address exchange module is used for performing exchange operation on one-bit binary data on the address bit and the data bit by using a preset quantum circuit; the address routing module, the data extraction module and the address exchange module are executed in a parallel mode, and a parallel mode quantum random access memory architecture is provided, so that a basis is provided for subsequently realizing a QRAM-based data parallel reading method, accelerating the data processing speed and reducing the execution error rate of the QRAM architecture.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of quantum computing technology, and in particular to a quantum random access memory architecture, a quantum computer operating system and a quantum computer. Background Art

[0002] Quantum Random Access Memory (QRAM) is a storage technology that uses the principles of quantum physics. Unlike traditional computer memory, QRAM allows information to be stored in multiple locations in parallel and allows multiple pieces of information to be read at the same time. This gives QRAM an advantage in terms of efficiency when processing large amounts of data. In theory, QRAM has a much higher storage density than traditional memory technology and has stronger security because it can use quantum encryption algorithms.

[0003] Although QRAM is a technology with great potential, it is still in the research and development stage and is not a mainstream technology in the current market. At the same time, how to explore a parallel architecture to implement QRAM, realize parallel reading of data, and speed up data processing is still an urgent problem to be solved. Summary of the invention

[0004] The purpose of the present invention is to provide a quantum random access memory architecture, a quantum computer operating system and a quantum computer to solve the deficiencies in the prior art. It proposes a parallel quantum random access memory architecture to provide a basis for the subsequent implementation of a QRAM-based data parallel reading method, accelerate data processing speed, optimize time complexity, and reduce the execution error rate of the QRAM architecture.

[0005] An embodiment of the present application provides a quantum random access memory architecture, characterized in that it includes:

[0006] A pre-built binary tree module, the binary tree module comprising 1 layer of root nodes and N-1 layers of subtree nodes, each layer of the binary tree module comprising an address bit and a data bit, wherein N is the address length;

[0007] An address routing module, used to determine a path corresponding to the address according to the address and using a preset addressing method;

[0008] A data extraction module, used for copying each bit of binary data of the address from the current target layer subtree node to the root node according to the path, and reading the data;

[0009] An address exchange module, used for exchanging one bit of binary data on the address bit and the data bit by using a preset quantum circuit;

[0010] The address routing module, the data extraction module and the address exchange module are executed in parallel, and the parallel method includes reading data of a preset word length once within a preset timing.

[0011] Optionally, the binary tree module includes a first submodule and a second submodule, wherein the address bits of each layer of the first submodule are constructed by first-type quantum bits, and the address bits of each layer of the second submodule are constructed by second-type quantum bits.

[0012] Optionally, the address routing module includes:

[0013] A root node routing unit, used to transfer each bit of the address read from the root node to a data bit of a corresponding target layer subtree node in sequence;

[0014] The subtree node routing unit is used to exchange the one-bit address read from the data bit of the current target layer subtree node to the address bit of the current target layer subtree node until a path corresponding to the address is generated.

[0015] Optionally, the preset quantum circuit includes an H gate, a CNOT gate, a controlled Z gate, a SWAP gate and a controlled SWAP gate.

[0016] Optionally, the preset addressing mode includes:

[0017] The first preset addressing is achieved by the following formula:

[0018]

[0019] Among them, R b Indicates that the address bit is constructed by the first type of quantum bit. |0> and |1> represent the two states of the first type of quantum bit, respectively. SWAP |0> Indicates the SWAP gate controlled by |0>, SWAP |1> Indicates the SWAP gate controlled by |1>.

[0020] Or, the second preset addressing is achieved by the following formula:

[0021]

[0022] Among them, R t It represents the second preset addressing mode in which the address bits are constructed by the second type of quantum bits, |W>, |L>, |R> respectively represent the three states of the second type of quantum bits, and I is the unit matrix.

[0023] Optionally, the quantum random access memory architecture further includes:

[0024] The inverse calculation module is used to perform inverse calculation processing on the quantum random access memory architecture to restore the quantum random access memory architecture to an initial state.

[0025] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to implement the quantum random access memory architecture described in any one of the above items when running.

[0026] Another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the quantum random access memory architecture described in any one of the above items.

[0027] Yet another embodiment of the present application provides a quantum computer operating system, wherein the quantum computer operating system includes a quantum random access memory architecture as described in any one of the above items.

[0028] Another embodiment of the present application provides a quantum computer, wherein the quantum computer includes a quantum computer operating system as described above.

[0029] Compared with the prior art, the present invention discloses a quantum random access memory architecture, including a pre-built binary tree module, an address routing module, a data extraction module and an address exchange module, wherein the address routing module is used to determine the path corresponding to the address according to the address and using a preset addressing mode; the data extraction module is used to copy each bit of binary data of the address from the current target layer subtree node to the root node according to the path, and read it; the address exchange module is used to exchange one bit of binary data on the address bit and the data bit using a preset quantum circuit; and the address routing module, the data extraction module and the address exchange module are executed in parallel. It proposes a parallel quantum random access memory architecture, which provides a basis for the subsequent implementation of a QRAM-based data parallel reading method, speeding up data processing, optimizing time complexity, and reducing the execution error rate of the QRAM architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a system network block diagram applied to a quantum random access memory architecture provided by an embodiment of the present invention;

[0031] Figure 2 It is a schematic diagram of the structure of a quantum random access memory architecture provided by an embodiment of the present invention;

[0032] Figure 3 It is a schematic diagram of the structure of a binary tree module of a quantum random access memory provided by an embodiment of the present invention;

[0033] Figure 4 This is a schematic diagram of a quantum circuit for implementing data copying provided by an embodiment of the present invention;

[0034] Figure 5 is another schematic diagram of a quantum circuit for implementing data copying provided by an embodiment of the present invention;

[0035] Figure 6 This is a schematic diagram of a quantum circuit for implementing address bus input provided by an embodiment of the present invention;

[0036] Figure 7 This is a schematic diagram of a quantum circuit for implementing data bus input provided by an embodiment of the present invention;

[0037] Figure 8 is a schematic diagram of a quantum circuit for implementing data routing provided by an embodiment of the present invention;

[0038] Fig. 9 is another schematic diagram of a quantum circuit for implementing data routing provided by an embodiment of the present invention;

[0039] Fig.10 It is a schematic diagram of the structure of another quantum random access memory architecture provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.

[0041] The embodiment of the present invention first provides a quantum random access memory architecture, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, quantum computers, etc.

[0042] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 1 is a system network block diagram for a quantum random access memory architecture provided by an embodiment of the present invention. The system for a quantum random access memory architecture may include a network 110, a server 120, a wireless device 130, a client 140, a storage unit 150, a classical processing system 160, a quantum processing system 170, and may also include additional memories, classical processors, quantum processors, and other devices not shown.

[0043] The network 110 is a medium that provides communication links between various devices and computers connected together in a system network applied to a quantum random access memory architecture, including but not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. The connection method may be wired, wireless communication links or optical fiber cables, etc.

[0044] The server 120 and the client 140 are conventional data processing systems that may contain data and applications or software tools that perform conventional computing processes. The client 140 may be a personal computer or a network computer, so the data may also be provided by the server 120. The wireless device 130 may be a smart phone, a tablet, a laptop, a smart wearable device, etc. The storage unit 150 may include a database 151, which may be configured to store data such as quantum bit parameters, quantum logic gate parameters, quantum circuits, quantum programs, etc.

[0045] The classical processing system 160 (quantum processing system 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 163 (memory 172) for storing classical data (quantum data). The classical data (quantum data) may be a boot file, an operating system image, and an application 162 (application 173). The application 162 (application 173) may be used to implement a quantum algorithm compiled according to a quantum random access memory architecture provided in an embodiment of the present invention.

[0046] Any data or information stored or generated in the classical processing system 160 (quantum processing system 170) can also be configured to be stored or generated in another classical (quantum) processing system in a similar manner, and any application program executed by it can also be configured to be executed in another classical (quantum) processing system in a similar manner.

[0047] It should be noted that a true quantum computer is a hybrid structure, which includes at least Figure 1 There are two major parts in it: the classical processing system 160, which is responsible for performing classical calculations and control; and the quantum processing system 170, which is responsible for running quantum programs and thus realizing quantum calculations.

[0048] The classical processing system 160 and the quantum processing system 170 may be integrated into one device or distributed in two different devices. For example, the first device including the classical processing system 160 runs a classical computer operating system, on which quantum application development tools and services are provided, as well as storage and network services required for quantum applications. Users develop quantum applications through the quantum application development tools and services thereon, and send quantum programs to the second device including the quantum processing system 170 through the network services thereon. The second device runs a quantum computer operating system, parses the code of the quantum program through the quantum computer operating system, and compiles it into instructions that can be recognized and executed by the quantum computer measurement and control system. The quantum processor 170 implements the quantum algorithm corresponding to the quantum program according to the instructions.

[0049] In the classic processing system 160 based on silicon chips, the unit of the classic processor 161 is a CMOS tube. This computing unit is not limited by time and coherence, that is, this computing unit is not limited by the length of use and is available at any time. In addition, in the silicon chip, the number of such computing units is also sufficient. At present, the number of computing units in a classic processor is tens of thousands. The number of computing units is sufficient and the computing logic that can be selected by the CMOS tube is fixed, for example: AND logic. When calculating with the help of CMOS tubes, a large number of CMOS tubes are combined with limited logic functions to achieve the calculation effect.

[0050] Unlike this logic unit in the classical processing system 160, the basic computing unit of the quantum processor 171 in the quantum processing system 170 is a quantum bit, and the input of the quantum bit is limited by coherence and coherence time, that is, the quantum bit is limited by the use time and is not available at any time. Making full use of the quantum bit within the available use time of the quantum bit is a key problem in quantum computing. In addition, the number of quantum bits in a quantum computer is one of the representative indicators of the performance of a quantum computer. Each quantum bit realizes the computing function through the logical function configured on demand. In view of the limited number of quantum bits, the logical functions in the field of quantum computing are diverse, such as: Hadamard gate (Hadamard gate, H gate), Pauli-X gate (X gate), Pauli-Y gate (Y gate) Pauli-Z gate (Z gate), X gate, RY gate, RZ gate, CNOT gate, CR gate, iSWAP gate, Toffoli gate, etc. In quantum computing, it is necessary to use limited quantum bits combined with a variety of logical functions to achieve the computing effect.

[0051] Based on these differences, the design of the logical function acting on the quantum bit (including the design of whether the quantum bit is used or not and the design of the efficiency of the use of each quantum bit) is the key to improving the computing performance of the quantum computer, and requires special design. The above-mentioned design for quantum bits is a technical problem that ordinary computing devices do not need to consider or face. Based on this, in order to explore how to explore a parallel architecture to implement QRAM, realize parallel reading of data, and speed up data processing, the present invention proposes a quantum random access memory architecture, a quantum computer operating system and a quantum computer to solve the deficiencies in the prior art. It proposes a parallel quantum random access memory architecture to provide a basis for the subsequent implementation of a QRAM-based data parallel reading method, speed up data processing, optimize time complexity, and reduce the execution error rate of the QRAM architecture.

[0052] See also Figure 2 , Figure 2A schematic diagram of the structure of a quantum random access memory architecture provided by an embodiment of the present invention, wherein the quantum random access memory architecture 20 may include a pre-built binary tree module 201, wherein the binary tree module 201 includes a 1-layer root node and an N-1-layer subtree node, wherein each layer of the binary tree module 201 includes an address bit and a data bit, wherein N is the address length. An address routing module 202 is used to determine the path corresponding to the address according to the address and using a preset addressing method; a data extraction module 203 is used to copy each bit of binary data of the address from the current target layer subtree node to the root node according to the path, and read the data; an address exchange module 204 is used to exchange one bit of binary data on the address bit and the data bit using a preset quantum circuit; wherein the address routing module 202, the data extraction module 203, and the address exchange module 204 are executed in a parallel manner, wherein the parallel manner includes reading data of a preset word length at a time within a preset timing.

[0053] Specifically, the binary tree module 201 includes a first submodule and a second submodule, wherein the address bits of each layer of the first submodule are constructed by first-type quantum bits, and the address bits of each layer of the second submodule are constructed by second-type quantum bits.

[0054] Among them, the first type of quantum bit can be a two-level quantum bit (qubit), and the second type of quantum bit can be a three-level quantum bit (qutrit). In quantum computing, the bit is the most basic unit of information. In classical computing, a bit can only be in two states, 0 and 1. In quantum computing, a qubit can be in two states, |0> and |1> at the same time. Similarly, a qutrit can be in three superposition states, representing three possible states. Therefore, it can be understood that a qutrit is a quantum bit with three energy levels.

[0055] Specifically, the address routing module 202 may include: a root node routing unit, which is used to transfer each bit of the read address to the data bit of the corresponding target layer subtree node in sequence starting from the root node; a subtree node routing unit, which is used to exchange the address bit read from the data bit of the current target layer subtree node to the address bit of the current target layer subtree node until the path corresponding to the address is generated.

[0056] For example, see Figure 3 , Figure 3 Schematic diagram of a binary tree module structure of a quantum random access memory provided by an embodiment of the present invention. Figure 3As shown in the figure, taking the address length of 3 as an example, a group of A (Address Qubit) and D (Data Qubit) in a row in the vertical direction is called a node, which is a basic unit in a binary tree. All nodes constitute a binary tree. (0,0) in the figure represents the 0th node of the 0th layer, that is, the root node, (1,0) represents the 0th node of the 1st layer, that is, the 0th subtree node of the 1st layer, and so on. It will not be repeated here.

[0057] It should be noted that each bit of the address can be read in sequence through the address register, and each bit of the address read by the address register can be transferred using a preset quantum circuit, wherein the preset quantum circuit includes an H gate, a CNOT gate, a controlled Z gate, a SWAP gate, and a controlled SWAP gate, and the transfer operation includes one or more of data copying, data routing, and data exchange. Among them, the quantum bits of the preset quantum circuit include the quantum bits corresponding to the bus, the bus includes an address bus and a data bus, and the functions of the bus include inputting address information, inputting each data bit of a preset word length, etc.

[0058] In an optional implementation, the overall workflow of the quantum random access memory architecture is divided into two major components, one is preset addressing, and the other is data loading. These two parts can be summarized into the following steps, namely data copying, address bus input, data bus input, data routing, and data exchange between address bits and data bits.

[0059] For example, see Figure 4 , Figure 4 is a schematic diagram of a quantum circuit for implementing data copying provided by an embodiment of the present invention, in which the address bit of the node is a l,p , the data bit is d l,p , through the controlled Z gate, one bit of data is stored in the corresponding quantum bit m of the memory pool 2p In the case where address bit a l,p The address in is 0, and the quantum bit m corresponding to the memory pool is stored 2p ; If address bit a l,p If the address in is 1, then it is stored in the memory pool m 2p+1 The corresponding quantum bit.

[0060] It should be noted that data copying is a data replication operation, which copies classical data from address bits to data bits through controlled operations. Since the Toffoli gate cannot be used to encode the quantum state |0> into The quantum state |1> is encoded as Therefore, the data qubit can be phase-encoded through a controlled Z gate to complete the data copy operation.

[0061] See also Figure 5 , Figure 5 : This is another schematic diagram of a quantum circuit for implementing data copying provided by an embodiment of the present invention. The |W> state in the dashed box indicates that no operation is performed, and |L> and |R> represent quantum states |1> and |2>, respectively. That is, through the controlled CNOT gate, one bit of data is stored in the quantum bit m corresponding to the memory pool. 2p Or store it in memory pool m 2p+1 The corresponding quantum bit.

[0062] See also Figure 6 , Figure 6 FIG. 1 is a schematic diagram of a quantum circuit for implementing address bus input provided by an embodiment of the present invention. i is the i-th address, d 0,0 The address bus input is to copy the i-th binary digit of the address bus to the root node, and the CNOT gate can be used for the copy operation. For example, the first bit of the address is copied to the data bit of the root node, and then the first bit of the address needs to be transferred to the address bit of the root node. Specifically, the SWAP gate or other multiple quantum logic gates that realize data exchange can be used to exchange the data bit and the address bit in a node.

[0063] See also Figure 7 , Figure 7 : is a schematic diagram of a quantum circuit for implementing data bus input provided by an embodiment of the present invention. Data bus input is to transmit the i-th binary digit of the data bus to the data bit of the root node. For example, the H gate and SWAP gate in the figure can be used, where the H gate is used to perform phase encoding for the data copy operation, thereby distinguishing the |0> state of the data bit and the |0> state of the non-data bit, that is, encoding the |0> state into state,|1>state is encoded into

[0064] In an optional implementation, the address writing process is the process of determining the access path in QRAM. The writing of the first bit address is different from the writing of other bit addresses. Since the first bit address is written to the root node, the other bit addresses are written to the subtree nodes. The process of writing the first bit address is specifically: copying the first bit address from the bus to the root node, and then copying the first bit address to the data bit of the root node. The writing of other bit addresses requires downward addressing and routing to the corresponding subtree nodes. The routing can be implemented using a controlled SWAP gate. For a specific quantum circuit diagram, see Figure 8 , Figure 8This is a schematic diagram of a quantum circuit for implementing data routing provided by an embodiment of the present invention. As can be seen from the figure, the node layer to which the routing is to be carried out is determined by the previous address. Exemplarily, if the address in the p-th address bit of the l-th layer is 0, the current target bit is routed from the data bit of the p-th node of the l-th layer to the data bit of the 2-th node of the l+1-th layer. If the address in the address bit of the p-th node of the l-th layer is 1, the current target bit is routed from the data bit of the p-th node of the l-th layer to the data bit of the 2+1-th node of the l+1-th layer.

[0065] See also Fig. 9 , Fig. 9 This is another schematic diagram of a quantum circuit for implementing data routing provided by an embodiment of the present invention. Based on basically the same principles and methods, Figure 8 and Fig. 9 The difference lies in the difference in the preset addressing mode due to the different address bits.

[0066] Figure 8 It can correspond to the first preset addressing, and the first preset addressing can be realized by the following formula:

[0067]

[0068] Among them, R b Indicates that the address bit is constructed by the first type of quantum bit. |0> and |1> represent the two states of the first type of quantum bit, respectively. SWAP |0> Indicates the SWAP gate controlled by |0>, SWAP |1> Indicates the SWAP gate controlled by |1>.

[0069] Fig. 9 It can correspond to the second preset addressing, and the second preset addressing can be realized by the following formula:

[0070]

[0071] Among them, R t It represents the second preset addressing mode in which the address bits are constructed by the second type of quantum bits, |W>, |L>, |R> respectively represent the three states of the second type of quantum bits, and I is the unit matrix.

[0072] It should be noted that the above data routing, data copying and internal exchange operations can all form hierarchical operations, which means that the above operations can be applied to the entire layer of the binary tree architecture at the same time. This parallelism is the basis for using QRAM to speed up data processing.

[0073] In an alternative embodiment, see Fig.10 , Fig.10A schematic diagram of the structure of another quantum random access memory architecture provided in an embodiment of the present invention, wherein the quantum random access memory architecture 20 further includes: an inversion calculation module 205, which is used to perform inverse calculation processing on the quantum random access memory architecture to restore the quantum random access memory architecture to an initial state.

[0074] In an optional implementation, the quantum random access memory architecture may also generally include the following parts, such as a quantum storage unit, a quantum control unit, a quantum error correction unit, and a transmission interface unit. Among them, the quantum storage unit is the core part of QRAM for storing data, and qubit or qutrit is usually used to store information; the quantum control unit is responsible for reading and writing the quantum storage unit; the quantum error correction unit is used to implement the quantum error correction mechanism to ensure the correctness of the data; the transmission interface unit is used to implement data exchange with other computer systems, which can usually be achieved using quantum communication technology. In general, the quantum random access memory architecture requires efficient quantum control capabilities and a powerful quantum error correction mechanism to ensure the correctness and security of the data.

[0075] It can be seen that the present invention discloses a quantum random access memory architecture, including a pre-constructed binary tree module, an address routing module, a data extraction module and an address exchange module, wherein the address routing module is used to determine the path corresponding to the address according to the address and using a preset addressing method; the data extraction module is used to copy each bit of binary data of the address from the current target layer subtree node to the root node according to the path, and read it; the address exchange module is used to exchange one bit of binary data on the address bit and the data bit using a preset quantum circuit; and the address routing module, the data extraction module and the address exchange module are executed in parallel. It proposes a parallel quantum random access memory architecture, which provides a basis for the subsequent implementation of a QRAM-based data parallel reading method, speeding up data processing, optimizing time complexity, and reducing the execution error rate of the QRAM architecture.

[0076] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to implement the quantum random access memory architecture described in any one of the above items when running.

[0077] Specifically, in this embodiment, the above-mentioned storage medium may include but is not limited to: 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, and other media that can store computer programs.

[0078] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to implement the quantum random access memory architecture described in any one of the above items.

[0079] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0080] Yet another embodiment of the present invention provides a quantum computer operating system, which includes a quantum random access memory architecture as described in any one of the above.

[0081] Yet another embodiment of the present invention provides a quantum computer, wherein the quantum computer includes a quantum computer operating system as described above.

[0082] Specifically, the above-mentioned quantum computer may also include a quantum processing unit (QPU) and a quantum random access memory (QRAM). The QPU in the quantum computer is connected to the QRAM via a bus, and transmits the states of the address bits and data bits to the root node of the QRAM.

[0083] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.

Claims

1. A quantum random access memory architecture, It is characterized in that include: A pre-built binary tree module, the binary tree module comprising 1 layer of root nodes and N-1 layers of subtree nodes, each layer of the binary tree module comprising an address bit and a data bit, wherein N is the address length; An address routing module, used to determine a path corresponding to the address according to the address and using a preset addressing method; A data extraction module, used for copying each bit of binary data of the address from the current target layer subtree node to the root node according to the path, and reading the data; An address exchange module, used for exchanging one bit of binary data on the address bit and the data bit by using a preset quantum circuit; The address routing module, the data extraction module and the address exchange module are executed in parallel, and the parallel method includes reading data of a preset word length once within a preset timing.

2. The quantum random access memory architecture according to claim 1, It is characterized in that The binary tree module includes a first submodule and a second submodule, wherein the address bits of each layer of the first submodule are constructed by first-type quantum bits, and the address bits of each layer of the second submodule are constructed by second-type quantum bits.

3. The quantum random access memory architecture according to claim 2, It is characterized in that The address routing module comprises: A root node routing unit, used to transfer each bit of the address read from the root node to a data bit of a corresponding target layer subtree node in sequence; The subtree node routing unit is used to exchange the one-bit address read from the data bit of the current target layer subtree node to the address bit of the current target layer subtree node until a path corresponding to the address is generated.

4. The quantum random access memory architecture according to claim 3, It is characterized in that The preset quantum circuit includes an H gate, a CNOT gate, a controlled Z gate, a SWAP gate and a controlled SWAP gate.

5. The quantum random access memory architecture according to claim 4, It is characterized in that The preset addressing mode includes: The first preset addressing is achieved by the following formula: Among them, R b Indicates that the address bit is constructed by the first type of quantum bit. |0> and |1> represent the two states of the first type of quantum bit, respectively. SWAP |0> Indicates |0> controlled SWAP gate, SWAP |1> Indicates the SWAP gate controlled by |1>. Or, the second preset addressing is achieved by the following formula: Among them, R t It represents the second preset addressing mode in which the address bits are constructed by the second type of quantum bits, |W>, |L>, |R> respectively represent the three states of the second type of quantum bits, and I is the unit matrix.

6. The quantum random access memory architecture according to any one of claims 1 to 5, It is characterized in that The quantum random access memory architecture further includes: The inverse calculation module is used to perform inverse calculation processing on the quantum random access memory architecture to restore the quantum random access memory architecture to an initial state.

7. A storage medium, It is characterized in that The storage medium stores a computer program, wherein the computer program is configured to implement the quantum random access memory architecture described in any one of claims 1 to 6 when executed.

8. An electronic device comprising a memory and a processor, It is characterized in that A computer program is stored in the memory, and the processor is configured to execute the computer program to implement the quantum random access memory architecture described in any one of claims 1 to 6.

9. A quantum computer operating system, It is characterized in that The quantum computer operating system comprises the quantum random access memory architecture as claimed in any one of claims 1 to 6.

10. A quantum computer, It is characterized in that The quantum computer includes a quantum computer operating system as claimed in claim 9.

Citation Information

Patent Citations

  • Quantum memory addressing techniques and related systems and methods

    CN114175061A

  • Method and device for reading data based on address, storage medium and electronic device

    CN114626532A

  • Quantum address data analysis method and device, storage medium and electronic device

    CN114638366A

  • Data reading method and device, storage medium and electronic device

    CN114638367A

  • Method and device for constructing quantum circuit for QRAM (Quantum Random Access Memory) architecture

    CN114638368A

Cited By

  • Method for efficiently simulating large-scale quantum random access memory

    CN120373485A