Information processing device, simulation method and program

By consecutively arranging 'measurement' and 'operation' instructions and optimizing memory arrangements, the device enhances simulation speed for quantum circuits, addressing the challenge of scaling in existing stabilizer simulators.

JP7570639B2Active Publication Date: 2024-10-22NIPPON TELEGRAPH & TELEPHONE CORP +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2021118023
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2024-10-22
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

As the scale of algorithms and modules to be simulated in quantum computers increases, existing stabilizer simulators struggle to simulate quantum circuits at sufficient speed.

Method used

An information processing device that updates quantum circuits to arrange 'measurement' and 'operation' instructions consecutively and switches the memory arrangement of stabilizer tables to Row-major during 'measurement' and Column-major during 'operation' to improve continuity, using a greedy optimization method.

Benefits of technology

This approach minimizes the number of memory arrangement switches, significantly speeding up the simulation of quantum circuits.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007570639000001
    Figure 0007570639000001
  • Figure 0007570639000002
    Figure 0007570639000002
  • Figure 0007570639000003
    Figure 0007570639000003
Patent Text Reader

Abstract

To accelerate a simulation of a quantum circuit.SOLUTION: An information processor is for simulating a Clifford circuit. The information processor includes: a quantum circuit update part configured to update a quantum circuit so as to improve a continuity of "measurement" and "operation" commands from among commands included in the quantum circuit having been inputted; and a simulation part configured to conduct a simulation while switching an arrangement on a memory of each element on a stabilizer table according to the updated quantum circuit.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an information processing device, a simulation method, and a program. [Background technology]

[0002] A quantum computer is a computer that consists of basic elements called qubits. Quantum computers can perform various computational tasks much faster than conventional computers, and therefore have attracted much attention and are being actively developed. A computational task in quantum computing is expressed in a form that imitates a logic circuit, called a "quantum circuit" (Non-Patent Document 1). In order to investigate what computational tasks can be performed quickly using quantum computing, a quantum circuit simulator that imitates the behavior of quantum computing with a normal computer is an important tool. However, the fact that quantum computers are much faster than normal computers in some tasks also means that the task of "simulating a quantum computer" is a very time-consuming task for normal computers, and it is said that it is impossible to simulate a general quantum circuit with more than 100 qubits in a realistic time (Non-Patent Document 2).

[0003] The instructions executed by a quantum computer are divided into two types: "operations" and "measurements." An operation is an instruction that changes the state of a quantum bit, and a measurement is an instruction that measures a quantum bit and obtains a normal bit as the measurement result. Therefore, the simulator can output a string of normal bits as the number of "measurement" instructions as the result of the simulation.

[0004] An operation can be associated with an element of a mathematical set called a "unitary group." A measurement can be associated with an element of a set called a "Pauli group." As mentioned above, it is difficult to simulate all of these commands at high speed, but it is known that if the set of operations is limited from the "unitary group" to its subset, the "Clifford group," the behavior of a quantum computer can be simulated at high speed even on a normal computer (Non-Patent Document 3, Non-Patent Document 4). In this way, a quantum circuit whose operations are limited to the Clifford group is called a "Clifford circuit." Therefore, in cases where the quantum circuit for the computational task to be simulated on a quantum computer is a Clifford circuit, it can be simulated at high speed using the above algorithm. In addition, the method of simulating a Clifford circuit is called a "stabilizer simulator" after the name of the element used in the method.

[0005] In modules such as the "calculus of variations," which is expected to be applied today, and "error-correcting codes," which significantly reduce errors in quantum computing, it is natural to consider situations in which the operations of the "Clifford group" are dominant. Therefore, stabilizer simulators are often used in research into such algorithms and methods.

[0006] The mechanism of the existing stabilizer simulator is shown below. Consider the case of simulating a task consisting of n "qubits," which are the unit elements of quantum computing. During the simulation, the existing stabilizer simulator creates a "stabilizer table" with a total of 2n elements, each with a height of 2n and a width of n. 2 Here, each element is one of the four characters [I,X,Y,Z] and can be expressed in 2 bits. In a normal stabilizer simulator, "operations" update specific columns of this table, and "measurements" mainly update rows, thereby simulating quantum computing tasks.

[0007] In the memory of a normal computer, data is arranged one-dimensionally, and it is known that continuous reading and writing are significantly faster than discontinuous reading and writing. Therefore, in order to perform the above simulation at high speed, it is desirable that the values ​​updated by the operation are arranged as continuously as possible in the memory. In the stabilizer table, an arrangement in which rows are arranged continuously is called row-major, and an arrangement in which columns are arranged continuously is called column-major. In the row-major arrangement, "measurements" can be performed at high speed, and in the column-major method, "operations" can be performed at high speed. In the existing stabilizer simulator library, it is natural to perform mathematical descriptions in row-major, so they are often implemented in row-major (Non-Patent Document 5, Non-Patent Document 6, Non-Patent Document 7, Non-Patent Document 8). [Prior art documents] [Non-patent literature]

[0008] [Non-Patent Document 1] Learn Quantum Computation using Qiskit,[online],Internet<URL:https: / / qiskit.org / textbook / ch-states / introduction.html> [Non-Patent Document 2] Arute, Frank, et al. "Quantum supremacy using a programmable superconducting processor." Nature 574.7779 (2019): 505-510. [Non-Patent Document 3] Gottesman, Daniel. "The Heisenberg representation of quantum computers." arXiv preprint quant-ph / 9807006 (1998). [Non-Patent Document 4] Aaronson, Scott, and Daniel Gottesman. "Improved simulation of stabilizer circuits." Physical Review A 70.5 (2004): 052328. [Non-Patent Document 5] CNOT-Hadamard-Phase,[online],Internet<URL:https: / / www.scottaaronson.com / chp / > [Non-Patent Document 6] Python CHP Stabilizer Simulator,[online],Internet<URL:https: / / github.com / Strilanc / python-chp-stabilizer-simulator> [Non-Patent Document 7] chp-sim, [online], Internet<URL:https: / / github.com / qsharp-community / chp-sim> [Non-Patent Document 8] Qiskit, [online], Internet<URL:https: / / qiskit.org / > Summary of the Invention [Problem to be solved by the invention]

[0009] However, as the development of quantum computers progresses, the scale of algorithms and modules to be simulated becomes larger, making it difficult for even stabilizer simulators to simulate at a sufficient speed. For this reason, a method for simulating quantum circuits at higher speeds is required.

[0010] The disclosed technology aims to speed up simulation of quantum circuits. [Means for solving the problem]

[0011] The disclosed technology is an information processing device for simulating a Clifford circuit, comprising: a quantum circuit update unit that updates the quantum circuit so as to improve the continuity of "measurement" and "operation" commands among the commands contained in an input quantum circuit; and a simulation unit that simulates the updated quantum circuit while switching the arrangement of each element of a stabilizer table in memory. Effect of the Invention

[0012] According to the disclosed technology, it is possible to speed up simulation of quantum circuits. [Brief description of the drawings]

[0013] [Figure 1] FIG. 2 is a diagram illustrating an example of a functional configuration of an information processing device. [Diagram 2] FIG. 4 is a diagram illustrating an example of a stabilizer table. [Diagram 3] FIG. 11 is a diagram showing an example of the flow of an overall process. [Figure 4] FIG. 11 is a diagram illustrating an example of the flow of a quantum circuit update process. [Diagram 5] FIG. 13 is a diagram illustrating an example of the processing flow of a pop_next_operation function. [Figure 6] FIG. 11 is a diagram illustrating an example of a flow of a simulation process. [Figure 7] FIG. 2 illustrates an example of a hardware configuration of a computer. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] Hereinafter, an embodiment of the present invention (the present embodiment) will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.

[0015] (Outline of information processing device) The information processing device according to the present embodiment is a device for simulating a Clifford circuit. A Clifford circuit is a quantum circuit in which operations are limited to the Clifford group. A Clifford circuit is expressed as a one-dimensional sequence of operations and measurement commands.

[0016] Specifically, the information processing device updates the quantum circuit so that, among the commands included in the input quantum circuit, the "measurement" and "operation" are arranged as consecutively as possible, i.e., so as to improve the continuity of the "measurement" and "operation" commands. The information processing device then simulates the updated quantum circuit while switching the arrangement of each element of the stabilizer table in memory so that it is row-major for "measurement" and column-major for "operation".

[0017] (Example of functional configuration of information processing device) 1 is a diagram illustrating an example of a functional configuration of an information processing device 10. The information processing device 10 includes a quantum circuit update unit 11, a simulator 12, and a stabilizer table storage unit 13.

[0018] The quantum circuit update unit 11 updates the instructions [o1, o2, . . . , o n Update the quantum circuit O so that the “measurements” and “operations” are arranged as contiguously as possible among [ ].

[0019] The simulator 12 uses the stabilizer table to simulate the updated quantum circuit T and output data indicating the measurement value m. At this time, the simulator 12 performs the simulation while switching the arrangement of each element of the stabilizer table in memory so that it becomes row-major during "measurement" and column-major during "operation".

[0020] The stabilizer table storage unit 13 stores the stabilizer table used for the simulation.

[0021] (Example of a stabilizer table) 2 is a diagram showing an example of a stabilizer table. The stabilizer table has n rows and 2n columns, a total of 2n 2 Here, each element is one of four types of characters, for example, [I,X,Y,Z], and is expressed by 2 bits. Also, like a conventional stabilizer simulator, the simulator unit 12 simulates a quantum computing task by updating a specific column of the stabilizer table in the "operation" and mainly updating rows in the "measurement".

[0022] In the initial state, the stabilizer table is arranged in a column-major manner in memory. Column-major is an arrangement in which elements of a column are consecutive in memory, and the elements shown in Figure 2 are arranged as follows: 1,1 ,d 2,1 ,d 3,1 , ,d 2n,1 ,d 1,2 ,d 2,2 ,d 3,2 , ,d 2n,2 ,d 1,3 ,d 2,3 ,d 3,3 , ,d 2n,3 , ,d 1,n ,d 2,n ,d 3,n , ,d 2n,n The arrangement is continuous as shown below.

[0023] When simulating the "measurement" process, the simulator 12 changes the arrangement in memory so that the stabilizer table has a row-major arrangement. Row-major is an arrangement in which elements in a row are consecutive in memory, and the elements shown in FIG. 1,1 ,d 1,2 ,d 1,3 , ,d 1,n ,d 2,1 ,d 2,2 ,d 2,3 , ,d 2,n ,d 3,1 ,d 3,2 ,d 3,3, ,d 3,n , ,d 2n,1 ,d 2n,2 ,d 2n,3 , ,d 2n,n The arrangement is continuous as shown below.

[0024] (Operation of information processing device) Next, the operation of the information processing device 10 will be described with reference to the drawings.

[0025] 3 is a diagram showing an example of the flow of the overall processing. When the information processing device 10 receives an input of the quantum circuit O by a user operation or the like, it executes the overall processing. When the overall processing starts, the quantum circuit update unit 11 executes a quantum circuit update process (step S1). Next, the simulator 12 executes a simulation process based on the updated quantum circuit (step S2).

[0026] Fig. 4 is a diagram showing an example of the flow of the quantum circuit update process. When the quantum circuit update process shown in step S1 of Fig. 3 starts, the quantum circuit update unit 11 initializes the variable s to 0, the variable i to 1, and the updated quantum circuit T to [] (step S11).

[0027] Next, the quantum circuit update unit 11 judges whether i=n or not (step S12). If the quantum circuit update unit 11 judges that i=n is not true (step S12: NO), it assigns the execution result of pop_next_operation(s,O) to O,o (step S13). The pop_next_operation function is a function that extracts an "operation" command when s is 0, and extracts a "measurement" command when s is 1. Details of the pop_next_operation function will be described later.

[0028] Next, the quantum circuit update unit 11 judges whether or not o=None (step S14). If the quantum circuit update unit 11 judges that o=None is not true (step S14: NO), it assigns T+[o] to T (step S15). In this step S15, the instruction o deleted in step S13 is added to the end of the element string, thereby changing the order of the instructions.

[0029] Next, the quantum circuit updating unit 11 assigns i+1 to i (step S16), and returns to the processing of step S13.

[0030] In step S14, when the quantum circuit updating unit 11 determines that o=None (step S14: YES), it assigns 1-s to s (step S17) and returns to the process of step S13. In step S17, the quantum circuit updating unit 11 switches between the process for grouping "operation" commands and the process for grouping "measurement" commands.

[0031] In step S12, if the quantum circuit update unit 11 determines that i=n (step S12: YES), it outputs the updated quantum circuit T (step S18).

[0032] 5 is a diagram showing an example of the flow of processing of the pop_next_operation function. m In addition, since the quantum circuit O may have instructions extracted by the process described later deleted, m is a number between 1 and n. In addition, at the start of the pop_next_operation function, i=1.

[0033] The quantum circuit updating unit 11 determines whether or not i=m (step S1301). If the quantum circuit updating unit 11 determines that i=m (step S1301: YES), it returns O or None (step S1302) and ends the processing of the pop_next_operation function.

[0034] Furthermore, when the quantum circuit update unit 11 determines that i=m is not satisfied (step S1301: NO), it determines whether s=0 is satisfied (step S1303). When the quantum circuit update unit 11 determines that s=0 is satisfied (step S1303: YES), it executes the command o i It is determined whether this is an operation (step S1304).

[0035] The quantum circuit update unit 11 receives the command o i If it is determined that the operation is a command (step S1304: YES), 1 is assigned to the variable j (step S1306). i and command j It is determined whether or not the expression is replaceable (step S1307).

[0036] It is known that when the quantum circuit is a Clifford circuit, the types of instructions are limited, so that it is easy to determine whether or not an instruction is substitutable.

[0037] In addition, in the process of step S1304, the quantum circuit update unit 11 i If it is determined that this is not an operation (step S1304: NO), i+1 is substituted for i (step S1308), and the process returns to step S1301.

[0038] In addition, in the process of step S1303, if the quantum circuit update unit 11 determines that s is not 0 (step S1303: NO), the instruction o i The quantum circuit update unit 11 determines whether the command o i If it is determined that the measurement is being performed (step S1305: YES), the process proceeds to step S1306.

[0039] The quantum circuit update unit 11 receives the command o i If it is determined that the measurement is not being performed (step S1305: NO), the process proceeds to step S1308.

[0040] The quantum circuit update unit 11 receives the command o i and command jIf it is determined that replacement is not possible (step S1307: NO), the process proceeds to step S1308.

[0041] The quantum circuit update unit 11 receives the command o i and command j If it is determined that j is replaceable (step S1307: YES), it is determined whether j=i is satisfied (step S1309). If it is determined that j=i is not satisfied (step S1309: NO), the quantum circuit update unit 11 assigns j+1 to j (step S1310) and returns to the process of step S1307.

[0042] When the quantum circuit update unit 11 determines that j=i (step S1309: YES), it outputs the command o i (Step S1311). Then, the quantum circuit update unit 11 deletes the quantum circuit O and the instruction o i (step S1312), and the processing of the pop_next_operation function ends.

[0043] Fig. 6 is a diagram showing an example of the flow of the simulation process. When the simulation process shown in step S2 of Fig. 3 is started, the simulator 12 initializes the variable s to 0, the variable i to 1, and the measurement value m to be output to [] (step S201).

[0044] The simulator 12 judges whether s=0 (step S202). When the simulator 12 judges that s=0 (step S202: YES), the simulator 12 executes the command o i The simulator 12 then determines whether the command o is an operation (step S203). i If it is determined that the operation is an instruction (step S203: YES), i (Step S205). Next, the simulator 12 assigns i+1 to the variable i (Step S206), and proceeds to the process of Step S212.

[0045] In the process of step S203, the simulator 12 executes the command o iIf it is determined that the operation is not the row-major operation (step S203: NO), the simulator 12 swaps the columns and rows of the stabilizer table for the arrangement on the memory (step S210). That is, if the arrangement on the memory is a row-major arrangement, the simulator 12 changes it to a column-major arrangement, and if the arrangement on the memory is a column-major arrangement, the simulator 12 changes it to a row-major arrangement.

[0046] Then, the simulator 12 assigns 1-s to the variable s (step S211), and returns to the process of step S202.

[0047] In addition, when it is determined in the process of step S202 that s is not 0 (step S202: NO), the simulator 12 executes the command o i The simulator 12 judges whether the command o is a measurement (step S204). i If it is determined that the measurement is performed (step S204: YES), the command i to obtain an individual measured value v (step S207), and substitute m+[v] for the overall measured value m (step S208). Next, the simulator 12 substitutes i+1 for the variable i (step S209), and proceeds to the process of step S212.

[0048] In the process of step S204, the simulator 12 executes the command o i If it is determined that the measurement is not being performed (step S204: NO), the process proceeds to step S210.

[0049] In the process of step S212, the simulator 12 judges whether or not i=n is satisfied (step S212). If the simulator 12 judges that i=n is not satisfied (step S212: NO), the process returns to step S202.

[0050] When the simulator 12 determines that i=n (step S212: YES), it outputs the measurement value m (step S213).

[0051] (Example of Hardware Configuration According to the Present Embodiment) The information processing device 10 can be realized, for example, by making a computer execute a program in which the processing contents described in this embodiment are described. Note that this "computer" may be a physical machine or a virtual machine on the cloud. When a virtual machine is used, the "hardware" described here is virtual hardware.

[0052] The above program can be recorded on a computer-readable recording medium (such as a portable memory) and can be stored or distributed. The above program can also be provided via a network such as the Internet or e-mail.

[0053] Fig. 7 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 7 has a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, etc., which are all connected to each other via a bus B.

[0054] The program for realizing the processing on the computer is provided by a recording medium 1001 such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.

[0055] When a program start instruction is received, the memory device 1003 reads out and stores the program from the auxiliary storage device 1002. The CPU 1004 realizes the functions related to the device according to the program stored in the memory device 1003. The interface device 1005 is used as an interface for connecting to a network. The display device 1006 displays a GUI (Graphical User Interface) or the like according to a program. The input device 1007 is composed of a keyboard, a mouse, a button, a touch panel, or the like, and is used to input various operation instructions. The output device 1008 outputs the calculation result. Note that the above computer may be equipped with a GPU (Graphics Processing Unit) or a TPU (Tensor processing unit) instead of the CPU 1004, or may be equipped with a GPU or a TPU in addition to the CPU 1004. In that case, the processes may be shared and executed such that the GPU or the TPU executes processes that require special calculations and the CPU 1004 executes other processes.

[0056] In the above-mentioned embodiment, the quantum circuit update method illustrated in Fig. 4 and Fig. 5 is a method that applies an optimization technique called a greedy method. The quantum circuit update method is not limited to this, and any other method that improves the continuity of the commands of "measurement" and "operation" may be used.

[0057] In the above-described embodiment, when simulating a plurality of quantum circuits, if quantum circuits of the same shape are simulated a plurality of times, the information processing device 10 may store the quantum circuit T updated by the quantum circuit update unit 11 in the first simulation, and in the second and subsequent simulations, the updated quantum circuit T may be used to perform simulation by the simulator 12. This makes it possible to substantially ignore the cost of the update process by the quantum circuit update unit 11 when simulating the same quantum circuit a plurality of times.

[0058] (Effects of this embodiment) According to the information processing device 10 of this embodiment, the quantum circuit is updated so that, among the commands included in the input quantum circuit, the "measurement" and the "operation" are arranged as consecutively as possible. Then, the information processing device 10 simulates the updated quantum circuit while switching the arrangement of each element of the stabilizer table in memory so that the arrangement is row-major for the "measurement" and column-major for the "operation".

[0059] If the quantum circuit is not updated and only the arrangement in memory is switched, then in quantum circuit O, if "measurements" and "operations" are arranged alternately, a process of switching between row-major and column-major will be required for each simulation process, and the time required for simulation may actually increase.

[0060] In contrast, according to the information processing device 10 of the present embodiment, the continuity of the "measurement" and "operation" commands is improved, so that the number of times that the process of switching the memory arrangement is executed can be minimized. Therefore, the simulation of the quantum circuit can be accelerated.

[0061] Specifically, the quantum circuit update unit 11 uses a greedy optimization method to update the quantum circuit O so that the "measurements" and "operations" are arranged as contiguously as possible. This makes it possible to easily improve the continuity of the "measurements" and "operations" commands.

[0062] (Summary of the embodiment) This specification describes at least the information processing device, simulation method, and program described in the following sections. (Section 1) 1. An information processing apparatus for simulating a Clifford circuit, comprising: A quantum circuit update unit that updates the quantum circuit so as to improve the continuity of the "measurement" and "operation" commands among the commands included in the input quantum circuit; A simulating unit that simulates while switching the arrangement of each element of the stabilizer table on the memory based on the updated quantum circuit. Information processing device. (Section 2) The simulating unit simulates by switching the arrangement of each element of the stabilizer table in memory so that the instruction included in the updated quantum circuit is row-major for "measurement" and column-major for "operation". 2. The information processing device according to claim 1. (Section 3) The quantum circuit update unit updates the quantum circuit using a greedy optimization method so that the "measurements" and "operations" are arranged as consecutively as possible. 3. The information processing device according to claim 1 or 2. (Section 4) 1. A method for simulating a Clifford circuit executed by an information processing device, comprising: Updating the quantum circuit so as to improve the continuity of "measurement" and "operation" commands among the commands included in the input quantum circuit; and simulating while switching the arrangement of each element of the stabilizer table in memory based on the updated quantum circuit. How to simulate. (Section 5) A program for causing a computer to function as each unit in the information processing device according to any one of claims 1 to 3.

[0063] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and variations are possible within the scope of the gist of the present invention described in the claims. [Explanation of symbols]

[0064] 10. Information processing device 11 Quantum circuit update section 12 Simulation section 13 Stabilizer table memory section 1000 Drive Device 1001 Recording media 1002 Auxiliary storage 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input Device 1008 Output device

Claims

1. 1. An information processing apparatus for simulating a Clifford circuit, comprising: A quantum circuit update unit that updates the quantum circuit so as to improve the continuity of the "measurement" and "operation" commands among the commands included in the input quantum circuit; A simulating unit that simulates while switching the arrangement of each element of the stabilizer table on the memory based on the updated quantum circuit. Information processing device.

2. The simulating unit simulates by switching the arrangement of each element of the stabilizer table in memory so that the instruction included in the updated quantum circuit becomes row-major in the case of “measurement” and column-major in the case of “operation”. The information processing device according to claim 1 .

3. The quantum circuit update unit updates the quantum circuit using a greedy optimization method so that the "measurements" and "operations" are arranged as consecutively as possible.

3. The information processing device according to claim 1 or 2.

4. 1. A method for simulating a Clifford circuit executed by an information processing device, comprising: Updating the quantum circuit so as to improve the continuity of "measurement" and "operation" commands among the commands included in the input quantum circuit; and simulating while switching the arrangement of each element of the stabilizer table in memory based on the updated quantum circuit. How to simulate.

5. A program for causing a computer to function as each unit in the information processing device according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • How to simulate quantum circuits on a classical computer

    JP2020515999A

  • Plane wave dual bases for quantum simulations

    JP2020521235A

  • Method and computer program for simulating quantum circuits

    JP2020534603A

  • Simulating quantum circuits on a computer using hierarchical storage

    US20190347575A1

  • Noise classification through the output of random quantum circuits

    US20210049492A1