Quantum random access memory system and quantum computer
By introducing a parallel processing mechanism of control modules and circuit modules into the quantum random access memory system, the speed bottleneck caused by serial data reading in the existing technology is solved, parallel data reading of the quantum random access memory system is realized, and the processing efficiency is improved. and reliability.
Patent Information
- Application Number
- CN202310266834.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-15
- Publication Date
- 2024-09-27
AI Technical Summary
Data reading in existing quantum random access memory systems is serial, resulting in slow data processing speed, lack of parallel reading capabilities, and inability to effectively utilize the advantages of quantum computing.
A quantum random access memory system is designed. The control module controls the circuit module under parallel instructions to synchronously process multiple data and bits corresponding to an address, thereby realizing parallel reading of data in the QRAM system. The system includes QRAM module, circuit module and control module, uses quantum logic gates for data reading and routing, and supports parallel instruction processing.
It achieves parallel reading of data in the QRAM system, reduces the time complexity, improves processing efficiency, optimizes the number of qubits, reduces the error rate, and makes the system more reliable.
Smart Images

Figure CN118709796A
Abstract
Description
Technical Field
[0001] The invention belongs to the field of quantum computing, in particular to a quantum random access memory system and a quantum computer. Background Art
[0002] Quantum Random Access Memory (QRAM) is a storage technology that uses the principles of quantum physics. It is a structure that can effectively store and retrieve quantum information. The time required to prepare quantum states will reduce or even offset the computing advantages that quantum algorithms are originally expected to provide. QRAM is often considered necessary to achieve quantum computing advantages because it can store quantum state data.
[0003] With the continuous development of technology, QRAM is expected to become an important part of quantum computing and quantum communication in the future, but it is still in the research and development stage and is not the mainstream storage technology on the market. The existing QRAM system on the market reads data serially, which makes data processing slow. Therefore, how to implement a QRAM system that reads data in parallel for one address is 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 system and a quantum computer to solve the deficiencies in the prior art. The present invention proposes a quantum random access memory system, which uses a control module to control a circuit module under parallel instructions, synchronizes multiple data corresponding to an address for processing, and then realizes parallel reading of data in the QRAM system.
[0005] An embodiment of the present application provides a quantum random access memory system, the system comprising:
[0006] The QRAM module is composed of a plurality of nodes, each node includes a data bit and an address bit, the address bit is configured to write the address corresponding to the target address; the data bit is configured to temporarily store one address or one data;
[0007] Circuit modules, consisting of quantum logic gates required for data reading;
[0008] The control module is configured to, after obtaining the parallel instruction, control the circuit module based on the target address written into the QRAM module, and use the QRAM module in parallel to read data.
[0009] Optionally, the system further includes:
[0010] A bus configured to transmit target address and / or data information;
[0011] The control module is further configured to control the circuit module to input the target address or data on the bus into the QRAM module;
[0012] And / or control the circuit module to copy the data in the QRAM module to the bus.
[0013] Optionally, the QRAM module further includes a memory pool.
[0014] The control module is configured as follows:
[0015] After obtaining the parallel instruction, based on the target address written into the QRAM module, the circuit module is controlled to route each data bit to the leaf node in parallel;
[0016] and / or extracting each bit of data from the memory pool to the bus in parallel.
[0017] Optionally, the control module includes:
[0018] an identification unit configured to identify an operation that triggers parallelism, and when an operation that triggers parallelism is identified, send the parallel instruction to the control unit, wherein the operation that triggers parallelism is an operation that triggers reading of other bits of data during a process of reading one bit of data;
[0019] The control unit is configured to receive the parallel instruction, control the circuit module, and process the corresponding data.
[0020] Optionally, the identification unit is configured to:
[0021] Determine whether the current operation is included in the preset set of operations that trigger parallel operation;
[0022] If included, a parallel instruction is sent to the control unit.
[0023] Optionally, the circuit module includes:
[0024] A first circuit submodule for implementing inputting a target address or data into the QRAM module;
[0025] A second circuit submodule for implementing address exchange in the same node in the QRAM module;
[0026] A third circuit submodule for implementing routing between nodes in the QRAM module for each bit of data or each bit of the target address;
[0027] A fourth circuit submodule is implemented to copy data from the QRAM module to the memory pool.
[0028] Optionally, the first circuit submodule includes at least a CNOT gate and a SWAP gate;
[0029] The second circuit submodule includes a SWAP gate;
[0030] The third circuit submodule includes a controlled SWAP gate;
[0031] The fourth circuit submodule includes a controlled quantum logic gate.
[0032] Another embodiment of the present application further provides a quantum computer, which includes the quantum random access memory system as described in any one of the above items.
[0033] Optionally, the quantum computer is a superconducting quantum computer.
[0034] Optionally, the quantum computer is an ion trap quantum computer.
[0035] Compared with the prior art, the quantum random access memory system provided by the present invention includes a QRAM module, which is composed of multiple nodes, each node contains a data bit and an address bit, the address bit is configured to write the address corresponding to the target address; the data bit is configured to temporarily store one address or one data; the circuit module is composed of quantum logic gates required for data reading; the control module is configured to control the circuit module based on the target address written to the QRAM module after obtaining the parallel instruction, and use the QRAM module in parallel to read the data. It proposes a quantum random access memory system, which uses the control module to control the circuit module under the parallel instruction, synchronizes multiple data corresponding to one address for processing, and thus realizes the parallel reading of data in the QRAM system. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 A block diagram of a quantum random access memory system provided by an embodiment of the present invention;
[0037] Figure 2 A schematic diagram of a binary tree structure of a QRAM module provided by an embodiment of the present invention;
[0038] Figure 3 A schematic diagram of a circuit for implementing a one-bit address input provided by an embodiment of the present invention;
[0039] Figure 4 A schematic diagram of a circuit for implementing one-bit data input provided by an embodiment of the present invention;
[0040] Figure 5 A schematic diagram of a second circuit submodule provided by an embodiment of the present invention;
[0041] Figure 6 A schematic diagram of a third circuit submodule provided by an embodiment of the present invention;
[0042] Figure 7 A schematic diagram of another third circuit submodule provided by an embodiment of the present invention;
[0043] Figure 8 A schematic diagram of a fourth circuit submodule provided by an embodiment of the present invention;
[0044] Fig. 9 A schematic diagram of another fourth circuit submodule provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0045] 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.
[0046] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0047] Below, some terms in this application are explained to facilitate understanding by those skilled in the art.
[0048] A true quantum computer is a hybrid structure, consisting of two parts: one is a classical computer, which is responsible for performing classical calculations and control; the other is a quantum device, which is responsible for running quantum programs and thus realizing quantum computing. A quantum program is a sequence of instructions written in a quantum language such as QRunes that can be run on a quantum computer, supporting quantum logic gate operations and ultimately realizing quantum computing. Specifically, a quantum program is a sequence of instructions that operate quantum logic gates in a certain sequence.
[0049] In practical applications, due to the development of quantum device hardware, it is usually necessary to perform quantum computing simulation to verify quantum algorithms, quantum applications, etc. Quantum computing simulation is the process of simulating the operation of quantum programs corresponding to specific problems by using a virtual architecture (i.e., quantum virtual machine) built with the resources of ordinary computers. Usually, it is necessary to build a quantum program corresponding to a specific problem. The quantum program referred to in the embodiment of the present application is a program that characterizes quantum bits and their evolution written in classical language, in which quantum bits, quantum logic gates, etc. related to quantum computing are represented by corresponding classical codes.
[0050] Quantum circuits, as a manifestation of quantum programs, are also called quantum logic circuits. They are the most commonly used general quantum computing model. They represent circuits that operate on quantum bits in an abstract concept. They are composed of quantum bits, circuits (timelines), and various quantum logic gates. Finally, the results often need to be read out through quantum measurement operations.
[0051] Unlike traditional circuits that are connected by metal wires to transmit voltage or current signals, in quantum circuits, the circuits can be seen as connected by time, that is, the state of the quantum bit evolves naturally over time, following the instructions of the Hamiltonian operator until it encounters a logic gate and is operated.
[0052] A quantum program as a whole corresponds to a total quantum circuit. The quantum program described in the present invention refers to the total quantum circuit, wherein the total number of quantum bits in the total quantum circuit is the same as the total number of quantum bits in the quantum program. It can be understood that a quantum program can be composed of a quantum circuit, measurement operations on quantum bits in the quantum circuit, registers for storing measurement results, and control flow nodes (jump instructions). A quantum circuit can contain dozens, hundreds, or even thousands of quantum logic gate operations. The execution process of a quantum program is the process of executing all quantum logic gates in a certain time sequence. It should be noted that the time sequence is the time order in which a single quantum logic gate is executed.
[0053] It should be noted that in classical computing, the most basic unit is the bit, and the most basic control mode is the logic gate, which can achieve the purpose of controlling the circuit through the combination of logic gates. Similarly, the way to process quantum bits is quantum logic gates. Using quantum logic gates, quantum states can evolve. Quantum logic gates are the basis of quantum circuits. Quantum logic gates include single-bit quantum logic gates, such as Hadamard gates (H gates, Hadamard gates), Pauli-X gates (X gates), Pauli-Y gates (Y gates), Pauli-Z gates (Z gates), RX gates, RY gates, RZ gates, etc.; multi-bit quantum logic gates, such as CNOT gates, CR gates, iSWAP gates, Toffoli gates, etc. Quantum logic gates are generally represented by unitary matrices, and unitary matrices are not only in matrix form, but also a kind of operation and transformation. The general function of quantum logic gates on quantum states is to calculate by multiplying the unitary matrix on the left by the matrix corresponding to the right vector of the quantum state.
[0054] See also Figure 1 , Figure 1A block diagram of a quantum random access memory system provided in an embodiment of the present invention, wherein the quantum random access memory system 10 may include a QRAM module 11, which is composed of a plurality of nodes, each node including a data bit and an address bit, wherein the address bit is configured to write an address corresponding to a target address; the data bit is configured to temporarily store an address or data; a circuit module 12, which is composed of quantum logic gates required for data reading; and a control module 13, which is configured to control the circuit module 12 based on the target address written into the QRAM module 11 after obtaining a parallel instruction, and use the QRAM module 11 in parallel to read data.
[0055] Specifically, the QRAM module 11 may be a binary tree structure, the number of layers of the binary tree is the length of the write target address, and the QRAM module 11 generally includes 1 root node, N-2 layers of child nodes and 1 layer of leaf nodes, where N is the length of the target address. For example, taking the target address length as 3 as an example, the schematic diagram of the binary tree structure of the QRAM module 11 may be as follows: Figure 2 As shown. A group of A (Address Qubit) and D (Data Qubit) in a row 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 child node of the 1st layer, (2,0) represents the 0th node of the 2nd layer, that is, the 0th leaf node of the 1st layer, and so on. I will not go into details here.
[0056] In an embodiment of the present invention, the QRAM system may be in a quantum computer, specifically, in an ion trap quantum computer or in a superconducting quantum computer. The circuit module 12 of the QRAM system may be different in different types of quantum computers. In a QRAM system based on an ion trap computer, the address bit in the QRAM module 11 is a two-level quantum bit (qubit), and the qubit can be in the two states of |0> and |1> at the same time. In a QRAM system based on a superconducting computer, the address bit in the QRAM module 11 is a three-level quantum bit (qutrit), and the qutrit can be in three superposition states, representing three possible states. Therefore, the energy levels corresponding to the address bits are different, and the specific structure of the corresponding circuit modules may also be different.
[0057] The circuit module 12 includes quantum logic gates required for data reading operations, specifically, it may include quantum logic gates for writing a target address and quantum logic gates required for reading each bit of data based on the written target address. Under the control of the control module 13, the circuit module 12 mainly implements functions such as inputting one bit of data or address into the QRAM module 11, routing data or address in the QRAM module 11, and copying and extracting data.
[0058] In the embodiment of the present invention, the parallel instruction may be sent by other devices, or may be generated by the control module 13 according to the data reading operation in the system. When the control module 13 obtains the parallel instruction, it calls the circuit module 12 to read another bit of data when one bit of data is read. The reading of different bits of data may be asynchronous and parallel.
[0059] Quantum state preparation, especially when amplitude encoding is involved, can be computationally expensive, and the time required to prepare quantum states can reduce or even offset the computational advantage that the algorithm is originally expected to provide. If quantum states can be prepared and stored in advance, stored between multiple runs of the algorithm, or even between different algorithms, there is hope of achieving computational advantages. Quantum random access memory systems are often considered necessary to achieve quantum computing advantages because they can store random storage quantum states. In an embodiment of the present invention, because the control module 13 can control the circuit module 12 to process data in parallel, O(N+k) time complexity can be achieved for each query, where k is the preset word length, that is, k bits of data can be processed in parallel in the QRAM system, thereby optimizing the time complexity, eliminating the need for multiple queries, and optimizing the number of quantum bits at the same time. Parallel processing without increasing bandwidth reduces the error rate of the entire QRAM system and makes it more reliable.
[0060] In some possible implementations of the present invention, the system may further include:
[0061] A bus configured to transmit target address and / or data information;
[0062] The control module 13 is further configured to control the circuit module 12 to input the target address or data on the bus into the QRAM module 11;
[0063] And / or control the circuit module 12 to copy the data in the QRAM module 11 to the bus.
[0064] The bus includes an address bus and a data bus. The functions of the bus include inputting address information, inputting each data bit of a preset word length, etc. In an embodiment of the present invention, the bus may include multiple quantum bits.
[0065] In an optional implementation, the overall workflow of the QRAM system is divided into addressing and data loading, specifically including address bus input, data bus input, data routing, address exchange between address bits and data bits, and data copying.
[0066] The control module 13 controls the circuit module 12 to copy a data bit of a data / address between the bus and the root node of the QRAM module 11 .
[0067] In some possible implementations of the present invention, the QRAM module 11 may further include a memory pool.
[0068] The control module 13 may be configured as follows:
[0069] After obtaining the parallel instruction, the circuit module 12 is controlled based on the target address written into the QRAM module 11.
[0070] After obtaining the parallel instruction, based on the target address written into the QRAM module 11, the circuit module 12 is controlled to route each data bit to the leaf node in parallel;
[0071] and / or extracting each bit of data from the memory pool to the bus in parallel.
[0072] In the embodiment of the present invention, the control module 13 controls the circuit module 12 to copy one bit of data from the bus to the root node first, the data is routed in the node in the QRAM module 11 until it is in the leaf node of the QRAM module 11, and finally copied from the leaf node to the memory pool. The control module 13 can also control the circuit module 12 to copy one bit of data from the memory pool to the leaf node first, the data is routed in the node in the QRAM module 11 until it is in the root node of the QRAM module 11, and finally copied from the root node to the bus, so as to extract one bit of data from the memory pool to the bus. It should be noted that routing one bit of data from the bus to the leaf node and extracting another bit of data from the memory pool to the bus can be done in parallel.
[0073] In some possible implementations of the present invention, the control module 13 may include:
[0074] an identification unit configured to identify an operation that triggers parallelism, and when an operation that triggers parallelism is identified, send the parallel instruction to the control unit, wherein the operation that triggers parallelism is an operation that triggers reading of other bits of data during a process of reading one bit of data;
[0075] The control unit is configured to receive the parallel instruction, control the circuit module, and process the corresponding data.
[0076] The identification unit is mainly used to identify whether a parallel operation can be performed when the QRAM system processes data corresponding to the same target address. Specifically, it identifies whether the current operation is an operation that triggers parallel operation. If it is a parallel instruction, the parallel instruction is generated and sent to the control unit. After the control unit receives the parallel instruction, the control circuit module 12 processes the corresponding data. In the embodiment of the present invention, it is also possible to identify whether the current operation carries a preset identifier. If so, a parallel instruction is generated and sent to the control unit.
[0077] The processed data may be determined by the operation that triggers the parallel operation, specifically, it may be determined according to the relationship between the data processed by the current operation and the data to be processed, or it may be determined according to the order in which the data is processed. Exemplarily, the processed data are three data D0, D1, and D2, and the currently processed data is D1. D1 is transferred from the bus to the memory pool. During the processing, the processing of D2 is triggered, and D2 is transferred from the bus to the memory pool; during the processing of D2, the processing of D0 may be triggered, and D0 may be transferred from the memory pool to the bus.
[0078] In some possible implementations of the present invention, the identification unit may be configured as follows:
[0079] Determine whether the current operation is included in the preset set of operations that trigger parallel operation;
[0080] If included, a parallel instruction is sent to the control unit.
[0081] The preset set of operations for triggering parallelism is determined in advance based on the length of the target address and the number of bits of data to be processed, and can be determined by analyzing the process of data processing using the QRAM system. Specifically, when a bit of data is routed to other nodes, the routed nodes and the data for triggering parallel processing do not use the same node at the same time, and parallelism can be triggered. Exemplarily, the length of the target address is 4, the QRAM module 11 includes a root node, 2 layers of child nodes and 1 layer of leaf nodes, and when D0 is routed from the 1st layer child node to the 2nd layer child node, a parallel operation on D1 can be triggered. The set of operations for triggering parallelism can include D0 starting from the 1st layer child node to the 2nd layer child node or D0 routing from the root node to the 1st layer child node. The specific triggering timing can be predetermined, and D0 can be routed from the 1st layer child node to the 2nd layer child node at the beginning, and D1 can be copied from the bus to the root node at the same time; or when D0 is routed from the root node to the 1st layer child node, the operation on D1 can be triggered, and D0 continues to process and route downward. When D2 is input from the bus to the root node, it can trigger a parallel operation on D0 to copy D0 from the memory pool to the corresponding leaf node.
[0082] When the current operation is included in the set of operations that trigger parallelism, it means that other data can be processed in parallel at this time. If the current operation is not included in the set of operations that trigger parallelism, it means that another data cannot be processed synchronously at this time.
[0083] In some possible implementations of the present invention, the circuit module 12 may include:
[0084] A first circuit submodule for inputting a target address or data into the QRAM module 11;
[0085] A second circuit submodule for implementing address exchange in the same node in the QRAM module 11;
[0086] A third circuit submodule for implementing routing between nodes in the QRAM module 11 for each bit of data or each bit of the target address;
[0087] A fourth circuit submodule is implemented to copy data from the QRAM module 11 to the memory pool.
[0088] In the embodiment of the present invention, the first circuit submodule copies one address or one data bit from the bus to the data bit of the root node of the QRAM module 11 at a time. After the first address of the target address is copied to the data bit of the root node, the control module 13 controls the second circuit submodule to transfer the address in the data bit to the address bit of the same node, and restores the state of the data bit by using the exchange operation, so that the state in the data bit is the initial state.
[0089] When the first circuit submodule inputs other bits of the target address or a bit of data, the control module 13 controls the third circuit submodule to route the address or data from the data bit of the root node downward to the data bit of the corresponding node. In the QRAM module 11, each layer corresponds to a bit of address. When a bit of address is input to the data bit of the root node, the node through which the bit of address is routed downward is determined according to the address that has been written into the QRAM module 11 before, and the data bits in these nodes are routed in sequence. When routing to the data bit of the target node, the second circuit submodule is used to implement the writing of the bit address. The target node is the node in the QRAM module 11 where the bit address is finally written. Based on the different positions of the address, the target node can be a child node or a leaf node. When all the target addresses are input into the QRAM module 11, the routing path required for data reading has been determined. During the process of writing the target address, the routing path is gradually determined. When the routing path has met the addressing required for data reading, the control module 13 can use the first circuit submodule to synchronously read a bit of data, that is, the determination of the routing path and the reading of the data can be asynchronously parallel.
[0090] When a bit of data is input to the data bit of the root node, the node through which the bit of data is routed downward is determined according to the target address written into the QRAM module 11, that is, downward addressing is performed, and the data bits in these nodes are routed in sequence. When routed to the leaf node of the last bit of the target address written, the fourth circuit sub-module is used to copy the data, and based on the last bit of the address, it is determined to which quantum bit in the memory pool the bit of data is copied.
[0091] In some possible implementations of the embodiments of the present invention, the first circuit submodule may include at least a CNOT gate and a SWAP gate;
[0092] The second circuit submodule may include a SWAP gate;
[0093] The third circuit submodule may include a controlled SWAP gate;
[0094] The fourth circuit submodule may include a controlled quantum logic gate.
[0095] The first circuit submodule can input the target address to the QRAM module 11. Specifically, a CNOT gate can be used to copy a bit of the address on the bus to the data bit of the root node of the QRAM module 11. Specifically, the circuit for implementing a bit of address input can be as follows: Figure 3 As shown, A i is the i-th address, d 0,0 is the data bit of the root node.
[0096] The first circuit submodule can also input a bit of data into the QRAM module 11. Specifically, the SWAP gate can be used to copy a bit of data from the bus to the data bit of the root node of the QRAM module 11. If the address bit is a two-level quantum bit, the H gate data bit |0> state and the non-data bit |0> state are also required. The H gate is used to enable phase encoding for subsequent data copy operations. The circuit corresponding to the data input can be as follows: Figure 4 As shown, D i is the i-th bit of data. If the address bit is a three-level quantum bit, the data can be directly copied to the data bit of the root node using the SWAP gate.
[0097] The second circuit submodule can realize the address exchange between the same nodes, that is, to exchange an address from the data bit to the address bit in the same node. If the address bit is a two-level quantum bit, the SWAP gate can be used to exchange the address in the data bit to the address bit. If the address bit is a three-level quantum bit, the controlled SWAP gate can be used to copy the data to the data bit of the root node. The specific circuit can be as follows: Figure 5As shown in the figure, the |W> state in the dashed box indicates no operation, |L> and |R> represent quantum states |1> and |2> respectively. If the address bit a l,p In the address state |L>, the control data bit d l+1,2p and address bit a l+1,2p If the address bit a l,p In the address state |R>, the control data bit d l +1,2p+1 and address bit a l+1,2p+1 Make an exchange.
[0098] The third circuit submodule is used to implement routing, which is mainly based on the address in the address bit of a node to determine which node to route to in the next layer. If the address bit is a two-level quantum bit, the circuit corresponding to the routing can be as follows Figure 6 As shown in the figure, it can be seen that the node to be routed is determined by the previous address. For example, 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 2p-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 2p+1-th node of the l+1-th layer. If the address bit is a three-level quantum bit, the circuit corresponding to the route can be as follows Figure 7 As shown, Figure 6 and Figure 7 The difference is that the address bits have different number of energy levels.
[0099] The controlled quantum logic gate in the fourth circuit submodule is related to the address bit. When the address bit is a two-level quantum bit, it is a controlled Z gate. Data copying is a data replication operation, which copies classical data from the address bit to the data bit through a controlled operation. 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 by a controlled Z gate to complete the data copy operation. The circuit for the copy operation can be as follows Figure 8 , address bit a l,p , the data bit is d l,p , through the controlled Z gate, a bit of data is stored in the quantum bit corresponding to the memory pool. If the address bit a l,p The address in is 0, copied to the memory pool m 2p The corresponding quantum bit, if the address bit a l,p The address in is 1, copied to the memory pool m 2p+1When the address bit is a three-level quantum bit, it is a controlled CNOT gate, and the corresponding copy operation circuit can be as follows Fig. 9 As shown, through the controlled CNOT gate, one bit of data is stored in the corresponding quantum bit m in the memory pool 2p Or store to memory pool m 2p+1 The corresponding quantum bit.
[0100] It can be seen that the quantum random access memory system provided by the present invention includes a QRAM module 11, which is composed of multiple nodes, each node contains a data bit and an address bit, and the address bit is configured to write the address corresponding to the target address; the data bit is configured to temporarily store an address or a data; the circuit module 12 is composed of quantum logic gates required for data reading; the control module 13 is configured to control the circuit module 12 based on the target address written to the QRAM module 11 after obtaining parallel instructions, and use the QRAM module in parallel to read data. It proposes a quantum random access memory system, which uses the control module to control the circuit module under parallel instructions, synchronizes multiple data corresponding to an address for processing, and thereby realizes parallel data reading in the QRAM system.
[0101] Another embodiment of the present invention provides a quantum computer, which includes a quantum random access memory system as described above.
[0102] In some possible implementations of the present invention, the quantum computer may be a superconducting quantum computer.
[0103] In some possible implementations of the present invention, the quantum computer may be an ion trap quantum computer.
[0104] 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 system, characterized in that: The system comprises: The QRAM module is composed of a plurality of nodes, each node includes a data bit and an address bit, the address bit is configured to write the address corresponding to the target address; the data bit is configured to temporarily store one address or one data; Circuit modules, consisting of quantum logic gates required for data reading; The control module is configured to, after obtaining the parallel instruction, control the circuit module based on the target address written into the QRAM module, and use the QRAM module in parallel to read data.
2. The system according to claim 1, characterized in that The system further comprises: A bus configured to transmit target address and / or data information; The control module is further configured to control the circuit module to input the target address or data on the bus into the QRAM module; And / or control the circuit module to copy the data in the QRAM module to the bus.
3. The system according to claim 2, characterized in that The QRAM module also includes a memory pool, The control module is configured as follows: After obtaining the parallel instruction, based on the target address written into the QRAM module, the circuit module is controlled to route each data bit to the leaf node in parallel; and / or extracting each bit of data from the memory pool to the bus in parallel.
4. The system according to claim 1 or 3, characterized in that: The control module comprises: an identification unit configured to identify an operation that triggers parallelism, and when an operation that triggers parallelism is identified, send the parallel instruction to the control unit, wherein the operation that triggers parallelism is an operation that triggers reading of other bits of data during a process of reading one bit of data; The control unit is configured to receive the parallel instruction, control the circuit module, and process the corresponding data.
5. The system according to claim 4, characterized in that The identification unit is configured to: Determine whether the current operation is included in the preset set of operations that trigger parallel operation; If included, a parallel instruction is sent to the control unit.
6. The system according to claim 4, characterized in that The circuit module comprises: A first circuit submodule for implementing inputting a target address or data into the QRAM module; A second circuit submodule for implementing address exchange in the same node in the QRAM module; A third circuit submodule for implementing routing between nodes in the QRAM module for each bit of data or each bit of the target address; A fourth circuit submodule is implemented to copy data from the QRAM module to the memory pool.
7. The system according to claim 6, characterized in that The first circuit submodule includes at least a CNOT gate and a SWAP gate; The second circuit submodule includes a SWAP gate; The third circuit submodule includes a controlled SWAP gate; The fourth circuit submodule includes a controlled quantum logic gate.
8. A quantum computer, characterized in that: The quantum computer comprises the quantum random access memory system as claimed in claims 1 to 7.
9. The quantum computer according to claim 8, characterized in that The quantum computer is a superconducting quantum computer.
10. The quantum computer according to claim 8, characterized in that The quantum computer is an ion trap quantum computer.
Citation Information
Cited By
Method for efficiently simulating large-scale quantum random access memory
CN120373485A
Processor architecture and method based on dynamic overwrite instruction stream
CN120803536A
Using classical control flow in quantum programming
US20260127482A1
