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

By identifying and prioritizing repetitive sections in quantum programs, the execution time of hybrid quantum-classical algorithms is reduced, addressing the delays and resource inefficiencies in existing systems, and ensuring stable processing.

WO2024180772A1PCT designated stage expired Publication Date: 2024-09-06FUJITSU LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
PCT/JP2023/007876
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-02
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing combination of quantum computer and classical computer processing algorithms, such as VQA and VQE, face significant delays due to the need for frequent switching between the two systems, resulting in prolonged execution times, often taking several days to complete, and can lead to unstable results and resource wastage.

Method used

The proposed solution involves identifying repetitive processing sections in quantum programs, measuring and estimating execution and usage times, and scheduling quantum computer resources accordingly to prioritize these sections, thereby reducing waiting times and optimizing resource utilization.

Benefits of technology

This approach significantly reduces the execution time of hybrid quantum-classical algorithms by prioritizing repetitive sections, minimizing waiting times, and preventing resource wastage, while ensuring stable and efficient processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure JP2023007876_06092024_PF_FP
    Figure JP2023007876_06092024_PF_FP
Patent Text Reader

Abstract

There are cases where the time taken to complete an algorithm becomes longer when quantum computer processing is combined with classical computer processing. This information processing program causes a computer to execute processes for: acquiring a plurality of call stacks of a first program for using a quantum computer; identifying a repetitive processing period in the first program on the basis of the call stacks; measuring a first execution time of the identified period and a first use time of the quantum computer in the identified period; and estimating a second execution time of the identified period and a second use time of the quantum computer in the identified period on the basis of the first execution time and the first use time. Accordingly, the execution time of the algorithm can be reduced when the quantum computer processing is combined with the classical computer processing.
Need to check novelty before this filing date? Find Prior Art

Description

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

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

[0002] An algorithm that achieves a specific purpose by combining processing on a quantum computer and processing on a classical computer proceeds by repeatedly going back and forth between the quantum computer and the classical computer. Here, for example, a quantum computer is a computer that operates using quantum mechanical phenomena, and a classical computer is a general-purpose computer that is currently in widespread use. Examples of algorithms that are executed by going back and forth between the two computers include a variational quantum algorithm (VQA) and a variational quantum eigensolver (VQE).

[0003] In VQA and other executions, for example, a user defines a quantum circuit and submits it as a computation job to the execution queue of a quantum computer, i.e., to a job scheduler. The job scheduler then determines the next job to be executed, and the determined job is executed on the quantum computer.

[0004] Special table 2022-511613 publication Special table 2021-530783 publication

[0005] However, algorithms that combine quantum computer processing and classical computer processing take a long time to complete. For example, if a job is scheduled in such a way that it is submitted to the end of the execution queue, a waiting time occurs before the job is executed each time the job goes back and forth between the classical computer and the quantum computer. Therefore, for example, if the waiting time before job execution is one day and 100 iterations, i.e., 100 iterations, occur between the classical computer and the quantum computer until execution of a VQA or other similar task is completed, it will take more than 100 days to complete the VQA or similar task.

[0006] In one aspect, an object is to reduce the execution time of an algorithm that combines quantum computer processing and classical computer processing.

[0007] In one aspect, an information processing program causes a computer to execute a process of acquiring call stacks of multiple first programs for utilizing a quantum computer, identifying an interval of repetitive processing in the first programs based on the call stacks, measuring a first execution time for the identified interval and a first usage time of the quantum computer in the identified interval, and estimating a second execution time for the identified interval and a second usage time of the quantum computer in the identified interval based on the first execution time and the first usage time.

[0008] In one aspect, the execution time of an algorithm that combines quantum computer processing and classical computer processing can be reduced.

[0009] FIG. 1 is a diagram illustrating an example of a quantum circuit. FIG. 2 is a diagram illustrating a quantum-classical hybrid algorithm. FIG. 3 is a diagram illustrating an example of a quantum program. FIG. 4 is a diagram illustrating an example of the configuration of a quantum program. FIG. 5 is a diagram illustrating an example of the configuration of an information processing system according to this embodiment. FIG. 6 is a diagram illustrating job scheduling for a quantum computer. FIG. 7 is a diagram illustrating job scheduling for a quantum-classical hybrid algorithm. FIG. 8 is a diagram illustrating an example of the configuration of a quantum program. FIG. 9 is a diagram illustrating execution of a general program. FIG. 10 is a diagram illustrating waiting time that occurs in a quantum-classical hybrid algorithm. FIG. 11 is a diagram illustrating an example of the configuration of a user computer 10 according to this embodiment. FIG. 12 is a diagram illustrating an example of the configuration of a management computer 100 according to this embodiment. FIG. 13 is a diagram illustrating an example of the configuration of a quantum computer 200 according to this embodiment. FIG. 14 is a flowchart illustrating an example of the flow of time estimation and job scheduling processing according to this embodiment. FIG. 15 is a diagram illustrating an example of the functional configuration of time estimation and job scheduling processing according to this embodiment. FIG. 16 is a diagram illustrating an example of the configuration of an information processing system for executing the time estimation and job scheduling processing according to this embodiment. FIG. 17 is a diagram illustrating an example of source code of a quantum program for a quantum-classical hybrid algorithm. FIG. 18 is a diagram for explaining a call stack according to this embodiment. FIG. 19 is a diagram for explaining identification of a repeat interval in case A according to this embodiment. FIG. 20 is a diagram for explaining a call stack in case A according to this embodiment. FIG. 21 is a diagram for explaining identification of a repeat interval in case B according to this embodiment. FIG. 22 is a diagram for explaining a call stack in case B according to this embodiment. FIG. 23 is a diagram for explaining a time estimation process according to this embodiment. FIG. 24 is a diagram for explaining a job scheduling process according to this embodiment. FIG. 25 is a diagram for explaining a job scheduling process along a time series according to this embodiment.Fig. 26 is a diagram showing an example of the execution time and usage time of each iteration according to this embodiment. Fig. 27 is a diagram showing an example of the hardware configuration of the user computer 10 according to this embodiment.

[0010] Hereinafter, examples of the information processing program, information processing device, and information processing method according to the present embodiment will be described in detail with reference to the accompanying drawings. Note that the present embodiment is not limited to these examples. Furthermore, each example can be appropriately combined within a consistent range.

[0011] First, we will explain quantum circuits that run on quantum computers. Quantum circuits are a relatively common way of expressing processes that run on quantum computers. When performing VQA or other similar tasks, for example, a user defines a quantum circuit, which is then executed on the quantum computer as a computation job.

[0012] FIG. 1 is a diagram showing an example of a quantum circuit. As shown in FIG. 1, for example, in a quantum circuit, quantum bits indicated by q1, q2, etc. are arranged vertically and described. A quantum bit (qubit) represents a unit of information in a quantum computer. Also, as shown in FIG. 1, for example, in a quantum circuit, each process in each quantum bit is described in chronological order from left to right. Each process in each quantum bit is called a quantum gate.

[0013] The execution of a quantum circuit by a quantum computer will be described. In the example of FIG. 1, (1) there are quantum bits q1 and q2. First, the quantum computer (2) applies an H gate, which is a type of quantum gate, to quantum bit q1. Next, the quantum computer (3) applies a CNOT gate, which is a type of quantum gate, to quantum bits q1 and q2. Then, the quantum computer (4) measures the values ​​of quantum bits q1 and q2 by reading the values ​​stored in quantum bits q1 and q2 as a result of the processing.

[0014] Next, a quantum-classical hybrid algorithm that is the target of this embodiment will be described. A quantum-classical hybrid algorithm is, for example, an algorithm in which processing proceeds by repeatedly going back and forth between a quantum computer and a classical computer, and examples thereof include VQA and VQE. Note that in this embodiment, VQA will be used as an example of a quantum-classical hybrid algorithm, but the target of execution is not limited to VQA and may include other algorithms such as VQE.

[0015] FIG. 2 is a diagram for explaining a quantum-classical hybrid algorithm. In the example of FIG. 2, the block on the left side shows processing on a quantum computer, and the block on the right side shows processing on a classical computer. As shown in FIG. 2, for example, the quantum computer executes a parameterized quantum circuit, and the classical computer receives the execution result and calculates the value of a predefined objective function based on the execution result. Then, the classical computer, for example, variationally adjusts a parameter θ until the value of the objective function is minimized or maximized. 1 and θ 2 The quantum computer executes the quantum circuit with the updated parameters until the optimization process is complete, and the classical computer receives the execution results of the quantum circuit, and calculates the value of the objective function based on the execution results and updates the parameters repeatedly. In this way, in a quantum-classical hybrid algorithm, processing progresses by going back and forth between the quantum computer and the classical computer many times.

[0016] Next, an application program for executing a quantum computer (hereinafter referred to as a "quantum program") will be described. FIG. 3 is a diagram showing an example of a quantum program. As shown in FIG. 3, a user defines structural information of a quantum circuit in a programming language such as Python (registered trademark) and creates a quantum program. The quantum program is then executed via a classical computer, and the defined quantum circuit is transmitted via a network such as the Internet to a service that provides quantum computers via the cloud. Furthermore, the classical computer that executed the quantum program receives the execution results of the quantum circuit from the quantum computer and performs further processing based on the execution results.

[0017] A quantum program describes various processes in addition to the definition and transmission of quantum circuits and the reception of execution results. FIG. 4 is a diagram showing an example of the configuration of a quantum program. FIG. 4 illustrates the configuration of a quantum program along the processing flow, with the "quantum circuit definition / transmission, result reception" in the VQA block corresponding to the quantum program description portion shown in FIG. 3. As shown in FIG. 4, in addition to the definition and transmission of quantum circuits and the reception of execution results, a quantum program may also include, for example, objective function calculation and parameter update processing in VQA, as well as classical processing that does not use a quantum computer. Examples of classical processing that does not use a quantum computer include license authentication processing for using an application, GUI (Graphical User Interface) drawing and event processing, and database update processing. Note that the repeated processing intervals of the "quantum circuit definition / transmission, result reception" and "objective function calculation, parameter update" processing portions in FIG. 4 are intervals in which data travels back and forth between a classical computer and a quantum computer. Hereinafter, such intervals requiring repeated data exchange between a classical computer and a quantum computer may be simply referred to as "repetition intervals."

[0018] Next, a system configuration for utilizing a quantum computer using a quantum program such as that described with reference to FIGS. 3 and 4 will be described. FIG. 5 is a diagram showing an example configuration of an information processing system according to this embodiment. As shown in FIG. 5, the information processing system according to this embodiment is a system in which user computers 10-1 to 10-n, which are classical computers, and a management computer 100 are connected to each other via a network 50 so as to be able to communicate with each other. Furthermore, quantum computers 200-1 to 200-m, which are quantum computers, are also connected to the management computer 100 so as to be able to communicate with each other via the network 50. Note that n and m are arbitrary natural numbers, and the user computers 10-1 to 10-n and the quantum computers 200-1 to 200-m may be collectively referred to as the "user computers 10" and the "quantum computers 200," respectively, hereinafter.

[0019] The network 50 may be any of a variety of communication networks, whether wired or wireless, such as an intranet or the Internet. The network 50 may not be a single network, but may instead be configured such that an intranet and the Internet are connected via a network device such as a gateway or other device (not shown).

[0020] The user computer 10, the management computer 100, and the quantum computer 200 will be described with reference to Fig. 6. Fig. 6 is a diagram for explaining job scheduling of the quantum computer.

[0021] The user computer 10 is, for example, a general computer used by each user, i.e., a classical computer, such as an information processing device such as a desktop personal computer (PC) or a notebook PC. As shown in FIG. 6 , each user executes, via the user computer 10, a quantum program that defines a quantum circuit to execute a quantum-classical hybrid algorithm, for example. The user computer 10 then transmits the defined quantum circuit as a computation job to the management computer 100. This submits the computation job to the job scheduler of the management computer 100.

[0022] The management computer 100 is, for example, a classical computer managed by a service provider that provides quantum computers via the cloud, and is an information processing device such as a server computer. As shown in Figure 6, when the management computer 100 receives a computation job from, for example, a user computer 10, it submits the job to a job scheduler. Then, the management computer 100 determines the next job to be executed using the job scheduler, and sends an instruction to execute the determined job to the quantum computer 200.

[0023] The quantum computer 200 is, for example, an information processing device such as a server computer that is managed by a service provider that provides quantum computers and is driven by quantum mechanical phenomena. As shown in Figure 6, when the quantum computer 200 receives, for example, an instruction to execute a job from the management computer 100, it extracts the job from a job scheduler and executes it. Then, for example, the quantum computer 200 transmits the execution results of the job to the user computer 10 of the target user via the management computer 100.

[0024] However, quantum computers generally have a limited number of computers and a limited number of available quantum bits, and it may take more than a day for a job to be actually executed after it has been placed in an execution queue.

[0025] FIG. 7 is a diagram illustrating job scheduling for a quantum-classical hybrid algorithm. As shown in FIG. 7 , in a quantum-classical hybrid algorithm such as VQA, processing moves back and forth between the user computer 10 and the quantum computer 200 many times. Therefore, if job scheduling is performed by submitting a job to the end of the execution queue each time processing moves back and forth, it will take a long time to complete the algorithm. As shown in FIG. 7 , for example, in VQA, multiple iterations are required to complete the algorithm, and the definition of the quantum circuit in the (i+1)th iteration is determined based on the execution result of the quantum circuit in the i-th iteration. Therefore, for example, if 100 iterations are required to complete the algorithm and it takes one day from when a job is added to the execution queue to when it is executed, it will take more than 100 days to complete the algorithm.

[0026] Therefore, one of the objectives of this embodiment is to shorten the execution time of processes such as VQA that repeatedly go back and forth between the quantum computer 200 and the user computer 10. Note that a long wait time until the algorithm is completed can also cause the following problems. For example, quantum computers generally undergo calibration, which is an adjustment to reduce quantum bit operation errors, periodically, such as once a day. Therefore, if calibration occurs multiple times while the quantum computer 200 is executing an algorithm, there is a possibility that it may become difficult for the algorithm to output a stable result.

[0027] In order to shorten the execution time of a process that repeatedly goes back and forth between the quantum computer 200 and the user computer 10, for example, a method is available in which a priority is given to the process, and the process is executed with priority over jobs of other users. As a result, the job of the user to whom the priority is given is processed with priority over jobs of other users, and the waiting time for execution of the quantum computer 200 can be significantly reduced.

[0028] However, this method of assigning priority raises the following problems. FIG. 8 illustrates an example of a quantum program configuration. For example, a quantum program includes not only processes based on a quantum-classical hybrid algorithm using the quantum computer 200, as shown in section A in FIG. 8, but also processes that are not based on a quantum-classical hybrid algorithm, as shown in section B. Here, processes that are not based on a quantum-classical hybrid algorithm are, for example, processes that are run solely on a classical computer and do not use the quantum computer 200. Alternatively, processes that are not based on a quantum-classical hybrid algorithm are, for example, processes that use the quantum computer 200 but do not repeatedly switch between the quantum computer 200 and the user computer 10. Therefore, if priority is assigned on a quantum program basis, priority will be assigned to jobs that do not actually require priority processing, as shown in section B in FIG. 8. While a method allows users to specify the jobs and sections to which priority is assigned, this method relies heavily on the user's discretion and does not guarantee that priority will be assigned to the minimum number of jobs and sections necessary. Furthermore, a malicious user who desires preferential use of a quantum computer could assign priority to the entire quantum program. To avoid such problems, one idea is for the service provider that provides quantum computers via the cloud to specify the implementation section of the quantum-classical hybrid algorithm and give priority to that section, rather than leaving it up to the user's discretion.

[0029] However, programs are typically implemented by dividing them into multiple files and methods, and the implementation interval of a quantum-classical hybrid algorithm may not be obvious and difficult to identify. FIG. 9 is a diagram for explaining the execution of a typical program. As shown in FIG. 9, a typical program is not written in a single file, but is written in multiple files and methods. Therefore, even in the case of the quantum program shown in FIG. 8, each process is written in multiple files and methods. Also, as shown in FIG. 9, the program contains elements, such as dynamic binding, that determine whether file 1 or 2 is called at program execution time. Therefore, it is not easy to identify the implementation interval of a quantum-classical hybrid algorithm from within the program.

[0030] Furthermore, even if a priority is assigned to a specific job or section, the following problem occurs. FIG. 10 is a diagram for explaining the waiting time that occurs in a quantum-classical hybrid algorithm. In FIG. 10, a job sent to the job scheduler in the i-th iteration of a quantum program including a quantum-classical hybrid algorithm on a user computer 10 is represented as J(i). It is also assumed that a priority is assigned to each job of the quantum-classical hybrid algorithm, such as J(i).

[0031] After the execution of J(i) is completed, the quantum program on the user computer 10 receives the execution result, performs objective function calculations, parameter update processing, etc., and then sends the next job J(i+1) to the job scheduler. Because processes that do not use the quantum computer 200 are included between J(i) and J(i+1), even if each job is assigned a priority, as shown in FIG. 10 , processing of other jobs that do not have a priority may be executed. In this case, as shown in the lower part of FIG. 10 , even if the job scheduler receives J(i+1), if other jobs that do not have a priority are already running, there may be a long wait time before J(i+1) is executed. This is because the job scheduler does not know when J(i+1) will be sent after the execution of J(i), and therefore cannot determine the execution time or execution amount of other jobs that can be executed. After J(i) is executed, it is also possible to control the job scheduler to stop the execution of other jobs until it receives J(i+1), but in this case, the quantum computer 200 will be unused for a longer period of time, resulting in a waste of resources.

[0032] In consideration of these problems, in this embodiment, an interval of repetitive processing in a quantum program including a quantum-classical hybrid algorithm such as VQA is identified, and the execution time of the identified interval and the usage time of the quantum computer are estimated. Then, scheduling for the execution of the quantum computer is performed based on the estimated usage time of the quantum computer.

[0033] (Functional Configuration of User Computer 10) Next, the functional configuration of the user computer 10, which is a classical computer used by each user, will be described. Fig. 11 is a diagram showing an example configuration of the user computer 10 according to this embodiment. As shown in Fig. 11, the user computer 10 has a communication unit 20, a storage unit 30, and a control unit 40. Although not shown, the user computer 10 may also have input devices such as a keyboard and a mouse, and output devices such as a display.

[0034] The communication unit 20 is a processing unit that controls communication with other computers, and is, for example, a communication interface such as a network interface card.

[0035] The storage unit 30 has a function of storing various data and programs executed by the control unit 40, and is realized by a storage device such as a memory or a hard disk. The storage unit 30 stores program information 31, call stack information 32, and the like.

[0036] The program information 31 stores, for example, a quantum program for using a quantum computer and information about the program, as explained with reference to FIGS.

[0037] The call stack information 32 stores, for example, a call stack obtained from a quantum program for using a quantum computer and information related to the call stack.

[0038] The above information stored in the storage unit 30 is merely an example, and the storage unit 30 can store various information other than the above information.

[0039] The control unit 40 is a processing unit that controls the entire user computer 10, and is, for example, a processor such as a CPU (Central Processing Unit). The control unit 40 includes processing units such as an acquisition unit 41, an identification unit 42, a measurement unit 43, and an estimation unit 44. Each processing unit is an example of an electronic circuit included in a processor or an example of a process executed by a processor.

[0040] The acquisition unit 41 is, for example, a computer-executable program for using the quantum computer 200, and acquires the call stack of a first program which is a quantum program.

[0041] The identification unit 42 identifies an interval of a repetitive process in the first program, for example, based on the call stack acquired by the acquisition unit 41. The identification unit 42, for example, identifies a first repetitive statement that is the outermost of repetitive statements that include execution processing of the quantum computer 200, and identifies the range of the first repetitive statement as the interval of the repetitive process. When the identification unit 42 is unable to access the source code that includes execution processing of the quantum computer 200, it identifies the range from the start to the end of the execution point of processing that is optimized based on the execution result of the quantum computer 200 as the interval of the repetitive process.

[0042] The measurement unit 43 measures, for example, a first execution time in the section identified by the identification unit 42 and a first usage time of the quantum computer 200 in the identified section.

[0043] The estimation unit 44 estimates a second execution time for the specified interval and a second usage time of the quantum computer in the specified interval, for example, based on the first execution time and the first usage time measured by the measurement unit 43. The second execution time and the second usage time are future times when the quantum computer 200 will be used from now on. That is, if the first execution time and the first usage time are times in the first iteration of the specified interval, the second execution time and the second usage time are times in the second iteration after the first iteration. The second iteration is an iteration that will be executed from now on. The estimation of each time can be performed, for example, using existing time series analysis techniques based on time series data such as the first execution time and the first usage time.

[0044] (Functional Configuration of Management Computer 100) Next, the functional configuration of the management computer 100, which is a classical computer managed by a service provider that provides the quantum computer 200 via the cloud, will be described. FIG. 12 is a diagram showing an example configuration of the management computer 100 according to this embodiment. As shown in FIG. 12, the management computer 100 has a communication unit 120, a storage unit 130, and a control unit 140. Note that, because the management computer 100 operates as a server computer, unlike the user computer 10, it does not need to have physical input / output devices.

[0045] The communication unit 120 is a processing unit that controls communication with other computers, and is, for example, a communication interface such as a network interface card.

[0046] The storage unit 130 has a function of storing various data and programs executed by the control unit 140, and is realized by a storage device such as a memory or a hard disk. The storage unit 130 stores job information 131, scheduling information 132, and the like.

[0047] The job information 131 stores, for example, jobs sent from each of the user computers 10 and information related to the jobs.

[0048] The scheduling information 132 stores, for example, information about each job that has been submitted to the job scheduler and scheduled.

[0049] The above information stored in the storage unit 130 is merely an example, and the storage unit 130 can store various information other than the above information.

[0050] The control unit 140 is a processing unit that controls the entire management computer 100, and is, for example, a processor such as a CPU. The control unit 140 includes processing units such as a scheduling unit 141 and an execution unit 142. Each processing unit is an example of an electronic circuit included in a processor or an example of a process executed by a processor.

[0051] The scheduling unit 141 schedules the execution of the quantum computer 200 based on, for example, the second usage time and the second usage time estimated by the estimation unit 44 of the user computer 10. Here, the scheduling for the execution of the quantum computer 200 includes, for example, scheduling for the execution of a first program that is a quantum program and a second program other than the first program. Furthermore, for example, the scheduling unit 141 schedules so that the quantum computer 200 can be used for at least the second usage time from the start of the second iteration of the specified section until the second execution time has elapsed. Note that the second iteration is an iteration to be executed after the first iteration that takes the first execution time and the first usage time measured by the measurement unit 43 of the user computer 10.

[0052] The execution unit 142, for example, transmits execution instructions for each job scheduled by the scheduling unit 141 to the quantum computer 200 in the scheduled order, and executes the quantum computer 200.

[0053] (Functional Configuration of Quantum Computer 200) Next, the functional configuration of the quantum computer 200, which is managed by a service provider of a service that provides quantum computers and is operated using quantum mechanical phenomena, will be described. Fig. 13 is a diagram showing an example configuration of the quantum computer 200 according to this embodiment. As shown in Fig. 13, the quantum computer 200 has a communication unit 220, a storage unit 230, and a control unit 240.

[0054] The communication unit 120 is a processing unit that controls communication with other computers, and is, for example, a communication interface such as a network interface card.

[0055] The storage unit 230 has a function of storing various data and programs executed by the control unit 240, and is realized by a storage device such as a memory or a hard disk, for example. The storage unit 230 stores job information 231 and the like.

[0056] The job information 231 stores, for example, jobs sent from each of the user computers 10 and information related to the jobs.

[0057] The above information stored in the storage unit 230 is merely an example, and the storage unit 230 can store various information other than the above information.

[0058] The control unit 240 is a processing unit that controls the entire quantum computer 200, and is, for example, a processor such as a QPU (Quantum Processing Unit). The control unit 240 includes processing units such as an acquisition unit 241 and an execution unit 242. Each processing unit is an example of an electronic circuit included in a processor or an example of a process executed by a processor.

[0059] The acquisition unit 241 acquires a job to be executed from a job scheduler of the management computer 100 based on, for example, a job execution instruction sent to the management computer 100 .

[0060] The execution unit 242 executes, for example, the job acquired by the acquisition unit 241 and transmits the execution result of the job to the user computer 10 of the target user via the management computer 100 .

[0061] (Processing Flow) Next, the identification of a repetition interval in a quantum program, the estimation of the execution time and utilization time of the quantum computer 200 in the repetition interval, and job scheduling processing for the quantum computer 200 will be described. Note that, hereinafter, these processes may be collectively referred to as "time estimation / job scheduling processing." FIG. 14 is a flowchart showing an example of the flow of the time estimation / job scheduling processing according to this embodiment. In the time estimation / job scheduling processing, as shown in FIG. 14, the identification of a repetition interval in a quantum program is referred to as step 1. Similarly, the estimation of the execution time and utilization time of the quantum computer 200 in the repetition interval, and job scheduling processing for the quantum computer 200 are referred to as step 2. The processing at each step will be described in detail below.

[0062] First, as shown in FIG. 14, the user computer 10 acquires a call stack when transmitting a job to the quantum computer 200 (step S101).

[0063] Next, the user computer 10 identifies a repeat interval in the quantum-classical hybrid algorithm in the quantum program, for example, based on the call stack acquired in step S101 (step S102). If the repeat interval cannot be identified (step S103: No), the process returns to step S101, and the user computer 10 acquires, for example, a new call stack and repeats the process.

[0064] On the other hand, if the repetition interval can be identified (step S103: Yes), the user computer 10 records, for example, in the quantum program, the statement to be executed after the repetition interval identified in step S102 (step S104). Note that the subsequent processing of steps S106 to S108 is repeated until the repetition interval identified in step S102 is exited, that is, until the processing of each iteration of the repetition interval is completed.

[0065] Next, the user computer 10, for example, identifies a statement in the quantum program that is executed exactly once for each repetition of the repetition section identified in step S102 (step S105).

[0066] Next, the user computer 10 measures, for example, the execution time required for each iteration of the repetition section identified in step S102, and the usage time of the quantum computer 200 in each iteration (step S106).

[0067] Next, the user computer 10 estimates the execution time and usage time required for the (i+1)th iteration from the execution time and usage time measured in the iterations up to the i-th iteration in step S107 (step S107).

[0068] Next, the management computer 100 performs job scheduling based on, for example, the execution time and usage time required for the (i+1)th iteration estimated in step S107 (step S108). The management computer 100 performs this job scheduling by receiving the estimated execution time and usage time from each user's user computer 10. After step S108 is performed, the time estimation and job scheduling process shown in FIG. 14 ends, but the management computer 100 sends an execution instruction for each job scheduled in step S108 to the quantum computer 200. Then, based on the execution instruction, the quantum computer 200 obtains and executes the job to be executed from the job scheduler of the management computer 100, and sends the execution results of the job to the user computer 10 of the target user.

[0069] Next, the functional configuration of the time estimation / job scheduling process shown in FIG. 14 will be described. FIG. 15 is a diagram showing an example of the functional configuration of the time estimation / job scheduling process according to this embodiment. FIG. 15 shows an example in which user computers 10-1 and 10-2 used by users 1 and 2, respectively, execute a repetition interval identification process and a next iteration time estimation process for quantum programs 1 and 2. The repetition interval identification process shown in FIG. 15 corresponds to step 1 in FIG. 14. The next iteration time estimation process shown in FIG. 15 corresponds to the process of estimating the execution time in the repetition interval and the usage time of the quantum computer 200 in step 2 in FIG. 4. In other words, the next iteration is the (i+1)th iteration in FIG. 14. Note that, in the example of FIG. 15, two user computers 10, user computers 10-1 and 10-2, are shown as user computers 10, but the number of user computers 10 may be greater.

[0070] As shown in FIG. 15 , the management computer 100 receives from the user computers 10-1 and 10-2 the time required for the next iteration estimated by the next iteration time estimation process, as well as each job. Then, the management computer 100 schedules each job based on the estimated execution time in the repetition interval and the usage time of the quantum computer 200. This scheduling corresponds to the job scheduling process for the quantum computer 200 in step 2 of FIG. 14 . As shown in FIG. 15 , the management computer 100 sends execution instructions for each scheduled job to the quantum computer 200, receives execution results for each job, and sends the execution results to the user computer 10 of the target user. Note that, although the example of FIG. 15 shows three quantum computers 200, quantum computers 200-1 to 200-3, the number of quantum computers 200 may be greater or less.

[0071] Next, a system configuration for executing the time estimation / job scheduling processing shown in Figures 14 and 15 will be described. Figure 16 is a diagram showing an example configuration of an information processing system for executing the time estimation / job scheduling processing according to this embodiment. In the example of Figure 16, the repetition interval identification processing and next iteration time estimation processing shown in Figure 15 are shown to be executed by each user's user computer 10. However, the next iteration time estimation processing may also be executed by the management computer 100. Note that the repetition interval identification processing requires access to the source code of quantum programs 1 and 2, and is therefore executed by each user's user computer 10.

[0072] (Repetition Section Identification Process) Next, the repetition section identification process shown in Figures 15 and 16 will be described in more detail. The repetition section is a section in which data must be repeatedly exchanged between the user computer 10 and the quantum computer 200 in the quantum-classical hybrid algorithm included in the quantum program. A more specific repetition section will be described using Figure 17.

[0073] FIG. 17 is a diagram showing an example of source code for a quantum program of a quantum-classical hybrid algorithm. Case A, shown on the left side of FIG. 17, is an example in which a repetitive process is explicitly written as a while statement in the source code of the quantum program. For example, the period between the repetitive processes is identified as a repetitive interval through information analysis of the source code. On the other hand, Case B, shown on the right side of FIG. 17, is an example in which a library method is called, which receives a definition (calculation method) of an objective function and optimizes parameters so that the value of the objective function is maximized or minimized. Unlike Case A, Case B does not contain a repetitive process in the source code, and the repetitive process similar to Case A is executed within the library method. Case B also includes cases in which the source code of the library method is accessible, and cases in which the library method is created as a binary file (also called executable binary, binary data, etc.) and the source code is inaccessible. As will be described in more detail later, when the source code is inaccessible in Case B, information analysis of the source code is not possible. Therefore, the repetitive interval in the source code cannot be identified as in Case A, and the repetitive interval is identified approximately. In the example of Figure 17, for convenience, the source code for both cases A and B is written in one file, but in reality, it is common for the source code to be written divided into multiple files or methods.

[0074] Next, the call stack will be described, since the identification of the repetition interval is performed based on the call stack of the quantum program. FIG. 18 is a diagram for explaining the call stack according to this embodiment. As described above, source code is generally written divided into multiple files and methods, so in the example of FIG. 18, the source code is also written in three files, files 1 to 3. As shown in FIG. 18, in files 1 to 3, file 1 is written to call and execute method m2 written in file 2. Furthermore, in file 2, method m5 written in file 3 is written to call and execute method m5. Furthermore, the numbers to the left of each file, such as 100 to 103 in file 1, indicate the line number in the source code of each file.

[0075] The right side of Figure 18 shows the call stack CS, and in the example of Figure 18, it shows the call stack immediately after method m5 is executed. The call stack stores hierarchical information about the invocation of methods in the running program. In the example of Figure 18, the elements of the call stack indicated as CS(1), CS(2), and CS(3) are called stack frames, and store information such as which method was called from which position in the source code. Note that stack frames may also store other information, such as variable values ​​and method states. CS(1) is at the top of the call stack and corresponds to the currently executing method. In the example of Figure 18, the method corresponding to CS(i) is M(i), and the position in the source code from which M(i) is called is L(i).

[0076] More specifically, as shown in FIG. 18 , CS(1) corresponding to the currently executing method indicates that method m5 in file 3 (M(1)) was called and executed from line 26 in file 2 (L(1)). The next call stack, CS(2), indicates that method m2 in file 2 (M(2)), which called method m5, was called and executed from line 102 in file 1 (L(2)). The next call stack, CS(3), indicates that method m1 in file 1 (M(3)), which called method m2, was called and executed from line 102 in file 1 (L(2). Because file 1 contains an entry point indicating the starting point of program or source code execution, L(3) in CS(3) stores a value such as N / A (not applicable).

[0077] Next, the process of identifying the repeat section in case A shown in Fig. 17 will be described with reference to Figs. 19 and 20. Note that even in case B, if the source code of the library method is accessible, the repeat section is identified by the same process as in case A. Fig. 19 is a diagram for explaining the identification of the repeat section in case A according to this embodiment. Also, Fig. 20 is a diagram for explaining the call stack in case A according to this embodiment.

[0078] In the repetitive section identification process, first, the user computer 10 acquires a call stack immediately after calling a method that sends a job to the quantum computer 200. The call stack acquired here is, for example, the call stack CS shown in FIG. 20. Then, the user computer 10 sequentially references, for example, stack frames CS(N-1) to CS(1) of the call stack to find the outermost repetitive statement, and identifies the statement to be executed next after the repetitive statement as S. next Then, the user computer 10 specifies, for example, the time from the present time when the call stack is acquired to S next is specified as the repetition interval in the quantum-classical hybrid algorithm.

[0079] More specifically, the user computer 10 first references, for example, CS(4) of the call stack CS shown in Figure 20, which corresponds to stack frame CS(N-1). As shown in Figure 19, there is no repeat statement surrounding line 10 of file1, which is indicated by LS(4) corresponding to CS(4), so the user computer 10 then references, for example, CS(3).

[0080] The loop statement surrounding line 106 of file3 indicated by LS(3) corresponding to CS(3) has a while statement on line 104, and so the user computer 10 determines that line 104 is the outermost loop statement S loop The user computer 10 may specify, for example, S loop The statement on line 129 that is executed next is S next Then, the user computer 10 identifies, for example, S next is specified as the repetition interval in the quantum-classical hybrid algorithm.

[0081] 19 is a process to execute the quantum computer 200, and file4 is called from there, which calls file5 or file6. Whether file5 or file6 is called and executed is determined when the program is executed. Furthermore, the submit_xxx method of file5 or the submit_yyy method of file6 is a method that transmits a job to the quantum computer 200.

[0082] The above is the repetition interval identification process for case A in which the repetition process of the source code of the quantum program is explicitly described. Next, the repetition interval identification process for case B will be described using Figures 21 and 22. Figure 21 is a diagram for explaining the identification of the repetition interval for case B according to this embodiment. Figure 22 is a diagram for explaining the call stack for case B according to this embodiment. Note that in Figure 21, file1 and file2 are the same as those for case A shown in Figure 19, and therefore their description is omitted. Furthermore, as described above, even in case B, if the source code of the library method can be accessed, the repetition interval is identified by the same process as in case A.

[0083] In the repetitive section identification process of Case B, as in Case A, the user computer 10 acquires a call stack immediately after calling a method that transmits a job to the quantum computer 200. The call stack acquired here is, for example, the call stack CS shown in FIG.

[0084] Then, as in Case A, the user computer 10 sequentially references stack frames CS(N-1) to CS(1) in the call stack. However, in Case B, the source code does not contain any loop statements, and the library methods containing loop statements are inaccessible. Therefore, the source code contents of the library methods optimize, lib_internal_method1, and lib_internal_method2 shown in FIG. 21 are unknown, and the call locations of each method are also unknown. Note that when the call locations are unknown, for example, as shown in FIG. 22, the values ​​N / A (not applicable) are stored in L(3), L(4), and L(5) in the call stack.

[0085] 22, the user computer 10 refers to CS(7) and CS(6) to identify the library method that cannot be accessed by CS(5). Next, the user computer 10 executes the statement on line 104, which is executed next to line 103 of file3 indicated by L(6), which corresponds to CS(6) stored in the call stack after CS(5), as S next It is specified as S next The stack frame number 6 of L(6) corresponding to min Let k min is defined as the smallest k that can access the source code including L(k), where CS(k) is the call stack stored after the call stack in which the inaccessible library method is identified. Then, the user computer 10 calculates, for example, S, which is the 104th line of file3 from the current time when the call stack was acquired. next is identified as the repetition interval in the quantum-classical hybrid algorithm. That is, in Case B, the range from the start to the end of the execution point of the process that performs optimization based on the execution result of the quantum computer 200 is approximately identified as the repetition interval.

[0086] As a supplement to the repetitive interval identification process, the process for obtaining the call stack may differ depending on whether the repetitive interval identification process is executed in the same process as the quantum program executed by the user computer 10 or in a different process.

[0087] First, we will explain how to acquire a call stack when the repetition interval identification process is executed in the same process as the quantum program executed by the user computer 10. In this case, the method for sending a job to the quantum computer 200 is provided to the user by the quantum cloud service provider as part of a library for developing quantum programs. Therefore, the user writes source code in the method so that the processes are executed in the following order (1) to (3): (1) Acquire the call stack of the program. Note that the function for acquiring the call stack of the program is provided as a standard library in many programming languages. (2) Identify the repetition interval. (3) Send the job to the quantum computer 200. By executing each process in this order, the call stack can be acquired and the repetition interval can be identified immediately before sending the job to the quantum computer 200.

[0088] This section describes how to obtain a call stack when the repetitive interval identification process is executed in a process different from the quantum program executed by the user computer 10. There are several ways to access call stack information for a program executed in a different process, and the method using a debugger library described below is merely one example. Using a debugger library makes it possible to access runtime information for a program running in a different process. Therefore, the developer writes source code in the method that sends a job to the quantum computer 200 so that the following steps (1) to (7) are executed in this order:

[0089] (1) For example, wait for a connection from another process, which is a process executing a repetitive interval identification process. A connection from another process can be waited for using, for example, a function of a debugger library. (2) Send a job to the quantum computer 200. Furthermore, the other process executing the repetitive interval detection process executes the following processes: (3) Connect to the quantum program. The quantum program can be connected to using a function of a debugger library. (4) Pause the execution of the quantum program. (5) Use the function of the debugger library to obtain the call stack of the quantum program. (6) Execute the repetitive interval identification process. (7) Resume the execution of the quantum program. By executing each process in this order, it is possible to obtain the call stack and identify the repetitive interval immediately before sending the job to the quantum computer 200.

[0090] (Next Iteration Time Estimation Process) Next, the next iteration time estimation process shown in Figures 15 and 16 will be described in more detail. The next iteration time estimation process is a process for estimating the usage time of the quantum computer 200 in order to grant priority for using the quantum computer 200 for the repetitive interval identified in the repetitive interval identification process. More specifically, the user computer 10, for example, identifies one iteration in the identified repetitive interval and estimates the usage time of the quantum computer 200 for one iteration. This makes it possible to determine the time for which priority for using the quantum computer 200 is to be granted. This will be described in more detail below.

[0091] The process of specifying one iteration in the specified repeat section will be described. For example, the user computer 10 may define a statement in the specified repeat section as S marker Then, the user computer 10 specifies, for example, S marker From the time T when next Before S is executed, marker The time up to the point U at which the above is executed again is identified as one iteration.

[0092] S marker The process of identifying the source code may be divided into Case A where the source code can be accessed and Case B where the source code cannot be accessed. As described above, Case A is the outermost loop statement S loop Therefore, the user computer 10 can identify, for example, the outermost repeated sentence S loop and S in the same file loop Located inside the S loop Select a statement that is not surrounded by control statements such as branch statements or loop statements, and press S marker Identify as:

[0093] On the other hand, in case B, for example, k explained in the call stack for case B shown in FIG. min For example, the user computer 10 uses "u" as the call stack CS(u). <k min The largest u that satisfies the condition that "M(u) has access to the source code of M(u)" is defined as u max Then, the user computer 10 specifies, for example, M(u max ) and M(u max ) and is not surrounded by control statements such as branch statements or loop statements, and marker Identify as:

[0094] S marker Once one iteration has been identified, the user computer 10 then estimates, for example, the usage time of the quantum computer 200 in the identified one iteration. FIG. 23 is a diagram for explaining the time estimation process according to this embodiment. As shown in FIG. 23, S marker is executed, then S marker is executed is one iteration. In the example of FIG. 23, the past iterations that have been executed up to the Mth iteration are the iterations that have been executed, and the M+1th iteration is the iteration that will be executed from now on. The user computer 10 estimates the usage time of the quantum computer 200 in the M+1th iteration, for example. In the following description, the past iterations are referred to as itr1, itr2, ... itr MLet the estimated M+1th iteration be itr M+1 Also, for any iteration itr j The usage time of the quantum computer 200 executed in QT(itr j 23, there may be multiple intervals in which the quantum computer 200 is used in one iteration. In such a case, the total usage time of each interval is QT(itr j ) and the execution time of one iteration, that is, QT(itr j ) and the execution time of the processes other than the quantum computer 200 is T(itr j ), and the user computer 10 calculates, for example, T(itr1), T(itr2), ... T(itr M ) as time series data, and based on the time series data, T(itr M+1 Similarly, the user computer 10 estimates QT(itr1), QT(itr2), ... QT(itr M ) as time series data, and QT(itr M+1 ) is estimated.

[0095] Although the next iteration time estimation process has been described above with the user computer 10 as the execution subject, the next iteration time estimation process can also be executed by the management computer 100 .

[0096] (Job Scheduling Process) Next, the job scheduling process shown in Fig. 14 and Fig. 15 will be described in more detail. First, in the following description, a quantum program to which priority for using the quantum computer 200 is assigned is denoted as P. The management computer 100 executes, for example, itr M+1 Since the start of M+1 ) time has elapsed, at least QT(itr M+1 ), the management computer 100 schedules the quantum computer 200 so that the quantum program P can use the quantum computer 200 for a time T(itr M+1)-QT(itr M+1 ) are scheduled as execution targets. This will be described in more detail below in chronological order with reference to FIG.

[0097] As shown in Fig. 24, it is assumed that jobs S1 to S5 other than quantum program P exist in the execution queue and are waiting to be executed. In addition, job R of quantum program P to which priority has been given is i is not yet in the execution queue. In this case, the job R i is not in the execution queue, the execution time is "T(itr M+1 )-QT(itr M+1 )" for S1 to S5. For example, if the execution time of S1 is "T(itr M+1 )-QT(itr M+1 ) is not expected to exceed, S1 is executed.

[0098] Also, as shown in FIG. 24, time T1 is the time S after the Mth iteration. marker is the timing at which the job R1 of the quantum program P is executed, and times T2 and after are the times thereafter. As shown in FIG. 24, at time T2, job R1 of the quantum program P arrives at the job scheduler and is stored in the execution queue. FIG. 25 is a diagram for explaining the job scheduling process along a time series according to this embodiment. Then, since S1 is executed before job R1 of the quantum program P is stored in the execution queue, as shown in the upper part of FIG. 25, when execution of S1 is completed at time T3, R1 is executed in priority to other jobs.

[0099] Next, as shown in the lower part of FIG. 25, when the execution of R1 is completed at time T4, job R of quantum program P is executed. i is not in the execution queue, so the execution time is "T(itr M+1 )-QT(itr M+1 )-(execution time of S1)". For example, if the execution time of S2 is "T(itr M+1 )-QT(itr M+1If it is expected that the execution time of S1 will exceed the time "(Execution time of S1) - (Execution time of S1)", S3, which is not expected to exceed the time "(Execution time of S1)", will be executed first.

[0100] Next, as shown in Figure 24, at time T5, job R2 of quantum program P arrives at the job scheduler and is stored in the execution queue. Then, as shown in the lower part of Figure 25, when execution of S3 is completed at time T6, job R2 exists in the execution queue, so R2 is executed in priority to other jobs. Thereafter, the same process is repeatedly executed until the (M+1)th iteration is completed.

[0101] As supplemental information, the next iteration time estimation process and job scheduling process will be explained using specific times. Fig. 26 is a diagram showing an example of the execution time and usage time of each iteration according to this embodiment.

[0102] First, let us consider Case A. Assume that the execution time of each iteration of quantum program P in Case A up to the fifth iteration and the usage time of the quantum computer 200 are as shown on the left side of FIG. 26 . For example, the time for the sixth iteration is estimated from the times up to the fifth iteration using exponential smoothing (ETS), resulting in T(itr6) = 783 seconds and QT(itr6) = 447 seconds. In this case, the management computer 100 schedules quantum program P so that the quantum computer 200 is available for at least 447 seconds during the 783 seconds from the start of the sixth iteration. Furthermore, the management computer 100 schedules jobs sent from other quantum programs so that the execution time of the jobs is expected to be 336 seconds (= 783 seconds - 447 seconds) or less.

[0103] Next, we will explain Case B. Assume that the execution time of each iteration of quantum program P in Case B up to the fifth iteration and the usage time of the quantum computer 200 are as shown on the right side of FIG. 26 . For example, the time for the sixth iteration is estimated using exponential smoothing from the times up to the fifth iteration, resulting in T(itr6) = 1632 seconds and QT(itr6) = 821 seconds. In this case, the management computer 100 schedules quantum program P so that the quantum computer 200 is available for at least 821 seconds during the 1632 seconds from the start of the sixth iteration. Furthermore, the management computer 100 schedules jobs sent from other quantum programs so that the execution time of the jobs is expected to be 811 seconds (= 1632 seconds - 821 seconds) or less.

[0104] As described above, it is possible to minimize unused time of the quantum computer 200 to prevent waste of resources, while shortening the waiting time for processing that repeatedly goes back and forth between the user computer 10 and the quantum computer 200.

[0105] (Effect) As described above, the user computer 10 acquires the call stack of a first program for using the quantum computer 200, identifies an interval of repetitive processing in the first program based on the call stack, measures a first execution time for the identified interval and a first usage time of the quantum computer 200 in the identified interval, and, based on the first execution time and the first usage time, estimates a second execution time for the identified interval and a second usage time of the quantum computer 200 in the identified interval when the quantum computer 200 is to be used in the future.

[0106] In this way, the user computer 10 estimates each future time from the execution time of the repeat section of the quantum program identified based on the call stack and the usage time of the quantum computer 200. This allows the user computer 10 to shorten the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10.

[0107] Furthermore, the management computer 100 executes scheduling for the execution of the first program and the second program based on the second execution time and the second usage time.

[0108] This allows the user computer 10 to reduce the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10 .

[0109] In addition, the process of identifying an interval executed by the user computer 10 includes a process of identifying the outermost first repetitive statement among the repetitive statements in the first program that include the execution process of the quantum computer 200, and identifying the range of the first repetitive statement as an interval.

[0110] This allows the user computer 10 to reduce the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10 .

[0111] Furthermore, the process of identifying the interval executed by the user computer 10 includes a process of identifying the range from the start to the end of the execution point of the process that performs optimization based on the execution results of the quantum computer 200 as the interval.

[0112] This allows the user computer 10 to reduce the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10, even if the user computer 10 does not have access to the source code.

[0113] Furthermore, the process of measuring the first execution time and the first usage time executed by the user computer 10 includes a process of measuring the first execution time of a first iteration of the identified section and the first usage time in the first iteration, and the process of estimating the second execution time and the second usage time executed by the user computer 10 includes a process of estimating the second execution time of a second iteration of the identified section and the second usage time in the second iteration based on the first execution time and the first usage time.

[0114] This allows the user computer 10 to reduce the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10 .

[0115] Furthermore, the management computer 100 schedules the execution of the quantum computer 200 based on the second execution time and the second usage time.

[0116] This allows the user computer 10 to reduce the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10 while preventing waste of resources of the quantum computer 200.

[0117] In addition, the scheduling process executed by the user computer 10 includes a scheduling process that allows the quantum computer to be used for at least the second usage time from the start of the second iteration of the identified section until the second execution time has elapsed.

[0118] This allows the user computer 10 to reduce the execution time of an algorithm that combines the processing of the quantum computer 200 and the processing of the user computer 10 while preventing waste of resources of the quantum computer 200.

[0119] (System) The information, including the processing procedures, control procedures, specific names, various data, and parameters shown in the above documents and drawings, may be changed as desired unless otherwise specified. Furthermore, the specific examples, distributions, and numerical values ​​described in the embodiments are merely examples and may be changed as desired.

[0120] Furthermore, the specific forms of distribution and integration of the components of the user computer 10, management computer 100, and quantum computer 200 are not limited to those shown in the drawings. For example, the identification unit 42 of the user computer 10 may be distributed across multiple processing units, or the acquisition unit 41 and identification unit 42 of the user computer 10 may be integrated into a single processing unit. In other words, all or some of the components may be functionally or physically distributed or integrated in any unit depending on various loads and usage conditions. Furthermore, all or any part of the processing functions of each device may be realized by a CPU or QPU and a program analyzed and executed by the CPU or QPU, or may be realized as hardware using wired logic.

[0121] Fig. 27 is a diagram showing an example of the hardware configuration of a user computer 10 according to this embodiment. Note that while Fig. 27 shows the hardware configuration of the user computer 10, a similar configuration may also be applied to the management computer 100 and the quantum computer 200. As shown in Fig. 27, the user computer 10 has a communication interface 10a, a hard disk drive (HDD) 10b, a memory 10c, and a processor 10d. Furthermore, the components shown in Fig. 27 are connected to each other via a bus or the like.

[0122] The communication interface 10a is a network interface card or the like, and communicates with other information processing devices. The HDD 10b stores, for example, programs and data that operate the various functions of the user computer 10.

[0123] The processor 10d is a CPU, a microprocessing unit (MPU), a graphics processing unit (GPU), or the like. In the case of the quantum computer 200, as described above, the processor may be a QPU or the like. The processor 10d may also be implemented by an integrated circuit such as an application-specific integrated circuit (ASIC) or a field-programmable gate array (FPGA). The processor 10d reads, for example, from the HDD 10b, a program that executes the same processes as those of the processing units shown in FIG. 11, and loads the program into the memory 10c. This allows the processor 10d to operate as a hardware circuit that executes processes that implement the functions of the user computer 10.

[0124] Furthermore, the user computer 10 can read the program from a recording medium using a media reader and execute the read program to achieve the same functions as those in the above embodiment. Note that the program in this other embodiment is not limited to being executed by the user computer 10. For example, the above embodiment may also be applied in the same way to cases where another information processing device executes the program, or where the other information processing device and the user computer 10 cooperate to execute the program.

[0125] The program may be distributed via a network such as the Internet. The program may also be recorded on a computer-readable storage medium such as a hard disk, a flexible disk (FD), a CD-ROM, a magneto-optical disk (MO), or a digital versatile disk (DVD). The program may then be read from the storage medium and executed by the user computer 10 or the like.

[0126] 10 User computer 10a Communication interface 10b HDD 10c Memory 10d Processor 20 Communication unit 30 Storage unit 31 Program information 32 Call stack information 40 Control unit 41 Acquisition unit 42 Identification unit 43 Measurement unit 44 Estimation unit 50 Network 100 Management computer 120 Communication unit 130 Storage unit 131 Job information 132 Scheduling information 140 Control unit 141 Scheduling unit 142 Execution unit 200 Quantum computer 220 Communication unit 230 Storage unit 231 Job information 240 Control unit 241 Acquisition unit 242 Execution unit

Claims

1. An information processing program that causes a computer to execute the following processes: acquiring a call stack of a first program for utilizing a quantum computer; identifying an interval of repetitive processing in the first program based on the call stack; measuring a first execution time of the identified interval and a first usage time of the quantum computer in the identified interval; and estimating a second execution time of the identified interval and a second usage time of the quantum computer in the identified interval based on the first execution time and the first usage time.

2. The information processing program according to claim 1, characterized in that the computer is caused to execute a process of scheduling the execution of the first program and the second program based on the second execution time and the second usage time.

3. The information processing program according to claim 1, characterized in that the process of identifying the interval includes a process of identifying a first repetitive statement that is the outermost among repetitive statements in the first program that include an execution process of the quantum computer, and identifying the range of the first repetitive statement as the interval.

4. The information processing program according to claim 1, characterized in that the process of identifying the interval includes a process of identifying as the interval a range from the start to the end of an execution point of a process that performs optimization based on the execution result of the quantum computer.

5. The information processing program according to claim 1, characterized in that the process of measuring the first execution time and the first usage time includes a process of measuring the first execution time of a first iteration of the identified section and the first usage time in the first iteration, and the process of estimating the second execution time and the second usage time includes a process of estimating the second execution time of a second iteration of the identified section and the second usage time in the second iteration based on the first execution time and the first usage time.

6. An information processing program according to any one of claims 1 to 5, characterized in that the program causes the computer to execute a process of scheduling for execution of the quantum computer based on the second execution time and the second utilization time.

7. The information processing program according to claim 6, characterized in that the scheduling process includes a process of performing the scheduling so that the quantum computer can be used for at least the second usage time from the start of the second iteration of the identified section until the second execution time has elapsed.

8. An information processing device comprising a control unit that executes the following processes: acquiring a call stack of a first program for utilizing a quantum computer; identifying an interval of repetitive processing in the first program based on the call stack; measuring a first execution time of the identified interval and a first usage time of the quantum computer in the identified interval; and estimating a second execution time of the identified interval and a second usage time of the quantum computer in the identified interval based on the first execution time and the first usage time.

9. An information processing method characterized in that a computer executes the following processes: acquiring a call stack of a first program for utilizing a quantum computer; identifying an interval of repetitive processing in the first program based on the call stack; measuring a first execution time of the identified interval and a first usage time of the quantum computer in the identified interval; and estimating a second execution time of the identified interval and a second usage time of the quantum computer in the identified interval based on the first execution time and the first usage time.

Citation Information

Patent Citations

  • Quantum Hybrid Computing

    JP2021530783A

  • Collaborative Scheduling of Quantum Computing Jobs

    JP2022511613A