Quantum computing task processing method and device and storage medium
By sending quantum computing task requests on the cloud platform and introducing asynchronous interaction and token consumption mechanisms, the problem of CPU-intensive computation on the main platform caused by multi-bit circuit decomposition and merging is solved, improving the utilization rate and processing efficiency of quantum computing resources and adapting to diverse computational inputs.
Patent Information
- Application Number
- CN202511360206.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-23
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2045-09-23
AI Technical Summary
In existing technologies, the disassembly and merging of multi-bit circuits are carried out on the main platform server, resulting in CPU-intensive computation, which affects other functions of the main platform. Furthermore, the availability of quantum computing resources is low, and synchronous processing leads to long computation time, making it impossible to cope with diverse computational input requirements.
By sending quantum computing task requests, including computing device capability information, to the cloud platform, receiving and performing quantum computing, obtaining results, and sending the results back to the cloud platform to update the task status, asynchronous interaction and token consumption mechanisms are introduced to optimize the processing flow and decouple the dependence on computing resources.
It reduces the availability requirements of computing resources, improves the utilization rate of computing resources, supports asynchronous processing, adapts to diverse computing inputs, and enhances user interaction experience and computing efficiency.
Smart Images

Figure CN120851231A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of quantum computing technology, and in particular to a quantum computing task processing method, apparatus and storage medium. Background Technology
[0002] In related technologies, classical computing resource operations such as disassembling and merging multi-qubit circuits occur on the main platform server. Given that disassembly and merging are CPU-intensive computations, this severely impacts other functions of the main platform, rendering it unable to provide external services. Furthermore, the disassembled quantum computing subtasks are directly distributed to quantum computing resources, but these resources suffer from low availability. Summary of the Invention
[0003] This application provides a quantum computing task processing method, apparatus, and storage medium that can reduce the availability requirements of computing resources.
[0004] To achieve the above objectives, the technical solution of this application embodiment is implemented as follows: In a first aspect, this application proposes a quantum computing task processing method applied to a computing device, the method comprising: A quantum computing task request is sent to the cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; The system receives the quantum computing task to be executed sent by the cloud platform, performs quantum computing on the quantum computing task to be executed, and obtains a first quantum computing result. The first quantum computing result is sent to the cloud platform; the first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed.
[0005] Secondly, this application proposes a quantum computing task processing method applied to a cloud platform, the method comprising: Receives a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device; The quantum computing task to be executed is determined based on the capability information; and the quantum computing task to be executed is sent to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed, and obtain a first quantum computing result; The system receives a first quantum computing result sent by the computing device and updates the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
[0006] Thirdly, this application proposes a quantum computing task processing device for use in computing devices, the device comprising: The first sending unit is used to send a quantum computing task request to the cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; The first receiving unit is used to receive the quantum computing task to be executed sent by the cloud platform, and to perform quantum computing on the quantum computing task to be executed to obtain a first quantum computing result. The first sending unit is further configured to send the first quantum computing result to the cloud platform; the first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed.
[0007] Fourthly, this application proposes a quantum computing task processing device for use on a cloud platform, the device comprising: The second receiving unit is used to receive a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device; The second sending unit is used to determine the quantum computing task to be executed based on the capability information; and to send the quantum computing task to be executed to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed to obtain a first quantum computing result; The second receiving unit is further configured to receive the first quantum computing result sent by the computing device, and update the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
[0008] Fifthly, this application proposes a storage medium storing a computer program thereon, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above on the computing device side; or, the computer program, when executed by a processor, implements the steps of any of the methods described above on the cloud platform side.
[0009] This application proposes a quantum computing task processing method, apparatus, and storage medium, applied to a computing device. The method includes: sending a quantum computing task request to a cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; receiving the quantum computing task to be executed sent by the cloud platform, and performing quantum computing on the quantum computing task to be executed to obtain a first quantum computing result; sending the first quantum computing result to the cloud platform; the first quantum computing result is used by the cloud platform to update the state information corresponding to the quantum computing task to be executed. Using the above implementation scheme, the computing device sends a quantum computing task request to the cloud platform to obtain the quantum computing task to be executed, and performs quantum computing on the quantum computing task to be executed to obtain a first quantum computing result. The computing device can include one or more computing resources, and can fully utilize different types of computing resources, thereby reducing the availability requirements of computing resources. Attached Figure Description
[0010] Figure 1 A flowchart illustrating a quantum computing task processing method provided in an embodiment of this application; Figure 2 A flowchart illustrating another quantum computing task processing method provided in this application embodiment; Figure 3 A flowchart illustrating an exemplary asynchronous interaction mechanism provided in an embodiment of this application; Figure 4 A schematic flowchart of an exemplary large-circuit quantum computing task processing is provided for embodiments of this application; Figure 5 A schematic diagram illustrating an exemplary quantum computing task processing method provided in this application embodiment; Figure 6 This is a schematic diagram of the structure of a quantum computing task processing device provided in an embodiment of this application; Figure 7 A schematic diagram of another quantum computing task processing device provided in an embodiment of this application; Figure 8 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application; Figure 9 This is a schematic diagram of the structure of a cloud platform provided in an embodiment of this application. Detailed Implementation
[0011] In order to enable a more detailed understanding of the features and technical contents of the embodiments of the present application, the implementation of the embodiments of the present application is described in detail below with reference to the accompanying drawings. The attached drawings are for reference only and are not used to limit the embodiments of the present application.
[0012] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0013] In the following description, references to "some embodiments" refer to a subset of all possible embodiments. It is understood that "some embodiments" may be the same or different subsets of all possible embodiments and may be combined with each other without conflict. It should also be noted that the terms "first," "second," etc., used in the embodiments of this application are merely for distinguishing similar objects and do not represent a specific ordering of objects. It is understood that "first," "second," etc., may be interchanged in a specific order or sequence where permissible, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0014] With the development of quantum computing, demands have emerged for computational inputs distinct from quantum circuits and for solving large multi-qubit circuits. Considering the scarcity, unavailability, uncertain maintenance cycles, and excessively long maintenance times of existing quantum computing resources, the need has arisen to construct a generalized processing mechanism for quantum computing tasks that efficiently utilizes computing resources.
[0015] One approach to handling quantum computing tasks is to decompose multi-qubit circuits: large, inexecutable circuits are broken down into smaller circuits, each executed separately by a quantum device, and the results are then aggregated and returned to the user. However, the decomposition and merging of these large multi-qubit circuits, which rely on classical computing resources, occur on the main platform server. Given that decomposition and merging are CPU-intensive computations, this can severely impact other functions of the main platform, potentially rendering it unusable. Furthermore, directly assigning the decomposed quantum computing subtasks to quantum computing resources fails to consider their low availability. Additionally, the entire process is synchronous, with each step being time-consuming, negatively impacting the user experience. Finally, this process is relatively rigid, limiting the types of quantum computing tasks that can be executed, hindering scalability, and failing to meet the diverse computational input requirements of the quantum domain.
[0016] Based on this, embodiments of this application provide a quantum computing task processing method. Figure 1 This is a flowchart illustrating a quantum computing task processing method provided in an embodiment of this application; as shown below. Figure 1 As shown, the method includes: S101. Send a quantum computing task request to the cloud platform; the quantum computing task request shall include at least the capability information of the computing device; the quantum computing task request shall be used by the cloud platform to determine the quantum computing task to be executed based on the capability information.
[0017] It should be noted that computing devices include at least auxiliary computing devices and quantum computing devices. In multi-qubit circuit scenarios, auxiliary computing devices can also be understood as circuit cutting aids. A quantum computing task request can also be understood as quantum computing task consumption. When a computing device sends a quantum computing task request to a cloud platform, it can be understood that the cloud platform opens its communication interface, and the computing device sends the quantum computing task request to the cloud platform through the communication interface. Capability information includes at least the number of quantum computing tasks the computing device can acquire and its strategy preferences for acquiring quantum computing tasks. Quantum computing tasks are used by the cloud platform to determine the quantum computing tasks to be executed based on the capability information. This can be understood as the cloud platform, after receiving a quantum computing task request, acquiring the quantum computing tasks to be executed based on the capability information. The quantum computing tasks to be executed can also be understood as a list of quantum computing tasks to be executed.
[0018] In this embodiment of the application, before the computing device sends a quantum computing task request to the cloud platform, the method further includes: the computing device sending a heartbeat time request to the cloud platform; after receiving the heartbeat time request, the cloud platform queries the registration record of the computing device and uses the most recent heartbeat time of the computing device as the current time.
[0019] It should be noted that when a computing device sends a heartbeat request to the cloud platform, it can be understood that the cloud platform opens its communication interface, and the computing device sends the heartbeat request to the cloud platform through the communication interface using a pre-assigned device identifier (ID). The heartbeat request must include at least the computing device's identifier. The heartbeat request can be sent periodically, depending on the actual situation, and is not limited here.
[0020] It should be noted that before the computing device sends a heartbeat time request to the cloud platform, the method further includes: the computing device sending a device registration request to the cloud platform, the device registration request including at least the identifier of the computing device, the most recent heartbeat time, and device characteristics; the cloud platform receiving the device registration request and registering the computing device according to the identifier of the computing device.
[0021] It should be noted that when a computing device sends a device registration request to the cloud platform, it can be understood as the cloud platform opening a registration interface, through which the computing device sends a device registration request. After the computing device is registered with the cloud platform, it can be scheduled to execute the quantum computing tasks input by the user.
[0022] The solution in this application embodiment manages quantum computing devices and auxiliary computing devices together as computing devices, and connects and registers them to the cloud platform in accordance with specifications so that they can be scheduled or assigned to execute user-submitted quantum tasks.
[0023] S102. Receive the quantum computing task to be executed sent by the cloud platform, perform quantum computing on the quantum computing task to be executed, and obtain the first quantum computing result.
[0024] It should be noted that after receiving the quantum computing task to be executed from the cloud platform, the computing device persists the quantum computing task. Performing quantum computing on the quantum computing task to be executed to obtain the first quantum computing result can be understood as performing atomized computation on the quantum computing task to be executed to obtain the first quantum computing result. Here, atomized computation can be understood as decomposing the quantum computing task to be executed into several sub-tasks before performing quantum computation.
[0025] In this embodiment of the application, after receiving the quantum computing task to be executed sent by the cloud platform, the method further includes: sending a first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform; the first task confirmation request is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed to running status information.
[0026] It should be noted that the first task confirmation request should include at least the identifier list information corresponding to the quantum computing task to be executed. Sending the first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform can be understood as the cloud platform opening its communication interface, the computing device sending the first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform through the communication interface, and after receiving the first task confirmation request, the cloud platform updating the status information of the quantum computing task to be executed to the running status.
[0027] In the scheme of this application embodiment, the computing device sends a first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform, which can avoid the situation where the computing device does not receive the quantum computing task to be executed, or the quantum computing task to be executed received by the computing device is inconsistent with the quantum computing task to be executed sent by the cloud platform; and the cloud platform updates the status information corresponding to the quantum computing task to be executed to the running status, which can ensure that the quantum computing task successfully issued by the cloud platform will not be issued repeatedly.
[0028] S103. Send the first quantum computing result to the cloud platform; the first quantum computing result is used by the cloud platform to update the state information corresponding to the quantum computing task to be executed.
[0029] It should be noted that the first quantum computing result includes at least the quantum computing result obtained after the quantum computing task to be executed is successfully performed, and the quantum computing result obtained after the quantum computing task to be executed fails to be performed. The first quantum computing result is sent to the cloud platform. The first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed. This can be understood as the cloud platform opening a communication interface, the computing device sending the first quantum computing result to the cloud platform through the communication interface, and the cloud platform receiving the first quantum computing result. If the first quantum computing result is obtained after successful quantum computing, the status information corresponding to the quantum computing task to be executed is updated to the completed state; if the first quantum computing result is obtained after unsuccessful quantum computing, the status information corresponding to the quantum computing task to be executed is updated to the task failure state.
[0030] It should be noted that the computing device sends the first quantum computing result, the identifier corresponding to the quantum computing task to be executed, and the flag indicating whether the task was successfully executed to the cloud platform.
[0031] In the solution of this application embodiment, the computing device obtains the quantum computing task to be executed by sending a quantum computing task request to the cloud platform, without the cloud platform actively sending the quantum computing task to the computing device, thus fully considering the availability of the computing device.
[0032] In this embodiment of the application, the computing device includes an auxiliary computing device; the method further includes: sending a first task request to a cloud platform; the first task corresponding to the first task request is created by the cloud platform according to the type corresponding to the quantum computing task; the first task request includes at least a task request to be decomposed; receiving the first task sent by the cloud platform according to the first task request; sending a second task confirmation request corresponding to the first task to the cloud platform; the second task confirmation request is used by the cloud platform to update the status information corresponding to the first task; executing the first task to obtain a task execution result, and sending the task execution result to the cloud platform.
[0033] It should be noted that in the context of multi-qubit electronic computing tasks, the auxiliary computing device can be a circuit cutting auxiliary device. The first task can also be understood as a first task list. The first task is created by the cloud platform according to the type corresponding to the quantum computing task. This can be understood as the cloud platform receiving the quantum computing task sent by the user and creating the quantum computing task. At this time, the status information of the quantum computing task is "created," and a token is created for the quantum computing task, of type X. The specific type of X can be determined according to the actual situation. For example, if the type corresponding to the quantum computing task is "to be decomposed," then the first task is the "to be decomposed" task, and the first task request is the "to be decomposed" task request. Generalizing the above "to be decomposed" type to "to be X" for quantum computing tasks, then the first task is task X, and the first task request is task X request.
[0034] It should be noted that sending a first task request to the cloud platform and receiving the first task sent by the cloud platform based on the first task request can be illustrated as follows: When the user receives a large circuit sent by the user, the cloud platform creates a quantum computing task and a token of type "to be decomposed." The circuit cutting auxiliary device sends a "to be decomposed" task request to the cloud platform and receives the "to be decomposed" task from the cloud platform. If we generalize the above "to be decomposed" type of quantum computing task to type X, it can be illustrated as follows: The cloud platform receives the quantum computing task sent by the user, creates the quantum computing task, creates a token of type X, the auxiliary computing device sends an X task request to the cloud platform, and receives the X task from the cloud platform.
[0035] It should be noted that the second task confirmation request is a request sent by the auxiliary computing device to the cloud platform to confirm the first task after receiving it. The second task confirmation request is used by the cloud platform to update the status information corresponding to the first task. It can be understood that after receiving the second task confirmation request, the cloud platform consumes (deletes) the token to be decomposed (X), and the computing task status is decomposed (s1, s1 corresponds to the status of X).
[0036] It should be noted that executing the first task and obtaining the task execution result can be understood as, if the first task is a task to be decomposed, executing the task to be decomposed and obtaining the task execution result. If the task to be decomposed is generalized to task X, executing task X and obtaining the task execution result.
[0037] In this embodiment, the computing device includes an auxiliary computing device and a quantum computing device. After sending the task execution result to the cloud platform, the method further includes: when the task execution result indicates that the task execution is complete, the auxiliary computing device obtains one or more sub-tasks corresponding to the first task from the cloud platform; sends a third task confirmation request corresponding to one or more sub-tasks to the cloud platform; the third task confirmation request is used by the cloud platform to update the status information corresponding to the first task to a running state; the quantum computing device performs quantum computing on one or more sub-tasks to obtain a second quantum computing result, and sends the second quantum computing result to the cloud platform; the second quantum computing result is used by the cloud platform to update the status information corresponding to the first task to a completed or failed state.
[0038] It should be noted that, when the first task is a task to be decomposed, the task execution result indicates that the task has been completed. This can be understood as the execution result of the task to be decomposed indicating that the task to be decomposed has been completed. The auxiliary device obtains one or more sub-tasks corresponding to the first task from the cloud platform. This can be understood as the cloud platform creating one or more sub-tasks based on the result of the task to be decomposed and updating the task status of the first task to "in queue." The quantum computing device then obtains one or more sub-tasks from the cloud platform.
[0039] It should be noted that, when the first task is generalized from a task to be decomposed to task X, the task execution result represents the completion of the task. This can be understood as the execution result of task X representing the completion of task X. The auxiliary device retrieves one or more subtasks corresponding to the first task from the cloud platform. This can be understood as the cloud platform creating a quantum computing task based on the result of task X, creating one or more subtasks based on the first task, updating the task status of the first task to "in queue," and the quantum computing device retrieving one or more subtasks from the cloud platform.
[0040] It should be noted that if the task execution result indicates that the task has failed, the process ends and no further steps will be taken.
[0041] It should be noted that the second quantum computing result includes either the result of successfully performing quantum computing on one or more sub-tasks, or the result of unsuccessfully performing quantum computing on one or more sub-tasks (including cases where one or more sub-tasks failed to perform quantum computing). The quantum computing device performs quantum computing on one or more sub-tasks to obtain the second quantum computing result, and sends the second quantum computing result to the cloud platform. The second quantum computing result is used by the cloud platform to update the status information of the first task to either a completed or failed state. In other words, the quantum computing device sends the second quantum computing result to the cloud platform, and the cloud platform receives the second quantum computing result. If the second quantum computing result is the result of successfully performing quantum computing on one or more sub-tasks, the cloud platform updates the status information of the first task to a completed state; if the second quantum computing result is the result of unsuccessfully performing quantum computing on one or more sub-tasks, the cloud platform updates the status information of the first task to a failed state. When the status information of the first task is updated to a failed state, the process ends, and no further steps are performed.
[0042] It should be noted that when the first task is a task to be decomposed, the status information corresponding to the first task is "completed." This can also be understood as the status information corresponding to the first task being "subtask completed, awaiting merging." The cloud platform creates a token of type "merge." The circuit cutting auxiliary equipment obtains the merge task from the cloud platform. The cloud platform returns a list of merge tasks to the circuit cutting auxiliary equipment. The circuit cutting auxiliary equipment confirms the merge task with the cloud platform. The cloud platform consumes (deletes) the merge token, completes the merge task, and updates the status of the first task to either "completed" or "failed" (completed if the merge is successful; failed if the merge is unsuccessful).
[0043] It should be noted that when the first task is generalized to be decomposed into task X, the status information corresponding to the first task is the completed state. It can also be understood that the status information corresponding to the first task is s2 (the specific type is determined according to the actual situation and is not limited here). The cloud platform creates a token of type Y (the specific type can be determined according to the actual situation and is not limited here). The auxiliary computing device obtains task Y from the cloud platform. The cloud platform returns a list of tasks Y to the auxiliary computing device. The auxiliary computing device confirms task Y with the cloud platform. The cloud platform consumes (deletes) the token Y, completes task Y, and updates the status of the first task to complete or fail (if task Y is successful, it is in the completed state; if task Y is unsuccessful, it is in the failed state).
[0044] The solution in this application employs a business-relevant paradigm abstraction for the decomposition and execution process of multi-bit circuits. This optimizes the processing flow while decoupling strong dependencies between business execution logic and computing resources, improving the utilization of different computing resources. It forms a generalized and universal processing mechanism, not only applicable to quantum computing tasks involving multi-bit circuits, greatly enhancing the reusability of the design. The introduction of a token consumption mechanism improves the fault tolerance of state transitions in quantum computing tasks and provides a foundation for adding a priority mechanism to computing tasks.
[0045] This application also provides a quantum computing task processing method. Figure 2 A flowchart illustrating another quantum computing task processing method provided in this application embodiment; as shown Figure 2 As shown, applied to a cloud platform, the method includes: S201. Receive a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device.
[0046] It should be noted that computing devices include at least auxiliary computing devices and quantum computing devices. In multi-qubit circuit scenarios, auxiliary computing devices can also be understood as circuit cutting aids. Quantum computing task requests can be understood as quantum computing task consumption. The cloud platform receiving quantum computing task requests sent by computing devices can be understood as the cloud platform opening a communication interface, the computing device sending quantum computing task requests to the cloud platform through the communication interface, and the cloud platform receiving these requests. Capability information includes at least the number of quantum computing tasks the computing device can acquire and its strategy preferences for acquiring quantum computing tasks.
[0047] S202. Determine the quantum computing task to be executed based on the capability information; and send the quantum computing task to be executed to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed, and obtain the first quantum computing result.
[0048] It should be noted that determining the quantum computing tasks to be executed based on capability information can be understood as the cloud platform receiving a quantum computing task request and then obtaining the quantum computing tasks to be executed based on the capability information. The quantum computing tasks to be executed can also be understood as a list of quantum computing tasks to be executed.
[0049] In this embodiment of the application, before receiving the quantum computing task request sent by the computing device, the method further includes: the computing device sending a heartbeat time request to the cloud platform; after receiving the heartbeat time request, the cloud platform queries the registration record of the computing device and uses the most recent heartbeat time of the computing device as the current time.
[0050] It should be noted that when a computing device sends a heartbeat request to the cloud platform, it can be understood that the cloud platform opens its communication interface, and the computing device sends the heartbeat request to the cloud platform through the communication interface using a pre-assigned device identifier. The heartbeat request must include at least the computing device's identifier. The heartbeat request can be sent periodically, depending on the actual situation, and is not limited here.
[0051] It should be noted that before the computing device sends a heartbeat time request to the cloud platform, the method further includes: the computing device sending a device registration request to the cloud platform, the device registration request including at least the identifier of the computing device, the most recent heartbeat time, and device characteristics; the cloud platform receiving the device registration request and registering the computing device according to the identifier of the computing device.
[0052] It should be noted that when a computing device sends a device registration request to the cloud platform, it can be understood as the cloud platform opening a registration interface, through which the computing device sends a device registration request. After the computing device is registered with the cloud platform, it can be scheduled to execute the quantum computing tasks input by the user.
[0053] The solution in this application embodiment manages quantum computing devices and auxiliary computing devices together as computing devices, and connects and registers them to the cloud platform in accordance with specifications so that they can be scheduled or assigned to execute user-submitted quantum tasks.
[0054] It should be noted that the quantum computing task to be executed refers to the computing device performing quantum computation on the quantum computing task to be executed to obtain the first quantum computing result. This can be understood as the computing device performing atomized computation on the quantum computing task to be executed to obtain the first quantum computing result. Here, atomized computation can be understood as decomposing the quantum computing task to be executed into several sub-tasks before performing quantum computation.
[0055] In this embodiment of the application, after sending the quantum computing task to be executed to the computing device, the method further includes: receiving a first task confirmation request corresponding to the quantum computing task to be executed sent by the computing device; and updating the status information corresponding to the quantum computing task to be executed to running status information according to the first task confirmation request.
[0056] It should be noted that the first task confirmation request should include at least the identifier list information corresponding to the quantum computing task to be executed. Receiving the first task confirmation request for the quantum computing task to be executed sent by the computing device can be understood as the cloud platform opening its communication interface, the computing device sending the first task confirmation request for the quantum computing task to be executed to the cloud platform through the communication interface, and the cloud platform updating the status information of the quantum computing task to be executed to a running status after receiving the first task confirmation request.
[0057] In the scheme of this application embodiment, the computing device sends a first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform, which can avoid the situation where the computing device does not receive the quantum computing task to be executed, or the quantum computing task to be executed received by the computing device is inconsistent with the quantum computing task to be executed sent by the cloud platform; and the cloud platform updates the status information corresponding to the quantum computing task to be executed to the running status, which can ensure that the quantum computing task successfully issued by the cloud platform will not be issued repeatedly.
[0058] S203. Receive the first quantum computing result sent by the computing device, and update the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
[0059] It should be noted that the first quantum computing result includes at least the quantum computing result obtained after the quantum computing task to be executed is successfully performed, and the quantum computing result obtained after the quantum computing task to be executed fails to be performed. Receiving the first quantum computing result sent by the computing device and updating the state information corresponding to the quantum computing task to be executed based on the first quantum computing result can be understood as follows: the cloud platform opens a communication interface, the computing device sends the first quantum computing result to the cloud platform through the communication interface, the cloud platform receives the first quantum computing result, and if the first quantum computing result is obtained after the quantum computing is successfully performed, the state information corresponding to the quantum computing task to be executed is updated to the completed state; if the first quantum computing result is obtained after the quantum computing is failed, the state information corresponding to the quantum computing task to be executed is updated to the task failure state.
[0060] It should be noted that the computing device sends the first quantum computing result, the identifier corresponding to the quantum computing task to be executed, and the flag indicating whether the task was successfully executed to the cloud platform.
[0061] In the solution of this application embodiment, the computing device obtains the quantum computing task to be executed by sending a quantum computing task request to the cloud platform, without the cloud platform actively sending the quantum computing task to the computing device, thus fully considering the availability of the computing device.
[0062] In this embodiment of the application, the computing device includes an auxiliary computing device, and the method further includes: receiving a first task request sent by the auxiliary computing device; the first task corresponding to the first task request is created by the cloud platform according to the type corresponding to the quantum computing task; the first task request includes at least a task request to be decomposed; sending the first task to the auxiliary computing device according to the first task request; and receiving a second task confirmation request corresponding to the first task sent by the auxiliary computing device, and updating the status information corresponding to the first task based on the second task confirmation request; receiving a task execution result sent by the auxiliary computing device; the task execution result is obtained by the auxiliary computing device executing the first task.
[0063] It should be noted that in the context of multi-qubit electronic computing tasks, the auxiliary computing device can be a circuit cutting auxiliary device. The first task can also be understood as a first task list. The first task is created by the cloud platform according to the type corresponding to the quantum computing task. This can be understood as the cloud platform receiving the quantum computing task sent by the user and creating the quantum computing task. At this time, the status information of the quantum computing task is "created," and a token is created for the quantum computing task, of type X. The specific type of X can be determined according to the actual situation. For example, if the type corresponding to the quantum computing task is "to be decomposed," then the first task is the "to be decomposed" task, and the first task request is the "to be decomposed" task request. Generalizing the above "to be decomposed" type to "to be X" for quantum computing tasks, then the first task is task X, and the first task request is task X request.
[0064] It should be noted that receiving the first task request from the auxiliary computing device and sending the first task to the auxiliary computing device based on the first task request can be illustrated as follows: when the user receives a large circuit sent by the user, the cloud platform creates a quantum computing task and a token of type "to be decomposed." The circuit-cutting auxiliary device sends a "to be decomposed" task request to the cloud platform and receives the "to be decomposed" task from the cloud platform. If we generalize the above "to be decomposed" type of quantum computing task to type X, it can be illustrated as follows: the cloud platform receives the quantum computing task sent by the user, creates the quantum computing task and a token of type X, the auxiliary computing device sends an X task request to the cloud platform, and receives the X task from the cloud platform.
[0065] It should be noted that the second task confirmation request is a request sent by the auxiliary computing device to the cloud platform to confirm the first task after receiving it. The second task confirmation request is used by the cloud platform to update the status information corresponding to the first task. It can be understood that after receiving the second task confirmation request, the cloud platform consumes (deletes) the token to be decomposed (X), and the computing task status is decomposed (s1, s1 corresponds to the status of X).
[0066] It should be noted that the system receives task execution results sent by the auxiliary computing device. These results are obtained by the auxiliary computing device executing the first task. This can be understood as follows: when the first task is a task to be decomposed, the auxiliary computing device executes the task to be decomposed, obtains the task execution result, and sends it to the cloud platform. When the task to be decomposed is generalized into task X, task X is executed, the task execution result is obtained, and then sent to the cloud platform.
[0067] In this embodiment of the application, the computing device includes an auxiliary computing device and a quantum computing device. After receiving the task execution result sent by the auxiliary computing device, the method further includes: sending one or more sub-tasks corresponding to the first task to the auxiliary computing device when the task execution result indicates that the task execution is completed; receiving a third task confirmation request corresponding to one or more sub-tasks sent by the auxiliary computing device; updating the status information corresponding to the first task to a running state based on the third task confirmation request; receiving a second quantum computing result sent by the quantum computing device; the second quantum computing result is obtained by the quantum computing device performing quantum computing on one or more sub-tasks; and updating the status information corresponding to the first task to a completed or failed state based on the second quantum computing result.
[0068] It should be noted that when the first task is a task to be decomposed, the task execution result indicates that the task has been completed. This can be understood as the execution result of the task to be decomposed indicating that the task to be decomposed has been completed. Sending one or more subtasks corresponding to the first task to the auxiliary computing device can be understood as the cloud platform creating one or more subtasks based on the result of the task to be decomposed and the first task, updating the task status corresponding to the first task to be queued, and the quantum computing device obtaining one or more subtasks from the cloud platform.
[0069] It should be noted that, when the first task is generalized from a task to be decomposed to task X, the task execution result represents the completion of the task. This can be understood as the execution result of task X representing the completion of task X. The auxiliary device retrieves one or more subtasks corresponding to the first task from the cloud platform. This can be understood as the cloud platform creating a quantum computing task based on the result of task X, creating one or more subtasks based on the first task, updating the task status of the first task to "in queue," and the quantum computing device retrieving one or more subtasks from the cloud platform.
[0070] It should be noted that if the task execution result indicates that the task has failed, the process ends and no further steps will be taken.
[0071] It should be noted that the second quantum computing result includes either the result of successfully performing quantum computing on one or more sub-tasks, or the result of unsuccessfully performing quantum computing on one or more sub-tasks (including cases where one or more sub-tasks failed to perform quantum computing). The quantum computing device performs quantum computing on one or more sub-tasks to obtain the second quantum computing result, and sends the second quantum computing result to the cloud platform. The second quantum computing result is used by the cloud platform to update the status information of the first task to either a completed or failed state. In other words, the quantum computing device sends the second quantum computing result to the cloud platform, and the cloud platform receives the second quantum computing result. If the second quantum computing result is the result of successfully performing quantum computing on one or more sub-tasks, the cloud platform updates the status information of the first task to a completed state; if the second quantum computing result is the result of unsuccessfully performing quantum computing on one or more sub-tasks, the cloud platform updates the status information of the first task to a failed state. When the status information of the first task is updated to a failed state, the process ends, and no further steps are performed.
[0072] It should be noted that when the first task is a task to be decomposed, the status information corresponding to the first task is "completed." This can also be understood as the status information corresponding to the first task being "subtask completed, awaiting merging." The cloud platform creates a token of type "merge." The circuit cutting auxiliary equipment obtains the merge task from the cloud platform. The cloud platform returns a list of merge tasks to the circuit cutting auxiliary equipment. The circuit cutting auxiliary equipment confirms the merge task with the cloud platform. The cloud platform consumes (deletes) the merge token, completes the merge task, and updates the status of the first task to either "completed" or "failed" (completed if the merge is successful; failed if the merge is unsuccessful).
[0073] It should be noted that when the first task is generalized to be decomposed into task X, the status information corresponding to the first task is the completed state. It can also be understood that the status information corresponding to the first task is s2 (the specific type is determined according to the actual situation and is not limited here). The cloud platform creates a token of type Y (the specific type can be determined according to the actual situation and is not limited here). The auxiliary computing device obtains task Y from the cloud platform. The cloud platform returns a list of tasks Y to the auxiliary computing device. The auxiliary computing device confirms task Y with the cloud platform. The cloud platform consumes (deletes) the token Y, completes task Y, and updates the status of the first task to complete or fail (if task Y is successful, it is in the completed state; if task Y is unsuccessful, it is in the failed state).
[0074] The solution in this application employs a business-relevant paradigm abstraction for the decomposition and execution process of multi-bit circuits. This optimizes the processing flow while decoupling strong dependencies between business execution logic and computing resources, improving the utilization of different computing resources. It forms a generalized and universal processing mechanism, not only applicable to quantum computing tasks involving multi-bit circuits, greatly enhancing the reusability of the design. The introduction of a token consumption mechanism improves the fault tolerance of state transitions in quantum computing tasks and provides a foundation for adding a priority mechanism to computing tasks.
[0075] For ease of understanding, the above quantum computing task processing method is exemplified here as an asynchronous-driven quantum computing task processing mechanism suitable for the quantum computing ecosystem. By introducing asynchronous interaction and abstracting the paradigm of quantum computing tasks, the scarcity of quantum computing resources and the availability and sufficiency of classical resources are balanced, improving the utilization rate of various resources. It also decouples the dependencies between various resources, providing a foundation for the smooth horizontal scaling (distributed) of various computing resources. Furthermore, a confirmation / fault-tolerance mechanism for business state transitions is added, significantly reducing the availability requirements of quantum computing resources. A detailed explanation follows.
[0076] The abstraction of computing resources / devices extends beyond quantum devices to include classical computing-aided (dedicated) devices under management. This supports the generalization of quantum computing task processing models and lays a foundation for unified processing of asynchronous interaction mechanisms. The cloud platform provides an open registration interface, accepting parameters that can include device characteristics, recent heartbeat time, etc. Devices can then register with the cloud platform according to this specification to be scheduled and execute user-input quantum computing tasks.
[0077] Introduce an asynchronous interaction mechanism. Figure 3 A flowchart illustrating an exemplary asynchronous interaction mechanism provided in this application embodiment; as shown below. Figure 3 As shown, the execution entities include quantum / classical auxiliary computing resources and a cloud platform, and the specific steps are as follows: 1. Initiate periodic requests using a pre-assigned device ID.
[0078] It should be noted that quantum / classical auxiliary computing resources make periodic requests to the cloud platform using pre-assigned device IDs.
[0079] 2. Update heartbeat time.
[0080] It should be noted that the cloud platform updates the heartbeat time.
[0081] It should be noted that steps 1 and 2 are for heartbeat registration.
[0082] 3. Initiate quantum computing task consumption "dynamically" using pre-assigned device IDs.
[0083] It should be noted that quantum / classical auxiliary computing resources use pre-assigned device IDs to "dynamically" initiate quantum computing task consumption to the cloud platform.
[0084] 4. Get the list of tasks to be executed.
[0085] It should be noted that the cloud platform obtains the list of tasks to be executed.
[0086] 5. Send the list of tasks to be executed.
[0087] It should be noted that the cloud platform sends a list of tasks to be executed to quantum / classical auxiliary computing resources.
[0088] 6. Persist the list of tasks to be executed.
[0089] It should be noted that the list of tasks to be executed is persisted for quantum / classical auxiliary computing resources.
[0090] It should be noted that steps 3-6 are task consumption.
[0091] 7. Initiate task confirmation "dynamically" using the pre-assigned device ID.
[0092] It should be noted that quantum / classical auxiliary computing resources initiate task confirmation to the cloud platform "dynamically" using pre-assigned device IDs.
[0093] 8. Update the status of confirmed tasks to running.
[0094] It should be noted that the cloud platform update has confirmed that the task status is running.
[0095] It should be noted that steps 7 and 8 are for task confirmation.
[0096] 9. Dynamically initiate task result notifications using pre-assigned device IDs.
[0097] It should be noted that quantum / classical auxiliary computing resources use pre-assigned device IDs to "dynamically" send task result notifications to the cloud platform.
[0098] 10. Update the results of completed / failed tasks.
[0099] It should be noted that the cloud platform updates the results of completed / failed tasks.
[0100] It should be noted that steps 9 and 10 are for updating the task results.
[0101] The steps described above are explained in detail below.
[0102] Heartbeat registration phase: Computing resource devices initiate periodic heartbeat requests to the cloud platform using pre-assigned device IDs. The cloud platform uses this information to confirm the schedulability of the resources. One feasible implementation is for the cloud platform to open its communication interface, accepting parameters that at least include the ID of the computing resource device. Upon receiving the request, the cloud platform queries the device's registration record based on the ID parameter and updates the device's most recent heartbeat time to the current time.
[0103] Task consumption phase: Computing resource devices initiate task consumption requests to the cloud platform on demand using pre-assigned device IDs. The cloud platform retrieves a list of tasks to be executed according to the device's request and returns the list to the computing resource device, which then persists the list. The cloud platform needs to expose its communication interface, and the accepted request parameters should include at least the number of tasks to retrieve and the preferred task retrieval strategy.
[0104] Task Confirmation Phase: Because the interaction process in the previous phase had the potential to fail, to address the issue of cross-process communication transactions in a lightweight manner, computing resource devices initiate task confirmation requests to the cloud platform on demand using pre-assigned device IDs. The task interaction module updates the status of confirmed tasks to "running," thus ensuring that successfully deployed computing tasks are not re-deployed. The cloud platform exposes a communication interface, accepting parameters that at least include a list of task IDs.
[0105] Task Result Update Phase: After completing atomic computation, the computing resource device feeds back the result to the cloud platform according to its own situation. The cloud platform then updates the status of the corresponding computing task. If successful, the computation result is updated; if unsuccessful, the status is updated to failure. Therefore, the interfaces exposed by the cloud platform must accept at least the following input parameters: the computing task ID, a flag indicating whether the task was executed successfully, and the task computation result.
[0106] A token mechanism is introduced to help differentiate and refine processes during task consumption, improving the compatibility and flexibility of business processing. This combines asynchronous interaction with the token mechanism. Figure 4 This application provides an exemplary flowchart of a large-circuit quantum computing task processing method; as shown in the embodiments of this application. Figure 4 As shown, the executing entities include users, cloud platforms, circuit cutting auxiliary equipment, and quantum computing devices. The circuit cutting auxiliary equipment and quantum computing devices can also be collectively referred to as computing devices. The specific steps are as follows: 1. Submit the large circuit.
[0107] It should be noted that users submit large circuits to the cloud platform.
[0108] 2. Screen quantum computing devices; screen circuit cutting auxiliary devices; create computing tasks with the status "created"; create tokens with the type "to be decomposed".
[0109] It should be noted that the cloud platform filters quantum computing devices; filters circuit cutting auxiliary devices; creates computing tasks with a status of "created"; and creates tokens with a type of "pending decomposition".
[0110] 3. Return the generated computation task ID.
[0111] It should be noted that the cloud platform returns the generated computing task ID to the user.
[0112] 4. Obtain the tasks to be broken down.
[0113] It should be noted that the circuit cutting auxiliary equipment obtains the tasks to be decomposed from the cloud platform.
[0114] 5. Return to the list of tasks to be broken down.
[0115] It should be noted that the cloud platform returns a list of tasks to be decomposed to the circuit cutting auxiliary equipment.
[0116] 6. Confirm the tasks to be broken down.
[0117] It should be noted that the circuit cutting auxiliary equipment confirms the tasks to be decomposed with the cloud platform.
[0118] 7. Consume (delete) tokens to be decomposed.
[0119] It should be noted that the cloud platform consumes (deletes) tokens awaiting decomposition.
[0120] 8. The task status is in the process of being decomposed.
[0121] It should be noted that the cloud platform computing task status is "decomposition in progress".
[0122] 9. Execute the tasks to be decomposed.
[0123] It should be noted that the circuit cutting auxiliary equipment performs the task to be decomposed.
[0124] 10. Tasks to be decomposed have been completed.
[0125] It should be noted that the circuit cutting auxiliary equipment sends the tasks to be decomposed to the cloud platform and completes the execution.
[0126] 11. Update the calculation task to complete or failed (process ends).
[0127] It should be noted that if the execution result is a failure, the cloud platform will update the computing task to either complete or fail.
[0128] 12. Based on the decomposition results, create multiple subtasks; the main computation task is in the queue.
[0129] It should be noted that if the execution result is successful, the cloud platform creates multiple subtasks based on the decomposition results; the main computing task is in the queue.
[0130] 13. Obtain subtasks.
[0131] It should be noted that quantum computing devices obtain sub-tasks from the cloud platform.
[0132] 14. Confirm sub-tasks.
[0133] It should be noted that the quantum computing device confirms the sub-tasks with the cloud platform.
[0134] 15. The main computing task is in the running state.
[0135] It should be noted that the main computing task on the cloud platform is in the running state.
[0136] 16. Complete the sub-task.
[0137] It should be noted that the quantum computing device sends the completed sub-task to the cloud platform.
[0138] 17. The main task status is "Waiting to merge"; create a token, type "Merge".
[0139] It should be noted that once all subtasks are completed, the main task status on the cloud platform will be "awaiting merging"; a token will be created, and its type will be "merging".
[0140] 18. The main task status is failure (process ended).
[0141] It should be noted that if a subtask fails, the main task status will be "failed" (process ended).
[0142] 19. Obtain the merge task.
[0143] It should be noted that the circuit cutting auxiliary equipment obtains the merging task from the cloud platform.
[0144] 20. Return to the list of merged tasks.
[0145] It should be noted that the cloud platform returns a list of merged tasks to the circuit cutting auxiliary equipment.
[0146] 21. Confirm the merge task.
[0147] It should be noted that the circuit cutting auxiliary equipment confirms the merging task with the cloud platform.
[0148] 22. Consume (delete) merge token.
[0149] It should be noted that the cloud platform consumes (deletes) merged tokens.
[0150] 23. Complete the merger task.
[0151] It should be noted that the cloud platform completed the merging task.
[0152] 24. Update the main task to indicate whether it is completed or failed.
[0153] It should be noted that the main task of updating the cloud platform is either completed or failed.
[0154] 25. Query the calculation results based on the calculation task ID (can be initiated at any time after creation).
[0155] It should be noted that users query the cloud platform for computation results based on the computation task ID.
[0156] 26. Return the calculation task status and results.
[0157] It should be noted that the cloud platform returns the status and results of the computing tasks to the user.
[0158] The above steps can be detailed as follows: The user submits a large circuit computation task to the cloud platform. Based on the task characteristics, the cloud platform filters circuit cutting equipment and quantum devices to associate with the task. The relevant devices have been pre-registered or dynamically registered on the cloud platform. After persisting the request, the main task record ID is returned to the user. Subsequent processing is asynchronous, with the cloud platform and computing resource devices driving the task's computation and record state transitions through the above mechanism. The cloud platform focuses on handling device scheduling and user requests. The computing devices fully utilize their computing power to perform atomic computations and update the results to the cloud platform. The processing mode for each logical block after returning the task ID follows the asynchronous interaction mechanism described above, excluding the heartbeat interaction phase. Taking the "to be decomposed" logical block as an example, the circuit cutting auxiliary device periodically retrieves computation tasks in the "to be decomposed" state from the cloud platform through the interface exposed by the cloud platform, specifying the quantity and priority of the tasks. After retrieving the computation tasks, these tasks are persisted, and the cloud platform is notified of successful consumption through a confirmation interface. The cloud platform can then migrate the state of these computation tasks to the next state in the business process, "decomposition in progress," and reclaim the corresponding tokens. Other business logic blocks are processed in a similar manner, and the results are updated or the task fails after the final calculation is completed.
[0159] Finally, this model is generalized to other quantum computing tasks. Depending on the specific quantum computing task's process, task state types and token types can be added, removed, or adjusted accordingly. With only minor process modifications, it can adapt to the diversity of quantum computing tasks. This allows for rapid integration of product features and the provision of external services to users.
[0160] Figure 5This application provides an exemplary flowchart of a quantum computing task processing method; as shown in the embodiments. Figure 5 As shown, the execution entities include users, cloud platforms, auxiliary computing devices, and quantum computing devices. Auxiliary computing devices and quantum computing devices can also be collectively referred to as computing devices. The specific steps are as follows: 1. Submit a formatted calculation task.
[0161] It should be noted that users submit formatted computing tasks to the cloud platform.
[0162] 2. Filter quantum computing devices; filter auxiliary devices (on demand); create computing tasks with a status of "created"; create tokens of type X.
[0163] It should be noted that the cloud platform filters quantum computing devices; filters auxiliary devices (on demand); creates computing tasks with a status of "created"; and creates tokens of type X.
[0164] 3. Return the generated computation task ID.
[0165] It should be noted that the cloud platform returns the generated computing task ID to the user.
[0166] 4. Obtain Task X.
[0167] It should be noted that the auxiliary computing device obtains the X task from the cloud platform.
[0168] 5. Return to the X task list.
[0169] It should be noted that the cloud platform returns a list of X tasks to the auxiliary computing device.
[0170] 6. Confirm Task X.
[0171] It should be noted that the auxiliary computing device confirms the X task with the cloud platform.
[0172] 7. Consume (delete) X token.
[0173] It should be noted that the cloud platform consumes (deletes) X tokens.
[0174] 8. The task status is s1.
[0175] It should be noted that the cloud platform computing task status is s1.
[0176] 9. Perform task X.
[0177] It should be noted that the auxiliary computing device performs task X.
[0178] 10. The task in state s1 has been completed.
[0179] It should be noted that the auxiliary computing device sends the s1 status message to the cloud platform indicating that the task has been completed.
[0180] 11. Update the calculation task to complete or failed (process ends).
[0181] It should be noted that if the execution result is a failure, the cloud platform will update the computing task to either complete or fail.
[0182] 12. Based on the calculation results, create a quantum computing task; the main computing task is in the queue.
[0183] It should be noted that when the update computing task is not completed, the cloud platform creates a quantum computing task based on the computing results; the main computing task is in the queue.
[0184] 13. Obtain subtasks.
[0185] It should be noted that quantum computing devices obtain sub-tasks from the cloud platform.
[0186] 14. Confirm sub-tasks.
[0187] It should be noted that the quantum computing device confirms the sub-tasks with the cloud platform.
[0188] 15. The main computing task is in the running state.
[0189] It should be noted that the main computing task on the cloud platform is in the running state.
[0190] 16. Complete the sub-task.
[0191] It should be noted that the quantum computing device sends the completed sub-task to the cloud platform.
[0192] 17. The main task status is failure (process ended).
[0193] It should be noted that if a subtask fails, the main task status will be "failed" (process ended).
[0194] 18. The main task status is s2; create a token of type Y.
[0195] It should be noted that, once all subtasks are completed, the iteration can be adjusted as needed; the main task status of the cloud platform is s2; a token is created, and its type is Y.
[0196] 19. Obtain Task Y.
[0197] It should be noted that the auxiliary computing device obtains the Y task from the cloud platform.
[0198] 20. Return to the Y task list.
[0199] It should be noted that the cloud platform returns a list of tasks Y to the auxiliary computing device.
[0200] 21. Confirm Task Y.
[0201] It should be noted that the auxiliary computing device confirms task Y with the cloud platform.
[0202] 22. Consume (delete) Y token.
[0203] It should be noted that the cloud platform consumes (deletes) Y tokens.
[0204] 23. Complete task Y.
[0205] It should be noted that the cloud platform completes task Y.
[0206] 24. Update the main task to indicate whether it is completed or failed.
[0207] It should be noted that the main task of updating the cloud platform is either completed or failed.
[0208] 25. Query the calculation results based on the calculation task ID (can be initiated at any time after creation).
[0209] It should be noted that users query the cloud platform for computation results based on the computation task ID.
[0210] 26. Return the calculation task status and results.
[0211] It should be noted that the cloud platform returns the status and results of the computing tasks to the user.
[0212] The above scheme can be detailed as follows: For a quantum computing task, it is determined from a business perspective whether it requires auxiliary classical computing equipment. If so, an additional auxiliary equipment selection logic is added to the quantum computing task; this step can also be "fixed" in the process. A corresponding token is created based on the initial state or equivalent state of the quantum task. Subsequent non-quantum computing logic blocks are still processed using the asynchronous interaction mechanism described above and can be iterated as needed. After preprocessing before quantum computing, the task can be sent to the quantum computing device for processing. The processing logic steps still refer to the asynchronous interaction mechanism described above. After the quantum computing is completed, subsequent computational processing steps (if any) still use the same iterative pattern. Finally, the entire computing task is completed.
[0213] This application provides a quantum computing task processing device. Figure 6 This is a schematic diagram of the structure of a quantum computing task processing device provided in an embodiment of this application; as shown below. Figure 6 As shown, the quantum computing task processing device 600, applied to computing devices, includes: The first sending unit 601 is used to send a quantum computing task request to the cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; The first receiving unit 602 is used to receive the quantum computing task to be executed sent by the cloud platform, and to perform quantum computing on the quantum computing task to be executed to obtain a first quantum computing result. The first sending unit 601 is further configured to send the first quantum computing result to the cloud platform; the first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed.
[0214] Optionally, after receiving the quantum computing task to be executed sent by the cloud platform, the first sending unit 601 is further configured to send a first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform; the first task confirmation request is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed to running status information.
[0215] Optionally, the computing device includes an auxiliary computing device, and the first sending unit 601 is further configured to send a first task request to the cloud platform; the first task corresponding to the first task request is created by the cloud platform according to the type corresponding to the quantum computing task; the first task request includes at least a task request to be decomposed. The first receiving unit 602 is further configured to receive a first task sent by the cloud platform according to the first task request; The first sending unit 601 is further configured to send a second task confirmation request corresponding to the first task to the cloud platform; the second task confirmation request is used by the cloud platform to update the status information corresponding to the first task. The quantum computing task processing device 600 further includes an execution unit for executing the first task and obtaining the task execution result; The first sending unit 601 is also used to send the task execution result to the cloud platform.
[0216] Optionally, the computing device includes an auxiliary computing device and a quantum computing device. After the task execution result is sent to the cloud platform, the quantum computing task processing device 600 further includes an acquisition unit, which is used to acquire one or more sub-tasks corresponding to the first task from the cloud platform when the task execution result indicates that the task execution is completed. The first sending unit 601 is further configured to send a third task confirmation request corresponding to the one or more sub-tasks to the cloud platform; the third task confirmation request is used by the cloud platform to update the status information corresponding to the first task to a running status; The first sending unit 601 is further configured to perform quantum computing on the one or more sub-tasks by the quantum computing device to obtain a second quantum computing result, and send the second quantum computing result to the cloud platform; the second quantum computing result is used by the cloud platform to update the status information corresponding to the first task to a completed or failed status.
[0217] This application provides a quantum computing task processing device. Figure 7 This is a schematic diagram of another quantum computing task processing device provided in an embodiment of this application; as shown. Figure 7 As shown, the quantum computing task processing device 700, applied to a cloud platform, includes: The second receiving unit 701 is used to receive a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device; The second sending unit 702 is used to determine the quantum computing task to be executed based on the capability information; and send the quantum computing task to be executed to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed to obtain a first quantum computing result; The second receiving unit 701 is further configured to receive the first quantum computing result sent by the computing device, and update the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
[0218] Optionally, after sending the quantum computing task to be executed to the computing device, the second receiving unit 701 is further configured to receive a first task confirmation request corresponding to the quantum computing task to be executed sent by the computing device; and update the status information corresponding to the quantum computing task to be executed to running status information according to the first task confirmation request.
[0219] Optionally, the computing device includes an auxiliary computing device, and the second receiving unit 701 is further configured to receive a first task request sent by the auxiliary computing device; the first task corresponding to the first task request is created by the cloud platform according to the type corresponding to the quantum computing task; the first task request includes at least a task request to be decomposed. The second sending unit 702 is further configured to send a first task to the auxiliary computing device according to the first task request; The second receiving unit 701 is further configured to receive a second task confirmation request corresponding to the first task sent by the auxiliary computing device, update the status information corresponding to the first task based on the second task confirmation request, and receive a task execution result sent by the auxiliary computing device; the task execution result is obtained by the auxiliary computing device executing the first task.
[0220] Optionally, the computing device includes an auxiliary computing device and a quantum computing device. After receiving the task execution result sent by the auxiliary computing device, the second sending unit 702 is further configured to send one or more sub-tasks corresponding to the first task to the auxiliary computing device when the task execution result indicates that the task execution is completed. The second receiving unit 701 is further configured to receive a third task confirmation request corresponding to one or more sub-tasks sent by the auxiliary computing device; update the status information corresponding to the first task to a running state based on the third task confirmation request; receive a second quantum computing result sent by the quantum computing device; the second quantum computing result is obtained by the quantum computing device performing quantum computing on the one or more sub-tasks; and update the status information corresponding to the first task to a completed or failed state based on the second quantum computing result.
[0221] This application provides a computing device. Figure 8 This is a schematic diagram of the structure of a computing device provided in an embodiment of this application; as shown below. Figure 8 As shown, the computing device 800 includes a first processor 801 and a first memory 802. Optionally, the computing device 800 may also include a first communication bus 803.
[0222] In specific embodiments, the first processor 801 can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), CPU, controller, microcontroller, and microprocessor. It is understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other types, and this embodiment does not specifically limit it.
[0223] In this embodiment, the first communication bus 803 is used to establish communication between the first processor 801 and the first memory 802; when the first processor 801 executes the running program stored in the first memory 802, it implements the following quantum computing task processing method: A quantum computing task request is sent to the cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; The system receives the quantum computing task to be executed sent by the cloud platform, performs quantum computing on the quantum computing task to be executed, and obtains a first quantum computing result. The first quantum computing result is sent to the cloud platform; the first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed.
[0224] Furthermore, after receiving the quantum computing task to be executed sent by the cloud platform, the first processor 801 is also used to send a first task confirmation request corresponding to the quantum computing task to be executed to the cloud platform; the first task confirmation request is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed to running status information.
[0225] Furthermore, the computing device includes an auxiliary computing device. The aforementioned first processor 801 is also configured to send a first task request to the cloud platform; the first task corresponding to the first task request is created by the cloud platform according to the type corresponding to the quantum computing task; the first task request includes at least a task request to be decomposed; receive the first task sent by the cloud platform according to the first task request; send a second task confirmation request corresponding to the first task to the cloud platform; the second task confirmation request is used by the cloud platform to update the status information corresponding to the first task; execute the first task to obtain a task execution result, and send the task execution result to the cloud platform.
[0226] Furthermore, the computing device includes an auxiliary computing device and a quantum computing device. After sending the task execution result to the cloud platform, the first processor 801 is further configured to, when the task execution result indicates that the task execution is complete, have the auxiliary computing device obtain one or more sub-tasks corresponding to the first task from the cloud platform; send a third task confirmation request corresponding to the one or more sub-tasks to the cloud platform; the third task confirmation request is used by the cloud platform to update the status information corresponding to the first task to a running state; the quantum computing device performs quantum computing on the one or more sub-tasks to obtain a second quantum computing result, and sends the second quantum computing result to the cloud platform; the second quantum computing result is used by the cloud platform to update the status information corresponding to the first task to a completed or failed state.
[0227] This application provides a cloud platform. Figure 9 This application provides a schematic diagram of the structure of a cloud platform according to an embodiment of the present application; as shown below. Figure 9 As shown, the cloud platform 900 includes a second processor 901 and a second memory 902. Optionally, the cloud platform 900 may also include a second communication bus 903.
[0228] In specific embodiments, the second processor 901 can be at least one of the following: Application Specific Integrated Circuit (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSPD), Programmable Logic Device (PLD), Field Programmable Gate Array (FPGA), CPU, controller, microcontroller, and microprocessor. It is understood that for different devices, the electronic device used to implement the above-mentioned processor function can also be other types, and this embodiment does not specifically limit it.
[0229] In this embodiment, the second communication bus 903 is used to realize the connection and communication between the second processor 901 and the second memory 902; when the second processor 901 executes the running program stored in the second memory 902, it implements the following quantum computing task processing method: Receives a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device; The quantum computing task to be executed is determined based on the capability information; and the quantum computing task to be executed is sent to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed, and obtain a first quantum computing result; The system receives a first quantum computing result sent by the computing device and updates the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
[0230] Furthermore, after sending the quantum computing task to be executed to the computing device, the second processor 901 is also configured to receive a first task confirmation request corresponding to the quantum computing task to be executed sent by the computing device; and update the status information corresponding to the quantum computing task to be executed to running status information according to the first task confirmation request.
[0231] Furthermore, the computing device includes an auxiliary computing device. The second processor 901 is further configured to receive a first task request sent by the auxiliary computing device; the first task corresponding to the first task request is created by the cloud platform according to the type corresponding to the quantum computing task; the first task request includes at least a task request to be decomposed; send the first task to the auxiliary computing device according to the first task request; receive a second task confirmation request corresponding to the first task sent by the auxiliary computing device; update the status information corresponding to the first task based on the second task confirmation request; and receive a task execution result sent by the auxiliary computing device; the task execution result is obtained by the auxiliary computing device executing the first task.
[0232] Furthermore, the computing device includes an auxiliary computing device and a quantum computing device. After receiving the task execution result sent by the auxiliary computing device, the second processor 901 is further configured to: send one or more sub-tasks corresponding to the first task to the auxiliary computing device when the task execution result indicates that the task execution is completed; receive a third task confirmation request corresponding to the one or more sub-tasks sent by the auxiliary computing device; update the status information corresponding to the first task to a running state based on the third task confirmation request; receive a second quantum computing result sent by the quantum computing device; the second quantum computing result is obtained by the quantum computing device performing quantum computing on the one or more sub-tasks; and update the status information corresponding to the first task to a completed or failed state based on the second quantum computing result.
[0233] This application provides a storage medium storing a computer program thereon. The computer-readable storage medium stores one or more programs, which can be executed by one or more processors. The computer program implements the quantum computing task processing method as described on the computing device side, or implements the quantum computing task processing method as described on the cloud platform side.
[0234] Based on the above embodiments, this application provides a computer program product, including a computer program that can be executed by one or more processors. The computer program implements the quantum computing task processing method as described on the computing device side, or implements the quantum computing task processing method as described on the cloud platform side.
[0235] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0236] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this disclosure, in essence, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions to cause an image display device (which may be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of this disclosure.
[0237] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.
Claims
1. A quantum computing task processing method, characterized in that, Applied to a computing device, the method includes: A quantum computing task request is sent to the cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; The system receives the quantum computing task to be executed sent by the cloud platform, performs quantum computing on the quantum computing task to be executed, and obtains a first quantum computing result. The first quantum computing result is sent to the cloud platform; the first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed.
2. The method according to claim 1, characterized in that, After receiving the quantum computing task to be executed sent by the cloud platform, the process further includes: A first task confirmation request corresponding to the quantum computing task to be executed is sent to the cloud platform; the first task confirmation request is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed to running status information.
3. The method according to claim 1, characterized in that, The computing device includes an auxiliary computing device, and the method further includes: A first task request is sent to the cloud platform; the first task corresponding to the first task request is created by the cloud platform according to the type of quantum computing task; the first task request includes at least a task request to be decomposed. Receive the first task sent by the cloud platform according to the first task request; Send a second task confirmation request corresponding to the first task to the cloud platform; the second task confirmation request is used by the cloud platform to update the status information corresponding to the first task; The first task is executed, the task execution result is obtained, and the task execution result is sent to the cloud platform.
4. The method according to claim 3, characterized in that, The computing device includes auxiliary computing devices and quantum computing devices. After sending the task execution result to the cloud platform, it further includes: When the task execution result indicates that the task execution is complete, the auxiliary computing device obtains one or more sub-tasks corresponding to the first task from the cloud platform; sends a third task confirmation request corresponding to the one or more sub-tasks to the cloud platform; the third task confirmation request is used by the cloud platform to update the status information corresponding to the first task to a running status; The quantum computing device performs quantum computing on the one or more sub-tasks to obtain a second quantum computing result, and sends the second quantum computing result to the cloud platform; the second quantum computing result is used by the cloud platform to update the status information corresponding to the first task to a completed or failed state.
5. A quantum computing task processing method, characterized in that, Applied to a cloud platform, the method includes: Receives a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device; The quantum computing task to be executed is determined based on the capability information; and the quantum computing task to be executed is sent to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed, and obtain a first quantum computing result; The system receives a first quantum computing result sent by the computing device and updates the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
6. The method according to claim 5, characterized in that, After sending the quantum computing task to be executed to the computing device, the method further includes: Receive a first task confirmation request sent by the computing device corresponding to the quantum computing task to be executed; update the status information corresponding to the quantum computing task to be executed to running status information according to the first task confirmation request.
7. The method according to claim 5, characterized in that, The computing device includes an auxiliary computing device, and the method further includes: The system receives a first task request sent by the auxiliary computing device; the first task corresponding to the first task request is created by the cloud platform according to the type of quantum computing task; the first task request includes at least a task request to be decomposed. Send a first task to the auxiliary computing device according to the first task request; and receive a second task confirmation request corresponding to the first task sent by the auxiliary computing device, and update the status information corresponding to the first task based on the second task confirmation request; The auxiliary computing device receives the task execution result sent by the auxiliary computing device; the task execution result is obtained by the auxiliary computing device executing the first task.
8. The method according to claim 7, characterized in that, The computing device includes an auxiliary computing device and a quantum computing device. After receiving the task execution result sent by the auxiliary computing device, the method further includes: When the task execution result indicates that the task execution is complete, one or more sub-tasks corresponding to the first task are sent to the auxiliary computing device; and a third task confirmation request corresponding to the one or more sub-tasks sent by the auxiliary computing device is received; and the status information corresponding to the first task is updated to the running status based on the third task confirmation request. Receive a second quantum computing result sent by a quantum computing device; the second quantum computing result is obtained by the quantum computing device performing quantum computing on the one or more sub-tasks; update the status information corresponding to the first task to a completion or failure status based on the second quantum computing result.
9. A quantum computing task processing device, characterized in that, Applied to a computing device, the apparatus includes: The first sending unit is used to send a quantum computing task request to the cloud platform; the quantum computing task request includes at least the capability information of the computing device; the quantum computing task request is used by the cloud platform to determine the quantum computing task to be executed based on the capability information; The first receiving unit is used to receive the quantum computing task to be executed sent by the cloud platform, and to perform quantum computing on the quantum computing task to be executed to obtain a first quantum computing result. The first sending unit is further configured to send the first quantum computing result to the cloud platform; the first quantum computing result is used by the cloud platform to update the status information corresponding to the quantum computing task to be executed.
10. A quantum computing task processing device, characterized in that, The device, applied to a cloud platform, includes: The second receiving unit is used to receive a quantum computing task request sent by a computing device; the quantum computing task request includes at least the capability information of the computing device; The second sending unit is used to determine the quantum computing task to be executed based on the capability information; and to send the quantum computing task to be executed to the computing device; the quantum computing task to be executed is used by the computing device to perform quantum computing on the quantum computing task to be executed to obtain a first quantum computing result; The second receiving unit is further configured to receive the first quantum computing result sent by the computing device, and update the state information corresponding to the quantum computing task to be executed based on the first quantum computing result.
11. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 4; or, when the computer program is executed by a processor, it implements the steps of the method according to any one of claims 5 to 8.
Citation Information
Patent Citations
A cloud platform and platform operation method for docking a quantum computer with a user
CN109213603A
Quantum application cloud platform and quantum computing task processing method
CN111427665A
Quantum and classic hybrid cloud platform and task execution method
CN112465146A
Cloud platform execution and adaptation method for connecting quantum computer and user
CN113515393A
Quantum computing task scheduling method and device of quantum cloud platform, medium and equipment
CN117236458A