Method and device for determining computing resource scheduling scheme
Through the computing resource scheduling solution in the field of quantum computing, the problem of low computing efficiency caused by insufficient resource management is solved. By optimizing the computing resource scheduling strategy, the collaborative utilization of quantum classical computing resources is achieved and the overall computing efficiency is improved.
Patent Information
- Application Number
- CN202310305157.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-01
AI Technical Summary
In the field of quantum computing, existing technologies lack unified computing resource management and scheduling, causing classical computing resources to wait or suspend calculations. Quantum computing resources also face waiting or computing suspensions, resulting in low efficiency of quantum-classical hybrid computing and insufficient resource utilization.
Provides a computing resource scheduling scheme that obtains tasks by receiving information, generates computing task priorities and resource determination subtasks, and executes these subtasks to determine the computing resource scheduling scheme for the computing tasks to be executed, including direct execution, preset algorithm scheduling and Abort and other strategies to promote quantum classical computing collaborative scheduling.
It improves the collaborative utilization of quantum computing resources and classical computing resources, improves the utilization efficiency of overall computing resources, and avoids resource waiting and suspension problems.
Smart Images

Figure CN118733204A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of quantum computing technology, and in particular to a method and device for determining a computing resource scheduling scheme. Background Art
[0002] In the field of quantum computing, as the complexity of research problems increases, the demand for quantum computers is also increasing. However, the actual manufacturing of physical quantum computers is difficult and costly, and the existing quantum computer resources are limited, making it difficult to meet the actual social needs. Therefore, according to the principles of quantum computing, using computing resources such as CPU or QPU to simulate the actual computing process of quantum computers to solve the problem of quantum computer needs has become a key technology under research.
[0003] In the process of executing quantum and classical hybrid computing tasks, the existing technology requires that quantum and classical computing be performed iteratively. Due to the lack of unified computing resource management and scheduling, the problem of classical computing resources waiting or computing suspension will occur during the execution of classical computing; and the problem of quantum computing resources waiting or computing suspension will also be encountered during the execution of quantum computing. This results in the inability of quantum and classical computing to work closely together, insufficient utilization of overall computing resources, and low efficiency of quantum and classical hybrid computing. This is a problem that needs to be solved urgently. Summary of the invention
[0004] The purpose of the present invention is to provide a method and device for determining a computing resource scheduling scheme to address the deficiencies in the prior art. It promotes the coordinated use of quantum computing resources and classical computing resources and improves the overall utilization efficiency of computing resources by providing a method for determining a computing resource scheduling scheme applied to a quantum classical computing collaborative scheduling system.
[0005] An embodiment of the present application provides a method for determining a computing resource scheduling scheme, which is applied to a quantum classical computing collaborative scheduling system, and the method includes:
[0006] Receiving an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information;
[0007] Generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task;
[0008] The computing task priority determination subtask and the computing resource determination subtask are executed to determine a computing resource scheduling scheme for the computing task to be executed.
[0009] Optionally, the set of computing tasks to be executed includes quantum computing tasks and classical computing tasks; and the computing resource information includes quantum computing resources and classical computing resources.
[0010] Optionally, the performing of the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed includes:
[0011] Obtaining a target computing task in the computing task priority determination subtask, wherein the target computing task has the highest priority in the set of computing tasks to be executed;
[0012] Determine the subtask and the target computing task based on the computing resource, and determine the target computing resource for executing the target computing task;
[0013] A computing resource scheduling scheme for the target computing task is determined based on the target computing resource.
[0014] Optionally, determining a computing resource scheduling scheme for the target computing task according to the target computing resource includes:
[0015] Determine whether the current computing resource information meets the requirements of the target computing resource;
[0016] If yes, calling a first computing resource scheduling scheme, wherein the first computing resource scheduling scheme includes directly executing the target computing task and obtaining the corresponding computing result; otherwise, further determining whether the classic computing resources in the current computing resource information meet the requirements of the target computing resources;
[0017] In response to the classical computing resources satisfying the requirements of the target computing resources, a second computing resource scheduling scheme is called, wherein the second computing resource scheduling scheme includes scheduling and executing the quantum classical hybrid program in the target computing task using a preset algorithm, and the preset algorithm is used for the collaborative allocation of the target computing resources.
[0018] Optionally, the method further includes:
[0019] If the current classic computing resources do not meet the requirements of the target computing resources, a third computing resource scheduling scheme is called, wherein the third computing resource scheduling scheme includes terminating the execution process of the target computing task.
[0020] Optionally, the determining whether the current computing resource information meets the requirements of the target computing resource further includes:
[0021] If neither the quantum computing resources nor the classical computing resources meet the requirements of the target computing resources, a fourth computing resource scheduling scheme is called, wherein the fourth computing resource scheduling scheme includes terminating the execution of the target computing task and other quantum computing tasks in the set of computing tasks to be executed.
[0022] Optionally, the computing task includes a quantum circuit, and the quantum computing resources include quantum bits.
[0023] Another embodiment of the present application provides a device for determining a computing resource scheduling scheme, which is applied to a quantum classical computing collaborative scheduling system, and the device includes:
[0024] A receiving module, used to receive an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information;
[0025] A generation module, used to generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task;
[0026] The execution module is used to execute the computing task priority determination subtask and the computing resource determination subtask to determine the computing resource scheduling scheme for the computing task to be executed.
[0027] Optionally, the execution module includes:
[0028] An obtaining unit, configured to obtain a target computing task in the computing task priority determination subtask, wherein the target computing task has the highest priority in the set of computing tasks to be executed;
[0029] A first determining unit, configured to determine the subtask and the target computing task based on the computing resource, and determine the target computing resource for executing the target computing task;
[0030] The second determining unit is used to determine a computing resource scheduling scheme for the target computing task according to the target computing resource.
[0031] Optionally, the second determining unit includes:
[0032] A judging subunit, used to judge whether the current computing resource information meets the requirements of the target computing resource;
[0033] A first calling subunit is configured to call a first computing resource scheduling scheme, wherein the first computing resource scheduling scheme includes directly executing the target computing task and obtaining a corresponding computing result; otherwise, further determine whether the classic computing resources in the current computing resource information meet the requirements of the target computing resources;
[0034] A second calling subunit is used to call a second computing resource scheduling scheme in response to the classical computing resources satisfying the requirements of the target computing resources, wherein the second computing resource scheduling scheme includes scheduling and executing the quantum classical hybrid program in the target computing task using a preset algorithm, and the preset algorithm is used for the collaborative allocation of the target computing resources.
[0035] Optionally, the device further comprises:
[0036] The third calling subunit is used to call a third computing resource scheduling scheme if the current classic computing resources do not meet the requirements of the target computing resources, wherein the third computing resource scheduling scheme includes terminating the execution process of the target computing task.
[0037] Optionally, the second determining unit further includes:
[0038] A fourth calling subunit is used to call a fourth computing resource scheduling scheme if neither the quantum computing resources nor the classical computing resources meet the requirements of the target computing resources, wherein the fourth computing resource scheduling scheme includes terminating the execution of the target computing task and other quantum computing tasks in the set of computing tasks to be executed.
[0039] Yet another embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.
[0040] Yet another embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the methods described above.
[0041] Compared with the prior art, the present invention first receives an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information; generates a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task; executes the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed. It promotes the coordinated use of quantum computing resources and classical computing resources and improves the overall utilization efficiency of computing resources by providing a method for determining a computing resource scheduling scheme applied to a quantum classical computing collaborative scheduling system. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 It is a system network block diagram of a method for determining a computing resource scheduling solution provided by an embodiment of the present invention;
[0043] Figure 2It is a flowchart of a method for determining a computing resource scheduling solution provided by an embodiment of the present invention;
[0044] Figure 3 It is a structural diagram of a device for determining a computing resource scheduling solution provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0045] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.
[0046] The embodiment of the present invention first provides a method for determining a computing resource scheduling scheme, which can be applied to electronic devices such as computer terminals, specifically ordinary computers, quantum computers, etc.
[0047] The following describes it in detail by taking running on a computer terminal as an example. Figure 1 1 is a system network block diagram of a method for determining a computing resource scheduling solution provided by an embodiment of the present invention. The system applied to the method for determining a computing resource scheduling solution may include a network 110, a server 120, a wireless device 130, a client 140, a storage unit 150, a classical processing system 160, a quantum processing system 170, and may also include additional memories, classical processors, quantum processors, and other devices not shown.
[0048] Network 110 is a medium that provides communication links between various devices and computers connected together in a system network used for determining a computing resource scheduling scheme, including but not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. The connection method may be wired, wireless communication links or optical fiber cables, etc.
[0049] The server 120 and the client 140 are conventional data processing systems that may contain data and applications or software tools that perform conventional computing processes. The client 140 may be a personal computer or a network computer, so the data may also be provided by the server 120. The wireless device 130 may be a smart phone, a tablet, a laptop, a smart wearable device, etc. The storage unit 150 may include a database 151, which may be configured to store data such as quantum bit parameters, quantum logic gate parameters, quantum circuits, quantum programs, etc.
[0050] The classical processing system 160 (quantum processing system 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 163 (memory 172) for storing classical data (quantum data). The classical data (quantum data) may be a boot file, an operating system image, and an application 162 (application 173). The application 162 (application 173) may be used to implement a quantum algorithm compiled according to a method for determining a computing resource scheduling scheme provided in an embodiment of the present invention.
[0051] Any data or information stored or generated in the classical processing system 160 (quantum processing system 170) can also be configured to be stored or generated in another classical (quantum) processing system in a similar manner, and any application program executed by it can also be configured to be executed in another classical (quantum) processing system in a similar manner.
[0052] It should be noted that a true quantum computer is a hybrid structure, which includes at least Figure 1 There are two major parts in it: the classical processing system 160, which is responsible for performing classical calculations and control; and the quantum processing system 170, which is responsible for running quantum programs and thus realizing quantum calculations.
[0053] The classical processing system 160 and the quantum processing system 170 may be integrated into one device or distributed in two different devices. For example, the first device including the classical processing system 160 runs a classical computer operating system, on which quantum application development tools and services are provided, as well as storage and network services required for quantum applications. Users develop quantum applications through the quantum application development tools and services thereon, and send quantum programs to the second device including the quantum processing system 170 through the network services thereon. The second device runs a quantum computer operating system, parses the code of the quantum program through the quantum computer operating system, and compiles it into instructions that can be recognized and executed by the quantum computer measurement and control system. The quantum processor 170 implements the quantum algorithm corresponding to the quantum program according to the instructions.
[0054] In the classic processing system 160 based on silicon chips, the unit of the classic processor 161 is a CMOS tube. This computing unit is not limited by time and coherence, that is, this computing unit is not limited by the length of use and is available at any time. In addition, in the silicon chip, the number of such computing units is also sufficient. At present, the number of computing units in a classic processor is tens of thousands. The number of computing units is sufficient and the computing logic that can be selected by the CMOS tube is fixed, for example: AND logic. When calculating with the help of CMOS tubes, a large number of CMOS tubes are combined with limited logic functions to achieve the calculation effect.
[0055] Unlike this logic unit in the classical processing system 160, the basic computing unit of the quantum processor 171 in the quantum processing system 170 is a quantum bit, and the input of the quantum bit is limited by coherence and coherence time, that is, the quantum bit is limited by the use time and is not available at any time. Making full use of the quantum bit within the available use time of the quantum bit is a key problem in quantum computing. In addition, the number of quantum bits in a quantum computer is one of the representative indicators of the performance of a quantum computer. Each quantum bit realizes the computing function through the logical function configured on demand. In view of the limited number of quantum bits, the logical functions in the field of quantum computing are diverse, such as: Hadamard gate (Hadamard gate, H gate), Pauli-X gate (X gate), Pauli-Y gate (Y gate) Pauli-Z gate (Z gate), X gate, RY gate, RZ gate, CNOT gate, CR gate, iSWAP gate, Toffoli gate, etc. In quantum computing, it is necessary to use limited quantum bits combined with a variety of logical functions to achieve the computing effect.
[0056] Based on these differences, the design of the logical function acting on quantum bits (including the design of whether the quantum bits are used or not and the design of the efficiency of each quantum bit) is the key to improving the computing performance of quantum computers, and special design is required. The above-mentioned design for quantum bits is a technical problem that ordinary computing devices do not need to consider or face. Based on this, in the process of executing quantum and classical hybrid computing tasks, quantum and classical computing need to be interspersed iteratively. Due to the lack of unified computing resource management and scheduling, problems such as waiting for classical computing resources or calculation termination will be encountered during the execution of classical computing; and in the process of executing quantum computing, problems such as waiting for quantum computing resources or calculation termination will also be encountered. The present invention proposes a method and device for determining a computing resource scheduling scheme to solve the deficiencies in the prior art. It provides a method for determining a computing resource scheduling scheme applied to a quantum classical computing collaborative scheduling system to promote the collaborative use of quantum computing resources and classical computing resources and improve the overall utilization efficiency of computing resources.
[0057] See also Figure 2 , Figure 2 The following is a flow chart of a method for determining a computing resource scheduling solution provided by an embodiment of the present invention, which may include the following steps:
[0058] S201: Receive an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information.
[0059] Specifically, the user can perform corresponding operations through the quantum computer operating system to generate an information acquisition task. For example, the quantum computer operating system collects the description information of the information acquisition task and sorts out the relevant information of the set of computing tasks to be executed and the computing resource information. Then, the information acquisition task is input into the user terminal. After the user terminal receives the input information acquisition task, it can obtain the set of computing tasks to be executed and the computing resource information according to the information acquisition task.
[0060] It should be noted that the set of computing tasks to be executed may include quantum computing tasks and classical computing tasks; the computing resource information may include quantum computing resources and classical computing resources. The computing tasks may include quantum circuits, and the quantum computing resources may include quantum bits.
[0061] S202: Generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task.
[0062] Specifically, the computing tasks obtained in the information acquisition task may include quantum computing tasks, classical computing tasks, and quantum-classical hybrid computing tasks, etc., which can be uniformly managed by the task queue module in the quantum computer operating system. For example, the user can first generate a computing task priority determination subtask according to the specific application scenario, and select the highest response ratio priority scheduling strategy by default, and manage the task queue in combination with the priority mode specified by the user. The task queue module can dynamically adjust the priority status of the computing tasks being queued and provide a query interface for the computing tasks being queued by providing a priority adjustment interface to the outside world, so as to provide timely feedback to the upper-level users on the queuing status of the computing tasks in the current computing task priority determination subtask.
[0063] The computing resource determination subtask can be configured to first determine the target computing resources used by the computing task and lock them when a computing task is scheduled. The locked target computing resources cannot currently be used for other computing tasks. When the computing task is completed, the locked target computing resources are released and return to an idle state. The idle target computing resources can be used for other computing tasks.
[0064] In an optional embodiment, the computing resource determination subtask can also be configured to select appropriate target computing resources based on a combinatorial optimization algorithm to ensure the correct and efficient execution of the computing task, while ensuring that other computing resources can carry more computing tasks to improve the overall task execution volume of the quantum classical computing collaborative scheduling system.
[0065] S203: Execute the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed.
[0066] Specifically, executing the computing task priority determination subtask and the computing resource determination subtask to determine the computing resource scheduling scheme for the computing task to be executed may include:
[0067] Step 1: Obtain a target computing task in the computing task priority determination subtask, wherein the target computing task has the highest priority in the set of computing tasks to be executed.
[0068] Among them, the target computing task can be determined according to the priority computing strategy, which includes multiple mainstream priority computing strategies such as the highest response ratio priority scheduling strategy, the first-in-first-out scheduling strategy, and the task backfilling task scheduling strategy. For example, users can select a priority computing strategy by default to manage and sort the computing task priorities in the set of computing tasks to be executed according to the specific application scenario.
[0069] Step 2: Determine the subtask and the target computing task based on the computing resources, and determine the target computing resource for executing the target computing task.
[0070] Step 3: Determine a computing resource scheduling scheme for the target computing task based on the target computing resources.
[0071] Specifically, determining the computing resource scheduling scheme of the target computing task according to the target computing resource may include:
[0072] 1. Determine whether the current computing resource information meets the requirements of the target computing resources.
[0073] 2. If so, call the first computing resource scheduling scheme, wherein the first computing resource scheduling scheme includes directly executing the target computing task and obtaining the corresponding computing results; otherwise, further determine whether the classic computing resources in the current computing resource information meet the requirements of the target computing resources.
[0074] Specifically, when the remaining quantum computing resources and classical computing resources are sufficient, quantum computing tasks, classical computing tasks, or quantum-classical hybrid computing tasks can all be executed directly.
[0075] In an optional implementation, if neither the quantum computing resources nor the classical computing resources meet the requirements of the target computing resources, a fourth computing resource scheduling scheme is called, wherein the fourth computing resource scheduling scheme includes terminating the execution of the target computing task and other quantum computing tasks in the set of computing tasks to be executed.
[0076] 3. In response to the classical computing resources satisfying the requirements of the target computing resources, calling a second computing resource scheduling scheme, wherein the second computing resource scheduling scheme includes scheduling and executing the quantum classical hybrid program in the target computing task using a preset algorithm, and the preset algorithm is used for the collaborative allocation of the target computing resources.
[0077] In an optional implementation, if the current classic computing resources do not meet the requirements of the target computing resources, a third computing resource scheduling scheme is called, wherein the third computing resource scheduling scheme includes terminating the execution process of the target computing task.
[0078] Specifically, when one of the quantum computing resources or the classical computing resources does not meet the requirements of the target computing resources of the computing task, if the current classical computing resources are insufficient, the scheduling algorithm unit can call the preset algorithm to block and wait for sufficient classical computing resources, because the main logic of the quantum classical quantum hybrid program is classical computing, and sufficient classical computing resources are a necessary condition for the execution of the quantum classical hybrid program. At this time, the pure quantum computing task will also be blocked to avoid the situation where the classical computing resources are sufficient and the quantum computing resources have to be waited for. If only the quantum computing resources are insufficient at present, the quantum classical hybrid program can still be scheduled, because the main logic of the quantum classical hybrid program is classical computing, and most quantum classical hybrid programs must first perform certain classical computing before generating quantum computing tasks, so in this case, the quantum classical hybrid program can be scheduled and complete the calculation. At this time, the scheduling algorithm unit will reserve quantum computing resources for the quantum classical hybrid program, that is, when new quantum computing resources are released, the scheduling algorithm unit will give priority to reserving certain resources for the currently executing quantum classical hybrid program. If there are still some remaining, resources will be allocated to other computing tasks to ensure the efficient execution of the current quantum classical hybrid program.
[0079] It should be noted that for temporarily added computing tasks, the scheduling algorithm unit will assign the highest priority computing strategy to ensure the rapid calculation of the newly added computing tasks, reduce waiting time, and improve overall computing efficiency. For the heuristic algorithm applied during the execution of the newly added computing tasks, the scheduling algorithm unit can realize automatic learning iteration cycles and intelligently decide the time to reserve quantum computing resources to ensure that quantum computing resources can be fully utilized during the classical computing process, so as to improve the overall task throughput of the quantum classical computing collaborative scheduling system.
[0080] It can be seen that the present invention first receives an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information; generates a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task; executes the computing task priority determination subtask and the computing resource determination subtask to determine the computing resource scheduling scheme for the computing task to be executed. It promotes the coordinated use of quantum computing resources and classical computing resources and improves the overall utilization efficiency of computing resources by providing a method for determining a computing resource scheduling scheme applied to a quantum classical computing collaborative scheduling system.
[0081] See also Figure 3 , Figure 3 A schematic diagram of a device for determining a computing resource scheduling solution provided by an embodiment of the present invention, and Figure 2 The process shown here corresponds to the following:
[0082] A receiving module 301 is used to receive an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information;
[0083] A generating module 302, used to generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task;
[0084] The execution module 303 is used to execute the computing task priority determination subtask and the computing resource determination subtask to determine the computing resource scheduling scheme for the computing task to be executed.
[0085] Specifically, the execution module includes:
[0086] An obtaining unit, configured to obtain a target computing task in the computing task priority determination subtask, wherein the target computing task has the highest priority in the set of computing tasks to be executed;
[0087] A first determining unit, configured to determine the subtask and the target computing task based on the computing resource, and determine the target computing resource for executing the target computing task;
[0088] The second determining unit is used to determine a computing resource scheduling scheme for the target computing task according to the target computing resource.
[0089] Specifically, the second determining unit includes:
[0090] A judging subunit, used to judge whether the current computing resource information meets the requirements of the target computing resource;
[0091] A first calling subunit is configured to call a first computing resource scheduling scheme, wherein the first computing resource scheduling scheme includes directly executing the target computing task and obtaining a corresponding computing result; otherwise, further determine whether the classic computing resources in the current computing resource information meet the requirements of the target computing resources;
[0092] A second calling subunit is used to call a second computing resource scheduling scheme in response to the classical computing resources satisfying the requirements of the target computing resources, wherein the second computing resource scheduling scheme includes scheduling and executing the quantum classical hybrid program in the target computing task using a preset algorithm, and the preset algorithm is used for the collaborative allocation of the target computing resources.
[0093] Specifically, the device further includes:
[0094] The third calling subunit is used to call a third computing resource scheduling scheme if the current classic computing resources do not meet the requirements of the target computing resources, wherein the third computing resource scheduling scheme includes terminating the execution process of the target computing task.
[0095] Specifically, the second determining unit further includes:
[0096] A fourth calling subunit is used to call a fourth computing resource scheduling scheme if neither the quantum computing resources nor the classical computing resources meet the requirements of the target computing resources, wherein the fourth computing resource scheduling scheme includes terminating the execution of the target computing task and other quantum computing tasks in the set of computing tasks to be executed.
[0097] Compared with the prior art, the present invention first receives an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information; generates a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task; executes the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed. It promotes the coordinated use of quantum computing resources and classical computing resources and improves the overall utilization efficiency of computing resources by providing a method for determining a computing resource scheduling scheme applied to a quantum classical computing collaborative scheduling system.
[0098] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the above method embodiments when running.
[0099] Specifically, in this embodiment, the above storage medium may be configured to store a computer program for performing the following steps:
[0100] S201: receiving an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information;
[0101] S202: Generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task;
[0102] S203: Execute the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed.
[0103] Specifically, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0104] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0105] Specifically, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0106] Specifically, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0107] S201: receiving an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information;
[0108] S202: Generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task;
[0109] S203: Execute the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed.
[0110] The above describes in detail the structure, features and effects of the present invention based on the embodiments shown in the drawings. The above is only a preferred embodiment of the present invention, but the present invention is not limited to the scope of implementation shown in the drawings. Any changes made according to the concept of the present invention, or modifications to equivalent embodiments with equivalent changes, which still do not exceed the spirit covered by the description and drawings, should be within the protection scope of the present invention.
Claims
1. A method for determining a computing resource scheduling scheme, characterized in that: Applied to quantum classical computing collaborative scheduling system, the method includes: Receiving an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information; Generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task; The computing task priority determination subtask and the computing resource determination subtask are executed to determine a computing resource scheduling scheme for the computing task to be executed.
2. The method according to claim 1, characterized in that The set of computing tasks to be executed includes quantum computing tasks and classical computing tasks; the computing resource information includes quantum computing resources and classical computing resources.
3. The method according to claim 2, characterized in that The performing of the computing task priority determination subtask and the computing resource determination subtask to determine a computing resource scheduling scheme for the computing task to be executed includes: Obtaining a target computing task in the computing task priority determination subtask, wherein the target computing task has the highest priority in the set of computing tasks to be executed; Determine the subtask and the target computing task based on the computing resource, and determine the target computing resource for executing the target computing task; A computing resource scheduling scheme for the target computing task is determined based on the target computing resource.
4. The method according to claim 3, characterized in that The step of determining a computing resource scheduling scheme for the target computing task according to the target computing resource comprises: Determine whether the current computing resource information meets the requirements of the target computing resource; If yes, calling a first computing resource scheduling scheme, wherein the first computing resource scheduling scheme includes directly executing the target computing task and obtaining the corresponding computing result; otherwise, further determining whether the classic computing resources in the current computing resource information meet the requirements of the target computing resources; In response to the classical computing resources satisfying the requirements of the target computing resources, a second computing resource scheduling scheme is called, wherein the second computing resource scheduling scheme includes scheduling and executing the quantum classical hybrid program in the target computing task using a preset algorithm, and the preset algorithm is used for the collaborative allocation of the target computing resources.
5. The method according to claim 4, characterized in that The method further comprises: If the current classic computing resources do not meet the requirements of the target computing resources, a third computing resource scheduling scheme is called, wherein the third computing resource scheduling scheme includes terminating the execution process of the target computing task.
6. The method according to claim 4, characterized in that The determining whether the current computing resource information meets the requirements of the target computing resource also includes: If neither the quantum computing resources nor the classical computing resources meet the requirements of the target computing resources, a fourth computing resource scheduling scheme is called, wherein the fourth computing resource scheduling scheme includes terminating the execution of the target computing task and other quantum computing tasks in the set of computing tasks to be executed.
7. The method according to any one of claims 2 to 6, characterized in that: The computing task includes a quantum circuit, and the quantum computing resource includes a quantum bit.
8. A device for determining a computing resource scheduling scheme, characterized in that: Applied to quantum classical computing collaborative scheduling system, the device comprises: A receiving module, used to receive an information acquisition task, wherein the information acquisition task is used to obtain a set of computing tasks to be executed and computing resource information; A generation module, used to generate a computing task priority determination subtask and a computing resource determination subtask in the information acquisition task; The execution module is used to execute the computing task priority determination subtask and the computing resource determination subtask to determine the computing resource scheduling scheme for the computing task to be executed.
9. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 7 when executed.
10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 7.
Citation Information
Cited By
Fusion computing system and task processing method
CN119578565A
Feedback iteration type optical network resource allocation method fusing quantum and classical calculation
CN120110544A
Intelligent scheduling and resource management system of microbiological detection laboratory
CN120236700A
