Quantum circuit simulation system using storage device and its operation method
By dividing quantum circuits into subcircuits and utilizing cost-effective storage devices with optimized memory access and bandwidth, the method addresses the memory challenges of simulating large qubit circuits, enabling efficient and affordable simulations.
Patent Information
- Application Number
- JP2024523532
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-04-07
- Filing Date
- 2022-04-11
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2042-04-11
AI Technical Summary
The exponentially increasing memory requirements for simulating quantum circuits with more than 50 qubits using current supercomputers make it difficult and costly for general users to access, as DRAM is significantly more expensive than other storage options.
A quantum circuit simulation method that divides the circuit into subcircuits and uses storage devices like HDDs, SSDs, and NVMe to minimize memory access, applies prefetch technology, and optimizes memory bandwidth through three-step permutation operations.
This approach allows for the simulation of 50 qubit quantum circuits using 16 storage systems of 80x16 TB HDDs, achieving scalability and economic efficiency while overcoming memory limitations.
Smart Images

Figure 2024539890000001_ABST
Abstract
Description
[Technical field]
[0001] This relates to quantum circuit simulation technology, and more specifically, to technology for executing algorithms written as quantum circuits using classical computers. [Background technology]
[0002] Quantum computing is a computing paradigm that uses quantum mechanical phenomena such as quantum superposition and entanglement. The smallest unit of quantum computing is a quantum bit, which, contrary to the bit of classical computing, can represent superposition states such as 0 and 1. The computational model of quantum computing is called a quantum circuit, and a quantum circuit is a collection of N quantum bits and a set of quantum gates that operate on the quantum bits.
[0003] Representing quantum information on a classical computer requires exponentially growing memory. N qubits can represent a total of 2 n Each amplitude is represented as a complex number and can generally be represented in 16 bytes of memory. Therefore, to simulate a quantum circuit with N qubits, 2 (N+4) Bytes of storage space are required. The exponentially growing memory requirements are the biggest barrier to simulating quantum circuits.
[0004] Existing quantum circuit simulation technologies use supercomputers with thousands to tens of thousands of nodes to meet the enormous memory requirements. However, even with the largest supercomputers currently available, such technologies have difficulty simulating quantum circuits with more than 50 qubits. Furthermore, using such supercomputers requires huge costs, and it is difficult for general users to even access them. Summary of the Invention [Problem to be solved by the invention]
[0005] According to an embodiment, a system for simulating a quantum circuit in units of a plurality of subcircuits may be provided in a host system coupled to a storage system including a plurality of storage devices.
[0006] According to the embodiment, a method can be provided in which the necessary storage space for quantum circuit simulation is secured using a storage device such as an HDD, SSD, or NVMe, which is cheaper and has a larger storage capacity than a memory, and a quantum circuit can be simulated at a reasonable cost and within a reasonable time.
[0007] According to the embodiment, an optimized simulation method can be provided by simulating in subcircuit units that minimize the number of memory accesses, performing permutation operations in three stages to maximize memory bandwidth, and applying prefetch technology. Other aspects, features, and advantages beyond those discussed above will become apparent from the following drawings, claims, and detailed description of the invention. [Means for solving the problem]
[0008] A quantum circuit simulation device according to one aspect of the embodiment includes a storage device system including one or more storage devices; and a host system connected to the storage device system for simulating a quantum circuit, wherein the quantum circuit stored in the storage device system is divided into one or more partial circuits, and the host system can sequentially simulate the one or more partial circuits on a main memory.
[0009] According to another aspect, a method for simulating a quantum circuit may include dividing an input quantum circuit stored in a storage device into one or more partial circuits; and sequentially reading the one or more partial circuits from the storage device and simulating them on a main memory. Effect of the Invention
[0010] The DRAM used in the conventional technology is not only 297 times more expensive than HDD based on the cost per GB, but also impossible to simulate a 50-qubit quantum circuit even in the case of the world's highest performance supercomputer in 2021. However, according to the embodiment of the present disclosure, a quantum circuit of 50 qubit size can be simulated using only 16 storage device systems consisting of 80x16TB HDDs. The quantum circuit simulation system and optimization method using the storage device according to the embodiment have the effect of simultaneously having scalability and economy. [Brief description of the drawings]
[0011] [Figure 1] FIG. 1 is a block diagram of a quantum circuit simulation device using a storage device according to an embodiment. [Diagram 2] 1 is a flowchart of a quantum circuit simulation method using a storage device according to an embodiment. [Diagram 3] 1 is an example of a partial circuit obtained by dividing an input quantum circuit in one embodiment. [Figure 4] 1 is a flowchart of a method for splitting an input quantum circuit according to one embodiment. [Diagram 5] 1 is a flowchart of a method for simulating multiple sub-circuits according to one embodiment. [Figure 6] 1 is an example of a data representation for simulating multiple subcircuits according to one embodiment. [Figure 7] 1 is an example of a storage system according to an embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0012] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the following, embodiments will be described in detail with reference to the accompanying drawings. However, the scope of the present invention is not limited or restricted by such embodiments. The same reference numerals in the various drawings indicate the same elements.
[0013] The terms used in the following description are selected as being common and universal in the relevant technical field, but other terms may exist depending on the development and / or change of technology, the preferences of relevant technical personnel, etc. Therefore, the terms used in the following description should not be understood as limiting the technical idea, but should be understood as exemplary terms for describing the embodiments.
[0014] In addition, in certain cases, the applicant may arbitrarily select certain terms, and in such cases, the detailed meanings of those terms will be described in the relevant description. Therefore, the terms used in the following description should be understood based on the meanings of those terms and the contents of the entire specification, rather than simply the names of those terms.
[0015] FIG. 1 is a block diagram of a quantum circuit simulation device using a storage device according to an embodiment. The quantum circuit simulation device 100 may include a host system 110 and a storage device system 120. The host system 110 is a system on which actual calculations are performed, and includes a CPU, a main memory, and a heterogeneous system including a GPU. The storage device system 120 is a system consisting of a plurality of storage devices, and the storage devices are, for example, HDD, SSD, NVMe, etc. The storage device system 120 may be connected to the host system 110 via a RAID (Redundant Array of Independent Disks; RAID) card 130. The RAID card 130 is for connecting a plurality of arrayed independent disks to a host CPU, and may be mainly connected to a PCIe slot to operate. PCIe (PCI express) refers to a serial structure interface for input / output.
[0016] The quantum circuit simulation device 100 receives a quantum circuit as input data and divides it into a plurality of sub-circuits through a sub-circuit partitioning process. The quantum circuit simulation device 100 executes all the sub-circuits sequentially for each sub-circuit. The quantum circuit simulation device 100 can express the state of a quantum system (superposition and entanglement state of quantum bits) as a probability amplitude. To express an N-qubit quantum circuit, the quantum circuit simulation device 100 can N Each quantum gate operation requires storing 2 N This can be seen as updating the probability amplitude data.
[0017] According to one embodiment, the quantum circuit simulation device 100 includes a storage device system 120 including one or more storage devices, and a host system 110 coupled to the storage device system 120 for simulating a quantum circuit, and divides the quantum circuit stored in the storage device system 120 into one or more partial circuits, and the host system 110 can sequentially simulate one or more partial circuits on a main memory. In one embodiment, the host system can access the storage device system in which probability amplitude data required for each of one or more partial circuits is continuously stored during each simulation once, read the respective probability amplitude data on the main memory, and write the probability amplitude data on the main memory in which probability amplitude data, which is a simulation result of each of the one or more partial circuits, is continuously stored, to the storage device system. In one embodiment, the host system can divide an input quantum circuit into as few partial circuits as possible.
[0018] According to one embodiment, the host system 110 of the quantum circuit simulation device 100 can generate a partial circuit by sequentially checking the quantum gates of the input quantum circuit using a heuristic algorithm based on a parameter M set according to the size of the main memory.
[0019] According to one embodiment, the host system 110 of the quantum circuit simulation device 100 can convert the permutation operation for each of one or more sub-circuits into a one-stage in-memory permutation operation, a two-stage block permutation operation, and a three-stage in-memory permutation operation, and execute them sequentially. In one embodiment, the one-stage in-memory permutation operation and the three-stage in-memory permutation operation can change the data layout on the main memory, and the two-stage block permutation operation can change the data layout on the storage device.
[0020] According to one embodiment, while the quantum circuit simulation device 100 sequentially simulates one or more sub-circuits, the probability amplitude data for the next sub-circuit can be accessed once to the storage device system during the operation of the sub-circuit currently being operated in memory, and can be continuously read into the main memory in advance before simulating the next sub-circuit.
[0021] In one embodiment, the storage system 120 may include one of an HDD, an SSD, or an NVMe.
[0022] FIG. 2 is a flowchart of a quantum circuit simulation method using a storage device according to one embodiment.
[0023] In step S210, the quantum circuit simulation device 100 can receive a first quantum circuit as an input. The first quantum circuit is a set of N quantum bits and a series of quantum gates acting on the quantum bits. The states expressed by the N quantum bits are a total of 2 N Each amplitude is represented as a complex number, typically represented by 16 bytes of memory. N Each quantum gate operation can be represented by 2 N It can be expressed as an update of probability amplitude data. To simulate a quantum circuit consisting of N qubits, 2 (N+4) Storage space for bytes is required.
[0024] In step S220, the quantum circuit simulation device 100 can divide the first quantum circuit into one or more partial circuits using a parameter M. The partial circuits have two features. First, a gate in each partial circuit can be applied only to the first M consecutive quantum bits. In this case, the value M is given to the parameter, and the value M is set to 2 (M+4)is set to a value smaller than the total memory (DRAM) size of the host system. Second, each subcircuit is assigned a permutation, and the gates are rearranged to match the order of such permutations. For example, if an input quantum circuit is divided into three subcircuits, each subcircuit has (q 4 q 3 q 2 q 1 q 0 ), (q 1 q 2 q 0 q 4 q 3 ), (q 3 q 1 q 4 q 2 q 0 ) permutation. The purpose of dividing the input quantum circuit into subcircuits is to reduce the number of accesses (or size) to the storage device during simulation. In various embodiments, the quantum circuit given as the input is divided into a plurality of subcircuits, and each subcircuit can include only executable quantum gates. When executing a subcircuit including only executable quantum gates, all quantum gate operations of each subcircuit can be executed without accessing an additional storage device. In one embodiment, the quantum circuit simulation device 100 can use a heuristic algorithm to divide the input quantum circuit into subcircuits so that the quantum bit that is most likely to be used next is located at the bottom on the quantum circuit. In various embodiments, it is clear that the algorithm for dividing the input quantum circuit into subcircuits that are efficient execution units can be one or more, and can be embodied differently depending on the characteristics of the quantum circuit simulation device 100. In various embodiments, it is possible to generate as few subcircuits as possible for the input quantum circuit.
[0025] In step S230, the quantum circuit simulation apparatus 100 can sequentially simulate one or more partial circuits. In order to simulate a partial circuit, the quantum circuit simulation apparatus 100 can access a storage system in which probability amplitude data for the partial circuit is continuously stored only once, and continuously read the probability amplitude data into the main memory. Depending on the permutation assigned to each partial circuit, the unit size read from the storage device can be very small, at a minimum of 16 bytes, and in this case, a problem may occur in that the bandwidth of the storage device cannot be fully utilized. The quantum circuit simulation apparatus 100 in various embodiments can fix the minimum unit of access operations for all storage devices relatively large by applying a 3-step permutation. The 3-step permutation operation divides one permutation operation into three steps and executes it. In this case, the permutation is divided into two in-memory permutations (in-memory permutation) and a block permutation (block permutation), and is executed in the order of in-memory permutation-block permutation-in-memory permutation. In-memory permutation refers to an operation that changes the data layout in the memory after data is loaded into the main memory. Block permutation refers to changing the data layout in the storage device. Using three-stage permutation operation, the minimum unit of access operation for all storage devices is fixed relatively large, which has the effect of making better use of the bandwidth of the storage device than performing simple memory access operations. However, although additional memory operations are required for two in-memory permutations, these are accesses to memory, which are much faster than storage device accesses, so applying three-stage permutation operation is more efficient when considering the overall operation time.
[0026] In one embodiment, the quantum circuit simulation device 100 can know the exact position value of data for the partial circuit to be used after the currently executed partial circuit since the divided partial circuits are simulated sequentially. Therefore, the quantum circuit simulation device 100 can apply a pre-fetch technique to optimize the simulation. The quantum circuit simulation device 100 can load probability amplitude data for the second partial circuit to be executed after the currently executed first partial circuit in advance, that is, by accessing a storage device in which the probability amplitude data for the second partial circuit is continuously stored during the execution of the first partial circuit, once to the main memory.
[0027] In one embodiment, the quantum circuit simulation device 100 can be configured to continuously write probability amplitude data continuously stored in the main memory to a storage device with only one access depending on the simulation results for each partial circuit.
[0028] FIG. 3 is an example of a partial circuit into which an input quantum circuit in one embodiment is divided. In various embodiments, an input quantum circuit can be divided into partial circuits, which are units for efficient execution. The purpose of dividing the partial circuits is to reduce access to a storage device. A memory access pattern is determined according to the application position of each quantum gate in the quantum circuit. For example, a quantum gate applied to the first quantum bit must simultaneously read two data located at a stride of 16 bytes, and a quantum gate applied to the second quantum bit from the bottom must simultaneously access two data located at a stride of 32 bytes. In general, a quantum gate applied to the kth quantum bit from the bottom can simultaneously read two data located at a stride of 32 bytes. k+3Two pieces of data located at a distance of 1 byte are required simultaneously. If 2M consecutive pieces of data are stored in the main memory, a quantum gate for a quantum bit located at the Mth or higher position from the bottom cannot be immediately executed because one of the data pair required for applying the quantum gate is not loaded in the main memory. Therefore, in such a case, an additional storage device access is required to execute the quantum gate. In various embodiments, the quantum circuit simulation device 100 sets a parameter M according to the size of the main memory in order to efficiently execute the input quantum circuit, and can divide the input quantum circuit into one or more partial circuits using M to execute a simulation in units of partial circuits.
[0029] 3, the quantum circuit simulation device 100 can divide the input quantum circuit 310 into three partial circuits 320, 330, and 340 using a heuristic algorithm. In order to divide the input quantum circuit 310 into partial circuits of the maximum size that can be implemented without additional access to another storage device system 120, the quantum circuit simulation device 100 can set a parameter M taking into consideration the size of the main memory (DRAM) of the host system 110. For example, the parameter M is set to be 2 times larger than the size of the main memory. (M+4) can be set small. In FIG. 3, M=4. The gates in each partial circuit can be applied only to the first M consecutive quantum bits. That is, the gates applied to each partial circuit can be applied only to the maximum four quantum bits (M size) from the bottom, and are not applied to the quantum bit located at the top. The partial circuit divided using the parameter M includes only executable quantum gates, and does not require access to an additional storage device during execution. The quantum circuit simulation device 100 executes the simulation in partial circuit units, and therefore requires only one operation to read the necessary data pair from the storage device and one operation to store the calculated result value again in the storage device.
[0030] The quantum circuit simulation device 100 can assign permutations to the divided partial circuits and rearrange the gates according to the order of the permutations as shown in FIG. 3. The input quantum circuit is (q 4 q 3 q 2 q 1 q 0 ), and the divided first partial circuit 320 is assigned in the order of (q 4 q 3 q 2 q 1 q 0 ) in turn, the second sub-circuit 330 is (q 1 q 2 q 0 q 4 q 3 ) in turn, the third sub-circuit 340 is (q 3 q 1 q 4 q 2 q 0 ) order, the gates are repositioned according to the permutation.
[0031] FIG. 4 is a flowchart of a method for dividing an input quantum circuit according to an embodiment. The quantum circuit simulation device 100 can divide the partial circuits according to the size of the main memory. In various embodiments, the total number of accesses to the storage device required for the quantum circuit simulation of the quantum circuit simulation device 100 is proportional to the number of partial circuits. In order to perform a high-performance simulation, a small number of partial circuits must be generated. Therefore, the algorithm for dividing the partial circuits is a difficult problem and may be more than one. The quantum circuit simulation device 100 in various embodiments can generate as few partial circuits as possible for the input quantum circuit. The quantum circuit simulation device 100 in one embodiment can divide the input quantum circuit into partial circuits including only executable gates according to a heuristic method. In the following, a method for dividing the input quantum circuit of FIG. 3 will be described with an example.
[0032] In step S410, the quantum circuit simulation device 100 can sort the quantum gates. The quantum circuit simulation device 100 can sort the quantum gates so that the gate to which the quantum bit has a smaller number comes first, and when two different gates are applied to the same quantum bit, the gates can be sorted so as to satisfy the order in the input quantum circuit.
[0033] In step S420, the quantum circuit simulation device 100 may initialize the current permutation variable to an identity permutation. For example, the identity permutation of the input quantum circuit in FIG. 3 is (q 4 q 3 q 2 q 1 q 0 ).
[0034] In step S430, the quantum circuit simulation device 100 may sequentially search the quantum gate sorting list for a gate to which a quantum bit number to which the quantum gate is applied is greater than the parameter M. If there is no gate greater than the parameter M, the quantum circuit simulation device 100 may create the entire set of gates into one partial circuit and terminate the algorithm. At this time, the quantum circuit simulation device 100 assigns the permutation stored in the current permutation variable to the partial circuit.
[0035] In step S440, the quantum circuit simulation device 100 may generate a partial circuit including all gates located between the most recent quantum gate and the searched quantum gate, except for the searched quantum gate. At this time, the permutation stored in the current permutation variable is assigned to the generated partial circuit, and the permutation obtained by the heuristic permutation generation method may be stored in the current permutation variable. The heuristic permutation generation method may be defined in the following steps A, B, and C.
[0036] In step A, the M qubits from the right of the permutation stored in the current permutation variable can be defined as local qubits, and the other qubits as non-local qubits. For example, if the current stored permutation (the permutation stored before the update) is (q 1 q 2 q 0 q 4 q 3 ), and if M=4, then q 3 q 4 q 0 q 2 is a local qubit, q 1 is a nonlocal qubit.
[0037] In step B, the searched quantum gate and the quantum gates located after it are examined one by one. In this case, if the quantum bit to which each quantum gate is applied is local, the local count of the quantum bit is increased by 1, and if it is non-local, the non-local count of the quantum bit is increased by 1. The local and non-local count values of the quantum bit to which the searched quantum gate is applied are set to infinity.
[0038] In step C, the qubits are sorted based on the counts found in step B, and the permutation is returned. In this case, the order of the qubits is such that the qubits with the larger non-local counts are placed to the right, and if the non-local counts are the same, the qubits with the larger local counts are placed to the right. In other words, they are placed at the bottom of the quantum circuit.
[0039] In step S450, the quantum circuit simulation apparatus 100 may repeat steps S430 to S440 while aligned quantum gates remain.
[0040] 5 is a flowchart of a method for simulating a plurality of partial circuits according to an embodiment. The quantum circuit simulation device 100 can perform a simulation for each of a plurality of partial circuits obtained by dividing an input quantum circuit according to the following steps. In step S510, the quantum circuit simulation device 100 may continuously read probability amplitude data for the first partial circuit. In one embodiment, the quantum circuit simulation device 100 may continuously read probability amplitude data for the first partial circuit from the storage device system 120. (M+4) Bytes of probability amplitude data can be read sequentially into the main memory. The exact location where the probability amplitude data of each subcircuit is stored is determined according to the permutation assigned to that subcircuit. The information (i.e., amplitude) of any qubit given any permutation is n ...b 1 b 0 >The location where it is stored is as shown in number 1.
[0041]
number
[0042] In equation 1, π(q j ) indicates the position of qj from the right in a given permutation. For example, in the permutation (q 1 q 2 q 0 q 4 q 3 ) for π(q 3 ), π(q 2 ) are 0 and 3, respectively. Although the position information of each quantum bit for any permutation can be known through Equation 1, it is inefficient to simply use this to read or write values. This is because the unit size read from the storage device can become very small (minimum 16 bytes) depending on the permutation, and in such cases, a problem occurs in which the bandwidth of the storage device cannot be fully utilized. In one embodiment, to solve this problem, a quantum circuit is simulated according to a 3-step permutation method.
[0043] In step S520, the quantum circuit simulation device 100 executes a permutation operation on the first sub-circuit according to a three-stage permutation operation. In one embodiment, the three-stage permutation operation is a permutation operation that is executed by dividing one permutation operation into three stages. In this case, the permutation is divided into two in-memory permutations and a block permutation, and is executed in the order of in-memory permutation-block permutation-in-memory permutation. An in-memory permutation refers to an operation that changes the data layout in the memory after loading data into the main memory. An arbitrary in-memory permutation refers to a permutation in which only the local quantum bits change among the permutations. For example, (q 1 q 2 q 0 q 4 q 3 ) is not an in-memory permutation, but (q 4 q 2 q 0 q 1 q 3 ) is an in-memory permutation. Block permutation refers to changing the data layout on the storage device. In this case, block permutation means a permutation in which only B quantum bits from the left side are changed. For example, when B=2, (q 1 q 2 q 0 q 4 q 3 ) is not a block permutation, but (q 3 q 4 q 2 q 1 q 0 ) is a block permutation.
[0044] Any permutation can be easily transformed into a three-level permutation. For example, (q 1 q 2 q 0 q 4 q 3 ) is transformed as follows: (q 4 q 1 q 2 q 3 q 01-step in-memory permutation)-(q 1 q 4 q 2 q 3 q 0 Two-stage block permutation)-(q 1 q 2 q 0 q 4 q 3 3-stage in-memory permutation)
[0045] In step S521, a one-stage in-memory permutation operation is performed by converting the permutation of the first partial circuit, in step S522, a two-stage block permutation operation is performed by converting the permutation of the first partial circuit, and in step S523, a three-stage in-memory permutation operation is performed by converting the permutation of the first partial circuit. By using the three-stage permutation operation, the minimum unit of access operations to all storage devices can be fixed to the maximum extent possible, and the bandwidth of the storage devices can be utilized much better than simple access. On the other hand, although additional memory operations are required for the two in-memory permutations, this is an access to memory, which is much faster than access to the storage devices, and can be tolerated.
[0046] In step S520, the quantum circuit simulation device 100 reads the two (M+4) The gate operation of the partial circuit can be applied to the probability amplitude data of the bytes. Any modification is possible because of the gate operation. For example, the operation can be performed using a GPU instead of a CPU, in which case communication between the main memory and the GPU memory can be added.
[0047] The divided partial circuits are simulated sequentially (for example, partial circuit 1, partial circuit 2, partial circuit 3) by the quantum circuit simulator. At this time, the quantum circuit simulator knows all the accurate position values of the probability amplitude data for the partial circuits to be used next, and applies a prefetch technique to load them in the main memory before using them. In particular, when a quantum gate operation is in progress, loading the probability amplitude data to be used next in the main memory in advance brings about an operation-communication overlap effect, and the overall execution time can be efficiently minimized.
[0048] In step S530, the quantum circuit simulation device 100 sequentially stores the two arithmetic operation results for the first partial circuit in the main memory. (M+4) Bytes of probability amplitude data can be continuously written to the storage system 120. The quantum circuit simulation device 100 can sequentially repeat steps S510 to S530 for the next sub-circuit.
[0049] 6 is an example of data representation for simulating a plurality of partial circuits according to an embodiment. It shows the change in data layout when applying three-stage permutation operations to three partial circuits 320, 330, and 340 obtained by dividing the input quantum circuit 310 in FIG.
[0050] First, the first sub-circuit 320 starts from the same permutation and shows that the data layout changes in the order of one-stage in-memory permutation, two-stage block permutation, and three-stage in-memory permutation (circled numbers 1, 2, 3, 4). Access to the storage device (storage write / read) is performed before the two-stage block permutation. Next, the second sub-circuit 33 performs a three-stage permutation operation (circled numbers 5, 6, 7, 8), showing that the data layout changes.
[0051] 7 is an example of a storage system according to an embodiment. The storage system may be configured with a storage device that provides higher capacity at a lower cost than DRAM, and may include one or more storage devices. Referring to FIG. 7, a storage system 120 is configured using HDDs. The quantum circuit simulation device 100 may connect the host system 110 and the storage system 120 through a RAID card 130. The RAID card 130 may be connected to the host system through a PCIe slot, and may be connected to a HDD storage device that supports SATA3 using a SAS expansion card.
[0052] The above-described embodiments may be implemented using hardware components, software components, and / or a combination of hardware and software components. For example, the devices, methods, and components described in the embodiments may be implemented using one or more general-purpose or special-purpose computers, such as a processor, a controller, an arithmetic logic unit (ALU), a digital signal processor, a microcomputer, a field programmable gate array (FPGA), a programmable logic unit (PLU), a microprocessor, or any other device capable of executing and responding to instructions. The processing device may execute an operating system (OS) and one or more software applications executed on the operating system. In addition, the processing device may access, store, manipulate, process, and generate data in response to the execution of software. For ease of understanding, the processing device may be described as being one in number, but those skilled in the art will recognize that the processing device may include multiple processing elements and / or multiple types of processing elements. For example, the processing device may include multiple processors or one processor and one controller. However, other processing configurations are possible, such as parallel processors.
[0053] The software may include a computer program, code, instructions, or a combination of one or more of these, and may configure or instruct a processing device to operate as desired, either individually or collectively. The software and / or data may be permanently or temporarily embodied in some type of machine, component, physical device, virtual device, computer storage medium or device, or transmitted signal wave to be interpreted by or provide instructions or data to a processing device. The software may be distributed across computer systems coupled to a network, and may be stored and executed in a distributed manner. The software and data may be stored on one or more computer-readable recording media.
[0054] The method according to the embodiment may be embodied in the form of program instructions that can be executed by various computer means and recorded on a computer-readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions recorded on the medium may be specially designed and configured for the embodiment, or may be known and available to those skilled in the art of computer software. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks, and magnetic tapes, optical media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, and hardware devices specially configured to store and execute program instructions, such as ROMs, RAMs, flash memories, and the like. Examples of program instructions include high-level language codes that can be executed by a computer using an interpreter, as well as machine language codes such as those generated by a compiler. The aforementioned hardware devices may be configured to operate as one or more software modules to perform the operations of the embodiment, and vice versa.
[0055] Although the embodiments have been described above with reference to the drawings and even if they are limited, those skilled in the art may make various modifications and variations from the above description. For example, the described techniques may be performed in a different order than described, and / or the components of the described systems, structures, devices, circuits, etc. may be combined or combined in a different manner than described, or may be replaced or substituted with other components or equivalents, while still achieving suitable results. Accordingly, other implementations, other embodiments, and equivalents to the claims are also within the scope of the following claims.
Claims
1. A storage system including one or more storage devices; and a host system coupled to the storage system for simulating a quantum circuit; A quantum circuit simulation device characterized in that the quantum circuit stored in the storage system is divided into one or more partial circuits, and the host system is configured to sequentially simulate the one or more partial circuits on a main memory.
2. 2. The quantum circuit simulation device of claim 1, wherein the host system accesses the storage system in which necessary probability amplitude data is continuously stored once during each simulation for each of the one or more partial circuits, continuously reads the respective probability amplitude data onto the main memory, and continuously writes the probability amplitude data on the main memory in which probability amplitude data, which is a simulation result of each of the one or more partial circuits, is continuously stored, to the storage system.
3. 2. The quantum circuit simulation device according to claim 1, wherein the host system generates a partial circuit by sequentially checking quantum gates of the quantum circuit using a heuristic algorithm based on a parameter M set according to a size of the main memory.
4. 2. The quantum circuit simulation device of claim 1, wherein the host system converts the permutation operation for each of the one or more partial circuits into a one-stage in-memory permutation operation, a two-stage block permutation operation, and a three-stage in-memory permutation operation, and executes them sequentially.
5. 5. The quantum circuit simulation device of claim 4, wherein the one-stage in-memory permutation operation and the three-stage in-memory permutation operation change a data layout on the main memory, and the two-stage block permutation operation changes a data layout on the storage device.
6. 2. The quantum circuit simulation device of claim 1, wherein the host system, while sequentially simulating the one or more partial circuits, accesses the storage device system once during the operation of a partial circuit currently being operated in memory, and continuously reads the probability amplitude data for a next partial circuit into the main memory in advance before simulating the next partial circuit.
7. The quantum circuit simulation device of claim 1 , wherein the storage device includes one of a HDD, an SSD, or an NVMe.
8. dividing an input quantum circuit stored in a storage device into one or more sub-circuits; and sequentially reading the one or more partial circuits from the storage device and simulating them on a main memory; A method for simulating a quantum circuit, comprising:
9. The step of simulating on the main memory includes:
9. The method of simulating a quantum circuit according to claim 8, further comprising the steps of: accessing the storage device in which the necessary probability amplitude data is continuously stored once during each simulation for each of the one or more partial circuits, and continuously reading the necessary probability amplitude data into the main memory.
10. a step of continuously writing probability amplitude data in the main memory, which is a simulation result of each of the one or more partial circuits, to the storage device; 10. The method of claim 9, further comprising:
11. The step of dividing into one or more sub-circuits includes:
9. The method for simulating a quantum circuit according to claim 8, further comprising: generating a partial circuit by sequentially checking quantum gates of the input quantum circuit using a heuristic algorithm based on a parameter M set according to a size of the main memory.
12. The simulating step includes: The method for simulating a quantum circuit according to claim 8, further comprising converting a permutation operation for each of the one or more partial circuits into a one-stage in-memory permutation operation, a two-stage block permutation operation, and a three-stage in-memory permutation operation, and executing the permutation operations sequentially.
13. 13. The method of claim 12, wherein the one-stage in-memory permutation operation and the three-stage in-memory permutation operation change a data layout on the main memory, and the two-stage block permutation operation changes a data layout on the storage device.
14. The simulating step includes:
9. The method of simulating a quantum circuit according to claim 8, wherein, during sequential simulation of one or more subcircuits, probability amplitude data for a next subcircuit is accessed once from the storage device during operation of a subcircuit in a current memory operation, and is continuously read into the main memory in advance before simulating the next subcircuit.
15. The method for simulating a quantum circuit according to any one of claims 8 to 14, characterized in that the method is a computer-readable non-transitory recording medium storing a computer program including at least one instruction word configured to be executed by a processor.
Citation Information
Patent Citations
Simulating quantum circuits on a computer using hierarchical storage
JP2021521504A
