Information processing program, information processing method, and information processing device
The method generates a second quantum circuit by swapping local and global qubits before operations involving inter-process communication, addressing inefficiencies in conventional quantum circuit operations to enhance processing efficiency and reduce load and time.
Patent Information
- Application Number
- JP2023054410
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2024-10-10
AI Technical Summary
Conventional techniques face difficulties in efficiently performing a series of operations on one or more different quantum bits represented by a quantum circuit due to increased processing load and time caused by inter-process communication, particularly when network communication is involved.
An information processing method that generates a second quantum circuit equivalent to the first by identifying qubits that can be executed independently without depending on other gates and adding swap gates to swap local and global qubits before operations involving inter-process communication, thereby reducing the number of inter-process communications.
This approach allows for efficient performance of calculations by minimizing processing load and time required for series of operations on quantum bits, optimizing the quantum circuit to reduce inter-process communication.
Smart Images

Figure 2024142277000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an information processing program, an information processing method, and an information processing device. [Background technology]
[0002] Conventionally, there is a technology for expressing combinations of quantum states represented by each of multiple quantum bits in vector format. For example, when there are two quantum bits, a vector may be stored whose components are the probability that the combination of quantum states represented by each quantum bit is "00", "01", "10", and "11". In addition, each component of the vector may be shared and handled by multiple processes. In this case, when a specific operation is performed on one or more quantum bits, inter-process communication may occur between multiple processes that are responsible for different components.
[0003] Prior art techniques include, for example, swapping a global qubit involved in an operation with a local qubit. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] US Patent Application Publication No. 2021 / 0049496 Summary of the Invention [Problem to be solved by the invention]
[0005] However, with conventional techniques, it is difficult to efficiently perform a series of operations on one or more different quantum bits represented by a quantum circuit. For example, when inter-process communication occurs, it leads to an increase in the processing load and processing time required to perform a series of operations.
[0006] In one aspect, the present invention aims to facilitate efficient implementation of calculations. [Means for solving the problem]
[0007] According to one embodiment, an information processing program, an information processing method, and an information processing device are proposed that acquire a first quantum circuit that defines a plurality of gates in a chronological order, each of which represents performing an operation on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits, generate an acyclic directed graph based on the acquired first quantum circuit, the acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing the order of performing operations between the gates represented by the different nodes, identify, based on the generated acyclic directed graph, one or more quantum bits among the plurality of gates that are referenced by one or more first gates in which inter-process communication occurs, each of which references one or more quantum bits that are equal to or less than an upper limit of the local quantum bits and that can be executed without depending on other gates, and generate a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately before the one or more first gates that swap the local quantum bits with the global quantum bits so that the identified one or more quantum bits become local. Effect of the Invention
[0008] According to one aspect, computations can be facilitated to be performed efficiently. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a diagram illustrating an example of an information processing method according to an embodiment. [Diagram 2] FIG. 2 is an explanatory diagram illustrating an example of an information processing system 200. As shown in FIG. [Diagram 3] FIG. 3 is a block diagram showing an example of a hardware configuration of the information processing device 100. As shown in FIG. [Figure 4] FIG. 4 is a block diagram showing an example of a functional configuration of the information processing device 100. As shown in FIG. [Diagram 5] FIG. 5 is an explanatory diagram (part 1) showing the flow of operations of the information processing device 100. [Figure 6] FIG. 6 is an explanatory diagram (part 2) showing the flow of operations of the information processing device 100. [Figure 7] FIG. 7 is an explanatory diagram (part 3) showing the flow of operations of the information processing device 100. [Figure 8] FIG. 8 is an explanatory diagram (part 4) showing the flow of operations of the information processing device 100. [Figure 9] FIG. 9 is an explanatory diagram (part 5) showing the flow of operations of the information processing device 100. [Figure 10] FIG. 10 is an explanatory diagram (part 1) showing an example of the operation of the information processing device 100. [Figure 11] FIG. 11 is an explanatory diagram (part 2) showing an example of the operation of the information processing device 100. [Figure 12] FIG. 12 is an explanatory diagram (part 3) showing an example of the operation of the information processing device 100. [Figure 13] FIG. 13 is an explanatory diagram (part 4) showing an example of the operation of the information processing device 100. [Figure 14] FIG. 14 is an explanatory diagram (part 5) showing an example of the operation of the information processing device 100. [Figure 15] FIG. 15 is an explanatory diagram (part 1) showing a specific example of the operation of the information processing device 100. [Figure 16] FIG. 16 is an explanatory diagram (part 2) showing a specific example of the operation of the information processing device 100. [Figure 17] FIG. 17 is an explanatory diagram (part 3) showing a specific example of the operation of the information processing device 100. [Figure 18] FIG. 18 is an explanatory diagram (part 4) showing a specific example of the operation of the information processing device 100. [Figure 19] FIG. 19 is an explanatory diagram showing a first application example of the information processing device 100. [Figure 20] FIG. 20 is an explanatory diagram (part 1) showing a second application example of the information processing device 100. [Figure 21]FIG. 21 is an explanatory diagram (part 2) showing a second application example of the information processing device 100. In FIG. [Figure 22] FIG. 22 is an explanatory diagram (part 1) showing a third application example of the information processing device 100. [Diagram 23] FIG. 23 is an explanatory diagram (part 2) showing a third application example of the information processing device 100. [Figure 24] FIG. 24 is a flowchart illustrating an example of an overall processing procedure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an embodiment of an information processing program, an information processing method, and an information processing device according to the present invention will be described in detail with reference to the drawings.
[0011] (An example of an information processing method according to an embodiment) 1 is an explanatory diagram showing an example of an information processing method according to an embodiment. The information processing device 100 is a computer for efficiently and easily performing a series of operations on one or more different quantum bits represented by a quantum circuit. The information processing device 100 is, for example, a server or a PC (Personal Computer).
[0012] Here, a series of operations on one or more different quantum bits represented by a quantum circuit may be performed, for example, on a quantum simulator that simulates a quantum computer. The operations are represented, for example, by gates in the quantum circuit. In this case, a combination of quantum states represented by each of the multiple quantum bits may be expressed in vector form. A vector that represents a combination of quantum states is also called, for example, a state vector. Then, each time an operation is performed on one or more quantum bits, at least one of the components of the vector is referenced and updated.
[0013] Here, the number of components of a vector increases as the number of quantum bits increases. For this reason, each component of a vector may be shared and handled by multiple processes. Of the multiple processes, two or more processes may exist on different computers, for example. Of the multiple processes, two or more processes may exist on the same computer, for example. In this case, when a predetermined operation is performed on one or more quantum bits, inter-process communication may occur between the multiple processes in charge of different components. When two or more processes in which inter-process communication occurs exist on different computers, network communication may also occur.
[0014] For example, when quantum bits a and b exist, a vector is stored whose components are the probability that the combination of quantum states represented by the quantum bits a and b is "00", the probability that the combination is "01", the probability that the combination is "10", and the probability that the combination is "11". In the above "**", the value on the left side corresponds to the quantum state represented by the quantum bit a, and the value on the right side corresponds to the quantum state represented by the quantum bit b. In this case, for example, it is considered that process α is responsible for the probability that the combination of quantum states represented by the quantum bits a and b is "00" and the probability that the combination is "01". Also, for example, it is considered that process β is responsible for the probability that the combination of quantum states represented by the quantum bits a and b is "10" and the probability that the combination is "11".
[0015] Here, for example, when performing an X-gate operation on quantum bit a, it is desired that the combination of quantum states represented by quantum bits a and b be swapped between the probability of "00" and the probability of "10", and between the probability of "01" and the probability of "11". In this case, different processes are responsible for the probability of "00" and the probability of "10", and different processes are responsible for the probability of "01" and the probability of "11", so inter-process communication occurs.
[0016] On the other hand, for example, when performing an X-gate operation on quantum bit b, it is desired that the combination of quantum states represented by quantum bits a and b be swapped between the probability of "00" and the probability of "01", and between the probability of "10" and the probability of "11". In this case, the same process is responsible for the probability of "00" and the probability of "01", and the same process is responsible for the probability of "10" and the probability of "11", so no inter-process communication occurs.
[0017] In the following description, a quantum bit that causes inter-process communication to occur may be referred to as a "global quantum bit." In the above example, specifically, quantum bit a is the global quantum bit. In the following description, a quantum bit that does not cause inter-process communication to occur may be referred to as a "local quantum bit." In the above example, specifically, quantum bit b is the local quantum bit.
[0018] Conventionally, due to the above-mentioned global quantum bit, there is a problem that it is difficult to efficiently perform a series of operations on one or more different quantum bits represented by a quantum circuit. For example, when performing any of the operations, if inter-process communication occurs, the processing load and processing time required for performing the series of operations will increase. Specifically, when performing any of the operations, if network communication occurs due to inter-process communication, the processing load and processing time required for performing the series of operations will increase.
[0019] In response to this, for example, a worker may manually update the quantum circuit to add an operation that swaps a local quantum bit with a global quantum bit immediately before an operation that generates inter-process communication among a series of operations. In this case, there is a problem that the workload on the worker increases, and it may be difficult to reduce the processing load and processing time required to perform a series of operations.
[0020] In addition, no method has been proposed to efficiently and automatically update a quantum circuit to add an operation that swaps two or more local qubits with two or more global qubits. This makes it difficult to reduce the processing load and processing time required to perform a series of operations.
[0021] Therefore, in this embodiment, an information processing method that can facilitate efficient execution of operations on one or more quantum bits will be described.
[0022] 1, there are multiple qubits, including one or more local qubits and one or more global qubits, for example, there are n qubits.
[0023] Of the n quantum bits, m quantum bits are set as local quantum bits. For example, when n quantum bits are arranged in order, the lowest m quantum bits are set as local quantum bits. Of the n quantum bits, p quantum bits are set as global quantum bits. For example, when n quantum bits are arranged in order, the highest p quantum bits are set as global quantum bits. n=m+p.
[0024] There are 2^n components that represent the probability of combinations of quantum states represented by each of the n quantum bits. The 2^n components are shared among 2^p processes. Each of the 2^p processes is responsible for 2^m components. Specifically, each of the 2^p processes is assigned one of the combinations of quantum states represented by each of the top p quantum bits, without overlapping. Specifically, each of the 2^p processes is responsible for 2^m components that represent the probability of combinations including the combination assigned to the process, among the combinations of quantum states represented by each of the n quantum bits.
[0025] In the example of Figure 1, specifically, it is assumed that there are quantum bits 0 to 3. Here, n=4. m=2. p=2. For example, quantum bits 0 and 1 are set as local quantum bits. For example, quantum bits 2 and 3 are set as global quantum bits. There are 16 components that represent the probability of combinations of the quantum states of quantum bits 0 to 3. The 16 components are shared among four processes. Each of the four processes is responsible for four components.
[0026] The four processes specifically include process 1 which is responsible for four components which represent the probability that the combination of the quantum states of quantum bits 0 to 3 is "00**". * indicates a part which may have a value of either 0 or 1. The four processes specifically include process 2 which is responsible for four components which represent the probability that the combination of the quantum states of quantum bits 0 to 3 is "01**". The four processes specifically include process 3 which is responsible for four components which represent the probability that the combination of the quantum states of quantum bits 0 to 3 is "10**". The four processes specifically include process 4 which is responsible for four components which represent the probability that the combination of the quantum states of quantum bits 0 to 3 is "11**".
[0027] (1-1) The information processing device 100 acquires a first quantum circuit 110 related to n quantum bits. In the example of Fig. 1, specifically, n = 4. In the example of Fig. 1, specifically, the first quantum circuit 110 is information that specifies a plurality of gates 121 to 123 in chronological order for four quantum bits. Each of the gates 121 to 123 is information that indicates the execution of an operation on one or more quantum bits.
[0028] (1-2) The information processing device 100 generates a directed acyclic graph (DAG) 130 based on the acquired first quantum circuit 110. The directed acyclic graph 130 includes nodes 141 to 143 representing the gates 121 to 123, respectively, and directed edges representing the order of operations between the gates 121 to 123. For example, the directed edge starts from a node corresponding to an operation to be performed first of two consecutive operations, and ends from a node corresponding to an operation to be performed later.
[0029] (1-3) The information processing device 100 identifies one or more gates in which inter-process communication occurs, each of which references quantum bits that are executable without relying on other gates and that are equal to or smaller than the upper limit of local quantum bits as a whole. The information processing device 100 identifies one or more quantum bits that are referenced as a whole by the identified one or more gates.
[0030] The upper limit is the maximum number of qubits that can be set locally. In the example of FIG. 1, the upper limit is specifically 2. Executable without depending on other gates means, for example, that one or more gates can be executed as a whole without depending on other gates. Executable without depending on other gates means, specifically, that a directed edge starting from another gate that is not included in one or more gates is not connected to any of the one or more gates.
[0031] 1, the information processing device 100 specifically identifies gate 121 as one or more gates in which inter-process communication occurs, references two quantum bits equal to or less than the upper limit, and is executable without depending on other gates, based on the acyclic directed graph 130. The information processing device 100 identifies quantum bits 0 and 2 referenced by gate 121.
[0032] (1-4) The information processing device 100 generates a second quantum circuit 150 that is logically equivalent to the first quantum circuit 110. The second quantum circuit 150 includes at least one swap gate that swaps a local quantum bit with a global quantum bit immediately before the identified one or more gates so that the identified one or more quantum bits become local. The one or more swap gates include, for example, a single swap gate that swaps two quantum bits, or a fused swap gate that swaps four or more quantum bits.
[0033] In the example of FIG. 1, the information processing device 100 specifically prepares an empty template circuit. The information processing device 100 specifically adds a swap gate 160 to the template circuit, and adds the identified gate 121 next to the swap gate 160. The swap gate 160 swaps, for example, a local quantum bit 1 with a global quantum bit 2. The information processing device 100 adds a gate 122 and a gate 123 to the template circuit. The information processing device 100 adopts the template circuit as a second quantum circuit 150.
[0034] This allows the information processing device 100 to generate a second quantum circuit 150 that is logically equivalent to the first quantum circuit 110 and that generates less inter-process communication or a smaller amount of communication than the first quantum circuit 110. This allows the information processing device 100 to easily and efficiently perform a series of operations on one or more different quantum bits. The information processing device 100 can, for example, reduce the processing load and processing time required to perform a series of operations.
[0035] (1-5) The information processing device 100 controls a plurality of processes according to the generated second quantum circuit 150, and performs a simulation that simulates a change in a combination of quantum states due to a series of operations defined in the second quantum circuit 150. The processes may be possessed by, for example, the information processing device 100. The information processing device 100 outputs the results of the simulation so that the user can refer to them. In this way, the information processing device 100 can make the results of the simulation available to the user.
[0036] Here, the case where the information processing device 100 identifies one or more gates that can be executed without depending on other gates and that each generate inter-process communication has been described, but the present invention is not limited to this. For example, the information processing device 100 may identify one or more gates that can be executed without depending on other gates and that each do not generate inter-process communication. In this case, specifically, the information processing device 100 may add one or more gates that each do not generate inter-process communication to an empty template circuit, and then identify one or more gates that can be executed without depending on other gates and that each generate inter-process communication. An example of this case will be specifically described later with reference to FIGS. 5 to 18.
[0037] Here, a case has been described in which the information processing device 100 generates the second quantum circuit 150 including one or more swap gates only immediately before the gate 121, but the present invention is not limited to this. For example, the information processing device 100 may generate the second quantum circuit 150 including one or more swap gates immediately before the gate 122 in addition to immediately before the gate 121. An example of this case will be described later specifically with reference to FIGS. 5 to 18.
[0038] Here, the case where the information processing device 100 operates independently has been described, but the present invention is not limited to this. For example, the information processing device 100 may cooperate with another computer. Specifically, the information processing device 100 may transmit the second quantum circuit 150 to another computer having a plurality of processes. The plurality of processes may be possessed by different computers. For example, a plurality of computers may cooperate to realize the function of the information processing device 100. Specifically, the function of the information processing device 100 may be realized on the cloud.
[0039] (An example of the information processing system 200) Next, an example of an information processing system 200 to which the information processing device 100 shown in FIG. 1 is applied will be described with reference to FIG.
[0040] 2 is an explanatory diagram showing an example of an information processing system 200. In FIG. 2, the information processing system 200 includes an information processing device 100, one or more arithmetic processing devices 201, and one or more client devices 202.
[0041] In the information processing system 200, the information processing device 100 and the arithmetic processing device 201 are connected via a wired or wireless network 210. The network 210 is, for example, a local area network (LAN), a wide area network (WAN), the Internet, etc. In the information processing system 200, the information processing device 100 and the client device 202 are connected via the wired or wireless network 210.
[0042] The information processing device 100 is a computer for generating a first quantum circuit. The information processing device 100 receives from the client device 202 a first quantum circuit that specifies gates representing each operation of a series of operations in a time series with respect to n quantum bits. The information processing device 100 generates a second quantum circuit that is logically equivalent to the received first quantum circuit.
[0043] The information processing device 100 sets, for example, m local quantum bits and p global quantum bits among n quantum bits. The information processing device 100 generates a second quantum circuit based on the first quantum circuit, the m local quantum bits, and the p global quantum bits. Specifically, the information processing device 100 generates the second quantum circuit as described later with reference to FIGS. 5 to 18.
[0044] The information processing device 100 controls the multiple arithmetic processing devices 201 to share a simulation that simulates a change in a combination of quantum states due to a series of operations according to the generated second quantum circuit. The information processing device 100, for example, distributes and assigns each component of a vector that expresses a combination of quantum states to the multiple arithmetic processing devices 201. The information processing device 100 controls the multiple arithmetic processing devices 201 to update one or more components assigned to the multiple arithmetic processing devices 201 by, for example, transmitting the second quantum circuit to the multiple arithmetic processing devices 201.
[0045] The information processing device 100 receives each component of a vector representing a combination of quantum states from a plurality of arithmetic processing devices 201. The information processing device 100 generates a result of performing a simulation that simulates a change in the combination of quantum states due to a series of operations, based on each component of the vector representing the received combination of quantum states. The information processing device 100 transmits the result of performing the simulation to the client device 202. The information processing device 100 is, for example, a server or a PC.
[0046] The arithmetic processing device 201 is a computer for sharing a simulation that simulates a change in a combination of quantum states due to a series of operations. The arithmetic processing device 201 has a process for managing one or more components of a vector that expresses a combination of quantum states. The arithmetic processing device 201 receives a second quantum circuit from the information processing device 100. The arithmetic processing device 201 communicates with other arithmetic processing devices 201 based on the second quantum circuit and updates one or more components managed by the device itself. The arithmetic processing device 201 transmits one or more components of the vector to the information processing device 100. The arithmetic processing device 201 is, for example, a server or a PC.
[0047] The client device 202 is a computer used by an operator. The client device 202 accepts a designation of a first quantum circuit based on an operation input by the operator. The client device 202 transmits the designated first quantum circuit to the information processing device 100. The client device 202 receives a result of an executed simulation from the information processing device 100. The client device 202 outputs the result of an executed simulation so that the operator can refer to it. The client device 202 is, for example, a PC, a tablet terminal, or a smartphone.
[0048] Here, the case where the information processing device 100 is a device different from the arithmetic processing device 201 has been described, but is not limited thereto. For example, the information processing device 100 may have a function as the arithmetic processing device 201 and also operate as the arithmetic processing device 201. Here, the case where the information processing device 100 is a device different from the client device 202 has been described, but is not limited thereto. For example, the information processing device 100 may have a function as the client device 202 and also operate as the client device 202.
[0049] (Example of hardware configuration of information processing device 100) Next, an example of the hardware configuration of the information processing device 100 will be described with reference to FIG.
[0050] Fig. 3 is a block diagram showing an example of a hardware configuration of the information processing device 100. In Fig. 3, the information processing device 100 has a CPU (Central Processing Unit) 301, a memory 302, a network I / F (Interface) 303, a recording medium I / F 304, and a recording medium 305. In addition, each component is connected to each other via a bus 300.
[0051] Here, the CPU 301 is responsible for the overall control of the information processing device 100. The memory 302 has, for example, a read only memory (ROM), a random access memory (RAM), and a flash ROM. Specifically, for example, the flash ROM and the ROM store various programs, and the RAM is used as a work area for the CPU 301. The programs stored in the memory 302 are loaded into the CPU 301, causing the CPU 301 to execute the coded processes.
[0052] The network I / F 303 is connected to the network 210 through a communication line, and is connected to other computers via the network 210. The network I / F 303 manages an internal interface with the network 210, and controls input and output of data from other computers. The network I / F 303 is, for example, a modem or a LAN adapter.
[0053] The recording medium I / F 304 controls reading / writing data from / to the recording medium 305 under the control of the CPU 301. The recording medium I / F 304 is, for example, a disk drive, a solid state drive (SSD), a universal serial bus (USB) port, etc. The recording medium 305 is a non-volatile memory that stores data written under the control of the recording medium I / F 304. The recording medium 305 is, for example, a disk, a semiconductor memory, a USB memory, etc. The recording medium 305 may be detachable from the information processing device 100.
[0054] In addition to the above-mentioned components, the information processing device 100 may have, for example, a keyboard, a mouse, a display, a printer, a scanner, a microphone, a speaker, etc. Furthermore, the information processing device 100 may have a plurality of recording medium I / Fs 304 and recording media 305. Furthermore, the information processing device 100 may not have the recording medium I / Fs 304 and the recording media 305.
[0055] (Example of hardware configuration of the arithmetic processing device 201) A specific example of the hardware configuration of the arithmetic processing device 201 is similar to the example of the hardware configuration of the information processing device 100 shown in FIG. 3, and therefore a description thereof will be omitted.
[0056] (Example of Hardware Configuration of Client Device 202) Specifically, an example of the hardware configuration of the client device 202 is similar to the example of the hardware configuration of the information processing device 100 shown in FIG. 3, and therefore a description thereof will be omitted.
[0057] (Example of functional configuration of information processing device 100) Next, an example of a functional configuration of the information processing device 100 will be described with reference to FIG.
[0058] 4 is a block diagram showing an example of a functional configuration of the information processing device 100. The information processing device 100 includes a storage unit 400, an acquisition unit 401, a first generation unit 402, a first identification unit 403, a second identification unit 404, a second generation unit 405, a simulation unit 406, and an output unit 407.
[0059] The storage unit 400 is realized by, for example, a storage area such as the memory 302 or the recording medium 305 shown in Fig. 3. In the following, a case where the storage unit 400 is included in the information processing device 100 will be described, but this is not limiting. For example, the storage unit 400 may be included in a device different from the information processing device 100, and the stored contents of the storage unit 400 may be accessible from the information processing device 100.
[0060] The acquiring unit 401 to the output unit 407 function as an example of a control unit. Specifically, the acquiring unit 401 to the output unit 407 realize their functions by, for example, causing the CPU 301 to execute a program stored in a storage area such as the memory 302 or the recording medium 305 shown in Fig. 3, or by the network I / F 303. The processing results of each functional unit are stored in, for example, a storage area such as the memory 302 or the recording medium 305 shown in Fig. 3.
[0061] The storage unit 400 stores various information that is referred to or updated in the processing of each functional unit. The storage unit 400 stores, for example, a first quantum circuit. The first quantum circuit is a quantum circuit related to a plurality of quantum bits. The plurality of quantum bits includes one or more local quantum bits and one or more global quantum bits. The first quantum circuit specifies a plurality of gates in a time series, each gate representing the execution of an operation on one or more different quantum bits. The first quantum circuit is acquired by, for example, an acquisition unit 401.
[0062] The storage unit 400 stores, for example, identification information for identifying a local quantum bit and a global quantum bit among a plurality of quantum bits. The local quantum bit and the global quantum bit can be swapped. For example, a certain quantum bit is changed from local to global, and another quantum bit is changed from global to local, thereby swapping the local quantum bit and the global quantum bit. The identification information is acquired, for example, by the acquisition unit 401.
[0063] The storage unit 400 stores, for example, a second quantum circuit. The second quantum circuit is a quantum circuit related to a plurality of quantum bits. The second quantum circuit defines a plurality of gates in a time series, each of which represents the execution of an operation on one or more different quantum bits. The second quantum circuit is a quantum circuit that is logically equivalent to the first quantum circuit. The second quantum circuit is generated, for example, by the second generation unit 405.
[0064] The acquisition unit 401 acquires various information used for processing by each functional unit. The acquisition unit 401 stores the acquired various information in the storage unit 400 or outputs it to each functional unit. The acquisition unit 401 may also output the various information stored in the storage unit 400 to each functional unit. The acquisition unit 401 acquires various information based on, for example, an operation input by a user. The acquisition unit 401 may receive various information from, for example, a device different from the information processing device 100.
[0065] The acquiring unit 401 acquires, for example, a first quantum circuit. Specifically, the acquiring unit 401 acquires the first quantum circuit by accepting an input of the first quantum circuit based on an operational input by a user. Specifically, the acquiring unit 401 acquires the first quantum circuit by receiving it from another computer. Specifically, the other computer is the client device 202 or the like.
[0066] The acquiring unit 401 acquires, for example, identification information for identifying a local quantum bit and a global quantum bit. Specifically, the acquiring unit 401 acquires the identification information by accepting an input of the identification information based on an operational input by a user. Specifically, the acquiring unit 401 acquires the identification information by receiving it from another computer. Specifically, the other computer is the client device 202 or the like.
[0067] The acquisition unit 401 may receive a start trigger for starting the processing of any of the functional units. The start trigger may be, for example, a predetermined operation input by a user. The start trigger may be, for example, the receipt of predetermined information from another computer. The start trigger may be, for example, the output of predetermined information by any of the functional units. The acquisition unit 401 receives, for example, the acquisition of a first quantum circuit as a start trigger for starting the processing of the first generation unit 402, the first identification unit 403, the second identification unit 404, and the second generation unit 405.
[0068] Based on the acquired first quantum circuit, the first generation unit 402 generates an acyclic directed graph including nodes representing each of the multiple gates and directed edges representing the execution order of operations between the gates represented by different nodes. This enables the first generation unit 402 to identify dependencies between the gates, making it easier to analyze the contents of the first quantum circuit.
[0069] Based on the generated acyclic directed graph, the first identification unit 403 identifies, among the multiple gates, one or more first gates that can be executed without depending on other gates and that each generate inter-process communications that reference a quantum bit equal to or less than the upper limit of a local quantum bit. The first identification unit 403 identifies one or more quantum bits referenced by the identified one or more first gates.
[0070] One or more first gates that are executable without depending on other gates are, for example, a state in which one or more first gates are executable as a whole without depending on other gates. Specifically, one or more first gates that are executable without depending on other gates are a state in which a directed edge starting from another gate that is not included in the one or more first gates is not connected to any of the one or more first gates.
[0071] The one or more first gates that are executable without depending on other gates may be, for example, a state in which each of the one or more first gates is executable without depending on other gates. Specifically, the one or more first gates that are executable without depending on other gates may be a state in which, for each of the one or more first gates, a directed edge starting from another gate different from the first gate is not connected to the first gate.
[0072] The first identification unit 403 identifies one or more first gates, for example, every time the second identification unit 404 identifies one or more second gates. Specifically, the first identification unit 403 identifies one or more first gates every time the second identification unit 404 updates the acyclic directed graph. The first identification unit 403 may identify one or more first gates, for example, when the second identification unit 404 does not identify one or more second gates.
[0073] Specifically, the first identification unit 403 determines that a gate representing the execution of an operation expressed by a diagonal matrix is a gate in which inter-process communication does not occur. Specifically, the first identification unit 403 determines that a gate not related to a global quantum bit is a gate in which inter-process communication does not occur. Specifically, the first identification unit 403 determines that a gate representing the execution of an operation not expressed by a diagonal matrix and related to a global quantum bit is a gate in which inter-process communication occurs.
[0074] Specifically, the first identification unit 403 identifies one or more first gates based on the acyclic directed graph and a result of judging whether or not a gate is a gate at which inter-process communication occurs. More specifically, the first identification unit 403 identifies one or more first gates starting from a gate at which inter-process communication that can be executed without depending on other gates occurs, and each of the first gates at which inter-process communication that can be executed without depending on other gates occurs as a whole.
[0075] Specifically, the first identification unit 403 may sequentially select gates that can be executed without depending on other gates and that generate inter-process communication based on the acyclic directed graph. Specifically, the first identification unit 403 repeats the process of adding a quantum bit related to the gate to a group each time the first identification unit 403 selects a gate, within a range in which the number of quantum bits included in the group does not exceed an upper limit of local quantum bits. The first identification unit 403 identifies the selected gates as one or more first gates. The first identification unit 403 ultimately identifies one or more quantum bits included in the group.
[0076] Specifically, the first identification unit 403 may identify multiple combinations of gates in which inter-process communication occurs, which refer to one or more quantum bits that are executable without depending on other gates and are equal to or smaller than the upper limit of local quantum bits, based on the acyclic directed graph. The first identification unit 403 identifies, among the multiple combinations, one or more gates in which inter-process communication occurs, which are combinations including the largest number of gates, as one or more first gates. The first identification unit 403 identifies one or more quantum bits referenced by the identified one or more first gates. This allows the first identification unit 403 to obtain a guideline for generating a second quantum circuit.
[0077] The second identifying unit 404 identifies, from among the multiple gates, one or more second gates that are executable without depending on other gates and that do not generate inter-process communication, based on the acyclic directed graph.
[0078] One or more second gates that are executable without depending on other gates are, for example, in a state where one or more second gates are executable as a whole without depending on other gates. Specifically, one or more second gates that are executable without depending on other gates are in a state where a directed edge starting from another gate that is not included in the one or more second gates is not connected to any of the one or more second gates.
[0079] The one or more second gates that are executable without depending on other gates may be, for example, a state in which each of the one or more second gates is executable without depending on other gates. Specifically, the one or more second gates that are executable without depending on other gates may be a state in which, for each of the one or more second gates, a directed edge starting from a gate other than the second gate is not connected to the second gate.
[0080] For example, the second identification unit 404 identifies one or more second gates once before the first identification unit 403 initially identifies one or more quantum bits. The second identification unit 404 identifies one or more second gates every time the first identification unit 403 identifies one or more quantum bits.
[0081] Specifically, the second identification unit 404 identifies one or more second gates in response to the first identification unit 403 identifying one or more quantum bits and the second generation unit 405 adding one or more swap gates to the template circuit. The swap gate is a single swap gate that swaps two quantum bits or a fused swap gate that swaps four or more quantum bits. The second identification unit 404 may identify one or more second gates, for example, when the first identification unit 403 does not identify one or more quantum bits.
[0082] The second identification unit 404 specifically determines that a gate representing the execution of an operation expressed by a diagonal matrix is a gate in which inter-process communication does not occur. The second identification unit 404 specifically determines that a gate not related to a global quantum bit is a gate in which inter-process communication does not occur. The second identification unit 404 specifically determines that a gate representing the execution of an operation not expressed by a diagonal matrix and related to a global quantum bit is a gate in which inter-process communication occurs.
[0083] Specifically, the second identification unit 404 identifies one or more second gates based on the acyclic directed graph and the result of judging whether or not a gate is a gate at which inter-process communication occurs. More specifically, the second identification unit 404 starts from a gate at which inter-process communication that can be executed without depending on other gates does not occur and identifies one or more second gates at which inter-process communication that can be executed without depending on other gates does not occur as a whole.
[0084] Each time the second identification unit 404 identifies one or more second gates, the second identification unit 404 updates the acyclic directed graph to remove from the acyclic directed graph nodes representing the second gates of the one or more second gates currently identified by the second identification unit 404. In this way, the second identification unit 404 can update the acyclic directed graph to make the identified gates distinguishable and suitable for the purpose of generating a second quantum circuit.
[0085] The second generating unit 405 generates a second quantum circuit that is logically equivalent to the first quantum circuit. The second quantum circuit includes, for example, one or more swap gates that swap local quantum bits with global quantum bits immediately before the one or more first gates identified by the first identifying unit 403 so that the one or more quantum bits identified by the first identifying unit 403 become local.
[0086] The second generation unit 405 prepares, for example, an empty template circuit. For example, every time the second specification unit 404 specifies one or more second gates, the second generation unit 405 adds the one or more second gates specified by the second specification unit 404 to the template circuit. This allows the second generation unit 405 to generate the second quantum circuit in stages.
[0087] For example, each time the first identification unit 403 identifies one or more quantum bits, the second generation unit 405 adds one or more swap gates to the template circuit so that the one or more quantum bits identified by the first identification unit 403 become local. Specifically, if the number of quantum bits to be swapped is four or more, the second generation unit 405 adds one or more swap gates including a fused swap gate to the template circuit. This allows the second generation unit 405 to generate the second quantum circuit in stages.
[0088] The second generation unit 405 determines whether the acyclic directed graph is empty. If the acyclic directed graph is empty, the second generation unit 405 generates a second quantum circuit by adding one or more swap gates to the end of the template circuit so that one or more quantum bits that are local in the initial state return to local. This allows the second generation unit 405 to complete the second quantum circuit.
[0089] The simulation unit 406 controls a plurality of processes each of which is responsible for each component of a vector expressing a combination of quantum states, and performs a simulation to simulate a change in the combination of quantum states due to a series of operations defined in the second quantum circuit generated by the second generation unit 405. The process may be included in the information processing device 100. The process may be included in another computer. The other computer is, for example, the arithmetic processing device 201. This allows the simulation unit 406 to efficiently perform a simulation to simulate a change in the combination of quantum states due to a series of operations.
[0090] The output unit 407 outputs the processing result of at least one of the functional units. The output format is, for example, display on a display, printout on a printer, transmission to an external device via the network I / F 303, or storage in a storage area such as the memory 302 or the recording medium 305. In this way, the output unit 407 can notify the user of the processing result of at least one of the functional units, thereby improving the convenience of the information processing device 100.
[0091] The output unit 407 outputs, for example, the second quantum circuit generated by the second generation unit 405. Specifically, the output unit 407 outputs the second quantum circuit generated by the second generation unit 405 so that it can be referenced by a user. Specifically, the output unit 407 may transmit the second quantum circuit generated by the second generation unit 405 to another computer. In this way, the output unit 407 can make the second quantum circuit available externally.
[0092] The output unit 407 outputs, for example, the result of the simulation performed by the simulation unit 406. Specifically, the output unit 407 outputs the result of the simulation performed by the simulation unit 406 so that the user can refer to it. Specifically, the output unit 407 may transmit the result of the simulation performed by the simulation unit 406 to another computer. In this way, the output unit 407 can make the result of the simulation performed by the simulation unit 406 available externally.
[0093] (Operation flow of information processing device 100) Next, the flow of operations of the information processing device 100 will be described with reference to FIGS.
[0094] 5 to 9 are explanatory diagrams showing the flow of operations of the information processing device 100. Specifically, FIG. 5 shows an example of a state vector 500 expressing a combination of quantum states. In FIG. 5, it is assumed that there are n quantum bits. Specifically, in the example of FIG. 5, it is assumed that n=4 and there are quantum bits 0 to 3. The information processing device 100 sets a state vector 500 having components that represent the probability of each combination of the quantum states of the quantum bits 0 to 3.
[0095] The state vector 500 has components that represent the probability that the combination of the quantum states of the quantum bits 0 to 3 is, for example, "0000" to "1111". In the following description, the components that represent the probability that the combination of the quantum states of the quantum bits 0 to 3 is "****" are referred to as "c **** " * indicates a part that can take on the value of either 0 or 1.
[0096] Starting from the first gate of the quantum circuit 510, each component of the state vector is updated according to the gate, thereby performing a simulation to simulate the change in the combination of quantum states of quantum bits 0 to 3 by a series of operations defined in the quantum circuit 510. The first is, specifically, on the left side. Specifically, the information processing device 100 performs the simulation by allocating multiple components of the state vector to multiple processes and controlling the multiple processes. Next, we move on to the description of FIG. 6.
[0097] Fig. 6 shows an example of allocating multiple components of a state vector to multiple processes. In Fig. 6, the information processing device 100 accepts inputs of p and m. The information processing device 100 sets the upper p quantum bits of a quantum bit string 600 in which n quantum bits are arranged as global quantum bits, and sets the lower m quantum bits of the quantum bit string 600 as local quantum bits. In the example of Fig. 6, n=36. Therefore, there are 2^n components of the state vector.
[0098] The information processing device 100 allocates the 2^n components of the state vector equally to the 2^p processes. Specifically, the information processing device 100 divides the 2^n components of the state vector into 2^m component units from the beginning. Specifically, the information processing device 100 allocates the divided 2^m components to different processes for each 2^m component. For this reason, when performing an operation represented by a gate not related to a global quantum bit, no inter-process communication occurs. On the other hand, when performing an operation represented by a gate related to a global quantum bit, inter-process communication may occur. Next, we move on to the description of FIG. 7.
[0099] FIG. 7 shows an example in which inter-process communication occurs. For example, when an operation related to a global quantum bit and not expressed by a diagonal matrix is performed, there is a tendency that inter-process communication occurs. FIG. 7 shows an operation of an X gate that is not expressed by a diagonal matrix. In the example of FIG. 7, for the sake of simplicity, it is assumed that n=3 and there are quantum bits 0 to 2. It is also assumed that the upper quantum bit 2 is a global quantum bit, and the lower two quantum bits 0 and 1 are local quantum bits.
[0100] As shown in table 710 in Fig. 7, the operation of the X gate related to local quantum bit 0 swaps components that are handled by the same process and only differ in the value of quantum bit 0. In table 710 in Fig. 7, s indicates the value of the component. index indicates an identifier that identifies the component. a(***) is an identifier that identifies the component that represents the probability that the quantum state combination is "***".
[0101] Each component after the swapping is shown in table 711 of Fig. 7. In table 711 of Fig. 7, s indicates the value of the component. index indicates an identifier that identifies the component. In this way, in the operation of the X gate related to the local quantum bit 0, it is sufficient to swap components handled by the same process that differ only in the value of quantum bit 0, so it is thought that no inter-process communication occurs.
[0102] On the other hand, as shown in table 720 of Fig. 7, in the operation of the X gate related to global quantum bit 2, components that are handled by different processes and only differ in the value of quantum bit 2 are swapped. In table 720 of Fig. 7, s indicates the value of the component. index indicates an identifier that identifies the component. a(***) is an identifier that identifies the component that represents the probability that the quantum state combination is "***".
[0103] Each component after the swapping is shown in table 721 of FIG. 7. In table 721 of FIG. 7, s indicates the value of the component. index indicates an identifier for identifying the component. In this way, in the operation of the X gate related to the global quantum bit 2, components that are handled by different processes and only differ in the value of quantum bit 2 are swapped, so it is thought that inter-process communication occurs. Next, we move on to the explanation of FIG. 8.
[0104] Table 800 in Fig. 8 shows an example of gate types. In the gate name field of table 800, a name that identifies the gate is set. In the element count field of table 800, the number of elements related to the operation represented by the gate with the above name is set. Here, N = 2^n.
[0105] The number of complex operations to be performed when updating one element in the operation represented by the gate named above is set in the Number of Operations / Element field of table 800. The complex operations are, for example, addition, subtraction, multiplication, or multiplication and accumulation.
[0106] In the field of table 800, the number of elements transferred by inter-process communication is set when the operation represented by the gate with the above name is related to a global quantum bit. Here, M = 2^ (the number of local quantum bits). The inter-rank transfer amount corresponds to, for example, the communication amount.
[0107] In this way, depending on the type of gate, inter-process communication tends to occur when performing an operation related to a global quantum bit. Therefore, it is considered that the inter-process communication leads to an increase in the processing time and processing load required to perform a series of operations defined in a quantum circuit. Therefore, when the information processing device 100 receives an input of a quantum circuit, it generates a new quantum circuit that is logically equivalent to the quantum circuit and has a reduced number of inter-process communications or communication volume compared to the quantum circuit.
[0108] For example, as shown in table 800, the amount of communication related to the swap gate tends to be smaller than the amount of communication related to the general-purpose gate, the X gate, or the Y gate. For this reason, the information processing device 100 specifically uses the swap gate to generate a new quantum circuit that moves the quantum bits referred to in the operations represented by various gates locally in advance. Next, we move to the explanation of FIG. 9.
[0109] 9, it is assumed that the information processing device 100 receives an input of the quantum circuit 900. (9-1) The information processing device 100 leaves the first gate 910 of the quantum circuit 900 in the quantum circuit 900 as it is, since the first gate 910 is a gate related to the local quantum bit 0 and can be executed without depending on other gates.
[0110] The information processing device 100 determines that the quantum circuit 900 has a gate 911 associated with two or fewer quantum bits 0 and 2, including the global quantum bit 2, and can be executed without depending on other gates, and therefore sets the quantum bits 0 and 2 as local quantum bits.
[0111] (9-2) In order to set quantum bits 0 and 2 as local quantum bits, the information processing device 100 adds a swap gate 930 immediately before the gate 912. This allows the information processing device 100 to update the quantum circuit 900 and generate the quantum circuit 920. By adding the swap gate 930, the information processing device 100 can prevent inter-process communication from occurring at the gates 911 and 913.
[0112] (9-3) The information processing device 100 moves gate 913 of quantum circuit 920 to just after gate 912 because it is a gate associated with the currently local quantum bit 2 and can be executed without depending on other gates. The information processing device 100 determines to set quantum bits 1 and 3 as the next local quantum bits because gate 912 of quantum circuit 920 is associated with two or less quantum bits 1 and 3 including the currently global quantum bits 1 and 3 and can be executed without depending on other gates.
[0113] (9-4) In order to set quantum bits 1 and 3 as local quantum bits, the information processing device 100 adds a swap gate 950 immediately before the gate 912. This allows the information processing device 100 to update the quantum circuit 920 and generate the quantum circuit 940. By adding the swap gate 950, the information processing device 100 can prevent inter-process communication from occurring at the gate 912.
[0114] In this way, the information processing device 100 can obtain a quantum circuit 940 that is logically equivalent to the quantum circuit 900 and has a reduced number of inter-process communications or a reduced amount of communication compared to the quantum circuit 900. The information processing device 100 can efficiently execute a series of operations defined in the quantum circuit 940 while suppressing the number of inter-process communications or the amount of communication by controlling a plurality of processes in accordance with the quantum circuit 940. The information processing device 100 can essentially execute a series of operations defined in the quantum circuit 900 that has received an input.
[0115] (An example of the operation of the information processing device 100) Next, an example of the operation of the information processing device 100 will be described with reference to FIGS.
[0116] 10 to 14 are explanatory diagrams showing an example of the operation of the information processing device 100. In FIG. 10, the information processing device 100 accepts an input of a quantum circuit 1000. The quantum circuit 1000 relates to n quantum bits. In the example of FIG. 5, n=4. The quantum circuit 1000 includes gates 1010 to 1013. Quantum bits 0 and 1 are local quantum bits in the initial state. Quantum bits 2 and 3 are global quantum bits in the initial state.
[0117] The information processing device 100 generates a DAG 1020 corresponding to the quantum circuit 1000. The DAG 1020 includes nodes 1030 to 1033 representing the gates 1010 to 1013, respectively. The information processing device 100 may perform a topological sort on the DAG 1020.
[0118] The information processing device 100 sets the generated DAG 1020 in the graph G. The information processing device 100 prepares an empty output circuit C. The information processing device 100 stores a qubit order σ that enables the current global qubit and the current local qubit to be distinguished from each other.
[0119] The qubit order σ is information that represents, for example, identifiers for identifying each quantum bit arranged in order from the highest order in a quantum bit string in which n quantum bits are arranged. Specifically, the qubit order σ is [0, 1, 2, 3] in the initial state. This allows the information processing device 100 to easily analyze the contents of the quantum circuit 1000. Here, for the sake of simplicity, the case where n=4 has been described, but in the following description, the case where n=6 will be described. Next, we move on to the description of FIG. 11.
[0120] 11, the information processing device 100 repeatedly performs processes (11-1) to (11-3) described below until the graph G becomes empty. Specifically, the qubit order σ is [0, 1, 2, 3, 4, 5] in the initial state. In the qubit order σ, the three qubits on the left side are local, and the three qubits on the right side are global.
[0121] (11-1) If a gate g represented by each node of graph G is executable without depending on other gates and does not cause inter-process communication for the current qubit order σ, the information processing device 100 removes the gate g from graph G. For example, the information processing device 100 may refer to table 800 to determine whether or not a gate g represented by each node of graph G is a gate for which inter-process communication occurs for the current qubit order σ.
[0122] The information processing device 100 updates the removed gate g so that it conforms to the current qubit order σ, and then adds it, in order, to the end of the current output circuit C. Specifically, the information processing device 100 rewrites the contents of the removed gate g so that the number of the quantum bit referenced by the gate g conforms to the current qubit order σ, and then adds it to the end of the current output circuit C. This makes it easier for the information processing device 100 to avoid a gate in which inter-process communication does not currently occur becoming a gate in which inter-process communication occurs after swapping the global quantum bit and the local quantum bit.
[0123] (11-2) The information processing device 100 identifies one or more quantum bits to be made local next. The information processing device 100 determines a set Qlocal' representing one or more quantum bits to be made local next, based on, for example, the current graph G and the current qubit order σ.
[0124] The information processing device 100 repeats sequentially searching for gates in graph G that are executable without depending on other gates, for example, as long as |Qlocal'|≦(number of local quantum bits). The information processing device 100 may repeat sequentially searching for gates in graph G that are executable without depending on gates other than the searched gate, for example, as long as |Qlocal'|≦(number of local quantum bits). The information processing device 100 adds, for example, the quantum bit referenced by the searched gate to Qlocal'. |*| is the number of quantum bits in *. This allows the information processing device 100 to identify one or more quantum bits to be made local next.
[0125] (11-3) The information processing device 100 adds a swap gate or a fused swap gate to the output circuit C so that the local quantum bit matches Qlocal'.
[0126] The information processing device 100, for example, identifies a set Q_import of one or more quantum bits to be made local next, and a set Q_exportable of one or more quantum bits that can be moved globally. Specifically, the information processing device 100 identifies Q_import←Qlocal'-Qlocal. Qlocal is the current local quantum bit. Specifically, the information processing device 100 identifies Q_exportable←Qlocal-Qlocal'. In the example of FIG. 11, Q_import={3,5}. Q_exportable={0,2}. The qubit order σ=[0,1,2,3,4,5].
[0127] The information processing device 100 adds a swap gate that swaps local quantum bits with each other so that, for example, the upper |Q_import| quantum bits among the local quantum bits become quantum bits included in Q_exportable to the output circuit C. In the example of Fig. 11, the information processing device 100 adds a swap gate that swaps local quantum bits 0 and 1 with each other to the output circuit C as shown in table 1100.
[0128] The information processing device 100 adds a swap gate to the output circuit C so that, for example, the Q_import quantum bit among the global quantum bits is continuous. Swap gates that swap global quantum bits tend to be implemented so as to be executable without inter-process communication. In the example of FIG. 11, the information processing device 100 adds a swap gate that swaps global quantum bits 4 and 5 to the output circuit C as shown in Table 1100.
[0129] The information processing device 100 adds a swap gate or a fused swap gate to the output circuit C so as to swap the upper |Q_import| quantum bits among the local quantum bits with the Q_import quantum bit among the global quantum bits. In the example of FIG. 11, the information processing device 100 adds a fused swap gate that swaps the local quantum bits 0 and 2 with the global quantum bits 3 and 5, as shown in table 1100, to the output circuit C. This enables the information processing device 100 to swap the upper |Q_import| quantum bits, making it easier to avoid performance degradation due to discontinuous memory access.
[0130] Next, we move on to the explanation of Figure 12 and explain how to swap local quantum bits with global quantum bits when the swap gate that swaps global quantum bits is not implemented so that it can be executed without inter-process communication. In the example of Figure 12, Q_import = {3, 5}. Q_exportable = {0, 1, 2}. Qubit order σ = [0, 1, 2, 3, 4, 5].
[0131] 12, if there is a surplus in |Q_exportable| for |Q_import|, the information processing device 100 may add a discontinuous quantum bit among the global quantum bits to Q_import. Then, the information processing device 100 may utilize a fused swap gate to swap the local quantum bit with the global quantum bit at once.
[0132] 12, the information processing device 100 specifically adds quantum bit 4 to Q_import. Specifically, the information processing device 100 adds one fused swap gate that swaps local quantum bits 0 to 2 with global quantum bits 3 to 5, as shown in Table 1210, to the output circuit C. This allows the information processing device 100 to use the fused swap gate to swap the quantum bit of Q_exportable with the quantum bit of Q_import.
[0133] If there is no surplus in |Q_exportable| for |Q_import|, the information processing device 100 may consider swapping the local quantum bit and the global quantum bit in multiple batches. In the example of FIG. 12, the information processing device 100 specifically adds one swap gate to the output circuit C, which swaps the local quantum bit 1 with the global quantum bit 3, as shown in table 1200. The information processing device 100 specifically adds one swap gate to the output circuit C, which swaps the local quantum bit 2 with the global quantum bit 5, as shown in table 1200.
[0134] As shown in Tables 1200 and 1210, the information processing device 100 can utilize the fused swap gate to reduce the processing load imposed when swapping a Q_exportable quantum bit with a Q_import quantum bit. Specifically, the information processing device 100 can reduce the number of gates to be added to the output circuit C. Specifically, the information processing device 100 can reduce the number of times that an operation to swap quantum bits is performed in accordance with the output circuit C. Next, we move on to the explanation of FIG. 13.
[0135] 13, the information processing device 100 detects that the graph G has become empty. When the graph G has become empty, the information processing device 100 adds a swap gate or a fused swap gate to the output circuit C so as to return the qubit order σ to the initial state. The information processing device 100 sets, for example, Qlocal'={0,...,(number of local quantum bits-1)}. The information processing device 100 adds a swap gate or a fused swap gate to the output circuit C based on Qlocal', for example, similar to FIG. 11.
[0136] 13, the information processing device 100 specifically adds a fused swap gate that swaps local quantum bits 5, 4 with global quantum bits 0, 2 to the output circuit C, as shown in table 1300. The information processing device 100 specifically adds a swap gate that swaps local quantum bits 0, 1 to the output circuit C. The information processing device 100 specifically adds a swap gate that swaps global quantum bits 4, 5 to the output circuit C.
[0137] As a result, the information processing device 100 can generate an output circuit C that is logically equivalent to the quantum circuit that received the input and that suppresses the number of times inter-process communication occurs or the amount of communication. Next, moving on to the explanation of Fig. 14, we will explain how to return the qubit order σ to its initial state when a swap gate that swaps global quantum bits is not implemented so as to be executable without inter-process communication.
[0138] 14, when the number of local quantum bits is less than twice the number of global quantum bits, the information processing device 100 swaps quantum bits one by one. Therefore, in this case, the information processing device 100 adds a maximum of (the number of quantum bits-1) swap gates to the output circuit C.
[0139] When the number of local quantum bits is equal to or greater than twice the number of global quantum bits, the information processing device 100 returns the qubit order σ to the initial state as shown below.
[0140] For example, the global quantum bit may include quantum bits numbered (number of local quantum bits) through (number of quantum bits-1). In this case, the information processing device 100 adds a swap gate to the output circuit C so that the upper (number of global quantum bits) quantum bits of the local quantum bits do not include quantum bits numbered (number of local quantum bits) through (number of quantum bits-1). In the example of FIG. 14, specifically, the information processing device 100 adds a swap gate that swaps local quantum bits 0 and 5 with each other to the output circuit C, as shown in table 1400.
[0141] The information processing device 100 adds, for example, a fused swap gate that swaps the most significant (number of global quantum bits) quantum bits of the local quantum bits with the global quantum bit to the output circuit C. In the example of Fig. 14, specifically, the information processing device 100 adds a fused swap gate that swaps the local quantum bits 0 and 3 with the global quantum bits 2 and 4 to the output circuit C as shown in table 1400.
[0142] For example, the information processing device 100 adds a swap gate that rearranges the order of the (number of local quantum bits) to (number of quantum bits-1) quantum bits among the upper (number of global quantum bits) quantum bits of the local quantum bits to the output circuit C. In the example of Fig. 14, specifically, the information processing device 100 adds two swap gates that rearrange the order of the local quantum bits 2, 4, and 5 to the output circuit C as shown in table 1400.
[0143] The information processing device 100 adds, for example, a fused swap gate that swaps the most significant (number of global quantum bits) quantum bits of the local quantum bits with the global quantum bit to the output circuit C. In the example of Fig. 14, specifically, the information processing device 100 adds a fused swap gate that swaps the local quantum bits 4 and 5 with the global quantum bits 0 and 3 to the output circuit C as shown in table 1400.
[0144] The information processing device 100 adds, for example, a swap gate that rearranges the local quantum bits in order to the output circuit C. In the example of Fig. 14, specifically, the information processing device 100 adds two swap gates that rearrange the local quantum bits 0, 1, and 2 in order to the output circuit C, as shown in table 1400. This allows the information processing device 100 to appropriately swap multiple quantum bits so as to return the qubit order σ to the initial state.
[0145] (Specific example of operation of information processing device 100) Next, a specific example of the operation of the information processing device 100 will be described with reference to FIGS.
[0146] 15 to 18 are explanatory diagrams showing a specific example of the operation of the information processing device 100. In FIG. 15, it is assumed that the information processing device 100 receives an input of a quantum circuit 1500. The quantum circuit 1500 includes gates 1510 to 1518. The information processing device 100 generates a DAG 1520 corresponding to the quantum circuit 1500. The DAG 1520 includes nodes 1530 to 1538 representing the gates 1510 to 1518, respectively. Next, we move on to the description of FIG. 16.
[0147] 16, (16-1) the information processing device 100 identifies nodes 1530-1532 representing gates that are not related to a global quantum bit and do not generate inter-process communication, based on the qubit order σ. The information processing device 100 identifies, among the identified nodes 1530-1532, nodes 1530-1532 that are not connected to a directed edge starting from another node and represent gates that can be executed without depending on other gates, based on the DAG 1520. The information processing device 100 removes the identified nodes 1530-1532 from the DAG 1520. The information processing device 100 adds gates 1610-1612 represented by the identified nodes 1530-1532 to the output circuit 1600.
[0148] (16-2) The information processing device 100 identifies nodes 1533-1538 that are related to the global quantum bit and represent one or more gates where inter-process communication occurs, based on the latest qubit order σ. The information processing device 100 identifies nodes 1533-1536, among the identified nodes 1533-1538, that are not connected to a directed edge starting from another node and represent one or more gates that can be executed without depending on other gates. Based on the identified nodes 1533-1536, the information processing device 100 identifies a set Qlocal'={2,3,4} of quantum bits to be set locally next.
[0149] (16-3) The information processing device 100 updates the qubit order σ based on Qlocal′={2,3,4}, and adds a swap gate 1620 and a fused swap gate 1630 to the output circuit 1600. Next, the description will move to FIG.
[0150] 17, (17-1) the information processing device 100 identifies nodes 1533 to 1536 representing gates that are not related to a global quantum bit and do not generate inter-process communication based on the latest qubit order σ. The information processing device 100 identifies nodes 1533 and 1534, among the identified nodes 1533 to 1536, representing gates that are not connected to a directed edge starting from another node and that can be executed without depending on another gate, based on the latest DAG 1520. The information processing device 100 removes the identified nodes 1533 and 1534 from the DAG 1520. The information processing device 100 adds gates 1700 and 1701 represented by the identified nodes 1533 and 1534 to the output circuit 1600.
[0151] The information processing device 100 identifies nodes 1535, 1536 representing gates that are not related to a global quantum bit and do not generate inter-process communication, based on the latest qubit order σ. The information processing device 100 identifies a node 1535, among the identified nodes 1535, 1536, based on the latest DAG 1520, that is not connected to a directed edge starting from another node and represents a gate that can be executed without depending on other gates. The information processing device 100 removes the identified node 1535 from the DAG 1520. The information processing device 100 adds a gate 1702 represented by the identified node 1535 to the output circuit 1600.
[0152] The information processing device 100 identifies a node 1536 representing a gate that is not related to a global quantum bit and does not generate inter-process communication, based on the latest qubit order σ. The information processing device 100 identifies, among the identified nodes 1536, a node 1536 that is not connected to a directed edge starting from another node and represents a gate that can be executed without depending on another gate, based on the latest DAG 1520. The information processing device 100 removes the identified node 1536 from the DAG 1520. The information processing device 100 adds a gate 1702 represented by the identified node 1536 to the output circuit 1600.
[0153] (17-2) The information processing device 100 identifies nodes 1537, 1538 that are related to the global quantum bit and represent one or more gates where inter-process communication occurs, based on the latest qubit order σ. The information processing device 100 identifies, among the identified nodes 1537, 1538, nodes 1537, 1538 that are not connected to a directed edge starting from another node and represent one or more gates that can be executed without depending on other gates. Based on the identified nodes 1537, 1538, the information processing device 100 identifies a set Qlocal'={0,1,2} of quantum bits to be set locally next.
[0154] (17-3) The information processing device 100 updates the qubit order σ based on Qlocal′={0,1,2}, and adds a fused swap gate 1710 to the output circuit 1600. Next, the description will move to FIG.
[0155] 18, (18-1) the information processing device 100 identifies nodes 1537, 1538 representing gates that are not related to a global quantum bit and do not generate inter-process communication, based on the latest qubit order σ. The information processing device 100 identifies, among the identified nodes 1537, 1538, node 1537, which is not connected to a directed edge starting from another node, and represents a gate that can be executed without depending on other gates, based on the latest DAG 1520. The information processing device 100 removes the identified node 1537 from the DAG 1520. The information processing device 100 adds a gate 1801 represented by the identified node 1537 to the output circuit 1600.
[0156] The information processing device 100 identifies a node 1538 representing a gate that is not related to a global quantum bit and does not generate inter-process communication, based on the latest qubit order σ. The information processing device 100 identifies, among the identified nodes 1538, a node 1538 that is not connected to a directed edge starting from another node and represents a gate that can be executed without depending on another gate, based on the latest DAG 1520. The information processing device 100 removes the identified node 1538 from the DAG 1520. The information processing device 100 adds a gate 1802 represented by the identified node 1538 to the output circuit 1600.
[0157] (18-2) The information processing device 100 detects that the DAG 1520 has become empty. Because the DAG 1520 has become empty, the information processing device 100 adds a swap gate 1810 to the output circuit 1600 so as to return the qubit order σ to the initial state. This enables the information processing device 100 to generate an output circuit 1600 that is logically equivalent to the quantum circuit 1500 that has received the input, and in which the number of times inter-process communications occur or the amount of communication is suppressed.
[0158] (First application example of the information processing device 100) Next, a first application example of the information processing device 100 will be described with reference to FIG.
[0159] Fig. 19 is an explanatory diagram showing a first application example of the information processing device 100. In Fig. 19, it is assumed that the information processing device 100 receives an input to a quantum circuit 1900. The quantum circuit 1900 includes gates 1910 to 1913. The gates 1910 to 1913 are general-purpose gates. The amount of communication between processes occurring in the quantum circuit 1900 is, for example, 7M, where M is 2^ (the number of local quantum bits).
[0160] It is assumed that the information processing device 100 generates a quantum circuit 1920 that is logically equivalent to the quantum circuit 1900. The quantum circuit 1920 includes gates 1930 to 1933 corresponding to the gates 1910 to 1913, respectively. The quantum circuit 1920 includes a swap gate 1940, a fused swap gate 1950, and swap gates 1960 to 1962. This allows the information processing device 100 to reduce the amount of communication in inter-process communication in the quantum circuit 1920 to 2.75 M.
[0161] (Second Application Example of Information Processing Device 100) Next, a second application example of the information processing device 100 will be described with reference to FIGS.
[0162] 20 and 21 are explanatory diagrams showing a second application example of the information processing device 100. In Fig. 20, it is assumed that the information processing device 100 is applied to a quantum circuit of the Qulacs benchmark. It is assumed that the information processing device 100 performs optimization of the quantum circuit as described above under the measurement conditions shown in Table 2000, and measures the processing time required to perform a series of operations defined in the quantum circuit.
[0163] In the following description, the processing time measured by the information processing device 100 may be expressed as "the processing time of 'w / our opt.'". In addition, the processing time of "w / o opt." and the processing time of "w / existing opt." are adopted as comparative examples with the processing time of "w / our opt.".
[0164] The processing time for "w / o opt." is the processing time when no optimization is performed on the quantum circuit. The processing time for "w / existing opt." is the processing time when conventional optimization is performed on the quantum circuit. Next, we move on to the explanation of Figure 21.
[0165] Graph 2100 in FIG. 21 shows the processing time of "w / our opt.", the processing time of "w / o opt.", and the processing time of "w / existing opt.". As shown in graph 2100, the information processing device 100 can achieve 1.84 times faster update time than "w / o opt.". The information processing device 100 can achieve 1.16 times faster update time than "w / existing opt.".
[0166] As shown in the graph 2100, the information processing device 100 can achieve a speedup of 1.72 times the overall time compared to "w / o opt.". The information processing device 100 can achieve a speedup of 1.35 times the overall time compared to "w / existing opt.". In this way, the information processing device 100 can reduce the processing time required to perform a series of operations defined in a quantum circuit compared to conventional methods.
[0167] (Third Application Example of Information Processing Device 100) Next, a third application example of the information processing device 100 will be described with reference to FIGS.
[0168] 22 and 23 are explanatory diagrams showing a third application example of the information processing device 100. In Fig. 22, it is assumed that the information processing device 100 is applied to a quantum circuit of the Quantum Volume Benchmark (depth=30).
[0169] Assume that the information processing device 100 performs optimization on the quantum circuit as described above under the measurement conditions shown in Table 2200, and measures the processing time required to perform a series of operations defined in the quantum circuit. In the following description, the processing time measured by the information processing device 100 may be referred to as the "processing time of 'w / fused-swap'".
[0170] Also, it is assumed that the information processing device 100 uses gate fusion optimization to perform optimization of the quantum circuit as described above under the measurement conditions shown in Table 2200, and measures the processing time required to perform a series of operations defined in the quantum circuit. In the following description, the processing time measured by the information processing device 100 using gate fusion optimization may be referred to as the "processing time with 'w / fused-swap and gate fusion'".
[0171] Gate fusion optimization is a technique that aims to reduce the number of times a vector's components are updated by replacing multiple gates that reference the same quantum bit with a gate having a representation matrix that is the product of the representation matrices of the multiple gates.
[0172] In addition, the processing time of "w / fused-swap" and the processing time of "w / fused-swap and gate fusion" are used as comparative examples, and the processing time of "w / o opt." and the processing time of "w / gate fusion" are used.
[0173] The processing time for "w / o opt." is the processing time when no optimization is performed on the quantum circuit. The processing time for "w / gate fusion" is the processing time when conventional optimization using gate fusion is performed on the quantum circuit. Next, we move on to the explanation of Figure 23.
[0174] 23 shows the processing time of “w / fused-swap”, the processing time of “w / fused-swap and gate fusion”, the processing time of “w / o opt.”, and the processing time of “w / gate fusion.” As shown in the graph 2300, the information processing device 100 can reduce the processing time to about 1 / 8 compared to “w / o opt.” and “w / existing opt.”.
[0175] Graph 2310 in FIG. 23 shows the communication time for "w / our opt.", the communication time for "w / fused-swap and gate fusion," the communication time for "w / o opt.", and the communication time for "w / existing opt.".
[0176] 23 shows the communication volume of "w / our opt.", the communication volume of "w / fused-swap and gate fusion," the communication volume of "w / o opt.", and the communication volume of "w / existing opt." As shown in the graphs 2310 and 2320, the information processing device 100 can reduce the communication time and communication volume compared to "w / o opt." and "w / existing opt.".
[0177] (Application example of information processing device 100) The information processing device 100 can be applied, for example, to the field of drug discovery. Specifically, in the field of drug discovery, the information processing device 100 can be applied when simulating the movement of atoms forming a substance by using multiple quantum bits in order to analyze the properties of the substance.
[0178] (Overall processing procedure) Next, an example of an overall processing procedure executed by the information processing device 100 will be described with reference to Fig. 24. The overall processing is realized by, for example, the CPU 301, storage areas such as the memory 302 and the recording medium 305, and the network I / F 303 shown in Fig. 3.
[0179] Fig. 24 is a flowchart showing an example of an overall processing procedure. In Fig. 24, the information processing device 100 acquires a quantum circuit I (step S2401). The information processing device 100 generates a directed acyclic graph G corresponding to the acquired quantum circuit I, and generates an empty output circuit C (step S2402).
[0180] The information processing device 100 selects a gate g that has not yet been selected from among the gates g represented by each node n of the acyclic directed graph G (step S2403). The information processing device 100 determines whether the selected gate g satisfies a predetermined condition that it is executable and that no inter-process communication occurs, based on the qubit order σ (step S2404).
[0181] If the predetermined condition is not satisfied (step S2404: No), the information processing device 100 proceeds to step S2406. On the other hand, if the predetermined condition is satisfied (step S2404: Yes), the information processing device 100 proceeds to step S2405.
[0182] In step S2405, the information processing device 100 removes the node n representing the selected gate g from the acyclic directed graph G, sets the selected gate g so as to conform to the qubit order σ, and adds it to the output circuit C (step S2405). The information processing device 100 proceeds to the process of step S2406.
[0183] In step S2406, the information processing device 100 determines whether or not all gates g have been selected among the gates g represented by each node n of the acyclic directed graph G (step S2406). If there are any gates g that have not been selected (step S2406: No), the information processing device 100 returns to the process of step S2403. On the other hand, if all gates g have been selected (step S2406: Yes), the information processing device 100 proceeds to the process of step S2407.
[0184] In step S2407, the information processing device 100 identifies the next set of local quantum bits Qlocal based on the acyclic directed graph G and the qubit order σ (step S2407). The information processing device 100 updates the global / local partition information σ of the quantum bits based on the identified next set of local quantum bits Qlocal (step S2408). The information processing device 100 adds one or more swap gates s that swap global and local to the output circuit C so as to conform to the updated global / local partition information σ of the quantum bits (step S2409).
[0185] The information processing device 100 determines whether the acyclic directed graph G is empty (step S2410). If the acyclic directed graph G is not empty (step S2410: No), the information processing device 100 returns to the process of step S2403. On the other hand, if the acyclic directed graph G is empty (step S2410: Yes), the information processing device 100 proceeds to the process of step S2411.
[0186] In step S2411, the information processing device 100 sets the partition information σ between the global and local of the quantum bit to an initial state (step S2411). The information processing device 100 adds one or more swap gates s that swap the global and local to the output circuit C so as to conform to the partition information σ between the global and local of the quantum bit (step S2412). The information processing device 100 ends the entire process.
[0187] As described above, the information processing device 100 can obtain a first quantum circuit that specifies, in a time series, a plurality of gates that represent the execution of operations on one or more different quantum bits for a plurality of quantum bits. The information processing device 100 can generate an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing the execution order of operations between the gates represented by the different nodes, based on the obtained first quantum circuit. The information processing device 100 can identify, based on the generated acyclic directed graph, one or more quantum bits that are referenced by one or more first gates that are executable without depending on other gates and that generate inter-process communication, among the plurality of gates. The information processing device 100 can generate a second quantum circuit that includes one or more swap gates that swap local quantum bits with global quantum bits immediately before one or more first gates so that the identified one or more quantum bits become local. This allows the information processing device 100 to generate a second quantum circuit in which the number of times inter-process communication occurs or the amount of communication is suppressed, making it easier to perform a series of operations related to a plurality of quantum bits.
[0188] According to the information processing device 100, each time one or more quantum bits are identified, one or more second gates that can be executed independently of other gates and do not generate inter-process communication among the multiple gates can be identified based on the acyclic directed graph. According to the information processing device 100, each time one or more second gates are identified, a node representing each of the identified one or more second gates can be removed from the acyclic directed graph. According to the information processing device 100, each time one or more quantum bits are identified, one or more swap gates that swap local quantum bits with global quantum bits can be added to the template circuit so that the identified one or more quantum bits become local. According to the information processing device 100, each time one or more second gates are identified, the identified one or more second gates can be added to the template circuit. This allows the information processing device 100 to appropriately generate the second quantum circuit in stages.
[0189] According to the information processing device 100, before the first identification of one or more quantum bits, it is possible to once identify, among the multiple gates, one or more second gates that can be executed independently of other gates and that do not generate inter-process communication, based on the acyclic directed graph. This allows the information processing device 100 to appropriately generate a second quantum circuit so as to include one or more second gates at the beginning.
[0190] According to the information processing device 100, when the acyclic directed graph is empty, one or more swap gates can be added to the end of the template circuit so that one or more quantum bits that are local in the initial state return to local. This allows the information processing device 100 to appropriately generate the second quantum circuit.
[0191] According to the information processing device 100, when one or more quantum bits are identified, it is possible to determine whether or not the number of quantum bits to be swapped is four or more based on the identified one or more quantum bits. According to the information processing device 100, if the number is four or more, one or more swap gates including a fused swap gate can be added to the template circuit so that the identified one or more quantum bits are local. This allows the information processing device 100 to reduce the number of times inter-process communication occurs or the amount of communication.
[0192] According to the information processing device 100, it is possible to sequentially select, from among a plurality of gates, a gate that can be executed without depending on other gates and that generates inter-process communication, based on the acyclic directed graph. According to the information processing device 100, each time a gate is selected, a process of adding a quantum bit related to the gate to a group can be repeatedly performed within a range in which the number of quantum bits included in the group does not exceed an upper limit of local quantum bits. According to the information processing device 100, it is possible to identify one or more quantum bits included in a group. This allows the information processing device 100 to appropriately identify one or more quantum bits.
[0193] According to the information processing device 100, it is possible to identify multiple combinations of gates in which inter-process communication occurs, which reference one or more quantum bits that are executable without depending on other gates and are equal to or less than the upper limit of local quantum bits, based on the acyclic directed graph. According to the information processing device 100, it is possible to identify one or more quantum bits referenced by one or more first gates in which inter-process communication occurs, which is the combination including the largest number of gates among the multiple combinations. This allows the information processing device 100 to appropriately identify one or more quantum bits.
[0194] The information processing method described in this embodiment can be realized by executing a prepared program on a computer such as a PC or a workstation. The information processing program described in this embodiment is recorded on a computer-readable recording medium, and is executed by being read from the recording medium by the computer. The recording medium may be a hard disk, a flexible disk, a CD (Compact Disc)-ROM, an MO (Magneto Optical disc), a DVD (Digital Versatile Disc), or the like. The information processing program described in this embodiment may also be distributed via a network such as the Internet.
[0195] The following supplementary notes are further disclosed regarding the above-described embodiment.
[0196] (Appendix 1) A first quantum circuit is obtained that specifies, in a time series, a plurality of gates each representing an operation performed on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits; Based on the acquired first quantum circuit, generate an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing an execution order of operations between the gates represented by different nodes; Identifying one or more qubits referenced by one or more first gates in which inter-process communication occurs, each of which references one or more qubits that are executable independently of other gates and are equal to or smaller than a local qubit upper limit, among the plurality of gates, based on the generated acyclic directed graph; generating a second quantum circuit logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately preceding the one or more first gates, the swap gates swapping local quantum bits with global quantum bits such that the one or more identified quantum bits become local; An information processing program that causes a computer to execute a process.
[0197] (Supplementary Note 2) Each time the one or more quantum bits are identified, one or more second gates among the plurality of gates are identified based on the acyclic directed graph, the second gates being executable independently of other gates and each of which does not generate inter-process communication; each time the one or more second gates are identified, removing from the acyclic directed graph a node representing each of the one or more identified second gates; causing the computer to execute a process; The process of generating the second quantum circuit includes: and each time the one or more quantum bits are identified, adding one or more swap gates to a template circuit to swap local quantum bits with global quantum bits so that the identified one or more quantum bits become local, and each time the one or more second gates are identified, adding the identified one or more second gates to the template circuit, thereby generating the second quantum circuit.
[0198] (Additional Note 3) The process of identifying the one or more second gates includes: 3. The information processing program according to claim 2, further comprising: before initially identifying the one or more quantum bits, one or more second gates among the plurality of gates are identified based on the acyclic directed graph, the second gates being executable independently of other gates and each of which does not generate inter-process communication.
[0199] (Additional Note 4) The process of generating the second quantum circuit includes: and generating the second quantum circuit by adding one or more swap gates to the end of the template circuit when the acyclic directed graph is empty, the swap gates swapping local quantum bits with global quantum bits so that one or more quantum bits that are local in an initial state return to being local, and terminating the process of generating the second quantum circuit.
[0200] (Additional Note 5) The process of generating the second quantum circuit includes: 5. The information processing program according to any one of appendices 2 to 4, wherein when the one or more quantum bits are identified, if the number of quantum bits to be swapped based on the identified one or more quantum bits is four or more, one or more swap gates including a fused swap gate are added to the template circuit to swap local quantum bits with global quantum bits so that the identified one or more quantum bits become local.
[0201] (Appendix 6) The process of identifying one or more quantum bits includes: The information processing program according to any one of appendices 2 to 4, characterized in that, based on the acyclic directed graph, a gate that can be executed independently of other gates and that generates inter-process communication is selected from the plurality of gates, and each time the gate is selected, the quantum bit associated with the selected gate is added to a group, the process being repeated to a degree that the number of quantum bits included in the group does not exceed an upper limit for local quantum bits, and then one or more quantum bits included in the group are identified.
[0202] (Appendix 7) The process of identifying one or more quantum bits includes: The information processing program according to any one of appendices 2 to 4, characterized in that, based on the acyclic directed graph, one or more quantum bits referenced by one or more first gates in which inter-process communication occurs are identified, which is the combination including the largest number of gates among multiple combinations of gates in which inter-process communication occurs, and which reference one or more quantum bits that are equal to or less than an upper limit of local quantum bits and that can be executed without depending on other gates.
[0203] (Appendix 8) A first quantum circuit is obtained that specifies a plurality of gates in a time series, each of which represents an operation performed on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits; Based on the acquired first quantum circuit, generate an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing an execution order of operations between the gates represented by different nodes; Identifying one or more qubits referenced by one or more first gates in which inter-process communication occurs, each of which references one or more qubits that are executable independently of other gates and are equal to or smaller than a local qubit upper limit, among the plurality of gates, based on the generated acyclic directed graph; generating a second quantum circuit logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately preceding the one or more first gates, the swap gates swapping local quantum bits with global quantum bits such that the one or more identified quantum bits become local; An information processing method characterized in that the processing is executed by a computer.
[0204] (Appendix 9) A first quantum circuit is obtained that specifies a plurality of gates in a time series, each of which represents an operation performed on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits; Based on the acquired first quantum circuit, generate an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing an execution order of operations between the gates represented by different nodes; Identifying one or more qubits referenced by one or more first gates in which inter-process communication occurs, each of which references one or more qubits that are executable independently of other gates and are equal to or smaller than a local qubit upper limit, among the plurality of gates, based on the generated acyclic directed graph; generating a second quantum circuit logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately preceding the one or more first gates, the swap gates swapping local quantum bits with global quantum bits such that the one or more identified quantum bits become local; An information processing device comprising a control unit. [Explanation of symbols]
[0205] 100 Information processing device 110 First quantum circuit 121~123,910~913,1010~1013,1510~1518,1610~1612,1700~1702,1801,1802,1910~1913,1930~1933 Gate 130,1020,1520 Acyclic directed graphs 141~143,1030~1033,1530~1538 nodes 150 Second quantum circuit 160,930,950,1620,1810,1940,1960~1962 Swapgate 200 Information Processing Systems 201 Processing unit 202 Client device 210 Network 300 Bus 301 CPU 302 Memory 303 Network Interface 304 Recording media I / F 305 Recording media 400 Storage section 401 Acquisition Department 402 1st generation part 403 1st Specific Part 404 Second Specific Section 405 Second generation part 406 Simulation Department 407 Output section 500 State Vectors 510,900,920,940,1000,1500,1900,1920 quantum circuit 600 qubits 710,711,720,721,800,1100,1200,1210,1300,1400,2000,2200 Table 1600 Output circuit 1630,1710,1950 Fused Swap Gate 2100,2300,2310,2320 Graph
Claims
1. A first quantum circuit is obtained that defines a plurality of gates in a time series, each gate representing an operation performed on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits; generating an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing an order of execution of operations between the gates represented by different nodes based on the obtained first quantum circuit; Identifying one or more quantum bits referenced by one or more first gates in which inter-process communication occurs, each of which references one or more quantum bits that are equal to or smaller than a local quantum bit upper limit and that can be executed independently of other gates, among the plurality of gates, based on the generated acyclic directed graph; generating a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately before the one or more first gates that swap local quantum bits with global quantum bits so that the one or more identified quantum bits become local; An information processing program that causes a computer to execute a process.
2. Each time the one or more quantum bits are identified, one or more second gates are identified among the plurality of gates based on the acyclic directed graph, the second gates being executable independently of other gates and each of which does not generate inter-process communication; each time the one or more second gates are identified, removing from the acyclic directed graph a node representing each of the one or more identified second gates; causing the computer to execute a process; The process of generating the second quantum circuit includes:
2. The information processing program according to claim 1, wherein each time the one or more quantum bits are identified, one or more swap gates that swap local quantum bits with global quantum bits so that the identified one or more quantum bits become local are added to a template circuit, and each time the one or more second gates are identified, the one or more identified second gates are added to the template circuit, thereby generating the second quantum circuit.
3. The process of identifying the one or more second gates includes:
3. The information processing program according to claim 2, further comprising: before initially identifying the one or more quantum bits, one or more second gates among the plurality of gates that can be executed independently of other gates and that do not generate inter-process communication are identified based on the acyclic directed graph.
4. The process of generating the second quantum circuit includes:
4. The information processing program according to claim 3, wherein, when the acyclic directed graph is empty, the second quantum circuit is generated by adding one or more swap gates to the end of the template circuit to swap local quantum bits with global quantum bits so that one or more quantum bits that are local in an initial state return to local, and the process of generating the second quantum circuit is terminated.
5. The process of generating the second quantum circuit includes: When the one or more quantum bits are identified, if the number of quantum bits to be swapped based on the identified one or more quantum bits is four or more, one or more swap gates including a fused swap gate are added to the template circuit to swap local quantum bits with global quantum bits so that the identified one or more quantum bits become local. The information processing program according to any one of claims 2 to 4.
6. A first quantum circuit is obtained that defines a plurality of gates in a time series, each gate representing an operation performed on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits; generating an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing an order of execution of operations between the gates represented by different nodes based on the obtained first quantum circuit; Identifying one or more quantum bits referenced by one or more first gates in which inter-process communication occurs, each of which references one or more quantum bits that are equal to or smaller than a local quantum bit upper limit and that can be executed independently of other gates, among the plurality of gates, based on the generated acyclic directed graph; generating a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately before the one or more first gates that swap local quantum bits with global quantum bits so that the one or more identified quantum bits become local; An information processing method characterized in that the processing is executed by a computer.
7. A first quantum circuit is obtained that defines a plurality of gates in a time series, each gate representing an operation performed on one or more different quantum bits, for a plurality of quantum bits including one or more local quantum bits and one or more global quantum bits; generating an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing an order of execution of operations between the gates represented by different nodes based on the obtained first quantum circuit; Identifying one or more quantum bits referenced by one or more first gates in which inter-process communication occurs, each of which references one or more quantum bits that are equal to or smaller than a local quantum bit upper limit and that can be executed independently of other gates, among the plurality of gates, based on the generated acyclic directed graph; generating a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including one or more swap gates immediately before the one or more first gates that swap local quantum bits with global quantum bits so that the one or more identified quantum bits become local; An information processing device comprising a control unit.
Citation Information
Patent Citations
Device and methods for a quantum circuit simulator
US20210049496A1
