Program, computer system, and computer
The program optimizes processing by selecting and distributing tasks among classical and quantum computers based on qubit or quantum volume requirements, addressing the challenges of coexistence and resource limitations in quantum computing environments.
Patent Information
- Application Number
- JP2021565598
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-12-19
- Filing Date
- 2020-12-15
- Publication Date
- 2024-08-22
- Estimated Expiration
- 2040-12-15
AI Technical Summary
Existing technologies face challenges in optimizing processing when classical computers and quantum computers, or multiple quantum computers, coexist, due to limitations in creating large qubits and varying computational capabilities.
A program that enables a classical computer to select and control the execution of processes among a combination of classical and quantum computers based on qubit or quantum volume requirements, optimizing the selection and distribution of tasks among available computers.
This approach allows for optimized processing by appropriately selecting and distributing tasks among classical and quantum computers, enhancing computational efficiency and resource utilization.
Smart Images

Figure 0007538480000005 
Figure 0007538480000006 
Figure 0007538480000004
Abstract
Description
[Technical field]
[0001] The present invention relates to a program, a computer system, and a computer. [Background technology]
[0002] Quantum computers are computers that perform calculations under a different computational paradigm from classical computers. A quantum computer is a computer that generates a calculation result based on an initially generated quantum state, such as a quantum entangled state, by applying a unitary matrix to the initially generated quantum state under a specified quantum algorithm, such as Shor's prime factorization algorithm or Grover's search algorithm.
[0003] Simulation and execution environments for quantum computing are provided in the form of cloud services, such as Azure (registered trademark) Quantum, AWS (registered trademark) Braket, IBM Q-Experience (registered trademark), etc. These cloud services provide, for example, a test and simulation environment for quantum algorithms on classical computers, and also enable the created quantum algorithms to be executed on quantum hardware, such as gate-based superconducting computers, quantum annealing superconducting computers, and ion trap computers.
[0004] Here, to explain the difference between quantum computers and classical computers, for example, in the case of molecular orbital calculations, a quantum computer has a slower rate of increase in calculations relative to the number of atoms N compared to a classical computer, but is limited by the number of quantum bits because it is difficult to create a quantum computer with a large number of quantum bits. Therefore, there are cases where it is desirable to use either a classical computer or a quantum computer to perform calculations depending on the size of a given process.
[0005] In addition, hybrid algorithms that use both classical and quantum computers to perform calculations, rather than performing all calculations on a quantum computer, are known. For example, VQE (Variational Quantum Eigensolver) is an algorithm that incorporates a quantum computer into a classical computer based on the calculus of variations, by generating a given trial wave function using a quantum computer, measuring the expectation value of the Hamiltonian, and performing processing on a classical computer based on the measurement results.
[0006] Furthermore, a case may be considered in which a calculation is performed using a plurality of quantum computers each having different quantum bits. [Prior art documents] [Non-patent literature]
[0007] [Non-Patent Document 1] Kandala, A., Mezzacapo, A., Temme, K. et al., Nature, 2017, vol. 549, p242-246 Summary of the Invention [Problem to be solved by the invention]
[0008] An object of the present invention is to optimize processing when a classical computer and a quantum computer, or a plurality of quantum computers, are mixed. [Means for solving the problem]
[0009] In order to solve the above problems and achieve the object, the program according to the present invention is a program for causing a classical computer to execute a process of selecting a computer to execute a given process when the given process is performed by a quantum algorithm or a hybrid algorithm of a classical algorithm and a quantum algorithm, and causes the classical computer to execute a calculation step, a selection step, and a control step. The calculation step calculates the size of a required quantum bit or a required quantum volume in a part of a quantum algorithm required to execute the given process using a quantum algorithm, or when the given process is executed using the hybrid algorithm. The selection step selects a computer to execute the given process based on the quantum bit or the required quantum volume calculated in the calculation step. The control step generates a control signal related to an instruction for the quantum computer to start the quantum algorithm, which is to be sent to the quantum computer, when the computer selected in the selection step includes a quantum computer.
[0010] The computer system according to the present invention includes a classical computer that executes a process of selecting a computer from among a plurality of computers to execute a given process when the process is executed by a quantum algorithm or a combination algorithm of a classical algorithm and a quantum algorithm, and a plurality of computers. The plurality of computers includes at least one quantum computer. The classical computer includes a calculation unit, a distribution unit, and a transmission unit. The calculation unit calculates the size of a required quantum bit or a required quantum volume in a portion of a quantum algorithm required to execute the given process using a quantum algorithm, or when the given process is executed using a combination algorithm. The distribution unit selects a computer to execute the given process based on the quantum bit or the required quantum volume calculated by the calculation unit. The transmission unit and, when the computer selected by the distribution unit includes a quantum computer, transmit an instruction to the quantum computer for the quantum computer to start the quantum algorithm.
[0011] Furthermore, the computer according to the present invention is a classical computer that executes a process of selecting a computer from a plurality of computers to execute a given process when the given process is performed by a quantum algorithm or by a combined algorithm of a classical algorithm and a quantum algorithm. The calculation unit calculates the size of a required quantum bit or a required quantum volume in a portion of a quantum algorithm required to execute the given process using a quantum algorithm, or when the given process is executed using a combined algorithm. The allocation unit selects a computer to execute the given process based on the quantum bit or the required quantum volume calculated by the calculation unit. When the computers selected by the allocation unit include a quantum computer, the transmission unit transmits an instruction to the quantum computer for the quantum computer to start the quantum algorithm. Effect of the Invention
[0012] According to the present invention, processing can be optimized when a classical computer and a quantum computer, or a plurality of quantum computers, are mixed. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram showing an overview of a computer system according to an embodiment of the present invention. [Figure 2A] FIG. 2A is a diagram illustrating a background according to an embodiment. [Figure 2B] FIG. 2B is a diagram illustrating a background according to an embodiment. [Diagram 3] FIG. 3 is a flowchart showing a flow of processing executed by a program according to the first embodiment. [Figure 4] FIG. 4 is a flowchart showing a flow of processing executed by a program according to a first modified example of the first embodiment. [Diagram 5] FIG. 5 is a flowchart showing a flow of processing executed by a program according to the second embodiment. [Figure 6] FIG. 6 is a flowchart illustrating in detail the process of step S200 in FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, a program, a computer system, and a computer according to an embodiment of the present invention will be described with reference to the accompanying drawings.
[0015] (First embodiment) 1 is a diagram showing an outline of a computer system 1 according to an embodiment of the present invention. The computer system 1 includes a conventional classical computer 100 for controlling other computers, classical computers 200a, 200b, 200c... that perform calculations in a conventional manner without using quantum computing, and quantum computers 300a, 300b, 300c... that perform calculations using quantum computing. Here, the classical computers 100 and 200a, 200b, 200c are computers in the normal sense that can be expressed as, for example, Turing machines, for example, von Neumann type computers.
[0016] The configuration of computer system 1 needs to include two or more computers among classical computers 200a, 200b, 200c... and quantum computers 300a, 300b, 300c..., and may include either a quantum computer alone or both a classical computer and a quantum computer.
[0017] The classical computer 100 is a computer for controlling other computers (classical computers 200a, 200b, 200c, ..., quantum computers 300a, 300b, 300c), and includes a processing circuit 10, a storage unit 20, a display 30, and an input device 40. The processing circuit 10 includes a calculation function 10a, a selection function 10b, a control function 10c, a partitioning decision function 10d, a partitioning function 10e, a display control function 10f, and a generation function 10g.
[0018] The processing circuit 10 is a processor (e.g., a CPU (Central Processing Unit), a GPU (Graphical Processing Unit), an ASIC (Application Specific Integrated Circuit), a PLD (Programmable Logic Device), etc.) that realizes functions such as a calculation function 10a, a selection function 10b, etc. by reading and executing a program from a storage unit 20. That is, the processing functions such as the calculation function 10a, the selection function 10b, the control function 10c, the division determination function 10d, the division function 10e, the display control function 10f, the generation function 10g, etc. are stored in the storage unit 20 in the form of a program executable by the processor. As a result, the processing circuit 10 in a state in which the program has been read out has functions such as a calculation function 10a, a selection function 10b, a control function 10c, a division determination function 10d, a division function 10e, a display control function 10f, and a generation function 10g, and causes the classical computer 100 to execute a calculation step by the calculation function 10a, a selection step by the selection function 10b, a control step by the control function 10c, a division determination step by the division function 10d, a division step by the division function 10e, a display step by the display control function 10f, and a generation step by the generation function 10g. That is, the calculation function 10a, the selection function 10b, the control function 10c, the division determination function 10d, the division function 10e, the display control function 10f, and the generation function 10g correspond to a calculation unit, an allocation unit (selection unit), a control unit, a division determination unit, a division unit, a display control unit, and a generation unit, respectively. The details of the processing of each function of the processing circuit 10 will be described later. The control function 10c is also an example of a transmission unit having a function of transmitting various information.
[0019] The storage unit 20 is a storage area such as a random access memory (RAM), a read only memory (ROM), a flash memory, or a hard disk, and stores various programs executed by the processing circuit 10 and the execution results of the various programs.
[0020] The display 30 displays various information. For example, the display 30 displays the processing results of the CPU, a GUI (Graphical User Interface) for receiving various operations from the user, and the like. The display 30 is configured, for example, as a liquid crystal display, an organic EL (Electro Luminescence) display, or a cathode ray tube display. Note that the input device 40 and the display 30 may be configured as one body, for example, in the form of a touch panel.
[0021] The input device 40 is a device for a user to perform various operations and is configured with, for example, a mouse, a keyboard, a touch panel, or hardware keys.
[0022] Note that the embodiment is not limited to the above example. Depending on the embodiment, the storage unit 20, the display 30, the input device 40, etc. are not essential components of the classical computer 100, that is, the classical computer 100 may not include the storage unit 20, the display 30, the input device 40, etc. As another example, the storage unit 20, the display 30, the input device 40, etc. may be arranged outside the classical computer 100, for example, via a network, and data may be exchanged with the processing circuit 10. The classical computer 100 may also be composed of two or more classical computers. For example, the classical computer may include a first classical computer having a calculation function 10a, and a second classical computer connected to the first classical computer via a network and having a distribution function (selection function 10b) and a control function 10c as a transmission unit.
[0023] While the classical computer 100 is a computer that performs calculations to control other computers, the classical computers 200a, 200b, 200c, etc. are computers that execute given processing itself, such as quantum chemical calculations. For example, the classical computer 200a, like the classical computer 100, includes a processing circuit 10x similar to the processing circuit 10 and a storage unit 20x similar to the storage unit 20. It is not necessary for the processing circuit 10x to have all of the functions of the processing circuit 10. Similarly, the classical computers 200b, 200c, etc. also include a processing circuit similar to the processing circuit 10 and a storage unit similar to the storage unit 20.
[0024] The quantum computers 300a, 300b, and 300c are quantum computers that perform calculations using quantum states. For example, the quantum computer 300a includes a quantum information generator 50 that generates an initial quantum state, a plurality of quantum gates 60, a quantum gate controller 70, and a measurement unit 80.
[0025] To explain a typical operation example of a quantum computer, the processing circuit 10 transmits a control signal for generating an initial quantum state to the quantum computer 300a by using the control function 10c as a transmitting unit. The quantum computer 300a, which receives the control signal for generating the initial quantum state from the classical computer 100, generates an initial quantum state such as a quantum entangled state by using the quantum information generating unit 50.
[0026] The quantum gate 60 acts on the generated quantum state, changing the quantum state. The action of the quantum gate 60 on the quantum state can be expressed in the form of a unitary matrix. Furthermore, the quantum gate control unit 70 changes the operation of the quantum gate 60, i.e., the unitary matrix. The measurement unit 80 measures the quantum state that has passed through the quantum gate 60. As a result, the quantum computer 300a can obtain the measurement result measured by the measurement unit 80 as output data.
[0027] The computer system 1 may also include a user terminal 400 that accepts information input from a user or displays information to the user. As an example, the user terminal 400 may include a display 30z and an input device 40z on the user terminal side, similar to the display 30 and the input device 40.
[0028] Next, a brief background of the embodiment will be described.
[0029] A quantum computer is a computer that performs calculations under a different computational paradigm from classical computers. A quantum computer is a computer that applies a unitary matrix to a quantum state, such as an initially generated quantum entangled state, based on a predetermined quantum algorithm, such as Shor's prime factorization algorithm or Grover's search algorithm, measures the generated quantum state, and generates a calculation result.
[0030] Simulation and execution environments for quantum computing are provided in the form of cloud services, such as Azure (registered trademark) Quantum, AWS (registered trademark) Braket, IBM Q-Experience (registered trademark), etc. These cloud services provide, for example, a test and simulation environment for quantum algorithms on classical computers, and also enable the created quantum algorithms to be executed on quantum hardware, such as gate-based superconducting computers, quantum annealing superconducting computers, and ion trap computers.
[0031] Here, regarding the difference between quantum computers and classical computers, for example, in the case of molecular orbital calculations, as shown in FIG. 2A, in classical computers, the calculation time increases rapidly as the number of atoms N increases. For example, if the calculation time for the number of atoms N is N 6On the other hand, as shown in Figure 2B, in a quantum computer, the calculation time does not increase so much with respect to the number of atoms N. For example, the calculation time can be kept proportional to the number of atoms N. However, it is currently difficult to create a quantum computer with a large number of quantum bits, and there is a limit imposed by the number of quantum bits. Therefore, it may be desirable to use either a classical computer or a quantum computer depending on the size of a given process.
[0032] In addition, in consideration of the difficulty of creating a quantum computer with a large number of quantum bits, a hybrid algorithm is known in which calculations are performed using both a classical algorithm executed by a classical computer and a quantum algorithm executed by a quantum computer, rather than performing all calculations using a quantum algorithm by a quantum computer. An example of a hybrid algorithm is VQE (Variational Quantum Eigensolver). VQE is an algorithm that incorporates a quantum computer into a classical computer based on the calculus of variations, by generating a predetermined trial wave function using a quantum computer, measuring the expectation value of the Hamiltonian, and performing processing using a classical computer based on the measurement result.
[0033] In addition to using a combined algorithm using both classical and quantum computers, a parallel computation may be performed by dividing a given process into a process handled by a classical computer and a process handled by a quantum computer, and each process may be executed by each computer. In addition, when a given process is shared among multiple quantum computers with different numbers of quantum bits, a parallel computation may be performed by dividing a given process into processes handled by each quantum computer, and each process may be executed by each computer.
[0034] The embodiments are based on this background and attempt to optimize processing when processing is performed by multiple computers including at least one quantum computer.
[0035] 3 is a flowchart showing the flow of processing executed by the program according to the first embodiment. Note that, in the following example, a case where molecular orbital calculation of a compound is performed will be described as an example of a given calculation process.
[0036] First, in step S100, the processing circuit 10 obtains information such as the structure of a compound from the storage unit, and prepares to perform a given process, for example, a process of performing a quantum chemical calculation on a given chemical structure. That is, the processing circuit 10 prepares to perform a process of performing a quantum chemical calculation on a chemical structure read from the storage unit 20 that stores a list of chemical structures, as the given chemical structure.
[0037] Next, in step S110, the processing circuit 10 calculates the size of the required quantum bit (qubit) or the required quantum volume by the calculation function 10a. That is, in step S110, the program according to the embodiment causes the classical computer 100 to execute a calculation step of calculating the size of the required quantum bit or the required quantum volume required to execute a given process, for example, a process of performing a quantum chemical calculation on a given chemical structure, using a quantum algorithm, or in a part of the quantum algorithm when the given process is executed using a combination algorithm. Here, the required quantum volume represents the size of the required quantum volume, that is, the scale of the quantum calculation that can be performed, that is, the spatial size and time. The quantum volume is an index calculated by adding the size of the error that occurs to the simple number of quantum bits.
[0038] In addition, when the processing circuit 10 calculates the necessary quantum bits or the required quantum volume in step S110, the processing circuit 10 may, and preferably does, calculate the value of the necessary quantum bits or the required quantum volume with some margin by the calculation function 10a. Here, the margin can be set arbitrarily depending on the type of calculation, the required calculation speed, the capacity of the computer, the congestion state of the queue, etc.
[0039] As a method for calculating the size of the required quantum bit or the required quantum volume, for example, the processing circuit 10 calculates the size of the required quantum bit or the required quantum volume based on the number of atoms and a table showing the relationship between the number of atoms and the quantum bit or the required quantum volume required to perform molecular orbital calculation for the number of atoms, using the calculation function 10a. The table is created, for example, by extrapolating the relationship between the number of atoms and the required quantum bit or the required volume when the number of atoms is small enough to allow accurate estimation of the amount of calculation to the case where the number of atoms is large.
[0040] Next, in step S120, when a given process is performed by a quantum algorithm, or by a combined algorithm of a classical algorithm and a quantum algorithm, or by a combination of a classical algorithm and a quantum algorithm, the program according to the first embodiment causes the classical computer 100 to execute a selection step of selecting a computer that will execute the given process by using the selection function 10b. Specifically, the processing circuit 10 selects a computer that will execute the given process by using the selection function 10b, based on the quantum bits or required quantum volume calculated in step S110.
[0041] Here, when there are multiple quantum computers as candidates for performing the processing, the selection step of selecting a computer to perform the given processing is a step of selecting a quantum computer to perform the given processing from among the multiple quantum computers based on the quantum bits or required quantum volume calculated in step S110.
[0042] Furthermore, when the candidate computers for performing the processing are one or more quantum computers and one or more classical computers, the selection step of selecting a computer for performing the given processing is a step of selecting a computer for performing the given processing from among the classical computer and the quantum computer based on the quantum bit or the required quantum volume calculated in step S110 from both the classical computer and the quantum computer. In this case, as an example, the processing circuit 10 selects the quantum computer as the computer for performing the given processing by the selection function 10b if the quantum bit or the required quantum volume is within the range of the quantum bit or the required quantum volume that can be realized by the candidate quantum computer, and selects the classical computer as the computer for performing the given processing if the quantum bit or the required quantum volume is beyond the range of the quantum bit or the required quantum volume that can be realized by the candidate quantum computer.
[0043] For example, if the number of quantum bits of the quantum computer 300a is 100 quantum bits and the number of quantum bits calculated in step S110 is 80 quantum bits, in step S120, the processing circuit 10 selects the quantum computer 300a as a computer that executes the given process by the selection function 10b. The quantum computer 300a executes the given process by a quantum algorithm. On the other hand, if the number of quantum bits of the quantum computer 300a is 100 quantum bits and the number of quantum bits calculated in step S110 is 120 quantum bits, in step S120, the processing circuit 10 selects the classical computer 200a as a computer that executes the given process by the selection function 10b. If the given process is a molecular orbital calculation, the classical computer 200a executes a molecular orbital calculation by, for example, the Hartree-Fock method, the DFT method, the CCSD(T) method, or the like.
[0044] In addition, when a combined algorithm of a classical algorithm and a quantum algorithm is used, the selection step of selecting a computer to execute a given process is a step of selecting a quantum computer to execute the given process based on the quantum bits or required quantum volume calculated in step S110, and selecting a classical computer to execute the classical algorithm separately from the selection of the quantum computer.
[0045] In these selection steps, the processing circuit 10 selects a quantum computer using the selection function 10b so that the quantum bits calculated in step S110 do not exceed the quantum bits available in the selected computer, or so that the required quantum volume calculated in step S110 does not exceed the required quantum volume achievable in the selected computer.
[0046] In addition, in this selection step, when there are multiple quantum computers with different quantum bits or quantum volumes in the system, it is preferable that the selection step preferentially selects from among them a quantum computer having a quantum bit or volume that is not smaller than the quantum bit or quantum volume required for the calculation of the target compound and that is closest to the quantum bit or volume required.
[0047] In the selection step, the processing circuit 10 may select a computer by using the selection function 10b, taking into consideration the capabilities, characteristics, availability, etc. of available computer resources in addition to the calculated quantum bits or required quantum volume. As an example, the processing circuit 10 uses the selection function 10b to select a computer that has high computer resource capabilities, characteristics suitable for a given process, or is relatively available, as a computer to execute the process.
[0048] In addition, in the selection step, the processing circuit 10 may use the selection function 10b to not only select the computers, but also to select the execution timing and execution order for executing the computers.
[0049] In addition, in conjunction with the execution of the process of step S120, the processing circuit 10 appropriately displays on the display unit, by the display control function 10f, the size of the quantum bit or the required quantum volume calculated by the calculation function 10a, information related to the computer selected by the selection function 10b, and a character string representing a structural formula, atomic coordinates, or chemical structure, or information identifying a compound. Here, the display unit may be the display 30, or may be a user terminal 400 that is a terminal that can be operated by a user and is different from the provider side terminal that is the terminal on which the classical computer 100 is placed.
[0050] In addition, the processing circuit 10 may have a function of transmitting, by the control function 10c, the size of the quantum bit or quantum volume calculated by the calculation function 10a, or information related to the computer selected by the selection function 10b, to other computers, a user terminal 400, a terminal external to the computer system 1, etc.
[0051] Next, in step S130, the program according to the embodiment causes the classical computer 100 to execute a control step of generating a control signal to be transmitted to the quantum computer when the computer selected in step S120 includes a quantum computer, by the selection function 10b as a transmission unit. Here, the control signal is a control signal related to an instruction for the quantum computer to start a quantum algorithm, and is, for example, information necessary for the quantum computer to generate a quantum state generated at the start of the quantum algorithm. For example, if the quantum state generated at the start of the quantum algorithm can be expressed as α1|0>+α2|1>, the coefficients α1 and α2 are information necessary for the quantum computer to generate the quantum state α1|0>+α2|1> generated at the start of the quantum algorithm. Next, the processing circuit 10 transmits, to the quantum computer, information necessary for the quantum computer to generate a quantum state generated at the start of the quantum algorithm as a control signal by the control function 10c as a transmission unit.
[0052] Next, in step S140, the quantum computer executes quantum computation based on the control signal acquired from the classical computer 100. When a computation is executed by the classical computer, the classical computer executes normal computation based on the control signal acquired from the classical computer 100. When a computation is executed by an algorithm that combines computation by a classical computer and computation by a quantum computer, the classical computer and the quantum computer perform computation based on the control signal acquired from the classical computer 100. The classical computer 100 transmits control signals to the multiple computers by the control function 10c as a transmission unit, and each of the multiple computers performs its own process based on the control signal it received.
[0053] In the following embodiment, a case will be described in which the classical computers 200a, 200b, 200c . . . and the quantum computers 300a, 300b, 300c .
[0054] The VQE method incorporates quantum computer calculations into an algorithm for molecular orbital calculations, utilizing the variational principle that the expectation value <ψ(θ)|H|ψ(θ)> of the trial wave function ψ(θ) for the Hamiltonian H of the system, where θ is the variational parameter, always exceeds the ground state energy E.
[0055] Here, the quantum computer 300a etc. generates a quantum state ψ(θ) to be subjected to the calculus of variations as a quantum state using a quantum algorithm for a certain variation parameter θ. In addition, the quantum computer 300a etc. expresses the Hamiltonian H of the system for performing molecular orbital calculations etc. as a Hamiltonian for the quantum state ψ(θ) generated on the quantum computer by the quantum information generation unit 50. Thereafter, the measurement unit 80 measures the expectation value <ψ(θ)|H|ψ(θ)> of the Hamiltonian for the quantum state ψ(θ) generated on the quantum computer. As a result, the quantum computer 300a can obtain the expectation value of the Hamiltonian H of the system in the generated quantum state ψ(θ) under the given variation parameter θ as a measured value.
[0056] On the other hand, the classical computer 200a etc. is in charge of other processes, such as a process of selecting the variation parameter θ, a process of calculating the variation parameter θ that minimizes the expected value of the Hamiltonian, and a process of determining which quantum state ψ(θ) to select based on the value of the variation parameter θ, thereby optimizing the variation parameter θ. This allows the classical computer 200a etc. and the quantum computer 300a etc. to cooperate in performing quantum chemical calculations and the like.
[0057] As described above, according to the program of the first embodiment, when a classical computer and a quantum computer or multiple quantum computers are mixed, it is possible to appropriately select the computer that will perform the processing, thereby optimizing the processing.
[0058] (First Modification of the First Embodiment)
[0059] In the first embodiment, a case has been described in which the program automatically selects a computer to execute a given process based on the size of the quantum bit or the requested quantum volume calculated in the calculation step. The embodiment is not limited to this, and in a first modified example of the first embodiment, the program may display the calculated size of the quantum bit or the requested quantum volume on the display 30, and receive feedback from a user who sees the size of the quantum bit or the requested quantum volume displayed on the display 30.
[0060] Such a situation is shown in Fig. 4. Note that steps S100, S110, S130, and S140 are similar to the processes already explained in Fig. 2, so repeated explanation will be omitted.
[0061] In step S121, the program related to the first modified example of the first embodiment further causes the classical computer 100 to execute a display control step of displaying on a display unit the size of the quantum bit or the required quantum volume calculated in the calculation step S110, using the display control function 10f of the processing circuit 10.
[0062] Next, in step S122, the program related to the first variant of the first embodiment causes the classical computer 100 to execute a generation step of generating, by the processing circuit 10, a list of computers capable of executing the process based on the quantum bits or required quantum volume calculated in step S121.
[0063] Next, in step S123, the program causes the classical computer 100 to execute a display control step of causing the display control function 10f of the processing circuit 10 to display on the display unit the list of computers capable of executing the process generated in step S122.
[0064] Next, in step S124, the program causes the control function 10c of the processing circuit 10 to receive from the user an input as to whether or not to modify the input data such as the compound name.
[0065] When the processing circuit 10 receives an input from the user to correct the input data by the control function 10c (Yes in step S125), the process returns to step S100. On the other hand, when the input data is not to be corrected (No in step S125), the process proceeds to step S123.
[0066] Next, in step S126, the program related to the first variant of the first embodiment causes the classical computer 100 to execute a step of manually accepting input for the computer to execute a given process via the control function 10c of the processing circuit 10.
[0067] Next, in step S127, the program related to the first variant of the first embodiment causes the classical computer 100 to execute a step of selecting, by the selection function 10b of the processing circuit 10, a computer to execute the given processing based on the input received from the user in step S126.
[0068] Also, similar to the first embodiment, the program according to the first modification of the first embodiment causes the classical computer 100 to execute the same processes as steps S130 and S140.
[0069] As described above, according to the program of the first embodiment, when a classical computer and a quantum computer, or a mixture of multiple quantum computers, is used, input from a user can be accepted as necessary to appropriately select the computer to perform processing, thereby enabling optimization of processing.
[0070] Second Embodiment In the first embodiment, a given process is not divided into a plurality of sub-processes, and all processes are performed by one computer. In the second embodiment, a given process is divided into a plurality of sub-processes, and a classical computer or a quantum computer performs the process on a computer selected for each of the plurality of sub-processes.
[0071] Such a situation is shown in Figures 5 and 6. Figure 5 is a flowchart showing the flow of processing that the program according to the second embodiment causes the classical computer 100 to execute, and Figure 6 is a flowchart explaining in detail the processing of step S200 in Figure 5.
[0072] First, in step S200, the program according to the second embodiment causes the classical computer 100 to execute a partitioning decision step in which the partitioning decision function 15d of the processing circuit 10 decides how to partition a given process into multiple sub-processes.
[0073] The division determination step of step S200 will be described in detail with reference to Fig. 6. The entire process of Fig. 6 corresponds to step S200 in Fig. 5.
[0074] First, in step S201, the program according to the second embodiment causes the classical computer 100 to obtain the computational performance of each computer.
[0075] Next, in step S202, the program of the second embodiment causes the classical computer 100 to execute a step of provisionally dividing a given process into a plurality of sub-processes based on the computational performance acquired in step S201 using the division decision function 10d of the processing circuit 10.
[0076] Next, in step S203, the program according to the second embodiment causes the classical computer 100 to execute a step of calculating the size of the quantum bit or the required quantum volume for each of the multiple sub-processes obtained by the provisional division.
[0077] Next, if the provisional division satisfies the specified conditions and is an appropriate division (Yes in step S204), processing proceeds to step S206, and the processing circuit 10 determines that the provisional division is an appropriate division method, and the processing circuit 10 determines that the division is an appropriate division method.
[0078] On the other hand, if the provisional division is not appropriate (No in step S204), the program according to the second embodiment causes the classical computer 100 to execute a step of performing provisional division using a new division method in step S205, and then the process returns to step S202.
[0079] By performing steps S201 to S206, the program according to the second embodiment causes the classical computer 100 to execute the process related to step S200 described above.
[0080] Next, returning to FIG. 5, in step S210, the program according to the second embodiment causes the classical computer 100 to execute a step of dividing a given process into a plurality of sub-processes using the division function 10e of the processing circuit 10 based on the division method determined in step S200.
[0081] In addition, in the embodiment, the given process may consist of multiple sub-processes without going through the processes of steps S200 and S210, and in such cases, the operations of steps S200 and S210 may be omitted as necessary.
[0082] Next, in step S220, the program according to the second embodiment causes the classical computer 100 to execute a calculation step in which the calculation function 10a of the processing circuit 10 calculates the size of the quantum bit or the required quantum volume for each of the multiple sub-processes.
[0083] Next, in step S230, the program according to the second embodiment causes the classical computer 100 to execute a selection step of selecting a computer to perform the calculation for each of a plurality of sub-processes, depending on the calculated quantum bits or required quantum volume and the capabilities, characteristics, availability, etc. of available computer resources. For example, the program according to the second embodiment causes the classical computer 100 to preferentially select, as a computer to perform the calculation, a computer with high computing power, a computer whose characteristics match the nature of a given process, or a relatively available computer.
[0084] Next, in step S240, the program according to the second embodiment causes the classical computer 100 to select, by the selection function 10b of the processing circuit 10, the execution timing or execution order for executing the computer for each of the multiple sub-processes, in accordance with the calculated quantum bits or required quantum volume and the capabilities, characteristics, availability, etc. of the available computer resources. As an example, the program according to the second embodiment causes the execution timing or execution order for executing the computer to be selected so that the processing load of the computer is not concentrated on a specific computer.
[0085] Next, in step S250, the program of the second embodiment causes the classical computer 100 to execute a control step in which the control function 10c of the processing circuit 10 generates, as a control signal, information necessary for generating a quantum state that the quantum computer generates at the start of the quantum algorithm.
[0086] The processing circuit 10 causes the control function 10c acting as a transmission unit to transmit the generated control signal to the computer selected in step S230.
[0087] Then, in step S260, the quantum computer executes the quantum computation.
[0088] As described above, according to the program of the second embodiment, when a classical computer and a quantum computer, or multiple quantum computers are mixed, and a given process consists of multiple processes, the processes are appropriately divided and a computer that performs the process is appropriately selected for each divided process, thereby optimizing the process.
[0089] In this way, according to the embodiment of the present invention, processing can be optimized when a classical computer and a quantum computer, or a plurality of quantum computers, are mixed.
[0090] It should be noted that the embodiments of the present invention are presented merely as examples, and various substitutions, modifications, and the like can be made. [Explanation of symbols]
[0091] 10 Processing circuit 10a Calculation Function 10b Selection Function 10c Control Functions 10d Division decision function 10e division function 10f Display control function 10g generation function 20 Memory section 30 Display 40 Input Devices 200a classical calculator 300a quantum computer 400 User terminals
Claims
1. A program for causing a classical computer to execute a process of selecting a computer that executes a given process when the given process is executed by a quantum algorithm or a combination of a classical algorithm and a quantum algorithm, comprising: A calculation step of calculating the size of a required quantum bit or a required quantum volume required to execute the given process using the quantum algorithm, or in a part of the quantum algorithm when the given process is executed using the combined algorithm; a selection step of selecting the computer that executes the given process based on the quantum bit or the required quantum volume calculated in the calculation step; a control step of generating a control signal for sending to the quantum computer, when the computer selected by the selection step includes a quantum computer, the control signal being related to an instruction for the quantum computer to start the quantum algorithm; and causing the classical computer to execute the above steps. a division determination step of determining how to divide the given process into a plurality of sub-processes; a division step of dividing the given process into the plurality of sub-processes based on the determined division method, the selecting step includes selecting the computer for each of the plurality of small processes divided by the dividing step; A program, wherein the control step generates the control signal for each of the plurality of small processes divided by the division step.
2. 2. The program according to claim 1, wherein the control step generates, when the computer selected by the selection step includes a quantum computer, information necessary for generating a quantum state that the quantum computer generates at the start of the quantum algorithm as the control signal.
3. The program according to claim 1 , wherein the given process is a process of performing a quantum chemical calculation on a given chemical structure.
4. 4. The program according to claim 3, wherein the given chemical structure is a chemical structure read from a storage unit that stores a list of chemical structures.
5. The program according to claim 1 , wherein the calculation step calculates a size of the quantum bit or the required quantum volume for each of the plurality of small processes.
6. 6. The program according to claim 1, wherein the selection step selects the computer according to at least one of the quantum bits or the required quantum volume calculated in the calculation step and the capabilities, characteristics, and availability of available computer resources.
7. 7. The program according to claim 6, wherein the selection step further selects an execution timing or an execution order for executing the computer depending on at least one of the quantum bits or the required quantum volume calculated in the calculation step and the capabilities, characteristics, and availability of available computer resources.
8. The selection step selects the computer so that the quantum bits do not exceed the quantum bits available on the computer, or so that the required quantum volume does not exceed the required quantum volume of the computer. The program according to any one of claims 1 to 7.
9. The program according to any one of claims 1 to 8, further comprising a display control step of causing the classical computer to display on a display unit the size of the quantum bit or the required quantum volume calculated by the calculation step.
10. a generating step of generating a list of computers capable of executing the process based on the quantum bit or the required quantum volume calculated in the calculating step; 10. The program according to claim 1, further comprising a display control step of causing the classical computer to display on a display unit a list of computers capable of executing the process generated by the generation step.
11. 11. The program according to claim 9, wherein the display unit is arranged in a user terminal that is a terminal operable by a user and is different from a provider side terminal that is a terminal on which the classical computer is arranged.
12. The program according to any one of claims 1 to 11, wherein the selection step selects a computer to execute the processing from among both classical computers and quantum computers, based on the quantum bit or the required quantum volume.
13. The program according to any one of claims 1 to 12, wherein the combined algorithm is a variational quantum eigensolver (VQE) method.
14. A computer system comprising a classical computer that executes a process of selecting a computer that executes a given process from among a plurality of computers when the given process is executed by a quantum algorithm or a combination algorithm of a classical algorithm and a quantum algorithm, and the plurality of computers, the plurality of computers includes at least one quantum computer; The classical computer is A calculation unit that calculates the size of a required quantum bit or a required quantum volume required to execute the given process using the quantum algorithm, or in a part of the quantum algorithm when the given process is executed using the combined algorithm; a distribution unit that selects the computer that executes the given process based on the quantum bit or the required quantum volume calculated by the calculation unit; a transmission unit that transmits, when the computer selected by the allocation unit includes the quantum computer, a control signal related to an instruction for the quantum computer to start the quantum algorithm to the quantum computer; a division determination unit that determines how to divide the given process into a plurality of sub-processes; a division unit that divides the given process into the plurality of small processes based on the determined division method; Equipped with the allocating unit selects the computer for each of the plurality of small processes divided by the dividing unit; The transmission unit generates the control signal for each of the plurality of small processes divided by the division unit.
15. 15. The computer system according to claim 14, further comprising a function of transmitting the size of the quantum bit or the requested quantum volume calculated by the calculation unit, or information related to the computer selected by the allocation unit.
16. 15. The computer system according to claim 14, further comprising a display unit that displays to a user the size of the quantum bit or the requested quantum volume calculated by the calculation unit, or information related to the computer selected by the allocation unit.
17. 17. The computer system according to claim 16, further comprising a display unit that displays to a user the size of the quantum bit or the required quantum volume calculated by the calculation unit, or information related to the computer selected by the allocation unit, and a character string representing a structural formula, atomic coordinates, or chemical structure, or information identifying a compound.
18. 15. The computer system according to claim 14, wherein the classical computer comprises: a first classical computer having a function of the calculation unit; and a second classical computer connected to the first classical computer via a network and having functions of the distribution unit and the transmission unit.
19. A classical computer that executes a process of selecting a computer that executes a given process from among a plurality of computers when the given process is executed by a quantum algorithm or a combination algorithm of a classical algorithm and a quantum algorithm, A calculation unit that calculates the size of a required quantum bit or a required quantum volume required to execute the given process using the quantum algorithm, or in a part of the quantum algorithm when the given process is executed using the combined algorithm; a distribution unit that selects the computer that executes the given process based on the quantum bit or the required quantum volume calculated by the calculation unit; a transmission unit that transmits a control signal related to an instruction for the quantum computer to start the quantum algorithm to the quantum computer when the computer selected by the allocation unit includes a quantum computer; a division determination unit that determines how to divide the given process into a plurality of sub-processes; a division unit that divides the given process into the plurality of small processes based on the determined division method; Equipped with the allocating unit selects the computer for each of the plurality of small processes divided by the dividing unit; The transmission unit generates the control signal for each of the plurality of small processes divided by the division unit.
Citation Information
Patent Citations
Management device and management method
JP2011018198A
Organic thin film, gas barrier film, adhesive film, display device, and film
JP2013004377A
Training quantum evolution using sub-logic control
JP2019520645A
Hybrid classical-quantum computer architecture for molecular modeling
WO2005122052A1
Operator averaging within quantum computing systems
WO2018212789A1
