A task management method, device and electronic equipment for measuring super convergence
By constructing subtask dependencies and resolving resource types, deep collaboration between quantum and classical computers is achieved, solving the problem of unreasonable resource allocation, improving computational efficiency and resource utilization, and meeting the solution needs of cutting-edge technology fields.
Patent Information
- Application Number
- CN202510799689.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-16
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to achieve efficient collaboration between quantum and classical computers, are unable to effectively solve large-scale, highly complex problems, and suffer from low computational efficiency due to unreasonable resource allocation.
By constructing the dependencies between various subtasks in the target computing task and distributing the subtasks to the corresponding resource servers, including supercomputing servers and quantum servers, deep collaboration between quantum and classical computing power is achieved.
It achieves stable execution and efficient allocation of each subtask, avoids resource disorder, meets the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-complex problems, and improves resource utilization.
Smart Images

Figure CN123137804A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of quantum computing technology, and in particular to a quantum-hyperfusion task management method and apparatus. Background Technology
[0002] In recent years, quantum computing has become a key direction for breaking through the bottlenecks of classical computing due to its exponential computing power potential for solving specific complex problems. However, current quantum hardware is still in its early stages of development, with problems such as a limited number of qubits, short coherence time, and significant noise interference, making it difficult to independently support large-scale applications. At the same time, while classical high-performance computing (HPC) has advantages in versatility and stability, it is gradually facing a computing power ceiling when dealing with complex tasks such as combinatorial optimization, quantum chemical simulation, and high-dimensional data modeling, due to the slowdown of Moore's Law and the inherent constraints of the von Neumann architecture.
[0003] Against this backdrop, quantum-classical fusion computing (also known as "quantum-supercomputing fusion") has emerged as a new paradigm. Its core objective is to deeply integrate quantum processors and classical supercomputing clusters through hardware and software co-design, constructing a heterogeneous computing architecture: quantum devices handle specific high-complexity subtasks (such as Hamiltonian diagonalization and random sampling optimization), while classical systems handle global scheduling, data preprocessing, and a posteriori error correction, forming a complementary advantage. This model has significant value for large-scale scientific computing (such as climate simulation and nuclear fusion simulation), artificial intelligence (deep neural network training), and biomedicine (protein folding prediction and virtual drug molecule screening), which generally face common challenges such as high computational dimensionality, large data scale, and stringent real-time requirements.
[0004] Therefore, there is an urgent need for a highly stable, low-latency, and resource-adaptive quantum-hyper-converged computing architecture to achieve deep collaboration between quantum and classical computing power and meet the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-high-complexity problems. Summary of the Invention
[0005] This invention provides a task management method, apparatus, and electronic device for hyper-converged infrastructure to solve the above-mentioned technical problems.
[0006] This specification provides an embodiment of a task management method for hyperconverged infrastructure, including:
[0007] Construct the dependencies between the subtasks in the target computing task; wherein, the dependencies represent the logical constraints on the execution order of the subtasks;
[0008] Each subtask is parsed to obtain the resource type requested by each subtask; and each subtask is distributed to the corresponding resource server according to the resource type, so that the resource server executes each subtask according to the dependency relationship to obtain the task execution result; wherein, the resource type includes classical resources and quantum resources; and the resource server includes supercomputing server and quantum server.
[0009] Optionally, after establishing the dependencies between the subtasks in the target computation task, the method further includes:
[0010] The dependencies between the subtasks are traversed. If there are no task execution timing conflicts or infinite loops in the dependencies between the subtasks, the dependencies meet the requirements.
[0011] Optionally, distributing each subtask to the corresponding resource server according to the resource type includes:
[0012] Send the first subtask to a supercomputing server that satisfies the execution of the first subtask and / or send the second subtask to a quantum server that satisfies the execution of the second subtask, wherein the first subtask is a subtask requesting classical resources and the second subtask is a subtask requesting quantum resources.
[0013] Optionally, the step of having the resource server execute each subtask according to the dependency relationship to obtain the task execution result includes:
[0014] The supercomputing server determines whether the first subtask needs to wait based on the dependency relationship; wherein, the first subtask is a subtask that requests a classic resource.
[0015] When the first subtask has a preceding subtask, the first subtask waits for the preceding subtask to complete, and after the preceding subtask has completed, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask; wherein, the preceding subtask is a subtask that has a dependency relationship with the first subtask;
[0016] Alternatively, when the first subtask has no preceding subtask, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask.
[0017] Optionally, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask, including:
[0018] The supercomputing server sends the first subtask to an idle thread pool within the supercomputing server for execution, thereby obtaining the task execution result of the first subtask;
[0019] Alternatively, the supercomputing server may send the first subtask to the task queue with the fewest tasks in the task queue corresponding to the thread pool of the supercomputing server for queuing. After queuing and entering the thread pool, the first subtask is executed to obtain the task execution result of the first subtask.
[0020] Optionally, the step of having the resource server execute each subtask according to the dependency relationship to obtain the task execution result further includes:
[0021] The quantum server determines whether to execute the second subtask based on the dependency relationship; wherein, the second subtask is a subtask that requests a quantum resource.
[0022] When the second subtask has a preceding subtask, the second subtask waits for the preceding subtask to complete, and after the preceding subtask is completed, the quantum server schedules the target quantum chip to execute the second subtask to obtain the task execution result of the second subtask; the preceding subtask is a subtask that has a dependency relationship with the second subtask;
[0023] Alternatively, when the second subtask has no preceding subtask, the quantum server schedules the target quantum chip to execute the second subtask and obtains the task execution result of the second subtask.
[0024] Optionally, before the quantum server schedules the target quantum chip to execute the second subtask and obtains the task execution result of the second subtask, the method further includes:
[0025] Extract the task features of the second subtask; the task features include at least one of the following: task priority, number of qubits of the quantum circuit corresponding to the second subtask, depth of the quantum circuit corresponding to the second subtask, and quantum gate operation of the quantum circuit corresponding to the second subtask.
[0026] The type of quantum chip that needs to be scheduled is determined based on the task characteristics;
[0027] Determine the resource utilization parameters of qubits on each quantum chip under the specified quantum chip type, and determine the target quantum chip based on the resource utilization parameters.
[0028] Optionally, the step of scheduling the target quantum chip to execute the second subtask and obtaining the task execution result of the second subtask includes:
[0029] The qubit blocks in the target quantum chip are determined based on the number of qubits, the depth, and the quantum gate operations; wherein the qubit blocks are determined based on the physical topology of the target quantum chip.
[0030] The second subtask is executed by scheduling the qubit block to obtain the task execution result of the second subtask.
[0031] This specification also provides an embodiment of a hyper-converged task management device, including:
[0032] A dependency processing module is used to construct the dependency relationships between various subtasks in the target computing task; wherein, the dependency relationship represents the execution order of each subtask;
[0033] The task scheduling module is used to parse the resource types of each subtask to obtain the resource types requested by each subtask; and to distribute each subtask to the corresponding resource server according to the resource type, so that the resource server executes each subtask according to the dependency relationship to obtain the task execution result; wherein, the resource type includes classical resources and quantum resources, and the resource server includes supercomputing server and quantum server.
[0034] An electronic device includes a memory and a processor, the memory storing computer instructions, and the processor being configured to execute the computer instructions to perform the method described above.
[0035] A storage medium, characterized in that the storage medium stores computer instructions, the computer instructions being configured to execute the method described above at runtime.
[0036] Its beneficial effects are as follows: This application achieves stable execution of each subtask by constructing the dependency relationship between each subtask in the target computing task. At the same time, it obtains the resource type requested by each subtask by parsing the resource type of each subtask, and distributes each subtask to the corresponding resource server according to the resource type, so that each subtask is adaptively allocated, ensuring the high efficiency of task execution, realizing deep collaboration between quantum and classical computing power, meeting the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-high complexity problems, and avoiding the phenomenon of resource disorder, unreasonable resources and failure to maximize resource utilization caused by manual scheduling of computing power resources. Attached Figure Description
[0037] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0038] Figure 1 A flowchart of a hyper-converged task management method provided in the embodiments of this specification;
[0039] Figure 2 This specification provides an example of a hyper-converged computing system.
[0040] Figure 3 This specification provides a schematic diagram of the structure of a hyper-converged task management device according to an embodiment of the present invention.
[0041] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this specification;
[0042] Figure 5 This is a schematic diagram of a computer-readable medium provided for embodiments of this specification. Detailed Implementation
[0043] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.
[0044] It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of the invention.
[0045] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the invention or its application or use.
[0046] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.
[0047] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0048] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0049] Reference Figure 1 This specification provides a flowchart of a task management method for heterogeneous quantum computing operating systems, comprising: S101: constructing dependencies between subtasks in a target computing task; wherein the dependencies represent logical constraints on the execution order of each subtask; S101: parsing resource types for each subtask to obtain the resource types requested by each subtask; and distributing each subtask to a corresponding resource server according to the resource types, so that the resource server executes each subtask according to the dependencies to obtain task execution results; wherein the resource types include classical resources and quantum resources; and the resource servers include supercomputing servers and quantum servers.
[0050] In one optional embodiment, taking a hybrid computing task as an example, the hybrid computing task is divided into subtasks A, B, and C. Subtask A is a pure classical computing task, subtask B is a pure quantum computing task, and subtask C is a pure classical computing task. First, the user uses the quantum-classical hybrid task dependency processing component in the quantum-hyperconverged computing system to construct the dependency relationships between subtasks A, B, and C, i.e., to construct the logical constraints on the execution order of each subtask. For example, subtask B depends on the execution result of subtask A to execute its own task, and subtask C depends on the execution result of subtask B to execute its own task. After constructing the dependency relationships, the hybrid task with the dependency relationships is sent to the hybrid task scheduling component in the quantum-hyperconverged computing system. Then, after receiving the hybrid computing task, the hybrid task scheduling component performs resource type parsing to obtain the resource types requested by each subtask. That is, subtask A requests classical resources, subtask B requests quantum resources, and subtask C requests classical resources. At this time, the hybrid task scheduling component will... Based on resource type, each subtask is sent to the corresponding resource server. For example, subtasks A and C are sent to the supercomputing server, and subtask B is sent to the quantum server. Upon receiving subtasks A and C, the supercomputing server, based on the aforementioned dependencies, recognizes that subtask A does not need to wait for other tasks to execute. Therefore, the supercomputing server directly allocates a thread pool to execute subtask A and obtain its result. Then, due to the aforementioned dependencies, subtask C needs to wait for subtask B to complete before it can continue execution. Therefore, subtask C remains in a waiting state and is not yet allocated a thread pool for execution. Task C; When the quantum server receives subtask B, due to the aforementioned dependency, subtask B needs to wait for subtask A to complete before it can continue execution. Therefore, after the supercomputing server allocates a thread pool to execute subtask A, it sends the execution result of subtask A to the quantum server. The quantum server then allocates quantum resources based on the execution result of subtask A to execute subtask B and obtain the execution result of subtask B. Similarly, the supercomputing server allocates a thread pool based on the execution result of subtask B to execute subtask C and obtain the execution result of subtask C, thus obtaining the execution result of this hybrid computing task and fulfilling the user's computing requirements.By constructing dependencies between subtasks within the target computation task, stable execution of each subtask is achieved. Simultaneously, resource type parsing of each subtask reveals its requested resource type, and subtasks are distributed to corresponding resource servers based on this type. This adaptive allocation ensures efficient task execution and achieves deep synergy between quantum and classical computing power. This meets the needs of cutting-edge technology fields for solving ultra-large-scale, ultra-complex problems, avoiding resource disorder, unreasonable resource allocation, and maximizing resource utilization caused by manual scheduling. Furthermore, the deep synergy between quantum and classical computing power enables efficient task scheduling and resource management, improving resource utilization.
[0051] Optionally, after constructing the dependencies between the subtasks in the target computing task, the method further includes: traversing the dependencies between the subtasks, and if there are no task execution timing conflicts or infinite loops in the dependencies between the subtasks, the dependencies meet the requirements.
[0052] In one optional embodiment, when constructing the dependencies of the target computing task, unreasonable dependencies may prevent the target computing task from obtaining execution results. Therefore, it is necessary to traverse the dependencies between each subtask. When there are no task execution timing conflicts or infinite loops between the dependencies of each subtask, it indicates that the dependencies meet the requirements, and the target computing task can be completed. It should be noted that when different subtasks do not have task conflicts, they can be executed in parallel to shorten the computing time of the target computing task and improve computing efficiency.
[0053] In one alternative embodiment, the dependencies of the target computation task can be displayed in the form of a task execution graph, which makes it easier for users to adjust the erroneous dependencies in each subtask in real time, saving time in searching for error nodes in the program and improving the user experience.
[0054] Optionally, distributing each subtask to the corresponding resource server according to the resource type includes: sending a first subtask to a supercomputing server that satisfies the execution of the first subtask and / or sending a second subtask to a quantum server that satisfies the execution of the second subtask, wherein the first subtask is a subtask requesting classical resources, and the second subtask is a subtask requesting quantum resources. By rationally allocating different subtasks to the corresponding resource servers, classical and quantum resources can be fully utilized, providing efficient computing for large-scale scientific computing, machine learning, macromolecular simulation, drug development, and other fields.
[0055] Optionally, the step of enabling the resource server to execute each subtask according to the dependency relationship to obtain the task execution result includes: the supercomputing server determining whether the first subtask needs to wait according to the dependency relationship; wherein, the first subtask is a subtask whose requested resource type is classic resource; when the first subtask has a preceding subtask, the first subtask waits for the preceding subtask to complete, and after the preceding subtask is completed, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask; wherein, the preceding subtask is a subtask that has a dependency relationship with the first subtask; or, when the first subtask does not have a preceding subtask, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask.
[0056] In one optional embodiment, taking a hybrid computing task as an example, the hybrid computing task can be divided into subtasks A, B, and C. Subtask A is a purely classical computing task, subtask B is a purely quantum computing task, and subtask C is a purely classical computing task. The dependency relationship between subtasks A, B, and C in the hybrid computing task is that subtask B depends on the execution result of subtask A to execute its own task, and subtask C depends on the execution result of subtask B to execute its own task. According to the above dependency relationship, subtask A does not need to wait for other tasks to execute. Therefore, the supercomputing server will directly allocate a thread pool to execute subtask A and obtain the execution result of subtask A. Since the above dependency relationship requires subtask C to wait for subtask B to complete before it can continue to execute, subtask C is in a waiting state and is not allocated a thread pool to execute subtask C for the time being. After subtask B is completed and the execution result is obtained on the quantum resource server, the supercomputing server allocates a thread pool to execute subtask C based on the execution result of subtask B and obtains the execution result of subtask C. By ensuring the normal execution of each subtask in the hybrid computing task through dependency relationships, the execution relationship between subtasks is kept disordered and timing errors are avoided, thus achieving efficient computation and correct execution of the hybrid computing task. The subtasks are adaptively allocated, ensuring the high efficiency of task execution. This enables deep collaboration between quantum and classical computing power, meeting the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-high complexity problems, and avoiding resource disorder, unreasonable resource allocation, and failure to maximize resource utilization caused by manual scheduling of computing power resources.
[0057] In one optional embodiment, to improve resource utilization and computational efficiency, the supercomputing server sends the first subtask to an idle thread pool within the supercomputing server for execution, thereby obtaining the task execution result of the first subtask; or, the supercomputing server sends the first subtask to the task queue with the fewest tasks in the task queue corresponding to the thread pool within the supercomputing server for queuing, and executes the first subtask after it enters the thread pool to obtain the task execution result of the first subtask. By allocating subtasks to thread pools in this way, idle thread pools are avoided from being unused and instead assigned to thread pools that require queuing for execution, thus improving resource utilization and consequently improving task computation efficiency.
[0058] Optionally, the step of having the resource server execute each subtask according to the dependency relationship to obtain the task execution result further includes: the quantum server determining whether the second subtask is to be executed according to the dependency relationship; wherein, the second subtask is a subtask whose requested resource type is quantum resource; when the second subtask has a preceding subtask, the second subtask waits for the preceding subtask to complete, and after the preceding subtask is completed, the quantum server schedules the target quantum chip to execute the second subtask to obtain the task execution result of the second subtask; the preceding subtask is a subtask that has a dependency relationship with the second subtask; or, when the second subtask does not have a preceding subtask, the quantum server schedules the target quantum chip to execute the second subtask to obtain the task execution result of the second subtask.
[0059] In one optional embodiment, taking a hybrid computing task as an example, the hybrid computing task can be divided into subtasks A, B, and C. Subtask A is a purely classical computing task, subtask B is a purely quantum computing task, and subtask C is a purely classical computing task. The dependency relationship between subtasks A, B, and C in the hybrid computing task is that subtask B depends on the execution result of subtask A to execute its own task, and subtask C depends on the execution result of subtask B to execute its own task. According to the above dependency relationship, when the quantum server receives subtask B, due to the above dependency relationship, subtask B needs to wait for subtask A to complete before it can continue to execute. Therefore, after the supercomputing server allocates a thread pool to execute subtask A, it sends the execution result of subtask A to the quantum server. The quantum server allocates quantum resources based on the execution result of subtask A to execute subtask B and obtain the execution result of subtask B. By leveraging the synergistic cooperation of classical and quantum resources, efficient computation and correct execution of hybrid computing tasks are achieved. This enables adaptive allocation of subtasks, ensuring high efficiency in task execution. Deep synergy between quantum and classical computing power is realized, meeting the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-high-complexity problems. This avoids resource disorder, unreasonable resource allocation, and failure to maximize resource utilization caused by manual scheduling of computing resources.
[0060] Optionally, before the quantum server schedules the target quantum chip to execute the second subtask and obtains the task execution result of the second subtask, the method further includes: extracting the task characteristics of the second subtask; the task characteristics include at least one of the following: task priority, the number of qubits in the quantum circuit corresponding to the second subtask, the depth of the quantum circuit corresponding to the second subtask, and the quantum gate operation of the quantum circuit corresponding to the second subtask; determining the type of quantum chip to be scheduled based on the task characteristics; determining the resource utilization parameters of the qubits on each quantum chip under the quantum chip type; and determining the target quantum chip based on the resource utilization parameters.
[0061] In one optional embodiment, for a subtask requiring quantum resources for task execution, taking subtask B, whose requested resource type is quantum resources, as an example, the quantum heterogeneous computing resource scheduling component in the quantum super-converged computing system first extracts task features from subtask B. These features include one or more of the following: priority (e.g., experimental personnel task, VIP user task, ordinary user task), the number of qubits in the quantum circuit corresponding to subtask B, the depth of the quantum circuit corresponding to subtask B, and the quantum gate operations of the quantum circuit corresponding to subtask B. Then, based on these task features, the type of quantum chip to be scheduled is determined. For example, if subtask B has a large number of qubits, a quantum chip with a large number of qubits, such as neutral atom, is allocated to it; if subtask B has a large number of qubits, a quantum chip with high fidelity, such as superconducting, is allocated to it. Finally, according to the selected quantum chip type, the resource utilization parameters of each quantum chip under that type are first detected, such as qubit usage and whether there are other queued quantum computing tasks. Based on these resource utilization parameters, the target quantum chip is determined to execute subtask B. By determining the type of quantum chip and the target quantum chip, the utilization rate of quantum resources is greatly improved, the efficiency of task execution is guaranteed, and the phenomena of resource disorder, unreasonable resources, and failure to maximize resource utilization caused by manual scheduling of computing power resources are avoided.
[0062] Optionally, the step of scheduling the target quantum chip to execute the second subtask and obtaining the task execution result of the second subtask includes: determining the qubit block in the target quantum chip based on the number of qubits, the depth, and the quantum gate operation; wherein the qubit block is determined based on the physical topology of the target quantum chip; and scheduling the qubit block to execute the second subtask and obtaining the task execution result of the second subtask.
[0063] In one alternative embodiment, quantum computing resources differ from classical computing resources. Quantum bits are the fundamental resource for quantum computing, and different qubits possess non-negligible noise and decoherence information. When scheduling quantum computing resources, these resources can be rationally allocated according to the computational task requirements. For example, for deeper quantum circuits, qubit blocks with higher fidelity and longer decoherence times are prioritized; conversely, for shallower quantum circuits, qubit blocks with lower fidelity and shorter decoherence times can be rationally allocated. This ensures both correct computation and efficient utilization of quantum computing resources. Within the same quantum circuit, different qubits execute different numbers of logic gates. Some qubits in a quantum circuit may participate in a few logic gate operations and then no longer need to perform other logic gate operations. When scheduling quantum computing resources, qubit blocks with long decoherence times can be paired with qubit blocks with short decoherence times, while ensuring that there are no timing conflicts among the qubits within a qubit block. This maximizes the utilization of quantum computing resources while ensuring the correctness of quantum computation.
[0064] For multiple quantum resource servers comprised of heterogeneous computing backend devices, when scheduling quantum computing resources, priority is given to allocating poorly connected or relatively isolated quantum resource servers to subtasks involving small-qubit quantum circuits, ensuring resource supply for subtasks involving large-qubit quantum computing. Intelligent global resource scheduling avoids resource waste when quantum chips independently schedule resources, effectively improving the overall utilization rate of quantum computing resources. Furthermore, it can allocate appropriate quantum resources to execute quantum computing tasks based on characteristics such as the non-cloning of quantum states of qubits, the non-negligible noise of existing quantum chips, and the inability to perform time-sharing scheduling of quantum computing tasks.
[0065] In one optional embodiment, the computing resources of different physical systems include various classical computing resources such as CPU, GPU, FPGA, intelligent computing, and clusters, as well as quantum computing resources of different physical systems, such as heterogeneous quantum computing resources such as superconductors, ion traps, and neutral atoms, which are not limited here.
[0066] In one alternative embodiment, such as Figure 2The diagram illustrates a super-converged computing system, comprising a multi-language programming component 1, a quantum-classical hybrid task dependency processing component 2, a hybrid task scheduling component 3, a quantum heterogeneous computing resource scheduling component 4, a supercomputing server 5, and a quantum server 6. The multi-language programming component 1 allows users to program target computing tasks into a computer-recognizable language. The quantum-classical hybrid task dependency processing component 2 constructs the dependencies between subtasks within the target computing task and displays them to the user in a task execution graph to enhance the user experience. The hybrid task scheduling component 3 identifies the resource types of each subtask within the target computing task, allocates each subtask to the corresponding resource server for execution based on the identification results, and schedules the execution results of each classical computing task to send to the subtasks that require those results for task execution. The quantum heterogeneous computing resource scheduling component 4 schedules resources for quantum computing tasks and schedules the execution results of quantum computing tasks to send to the subtasks that require those results for task execution. Finally, the supercomputing server 5 and the quantum server 6 execute each subtask. Through deep collaboration among various components, each subtask is adaptively allocated, ensuring high efficiency in task execution. This achieves deep collaboration between quantum and classical computing power, meeting the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-high-complexity problems, and avoiding resource disorder, unreasonable resource allocation, and failure to maximize resource utilization caused by manual scheduling of computing resources.
[0067] In one optional embodiment, the hybrid task scheduling component and the quantum heterogeneous computing resource scheduling component should be in the same network environment and use TCP (Transmission Control Protocol) / HTTP (Hypertext Transfer Protocol) communication methods for information exchange, which effectively reduces network latency, improves computing efficiency, and at the same time prevents channel eavesdropping and enhances network security.
[0068] In one alternative embodiment, for hybrid computing tasks where classical and quantum computing are interdependent, there may be circular dependencies between subtasks, such as subtasks being full amplitude, partial amplitude, MPS, etc., causing subtasks to wait for each other and the hybrid computing task to be blocked and unable to proceed. In this case, the subtask can be distributed to several quantum servers for execution, and the several quantum resource servers use independent partitions to hide them from users.
[0069] This application achieves stable execution of each subtask by constructing dependencies between subtasks in the target computing task. Simultaneously, it parses the resource types requested by each subtask to obtain their resource types and distributes them to corresponding resource servers based on these resource types. This adaptive allocation of subtasks ensures high efficiency in task execution, achieves deep collaboration between quantum and classical computing power, meets the needs of cutting-edge technology fields for solving ultra-large-scale and ultra-complex problems, and avoids resource disorder, unreasonable resource allocation, and failure to maximize resource utilization caused by manual scheduling of computing resources.
[0070] Reference Figure 3 This specification also provides an embodiment of a hyper-converged task management device, comprising:
[0071] The dependency processing module 201 is used to construct the dependency relationships between the various subtasks in the target computing task; wherein, the dependency relationship represents the execution order of the various subtasks;
[0072] The task scheduling module 202 is used to parse the resource types of each subtask to obtain the resource types requested by each subtask; and to distribute each subtask to the corresponding resource server according to the resource type, so that the resource server executes each subtask according to the dependency relationship to obtain the task execution result; wherein, the resource type includes classical resources and quantum resources, and the resource server includes supercomputing server and quantum server.
[0073] Optionally, the device further includes:
[0074] The dependency determination module is used to traverse the dependencies between the subtasks. When there are no task execution timing conflicts or infinite loops in the dependencies between the subtasks, the dependency meets the requirements.
[0075] Optionally, the task scheduling module 202 includes:
[0076] The task scheduling unit is used to send a first subtask to a supercomputing server that satisfies the execution of the first subtask and / or send a second subtask to a quantum server that satisfies the execution of the second subtask, wherein the first subtask is a subtask whose requested resource type is classical resource, and the second subtask is a subtask whose requested resource type is quantum resource.
[0077] Optionally, the task scheduling module 202 further includes:
[0078] The first determination unit is used by the supercomputing server to determine whether the first subtask needs to wait based on the dependency relationship; wherein, the first subtask is a subtask that requests a classic resource.
[0079] The first execution unit is configured to, when the first subtask has a preceding subtask, wait for the preceding subtask to complete, and after the preceding subtask has completed, execute the first subtask on the supercomputing server to obtain the task execution result of the first subtask; wherein the preceding subtask is a subtask that has a dependency relationship with the first subtask; or, when the first subtask does not have a preceding subtask, execute the first subtask on the supercomputing server to obtain the task execution result of the first subtask.
[0080] Optionally, the first execution unit includes:
[0081] The first execution subunit is configured to send the first subtask to an idle thread pool in the supercomputing server for execution to obtain the task execution result of the first subtask; or, the supercomputing server sends the first subtask to the task queue with the fewest tasks in the task queue corresponding to the thread pool in the supercomputing server for queuing, and executes the first subtask after queuing into the thread pool to obtain the task execution result of the first subtask.
[0082] Optionally, the task scheduling module 202 further includes:
[0083] The second determination unit is used by the quantum server to determine whether the second subtask should be executed based on the dependency relationship; wherein the second subtask is a subtask whose requested resource type is quantum resource;
[0084] The second execution unit is configured to, when the second subtask has a preceding subtask, wait for the preceding subtask to complete, and after the preceding subtask has completed, have the quantum server schedule the target quantum chip to execute the second subtask to obtain the task execution result of the second subtask; the preceding subtask is a subtask that has a dependency relationship with the second subtask; or, when the second subtask does not have a preceding subtask, have the quantum server schedule the target quantum chip to execute the second subtask to obtain the task execution result of the second subtask.
[0085] Optionally, the task scheduling module 202 further includes:
[0086] The feature extraction unit is used to extract the task features of the second subtask; the task features include at least one of the following: task priority, number of qubits of the quantum circuit corresponding to the second subtask, depth of the quantum circuit corresponding to the second subtask, and quantum gate operation of the quantum circuit corresponding to the second subtask.
[0087] A quantum chip type determination unit is used to determine the type of quantum chip that needs to be scheduled based on the task characteristics;
[0088] The target quantum chip determination unit is used to determine the resource utilization parameters of the qubits on each quantum chip under the quantum chip type, and determine the target quantum chip based on the resource utilization parameters.
[0089] Optionally, the second execution unit further includes:
[0090] A qubit block determination subunit is used to determine qubit blocks in the target quantum chip based on the number of qubits, the depth, and the quantum gate operation; wherein the qubit blocks are determined based on the physical topology of the target quantum chip;
[0091] The task execution subunit is used to schedule the qubit block to execute the second subtask and obtain the task execution result of the second subtask.
[0092] Regarding the apparatus in the above embodiments, the process of performing each step has been described in detail in the embodiments of the method, and will not be elaborated here.
[0093] Based on the same inventive concept, embodiments of this specification also provide an electronic device.
[0094] The following describes embodiments of the electronic device of the present invention, which can be considered as specific implementations of the methods and apparatus embodiments of the present invention described above. Details described in the embodiments of the electronic device of the present invention should be considered as supplements to the methods or apparatus embodiments described above; details not disclosed in the embodiments of the electronic device of the present invention can be implemented with reference to the methods or apparatus embodiments described above.
[0095] Reference Figure 4 This is a schematic diagram of an electronic device provided as an embodiment of this specification. Refer to the following... Figure 4 The electronic device 300 according to this embodiment of the present invention will be described. Figure 4 The electronic device 300 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0096] like Figure 4 As shown, the electronic device 300 is presented in the form of a general-purpose computing device. The modules of the electronic device 300 may include, but are not limited to: at least one processing unit 310, at least one storage unit 320, a bus 330 connecting different device modules (including storage unit 320 and processing unit 310), a display unit 340, etc.
[0097] The storage unit stores program code that can be executed by the processing unit 310, causing the processing unit 310 to perform the steps described in the processing method section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 310 can perform, for example... Figure 1 The steps are shown.
[0098] The storage unit 320 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 3201 and / or a cache storage unit 3202, and may further include a read-only memory unit (ROM) 3203.
[0099] The storage unit 320 may also include a program / utility 3204 having a set (at least one) of program modules 3205, such program modules 3205 including but not limited to: operating devices, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.
[0100] Bus 330 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.
[0101] Electronic device 300 can also communicate with one or more external devices 400 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with the electronic device 300, and / or with any device that enables the electronic device 300 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 350. Furthermore, electronic device 300 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 360. Network adapter 360 can communicate with other modules of electronic device 300 via bus 330. It should be understood that, although... Figure 4 As not shown, other hardware and / or software modules may be used in conjunction with electronic device 300, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID devices, tape drives, and data backup storage devices.
[0102] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described in this invention can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this invention can be embodied in the form of a software product, which can be stored in a computer-readable storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, or network device, etc.) to execute the method described above according to this invention. When the computer instructions are executed by a data processing device, the computer-readable medium is able to implement the method described above, i.e., as follows: Figure 1 The method shown.
[0103] Reference Figure 5 This is a schematic diagram of a computer-readable medium provided for embodiments of this specification.
[0104] accomplish Figure 1 The computer instructions of the method shown can be stored on one or more computer-readable media. A computer-readable medium can be a readable signal medium or a readable storage medium. A readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0105] The computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, capable of transmitting, propagating, or transmitting a program for use by or in connection with an instruction execution device, apparatus, or apparatus. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0106] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages such as Java and C++, and conventional procedural programming languages such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0107] In summary, this invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that in practice, general-purpose data processing devices such as microprocessors or digital signal processors (DSPs) can be used to implement some or all of the functions of some or all of the components according to the embodiments of the invention. The invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the invention can be stored on a computer-readable medium or can take the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.
[0108] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the present invention is not inherently related to any specific computer, virtual device, or electronic device, and various general-purpose devices can also implement the present invention. The above descriptions are merely specific embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
[0109] The various embodiments in this specification are described in a progressive manner. The same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on describing the differences from other embodiments.
[0110] The above description is merely an embodiment of this application and is not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.
Claims
1. A task management method for hyper-converged infrastructure, characterized in that, include: Construct the dependencies between the subtasks in the target computing task; wherein, the dependencies represent the logical constraints on the execution order of the subtasks; Each subtask is parsed to obtain the resource type requested by each subtask; and each subtask is distributed to the corresponding resource server according to the resource type, so that the resource server executes each subtask according to the dependency relationship to obtain the task execution result; wherein, the resource type includes classical resources and quantum resources; and the resource server includes supercomputing server and quantum server.
2. The method as described in claim 1, characterized in that, After establishing the dependencies between the various subtasks in the target computation task, the method further includes: The dependencies between the subtasks are traversed. If there are no task execution timing conflicts or infinite loops in the dependencies between the subtasks, the dependencies meet the requirements.
3. The method as described in claim 1, characterized in that, The step of distributing each subtask to the corresponding resource server according to the resource type includes: Send the first subtask to a supercomputing server that satisfies the execution of the first subtask and / or send the second subtask to a quantum server that satisfies the execution of the second subtask, wherein the first subtask is a subtask requesting classical resources and the second subtask is a subtask requesting quantum resources.
4. The method as described in claim 1, characterized in that, The step of enabling the resource server to execute each subtask according to the dependency relationship to obtain the task execution result includes: The supercomputing server determines whether the first subtask needs to wait based on the dependency relationship; wherein, the first subtask is a subtask that requests a classic resource. When the first subtask has a preceding subtask, the first subtask waits for the preceding subtask to complete, and after the preceding subtask has completed, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask; wherein, the preceding subtask is a subtask that has a dependency relationship with the first subtask; Alternatively, when the first subtask has no preceding subtask, the supercomputing server executes the first subtask to obtain the task execution result of the first subtask.
5. The method as described in claim 4, characterized in that, The supercomputing server executes the first subtask to obtain the task execution result of the first subtask, including: The supercomputing server sends the first subtask to an idle thread pool within the supercomputing server for execution, thereby obtaining the task execution result of the first subtask; Alternatively, the supercomputing server may send the first subtask to the task queue with the fewest tasks in the task queue corresponding to the thread pool of the supercomputing server for queuing. After queuing and entering the thread pool, the first subtask is executed to obtain the task execution result of the first subtask.
6. The method as described in claim 1, characterized in that, The step of enabling the resource server to execute each subtask according to the dependency relationship to obtain the task execution result further includes: The quantum server determines whether to execute the second subtask based on the dependency relationship; wherein, the second subtask is a subtask that requests a quantum resource. When the second subtask has a preceding subtask, the second subtask waits for the preceding subtask to complete, and after the preceding subtask is completed, the quantum server schedules the target quantum chip to execute the second subtask to obtain the task execution result of the second subtask; the preceding subtask is a subtask that has a dependency relationship with the second subtask; Alternatively, when the second subtask has no preceding subtask, the quantum server schedules the target quantum chip to execute the second subtask and obtains the task execution result of the second subtask.
7. The method as described in claim 6, characterized in that, Before the quantum server schedules the target quantum chip to execute the second subtask and obtains the task execution result of the second subtask, the method further includes: Extract the task features of the second subtask; the task features include at least one of the following: task priority, number of qubits of the quantum circuit corresponding to the second subtask, depth of the quantum circuit corresponding to the second subtask, and quantum gate operation of the quantum circuit corresponding to the second subtask. The type of quantum chip that needs to be scheduled is determined based on the task characteristics; Determine the resource utilization parameters of qubits on each quantum chip under the specified quantum chip type, and determine the target quantum chip based on the resource utilization parameters.
8. The method as described in claim 7, characterized in that, The process of scheduling the target quantum chip to execute the second subtask and obtaining the task execution result of the second subtask includes: The qubit blocks in the target quantum chip are determined based on the number of qubits, the depth, and the quantum gate operations; wherein the qubit blocks are determined based on the physical topology of the target quantum chip. The second subtask is executed by scheduling the qubit block to obtain the task execution result of the second subtask.
9. A hyper-converged task management device, characterized in that, include: A dependency processing module is used to construct the dependency relationships between various subtasks in the target computing task; wherein, the dependency relationship represents the execution order of each subtask; The task scheduling module is used to parse the resource types of each subtask to obtain the resource types requested by each subtask; and to distribute each subtask to the corresponding resource server according to the resource type, so that the resource server executes each subtask according to the dependency relationship to obtain the task execution result; wherein, the resource type includes classical resources and quantum resources, and the resource server includes supercomputing server and quantum server.
10. An electronic device, characterized in that, The method includes a memory and a processor, wherein the memory stores computer instructions and the processor is configured to execute the computer instructions to perform the method according to any one of claims 1 to 8.
11. A storage medium, characterized in that, The storage medium stores computer instructions that are configured to execute the method described in any one of claims 1 to 8 when run.
