Information processing program, information processing method, and information processing device

By generating a second quantum circuit with reduced inter-process communication through swap gate insertion, the method addresses the inefficiencies in processing multiple quantum bits, achieving improved processing efficiency and time reduction.

WO2024202575A1PCT designated stage expired Publication Date: 2024-10-03FUJITSU LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2024/004241
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-29
Filing Date
2024-02-08
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

Conventional methods face challenges in efficiently performing series of operations on 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.

Method used

The approach involves generating a second quantum circuit that is logically equivalent to the first, by identifying gates where inter-process communication occurs and adding swap gates to swap local and global qubits, reducing the number of inter-process communications and processing time.

Benefits of technology

This method enables efficient execution of operations on multiple quantum bits by reducing processing load and time, as demonstrated through application examples that show significant improvements in processing time and communication efficiency compared to conventional optimization methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2024004241_03102024_PF_FP_ABST
    Figure JP2024004241_03102024_PF_FP_ABST
Patent Text Reader

Abstract

[Problem] To facilitate efficient execution of operations. [Solution] An information processing device 100 obtains a first quantum circuit 110 for n qubits. The information processing device 100 generates a directed acyclic graph 130 on the basis of the obtained first quantum circuit 110. The information processing device 100 identifies one or more gates, for each of which an inter-process communication occurs, and which can be executed independently of other gates and which, as a whole, refer to qubits that are less than or equal to a local qubit upper limit. The information processing device 100 generates a second quantum circuit 150 logically equivalent to the first quantum circuit 110. The second quantum circuit 150 includes, immediately before the one or more identified gates, one or more swap gates for swapping a local qubit and a global qubit so that, at least, the one or more identified qubits are local.
Need to check novelty before this filing date? Find Prior Art

Description

Information processing program, information processing method, and information processing device

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

[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 having, as components, the probability that the combinations of quantum states represented by each quantum bit are "00," "01," "10," and "11." Furthermore, each component of the vector may be shared and handled by multiple processes. In this case, when a predetermined operation is performed on one or more quantum bits, inter-process communication may occur between multiple processes responsible for different components.

[0003] Prior art techniques include, for example, exchanging the global qubits involved in an operation with the local qubits.

[0004] US Patent Application Publication No. 2021 / 0049496

[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 increases the processing load and processing time required to perform the series of operations.

[0006] In one aspect, the present invention aims to facilitate efficient implementation of calculations.

[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, in a chronological order, a plurality of gates that each represent 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, based on the acquired first quantum circuit, an acyclic directed graph that includes nodes representing each of the plurality of gates and directed edges that represent 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 through which inter-process communication occurs, each of which references one or more quantum bits that are not greater than an upper limit of the local quantum bits and that can be executed independently of other gates; and generate a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including, immediately before the one or more first gates, one or more swap gates that swap the local quantum bit with the global quantum bit so that the identified one or more quantum bits become local.

[0008] According to one aspect, it is possible to facilitate efficient implementation of calculations.

[0009] FIG. 1 is an explanatory diagram illustrating an example of an information processing method according to an embodiment. FIG. 2 is an explanatory diagram illustrating an example of an information processing system 200. FIG. 3 is a block diagram illustrating an example of a hardware configuration of an information processing device 100. FIG. 4 is a block diagram illustrating an example of a functional configuration of the information processing device 100. FIG. 5 is an explanatory diagram (part 1) illustrating an operation flow of the information processing device 100. FIG. 6 is an explanatory diagram (part 2) illustrating an operation flow of the information processing device 100. FIG. 7 is an explanatory diagram (part 3) illustrating an operation flow of the information processing device 100. FIG. 8 is an explanatory diagram (part 4) illustrating an operation flow of the information processing device 100. FIG. 9 is an explanatory diagram (part 5) illustrating an operation flow of the information processing device 100. FIG. 10 is an explanatory diagram (part 1) illustrating an example of an operation of the information processing device 100. FIG. 11 is an explanatory diagram (part 2) illustrating an example of an operation of the information processing device 100. FIG. 12 is an explanatory diagram (part 3) illustrating an example of an operation of the information processing device 100. FIG. 13 is an explanatory diagram (part 4) illustrating an example of an operation of the information processing device 100. FIG. 14 is an explanatory diagram (part 5) showing an example of the operation of the information processing device 100. FIG. 15 is an explanatory diagram (part 1) showing a specific example of the operation of the information processing device 100. FIG. 16 is an explanatory diagram (part 2) showing a specific example of the operation of the information processing device 100. FIG. 17 is an explanatory diagram (part 3) showing a specific example of the operation of the information processing device 100. FIG. 18 is an explanatory diagram (part 4) showing a specific example of the operation of the information processing device 100. FIG. 19 is an explanatory diagram showing a first application example of the information processing device 100. FIG. 20 is an explanatory diagram (part 1) showing a second application example of the information processing device 100. FIG. 21 is an explanatory diagram (part 2) showing the second application example of the information processing device 100. FIG. 22 is an explanatory diagram (part 1) showing a third application example of the information processing device 100. FIG. 23 is an explanatory diagram (part 2) showing the third application example of the information processing device 100. FIG. 24 is a flowchart showing an example of an overall processing procedure.

[0010] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, an information processing program, an information processing method, and an information processing device according to embodiments of the present invention will be described in detail with reference to the accompanying drawings.

[0011] (Example of Information Processing Method According to an Embodiment) Fig. 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 that facilitates efficient execution of 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 representing 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 component of the vector is referenced and updated.

[0013] Here, as the number of quantum bits increases, the number of vector components also increases. For this reason, each component of the 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 responsible for different components. If two or more processes in which inter-process communication occurs exist on different computers, network communication may also occur.

[0014] For example, if quantum bits a and b exist, a vector is stored whose components are the probability that the quantum state combination represented by quantum bits a and b is "00", the probability that it is "01", the probability that it is "10", and the probability that it is "11". In the above "**", the value on the left corresponds to the quantum state represented by quantum bit a, and the value on the right corresponds to the quantum state represented by quantum bit b. In this case, for example, process α may be responsible for the probability that the quantum state combination represented by quantum bits a and b is "00" and the probability that it is "01". Also, for example, process β may be responsible for the probability that the quantum state combination represented by quantum bits a and b is "10" and the probability that it 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", resulting in inter-process communication.

[0016] On the other hand, for example, when performing an X gate operation on quantum bit b, it is desirable to swap the probability that the quantum state combination represented by quantum bits a and b is "00" with the probability that it is "01", and to swap the probability that it is "10" with the probability that it is "11". In this case, the same process is responsible for the probability that it is "00" and the probability that it is "01", and the same process is responsible for the probability that it is "10" and the probability that it is "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 example described above, specifically, quantum bit a is a 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 example described above, specifically, quantum bit b is a 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, if inter-process communication occurs when performing any of the operations, it leads to an increase in the processing load and processing time required to perform the series of operations. Specifically, if network communication occurs due to inter-process communication when performing any of the operations, it leads to an increase in the processing load and processing time required to perform the series of operations.

[0019] In response to this, for example, it is conceivable that an operator would manually update the quantum circuit by adding an operation that swaps the local quantum bit with the global quantum bit immediately before an operation that generates inter-process communication in a series of operations. In this case, there is a problem that the workload on the operator increases, and it may be difficult to reduce the processing load and processing time required when performing a series of operations.

[0020] Furthermore, 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 n qubits, m qubits are set as local qubits. For example, when n qubits are arranged in order, the lowest m qubits are set as local qubits. Of n qubits, p qubits are set as global qubits. For example, when n qubits are arranged in order, the highest p qubits are set as global qubits. 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 combination of quantum states represented by each of the top p quantum bits, without overlap. 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, suppose 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 the combination of 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 that represent the probability that the quantum state combination of quantum bits 0 to 3 is "00**." * indicates a portion that can be either 0 or 1. The four processes specifically include process 2, which is responsible for four components that represent the probability that the quantum state combination of quantum bits 0 to 3 is "01**." The four processes specifically include process 3, which is responsible for four components that represent the probability that the quantum state combination of quantum bits 0 to 3 is "10**." The four processes specifically include process 4, which is responsible for four components that represent the probability that the quantum state combination 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 defines 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 that an operation is performed 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 execution of operations between the gates 121 to 123. For example, the directed edge starts from a node corresponding to the operation to be executed first of two consecutive operations, and ends from a node corresponding to the operation to be executed later.

[0029] (1-3) The information processing device 100 identifies one or more gates at which inter-process communication occurs, each of which references quantum bits that are executable independently of other gates and that are equal to or less 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 locally settable quantum bits. 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 specifically means that a directed edge starting from a gate 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 for which inter-process communication occurs, which can be executed without depending on other gates, and which reference two quantum bits equal to or less than the upper limit, 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 immediately before the one or more identified gates that swaps local quantum bits with global quantum bits so that the one or more identified 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. Specifically, the information processing device 100 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, local quantum bit 1 and global quantum bit 2. The information processing device 100 adds gates 122 and 123 to the template circuit. The information processing device 100 adopts the template circuit as the second quantum circuit 150.

[0034] As a result, the information processing device 100 can generate a second quantum circuit 150 that is logically equivalent to the first quantum circuit 110, but that has a smaller number of inter-process communications or a smaller amount of communication than the first quantum circuit 110. This makes it easier for the information processing device 100 to 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 when performing a series of operations.

[0035] (1-5) The information processing device 100 controls multiple processes in accordance with the generated second quantum circuit 150 and performs a simulation that simulates changes in the combination of quantum states due to a series of operations defined in the second quantum circuit 150. The processes may be, for example, possessed by 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 independently of other gates and that each generate inter-process communication has been described, but this is not limited to this. For example, the information processing device 100 may also identify one or more gates that can be executed independently of 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 identified 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 independently of other gates and that each generate inter-process communication. An example of this case will be described below using Figures 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 this is not limiting. 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 this is not limiting. For example, the information processing device 100 may also cooperate with another computer. Specifically, the information processing device 100 may also transmit the second quantum circuit 150 to another computer having multiple processes. The multiple processes may be possessed by different computers. For example, multiple computers may also cooperate to realize the functions of the information processing device 100. Specifically, the functions of the information processing device 100 may also be realized on the cloud.

[0039] (Example of 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 the information processing device 100, one or more processors 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 defines gates representing each operation of a series of operations in chronological order for 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, for example, sets m local quantum bits and p global quantum bits out of 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 below with reference to FIGS. 5 to 18 .

[0044] The information processing device 100 controls the multiple arithmetic processing devices 201 to share the simulation of changes in the combination of quantum states due to a series of operations in accordance with the generated second quantum circuit. The information processing device 100, for example, distributes and assigns each component of a vector representing the 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 the result of a simulation that simulates changes 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 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 changes in combinations of quantum states due to a series of operations. The arithmetic processing device 201 has a process that manages one or more components of a vector that represents 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 that it manages. 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 a worker. The client device 202 accepts a designation of a first quantum circuit based on an operational input from the worker. The client device 202 transmits the designated first quantum circuit to the information processing device 100. The client device 202 receives the results of a simulation from the information processing device 100. The client device 202 outputs the results of the simulation so that the worker can refer to them. 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 this is not limiting. For example, the information processing device 100 may have the functions of the arithmetic processing device 201 and 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 this is not limiting. For example, the information processing device 100 may have the functions of the client device 202 and operate as the client device 202.

[0049] (Example of Hardware Configuration of Information Processing Apparatus 100) Next, an example of the hardware configuration of the information processing apparatus 100 will be described with reference to FIG.

[0050] Fig. 3 is a block diagram showing an example of the 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. Furthermore, each component is connected to each other by a bus 300.

[0051] Here, the CPU 301 is responsible for overall control of the information processing device 100. The memory 302 includes, for example, a read-only memory (ROM), a random access memory (RAM), and a flash ROM. Specifically, for example, the flash ROM and 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 via a communication line, and is connected to other computers via the network 210. The network I / F 303 manages the internal interface with the network 210 and controls the 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 and writing of data from and 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), or a universal serial bus (USB) port. 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, or a USB memory. The recording medium 305 may be detachable from the information processing device 100.

[0054] In addition to the components described above, the information processing device 100 may also include, for example, a keyboard, a mouse, a display, a printer, a scanner, a microphone, a speaker, etc. The information processing device 100 may also include a plurality of recording medium I / Fs 304 and recording media 305. The information processing device 100 may also not include the recording medium I / Fs 304 and recording media 305.

[0055] (Example of Hardware Configuration of Processing Unit 201) The example of the hardware configuration of the processing unit 201 is specifically similar to the example of the hardware configuration of the information processing unit 100 shown in FIG. 3, and therefore description thereof will be omitted.

[0056] (Example of Hardware Configuration of Client Device 202) The example of the hardware configuration of the client device 202 is specifically similar to the example of the hardware configuration of the information processing device 100 shown in FIG. 3, and therefore description thereof will be omitted.

[0057] (Example of Functional Configuration of Information Processing Apparatus 100) Next, an example of the functional configuration of the information processing apparatus 100 will be described with reference to FIG.

[0058] 4 is a block diagram showing an example of the 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 using the network I / F 303. The processing results of each functional unit are stored in 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 referenced or updated during processing by each functional unit. The storage unit 400 stores, for example, a first quantum circuit. The first quantum circuit is a quantum circuit related to multiple quantum bits. The multiple quantum bits include one or more local quantum bits and one or more global quantum bits. The first quantum circuit defines multiple gates in chronological order, 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 that identifies local quantum bits and global quantum bits among the multiple quantum bits. The local quantum bits and global quantum bits can be swapped. For example, the local quantum bits and global quantum bits are swapped by changing one quantum bit from local to global and another quantum bit from global to local. 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 multiple quantum bits. The second quantum circuit defines, in a time series, multiple gates, each representing the execution of an operation on one or more different quantum bits. The second quantum circuit is a quantum circuit 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 types of information used in processing by each functional unit. The acquisition unit 401 stores the acquired various types of information in the storage unit 400 or outputs it to each functional unit. The acquisition unit 401 may also output the various types of information stored in the storage unit 400 to each functional unit. The acquisition unit 401 acquires various types of information based on, for example, a user's operation input. The acquisition unit 401 may also receive various types of information from, for example, a device other than 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 input of the first quantum circuit based on an operational input from 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 acquisition unit 401 acquires, for example, identification information that distinguishes between a local quantum bit and a global quantum bit. Specifically, the acquisition unit 401 acquires the identification information by accepting input of the identification information based on an operation input by a user. Specifically, the acquisition 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 to start processing of any of the functional units. The start trigger may be, for example, a predetermined operational input by a user. The start trigger may be, for example, reception of predetermined information from another computer. The start trigger may be, for example, output of predetermined information by any of the functional units. The acquisition unit 401 receives, for example, acquisition of the first quantum circuit as a start trigger to start 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 a directed acyclic 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] The first identification unit 403 identifies, based on the generated acyclic directed graph, one or more first gates among the multiple gates that can be executed independently of other gates and that each generate inter-process communications referencing a quantum bit that is equal to or less than the upper limit of local quantum bits. 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 independently of other gates refer to, for example, a state in which one or more first gates as a whole are executable independently of other gates, or, more specifically, 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 first gates of the one or more first gates.

[0071] The one or more first gates that are executable independently of other gates may be, for example, a state in which each of the one or more first gates is executable independently of other gates. Specifically, the one or more first gates that are executable independently of other gates may be a state in which, for each of the one or more first gates, a directed edge originating from a 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 that represents 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 that is 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 that represents the execution of an operation not expressed by a diagonal matrix and is 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 the result of determining whether or not a gate is a gate at which inter-process communication occurs. More specifically, the first identification unit 403 starts from a gate at which inter-process communication that can be executed independently of other gates occurs, and identifies one or more first gates at which inter-process communication that can be executed independently of other gates as a whole occurs.

[0075] Specifically, the first identification unit 403 may sequentially select gates that can be executed independently of other gates and that generate inter-process communication based on the acyclic directed graph. Specifically, each time the first identification unit 403 selects a gate, it repeatedly adds the quantum bit associated with the selected gate to a group, within a range in which the number of quantum bits included in the group does not exceed an upper limit for 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 to be included in the group.

[0076] Specifically, the first identification unit 403 may identify, based on the acyclic directed graph, multiple combinations of gates that generate inter-process communication and reference one or more quantum bits that are executable independently of other gates and are equal to or less than the upper limit of local quantum bits. The first identification unit 403 identifies, among the multiple combinations, one or more gates that generate inter-process communication and that are the combination that includes the largest number of gates, as one or more first gates. The first identification unit 403 then identifies one or more quantum bits referenced by the identified one or more first gates. This allows the first identification unit 403 to obtain guidelines for generating a second quantum circuit.

[0077] The second identifying unit 404 identifies, from 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.

[0078] One or more second gates that are executable independently of other gates refer to, for example, a state in which one or more second gates as a whole are executable independently of other gates, or, more specifically, a state in which a directed edge starting from a 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 independently of other gates may be, for example, a state in which each of the one or more second gates is executable independently of other gates. Specifically, the one or more second gates that are executable independently of other gates may be a state in which, for each of the one or more second gates, a directed edge originating from a gate different from 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. For example, 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] Specifically, the second identification unit 404 determines that a gate that represents the execution of an operation expressed by a diagonal matrix is ​​a gate in which inter-process communication does not occur. Specifically, the second identification unit 404 determines that a gate that is not related to a global quantum bit is a gate in which inter-process communication does not occur. Specifically, the second identification unit 404 determines that a gate that represents the execution of an operation not expressed by a diagonal matrix and is 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 determining whether or not a gate is one in which inter-process communication occurs. More specifically, the second identification unit 404 starts from a gate in which inter-process communication that can be executed independently of other gates does not occur, and identifies one or more second gates in which inter-process communication that can be executed independently of other gates as a whole does not occur.

[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 respective 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 so that the identified gates can be distinguished and so as to be suitable for the purpose of generating a second quantum circuit.

[0085] The second generation 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 immediately before the one or more first gates identified by the first identification unit 403, which swap local quantum bits with global quantum bits so that the one or more quantum bits identified by the first identification unit 403 become local.

[0086] The second generation unit 405 prepares, for example, an empty template circuit. For example, every time the second identification unit 404 identifies one or more second gates, the second generation unit 405 adds the one or more second gates identified by the second identification unit 404 to the template circuit. This allows the second generation unit 405 to generate second quantum circuits 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 are 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 were 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 that share the respective components of a vector that represents a combination of quantum states, and performs a simulation that simulates 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 calculation processing device 201. This allows the simulation unit 406 to efficiently perform a simulation that simulates a change in the combination of quantum states due to a series of operations.

[0090] The output unit 407 outputs the processing results of at least one of the functional units. The output format may be, for example, display on a display, printout to 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. This allows the output unit 407 to notify the user of the processing results 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 results of the simulation performed by the simulation unit 406. Specifically, the output unit 407 outputs the results of the simulation performed by the simulation unit 406 so that the user can refer to them. Specifically, the output unit 407 may transmit the results of the simulation performed by the simulation unit 406 to another computer. In this way, the output unit 407 can make the results of the simulation performed by the simulation unit 406 available externally.

[0093] (Operational Flow of Information Processing Device 100) Next, the operational flow of the information processing device 100 will be described with reference to FIGS.

[0094] 5 to 9 are explanatory diagrams showing the flow of operation of the information processing device 100. Specifically, FIG. 5 shows an example of a state vector 500 that represents a combination of quantum states. In FIG. 5, it is assumed that there are n quantum bits. In the example of FIG. 5, it is assumed that n=4 and that 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 quantum bits 0 to 3.

[0095] The state vector 500 has components that represent the probability that the quantum state combination of the quantum bits 0 to 3 is "0000" to "1111", for example. In the following explanation, the component that represents the probability that the quantum state combination of the quantum bits 0 to 3 is "****" is referred to as "c **** * indicates a part that takes on either the value 0 or 1.

[0096] Starting from the first gate of the quantum circuit 510, each component of the state vector is updated in accordance with that gate, thereby performing a simulation that simulates changes in the combination of quantum states of qubits 0 to 3 due to a series of operations defined in the quantum circuit 510. Specifically, the first is on the left side. Specifically, the information processing device 100 performs the simulation by assigning 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] 6 shows an example of allocating multiple components of a state vector to multiple processes. In FIG. 6, the information processing device 100 receives 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 equally allocates the 2^n components of the state vector 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 starting from the beginning. Specifically, the information processing device 100 allocates each of the divided 2^m components to a different process. Therefore, 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] 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, inter-process communication tends to occur. FIG. 7 shows an operation of an X gate that is not expressed by a diagonal matrix. In the example of FIG. 7, for simplicity of explanation, it is assumed that n=3 and quantum bits 0 to 2 exist. It is also assumed that the most significant quantum bit, 2, is a global quantum bit, and the least significant two quantum bits, 0 and 1, are local quantum bits.

[0100] As shown in table 710 of Figure 7, the operation of the X gate related to local quantum bit 0 swaps components that are handled by the same process and differ only in the value of quantum bit 0. In table 710 of Figure 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] The components after the swapping are 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 local quantum bit 0, it is sufficient to swap components that are handled by the same process and only differ 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 Figure 7, the operation of the X gate related to global quantum bit 2 swaps components that are handled by different processes and only differ in the value of quantum bit 2. In table 720 of Figure 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] The components after the swapping are shown in table 721 of FIG. 7. In table 721 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 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 Figure 8 shows an example of gate types. The gate name field in table 800 is set to a name that identifies the gate. The element count field in table 800 is set to the number of elements related to the operation represented by the gate with the above name, where N = 2^n.

[0105] The number of complex number operations required to update one element in the operation represented by the gate with the above name is set in the Number of Operations / Element field of table 800. Complex number operations include addition, subtraction, multiplication, and multiplication-accumulation, for example.

[0106] The inter-rank transfer volume field in table 800 is set to the number of elements transferred by inter-process communication 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 volume corresponds to, for example, the communication volume.

[0107] As such, depending on the type of gate, inter-process communication tends to occur when performing operations related to global quantum bits. Therefore, it is conceivable that inter-process communication will lead 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 input from a quantum circuit, it generates a new quantum circuit that is logically equivalent to the quantum circuit, but which reduces the number of inter-process communication operations or the amount of communication compared to the quantum circuit.

[0108] For example, as shown in Table 800, the amount of communication related to a swap gate tends to be smaller than the amount of communication related to a general-purpose gate, an X gate, or a Y gate. For this reason, the information processing device 100 specifically uses a swap gate to generate a new quantum circuit that locally moves in advance the quantum bits referenced in the operations represented by various gates. Next, we move on to the explanation of FIG. 9.

[0109] 9, it is assumed that the information processing device 100 receives an input to the quantum circuit 900. (9-1) The information processing device 100 leaves the first gate 910 of the quantum circuit 900 as it is in the quantum circuit 900 because 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 bits 0 and 2 are to be set as local quantum bits because the gate 911 of the quantum circuit 900 is associated with two or fewer quantum bits 0 and 2, including the global quantum bit 2, and can be executed independently of other gates.

[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 immediately after gate 912 because it is a gate associated with the currently local quantum bit 2 and can be executed independently of other gates. The information processing device 100 determines that quantum bits 1 and 3 should be set as the next local quantum bits because gate 912 of quantum circuit 920 is associated with two or fewer quantum bits 1 and 3, including the currently global quantum bits 1 and 3, and can be executed independently of 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 causes 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 that reduces the number of times inter-process communications occur or the amount of communication compared to the quantum circuit 900. By controlling multiple processes in accordance with the quantum circuit 940, the information processing device 100 can efficiently perform a series of operations defined in the quantum circuit 940 while reducing the number of times inter-process communications occur or the amount of communication. The information processing device 100 can essentially perform a series of operations defined in the quantum circuit 900 that has received input.

[0115] (Example of Operation of Information Processing Device 100) Next, an example of 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 receives input from 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 that respectively represent the gates 1010 to 1013. 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.

[0119] The qubit order σ is information that represents, for example, an identifier that identifies each quantum bit arranged in descending 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], etc., 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 the following description will be directed to the case where n = 6. 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. Of the qubit order σ, the three qubits on the left are local, and the three qubits on the right 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 to conform 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. For example, the information processing device 100 determines a set Qlocal′ representing one or more quantum bits to be made local next based on the current graph G and the current qubit order σ.

[0124] The information processing device 100 may, for example, repeatedly search for gates in graph G that are executable without depending on other gates, as long as |Qlocal'|≦(number of local quantum bits). The information processing device 100 may, for example, repeatedly search for gates in graph G that are executable without depending on gates other than the searched gate, as long as |Qlocal'|≦(number of local quantum bits). The information processing device 100 may, for example, repeatedly search for gates in graph G that are executable without depending on gates other than the searched gate, as long as |Qlocal'|≦(number of local quantum bits). The information processing device 100 may, for example, add quantum bits referenced by the searched gate to Qlocal'. |*| is the number of quantum bits of *. 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] For example, the information processing device 100 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 to the output circuit C that swaps local quantum bits so that, for example, the upper |Q_import| quantum bits among the local quantum bits become quantum bits included in Q_exportable. In the example of Fig. 11, the information processing device 100 adds a swap gate to the output circuit C that swaps local quantum bits 0 and 1, as shown in Table 1100.

[0128] For example, the information processing device 100 adds a swap gate to the output circuit C so that the Q_import quantum bit among the global quantum bits is continuous. Swap gates that swap global quantum bits tend to be implemented so that they can be implemented 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 swap gates or fused swap gates to the output circuit C so as to swap the upper |Q_import| number of quantum bits among the local quantum bits with the quantum bit Q_import among the global quantum bits. In the example of Fig. 11, the information processing device 100 adds fused swap gates to the output circuit C that swap local quantum bits 0 and 2 with global quantum bits 3 and 5, as shown in Table 1100. This enables the information processing device 100 to swap the upper |Q_import| number of quantum bits, making it easier to avoid performance degradation due to discontinuous memory accesses.

[0130] Next, we will move on to the explanation of Figure 12 and explain how to swap local qubits with global qubits when the swap gate that swaps global qubits is not implemented so that it can be implemented 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| relative to |Q_import|, the information processing device 100 may add discontinuous quantum bits 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 bits and the global quantum bits at once.

[0132] 12, information processing device 100 specifically adds quantum bit 4 to Q_import. Specifically, information processing device 100 adds one fused swap gate to output circuit C, which swaps local quantum bits 0 to 2 with global quantum bits 3 to 5, as shown in Table 1210. This allows 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| relative to |Q_import|, information processing device 100 may consider swapping local qubits and global qubits in multiple batches. In the example of Fig. 12, information processing device 100 specifically adds one swap gate to output circuit C that swaps local qubit 1 with global qubit 3, as shown in table 1200. Information processing device 100 specifically adds one swap gate to output circuit C that swaps local qubit 2 with global qubit 5, as shown in table 1200.

[0134] As shown in Tables 1200 and 1210, information processing device 100 can utilize fused swap gates to reduce the processing load imposed when swapping the Q_exportable quantum bit with the Q_import quantum bit. Specifically, information processing device 100 can reduce the number of gates added to output circuit C. Specifically, information processing device 100 can reduce the number of times that calculations for swapping quantum bits are performed in accordance with output circuit C. Next, we move on to the description 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 its initial state. The information processing device 100 sets, for example, Qlocal′={0, ..., (number of local qubits-1)}. The information processing device 100 adds, for example, a swap gate or a fused swap gate to the output circuit C based on Qlocal′, similar to FIG. 11.

[0136] 13 , information processing device 100 specifically adds a fused swap gate that swaps local quantum bits 5 and 4 with global quantum bits 0 and 2 to output circuit C, as shown in table 1300. Information processing device 100 specifically adds a swap gate that swaps local quantum bits 0 and 1 to output circuit C. Information processing device 100 specifically adds a swap gate that swaps global quantum bits 4 and 5 to output circuit C.

[0137] As a result, the information processing device 100 is logically equivalent to the quantum circuit that received the input, and can generate an output circuit C in which the number of times inter-process communications occur or the amount of communication is suppressed. Next, we will move on to the explanation of Figure 14 and explain how the qubit order σ is returned to its initial state when the swap gate that swaps global qubits is not implemented so as to be operable without inter-process communication.

[0138] 14, when the number of local qubits is less than twice the number of global qubits, the information processing device 100 swaps qubits one qubit at a time. Therefore, in this case, the information processing device 100 adds a maximum of one swap gates (the number of qubits minus one) to the output circuit C.

[0139] If the number of local qubits is equal to or greater than twice the number of global qubits, the information processing device 100 returns the qubit order σ to its initial state as shown below.

[0140] For example, the global qubit may include qubits numbered (the number of local qubits) to (the number of qubits minus 1). In this case, the information processing device 100 adds a swap gate to the output circuit C so that the qubits numbered (the number of local qubits) to (the number of qubits minus 1) are not included in the upper (the number of global qubits) qubits of the local qubits. In the example of FIG. 14 , the information processing device 100 specifically adds a swap gate to the output circuit C that swaps local qubits 0 and 5 with each other, as shown in Table 1400.

[0141] For example, the information processing device 100 adds a fused swap gate that swaps the most significant (number of global qubits) qubits of the local qubit with the global qubit to the output circuit C. In the example of Fig. 14, the information processing device 100 specifically adds a fused swap gate that swaps the local qubits 0 and 3 with the global qubits 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 qubits) to (number of qubits - 1) qubits that are higher than the local qubits (the number of global qubits) to the output circuit C. In the example of Fig. 14, the information processing device 100 specifically adds two swap gates that rearrange the order of local qubits 2, 4, and 5 to the output circuit C, as shown in Table 1400.

[0143] For example, the information processing device 100 adds fused swap gates that swap the most significant (number of global qubits) qubits of the local qubit with the global qubit to the output circuit C. In the example of Fig. 14, the information processing device 100 specifically adds fused swap gates that swap local qubits 4 and 5 with global qubits 0 and 3 to the output circuit C, as shown in Table 1400.

[0144] For example, the information processing device 100 adds a swap gate that rearranges the local quantum bits in order to the output circuit C. In the example of Fig. 14, the information processing device 100 specifically 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 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 input from 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 that represent 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 to 1532 that represent gates that are not related to a global quantum bit and do not generate inter-process communication, based on the qubit order σ. Based on the DAG 1520, the information processing device 100 identifies, among the identified nodes 1530 to 1532, nodes 1530 to 1532 that are not connected to any directed edge starting from another node and that represent gates that can be executed without depending on other gates. The information processing device 100 removes the identified nodes 1530 to 1532 from the DAG 1520. The information processing device 100 adds gates 1610 to 1612 represented by the identified nodes 1530 to 1532 to the output circuit 1600.

[0148] (16-2) Based on the latest qubit order σ, the information processing device 100 identifies nodes 1533 to 1538 that are related to the global quantum bit and represent one or more gates where inter-process communication occurs. Based on the latest DAG 1520, the information processing device 100 identifies nodes 1533 to 1536 among the identified nodes 1533 to 1538 that are not connected to any 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 to 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, we move on to the description of FIG.

[0150] 17 , (17-1) the information processing device 100 identifies nodes 1533 to 1536 that represent gates that are not related to a global quantum bit and do not generate inter-process communication, based on the latest qubit order σ. Based on the latest DAG 1520, the information processing device 100 identifies nodes 1533 and 1534 from the identified nodes 1533 to 1536 that are not connected to any directed edges starting from other nodes and that represent gates that can be executed without depending on other gates. 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 and 1536 that represent gates that are not related to a global quantum bit and do not generate inter-process communication, based on the latest qubit order σ. Based on the latest DAG 1520, the information processing device 100 identifies, among the identified nodes 1535 and 1536, a node 1535 that is not connected to any directed edge starting from another node and that 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 that represents 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, from the identified nodes 1536, a node 1536 that is not connected to a directed edge starting from another node and that 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) Based on the latest qubit order σ, the information processing device 100 identifies nodes 1537 and 1538 that are related to the global quantum bit and represent one or more gates where inter-process communication occurs. Based on the latest DAG 1520, the information processing device 100 identifies, among the identified nodes 1537 and 1538, nodes 1537 and 1538 that are not connected to any 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 and 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, we move on to the description of FIG.

[0155] 18 , (18-1) the information processing device 100 identifies nodes 1537 and 1538 that are not related to a global quantum bit and that do not generate inter-process communication, based on the latest qubit order σ. Based on the latest DAG 1520, the information processing device 100 identifies node 1537, among the identified nodes 1537 and 1538, which is not connected to any 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 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 that represents 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, from the identified nodes 1538, a node 1538 that is not connected to a directed edge starting from another node and that 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 its 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 received the input, with a reduced number of inter-process communications occurring or a reduced amount of communication.

[0158] (First Application Example of Information Processing Apparatus 100) Next, a first application example of the information processing apparatus 100 will be described with reference to FIG.

[0159] 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 from 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 inter-process communication that occurs 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 has generated 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 inter-process communication in the quantum circuit 1920 to 2.75 Mbits.

[0161] (Second Application Example of Information Processing Apparatus 100) Next, a second application example of the information processing apparatus 100 will be described with reference to Figs. 20 and 21 .

[0162] 20 and 21 are explanatory diagrams showing a second application example of the information processing device 100. In Fig. 20, the information processing device 100 is assumed to be applied to a quantum circuit of the Qulacs benchmark. The information processing device 100 is assumed to perform optimization of the quantum circuit as described above under the measurement conditions shown in Table 2000, and to measure 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 referred to as the "processing time of 'w / our opt.'". Furthermore, as a comparison example of the processing time of "w / our opt.", the processing time of "w / o opt." and the processing time of "w / existing opt." are adopted.

[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 graph 2100, the information processing device 100 can achieve a speedup of 1.72 times faster than "w / o opt." in terms of overall time. The information processing device 100 can achieve a speedup of 1.35 times faster than "w / existing opt." in terms of overall time. 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 Apparatus 100) Next, a third application example of the information processing apparatus 100 will be described with reference to Figs. 22 and 23 .

[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] Furthermore, it is assumed that the information processing device 100 uses gate fusion optimization to perform 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 using gate fusion optimization may be referred to as the "processing time of 'with fused-swap and gate fusion'."

[0171] Gate fusion optimization is a technique that, when there are multiple gates that reference the same quantum bit, aims to reduce the number of times vector components are updated by replacing the multiple gates 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 / o opt." and the processing time of "w / gate fusion" are used as comparative examples of the processing time of "w / fused-swap" and the processing time of "w / fused-swap and gate fusion."

[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 for "with fused-swap," "with fused-swap and gate fusion," "with opt.", and "with gate fusion." As shown in graph 2300, the information processing device 100 can reduce the processing time to approximately 1 / 8 of that for "with opt." and "with existing opt."

[0175] Graph 2310 in FIG. 23 shows the communication time for "with our opt.", the communication time for "with fused-swap and gate fusion," the communication time for "with opt.", and the communication time for "with existing opt.".

[0176] 23 shows the communication volume of “with our opt.”, the communication volume of “with fused-swap and gate fusion,” the communication volume of “with opt.”, and the communication volume of “with existing opt.” As shown in graphs 2310 and 2320, information processing device 100 can reduce the communication time and volume compared to “with opt.” and “with 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 that form a substance using multiple quantum bits in order to analyze the properties of a 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] 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 in the acyclic directed graph G (step S2403). Based on the qubit order σ, 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 (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 directed acyclic 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 of the gates g represented by each node n in the acyclic directed graph G have been selected (step S2406). If there are any unselected gates g remaining (step S2406: No), the information processing device 100 returns to the processing of step S2403. On the other hand, if all of the gates g have been selected (step S2406: Yes), the information processing device 100 proceeds to the processing of step S2407.

[0184] In step S2407, the information processing device 100 identifies the next local set of 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 local set of quantum bits Qlocal (step S2408). The information processing device 100 adds one or more swap gates s that swap global and local quantum bits 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 processing 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 processing of step S2411.

[0186] In step S2411, the information processing device 100 sets the global / local division information σ of the quantum bit to an initial state (step S2411). 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 match the global / local division information σ of the quantum bit (step S2412). The information processing device 100 then ends the overall processing.

[0187] As described above, the information processing device 100 can acquire a first quantum circuit that defines, in chronological order, multiple gates representing the execution of operations on one or more different quantum bits for multiple quantum bits. Based on the acquired first quantum circuit, the information processing device 100 can generate 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 the different nodes. Based on the generated acyclic directed graph, the information processing device 100 can identify, among the multiple gates, one or more quantum bits referenced by one or more first gates that each generate inter-process communication and that can be executed independently of other gates. The information processing device 100 can generate a second quantum circuit that includes 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 identified one or more quantum bits become local. This allows the information processing device 100 to generate a second quantum circuit that reduces the number of inter-process communication events or the amount of communication, making it easier to perform a series of operations on multiple 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 can be identified from among multiple gates based on the acyclic directed graph. According to the information processing device 100, each time one or more second gates are identified, nodes representing the respective second gates 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 second quantum circuits in stages.

[0189] According to the information processing device 100, before initially identifying 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 that includes 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 were local in the initial state return to local states. 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 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 multiple gates based on an acyclic directed graph, gates that can be executed independently of other gates and that generate inter-process communication. According to the information processing device 100, each time a gate is selected, a process of adding a quantum bit associated with the selected 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 the 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, based on an acyclic directed graph, multiple combinations of gates in which inter-process communication occurs, which reference one or more quantum bits that can be executed independently of other gates and are equal to or less than the upper limit of local quantum bits. According to the information processing device 100, it is possible to identify, among the multiple combinations, the combination that includes the largest number of gates, which is one or more quantum bits that are referenced by one or more first gates in which inter-process communication occurs. 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 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 additional notes are provided regarding the above-described embodiment.

[0196] (Supplementary Note 1) An information processing program that causes a computer to execute the following processes: acquire a first quantum circuit that defines, in chronological order, a plurality of gates that each represent the execution of 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, based on the acquired first quantum circuit, an acyclic directed graph that includes nodes that represent each of the plurality of gates and directed edges that represent the execution order of operations between gates represented by 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 that generate inter-process communication and that reference one or more quantum bits that are not greater than an upper limit of local quantum bits and that can be executed independently of other gates; and generate a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including, immediately before the one or more first gates, one or more swap gates that swap the local quantum bit with the global quantum bit so that the identified one or more quantum bits become local.

[0197] (Supplementary Note 2) The information processing program according to Supplementary Note 1, characterized in that the computer is caused to execute the following processes: each time the one or more quantum bits are identified, identify, based on the acyclic directed graph, 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; and each time the one or more second gates are identified, remove from the acyclic directed graph nodes representing each of the one or more identified second gates; and the process of generating the second quantum circuit comprises: each time the one or more quantum bits are identified, adding to a template circuit 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; 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] (Appendix 3) The information processing program according to Appendix 2, characterized in that the process of identifying the one or more second gates includes, before initially identifying the one or more quantum bits, identifying one or more second gates among the plurality of gates based on the acyclic directed graph, each of which can be executed independently of other gates and does not generate inter-process communication.

[0199] (Supplementary Note 4) The information processing program according to Supplementary Note 3, characterized in that the process of generating the second quantum circuit, if the acyclic directed graph is empty, generates the second quantum circuit by adding one or more swap gates to the end of the template circuit, which swap local quantum bits with global quantum bits so that one or more quantum bits that are local in the initial state return to being local, and terminates the process of generating the second quantum circuit.

[0200] (Supplementary Note 5) The information processing program according to any one of Supplementary Notes 2 to 4, characterized in that the process of generating the second quantum circuit comprises, when the one or more quantum bits are identified, adding, to the template circuit, one or more swap gates, including a fused swap gate, that swap local quantum bits with global quantum bits so that the one or more identified quantum bits become local, if the number of quantum bits to be swapped is four or more based on the identified one or more quantum bits.

[0201] (Supplementary Note 6) The information processing program according to any one of Supplementary Notes 2 to 4, characterized in that the process of identifying the one or more quantum bits comprises: repeatedly selecting, based on the acyclic directed graph, a gate from the plurality of gates that can be executed independently of other gates and that generates inter-process communication, and each time selecting a gate, adding a quantum bit related to that gate to a group, within a range in which the number of quantum bits included in the group does not exceed an upper limit for local quantum bits; and then identifying the one or more quantum bits included in the group.

[0202] (Supplementary Note 7) The information processing program according to any one of Supplementary Notes 2 to 4, characterized in that the process of identifying the one or more quantum bits includes, based on the acyclic directed graph, identifying one or more quantum bits referenced by one or more first gates at which inter-process communication occurs, which is the combination including the largest number of gates among multiple combinations of gates at which inter-process communication occurs, that 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] (Supplementary Note 8) An information processing method characterized by a computer executing the steps of: acquiring a first quantum circuit that defines, in chronological order, a plurality of gates that each represent the execution of 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; generating, based on the acquired first quantum circuit, an acyclic directed graph that includes nodes that represent each of the plurality of gates and directed edges that represent the execution order of operations between gates represented by different nodes; identifying, 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 that generate inter-process communication and that reference one or more quantum bits that are not greater than an upper limit of the local quantum bits and that can be executed independently of other gates; and generating a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including, immediately before the one or more first gates, one or more swap gates that swap the local quantum bit with the global quantum bit so that the identified one or more quantum bits become local.

[0204] (Supplementary Note 9) An information processing apparatus comprising: a control unit that acquires a first quantum circuit that defines, in chronological order, a plurality of gates that each represent the execution of 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; generates, based on the acquired first quantum circuit, an acyclic directed graph that includes nodes that represent each of the plurality of gates and directed edges that represent the execution order of operations between gates represented by different nodes; identifies, 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 that generate inter-process communication and that reference one or more quantum bits that are not greater than an upper limit of the local quantum bits and that can be executed independently of other gates; and generates a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including, immediately before the one or more first gates, one or more swap gates that swap the local quantum bit with the global quantum bit so that the identified one or more quantum bits become local.

[0205] 100 Information processing device 110 First quantum circuit 121 to 123, 910 to 913, 1010 to 1013, 1510 to 1518, 1610 to 1612, 1700 to 1702, 1801, 1802, 1910 to 1913, 1930 to 1933 Gate 130, 1020, 1520 Acyclic directed graph 141 to 143, 1030 to 1033, 1530 to 1538 Node 150 Second quantum circuit 160, 930, 950, 1620, 1810, 1940, 1960 to 1962 Swap gate 200 Information processing system 201 Processing device 202 Client device 210 Network 300 Bus 301 CPU 302 Memory 303 Network I / F 304 Recording medium I / F 305 Recording medium 400 Storage unit 401 Acquisition unit 402 First generation unit 403 First identification unit 404 Second identification unit 405 Second generation unit 406 Simulation unit 407 Output unit 500 State vector 510, 900, 920, 940, 1000, 1500, 1900, 1920 Quantum circuit 600 Quantum bit string 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. An information processing program that causes a computer to execute the following processes: obtain a first quantum circuit that specifies, in a chronological order, a plurality of gates that each represent the execution of 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 obtained first quantum circuit, the plurality of gates including nodes representing each of the plurality of gates and directed edges representing the order of execution of 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 that generate inter-process communication and that reference one or more quantum bits that are equal to or less than the upper limit of the local quantum bits and that can be executed without relying 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.

2. The information processing program of claim 1, further comprising: causing the computer to execute the following process each time the one or more quantum bits are identified: identifying, based on the acyclic directed graph, 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; and removing, from the acyclic directed graph, a node representing each of the one or more identified second gates, each time the one or more second gates are identified; and generating the second quantum circuit, the process of generating the second quantum circuit comprises: adding, to a template circuit 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, and adding, to the template circuit each time the one or more second gates are identified, thereby generating the second quantum circuit.

3. The information processing program according to claim 2, characterized in that the process of identifying the one or more second gates includes once identifying, among the plurality of 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, before initially identifying the one or more quantum bits.

4. The information processing program according to claim 3, characterized in that the process of generating the second quantum circuit, when the acyclic directed graph is empty, generates the second quantum circuit 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 the initial state return to being local, and terminates the process of generating the second quantum circuit.

5. The information processing program according to any one of claims 2 to 4, characterized in that the process of generating the second quantum circuit comprises, when identifying the one or more quantum bits, if the number of quantum bits to be swapped based on the identified one or more quantum bits is four or more, adding to the template circuit one or more swap gates including a fused swap gate that swaps local quantum bits with global quantum bits so that the identified one or more quantum bits become local.

6. The information processing program according to any one of claims 2 to 4, characterized in that the process of identifying the one or more quantum bits comprises: repeatedly selecting, based on the acyclic directed graph, from among the plurality of gates, a gate which can be executed independently of other gates and which generates inter-process communication, and each time selecting the gate, adding the quantum bit related to that gate to a group, within a range in which the number of quantum bits included in the group does not exceed an upper limit for local quantum bits; and then identifying the one or more quantum bits included in the group.

7. The information processing program according to any one of claims 2 to 4, characterized in that the process of identifying the one or more quantum bits includes identifying, based on the acyclic directed graph, 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 multiple combinations of gates in which inter-process communication occurs and which reference one or more quantum bits that are equal to or smaller than an upper limit of local quantum bits and that can be executed without depending on other gates among the multiple gates.

8. An information processing method characterized by being executed by a computer that performs the following processes: acquiring a first quantum circuit that defines, in a chronological order, a plurality of gates that each represent the execution of 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; generating an acyclic directed graph based on the acquired first quantum circuit, the plurality of gates including nodes representing the respective gates of the plurality of gates and directed edges representing the order of execution of operations between the gates represented by the different nodes; identifying, 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 and that reference one or more quantum bits that are equal to or less than the upper limit of the local quantum bits and that can be executed independently of other gates; and generating a second quantum circuit that is logically equivalent to the first quantum circuit, the second quantum circuit including, immediately before the one or more first gates, one or more swap gates that swap the local quantum bits with the global quantum bits so that the identified one or more quantum bits become local.

9. An information processing device comprising: a control unit that acquires a first quantum circuit that defines, in a chronological order, a plurality of gates that each represent the performance of 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; based on the acquired first quantum circuit, generates an acyclic directed graph including nodes representing each of the plurality of gates and directed edges representing the order of performance of operations between gates represented by different nodes; based on the generated acyclic directed graph, identifies, among the plurality of gates, one or more quantum bits referenced by one or more first gates that each generate inter-process communication and reference one or more quantum bits that are equal to or less than the upper limit of the local quantum bits and that can be executed without depending on other gates; and generates a second quantum circuit that is logically equivalent to the first 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.