Execution method, device, equipment, medium and program product for quantum service construction

By deploying multi-level quantum service library nodes in the quantum service construction blockchain network and performing automated deployment operations based on the sub-service list, the personalized needs and rapid deployment problems of quantum service deployment are solved, and efficient and safe quantum service construction is achieved. and execution.

CN118740909BActive Publication Date: 2025-01-21SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411223396.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-03
Publication Date
2025-01-21
Estimated Expiration
2044-09-03

AI Technical Summary

Technical Problem

How to achieve rapid deployment of large-scale quantum services in the field of quantum computing to meet users' personalized needs.

Method used

By deploying edge-side quantum service library nodes, cloud-side quantum service private library nodes, and cloud-side quantum service public library nodes in the blockchain network built by quantum services, deployment operations are performed on these nodes respectively based on the sub-service list to form a difference list to achieve Automated build and deployment of quantum services.

Benefits of technology

It achieves efficient, fast, safe and automated customized deployment of quantum services, meets the personalized needs of users, and ensures the traceability and security of quantum service execution through the blockchain network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740909B_ABST
    Figure CN118740909B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of quantum computing technology, and discloses an execution method, device, equipment, medium and program product for quantum service construction. The method is applied to quantum service construction of blockchain network, including: receiving a construction request carrying a sub-service list of quantum services to be constructed; performing a first deployment operation on an edge quantum service library node according to the sub-service list, and obtaining a first difference list for characterizing sub-services not included in the edge quantum service library node in the sub-service list; performing a second deployment operation on a cloud quantum service private library node according to the first difference list, and obtaining a second difference list for characterizing sub-services not included in the cloud quantum service private library node in the first difference list; performing a third deployment operation on a cloud quantum service public library node according to the second difference list. The personalized needs of users are met to the greatest extent, and efficient, fast, safe and automated custom deployment of quantum services is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum computing technology, and in particular to an execution method, device, equipment, medium and program product for constructing a quantum service. Background Art

[0002] With the development of quantum computing technology, the number of quantum simulation services is increasing, including quantum simulator services and quantum algorithm services. In response to the personalized needs of quantum users for quantum services, the quantum services corresponding to each quantum management system are inconsistent. Therefore, how to automatically build and deploy quantum simulation services according to the personalized needs of users, and how to quickly deploy large-scale quantum services have become technical problems that need to be solved urgently. Summary of the invention

[0003] In view of this, the present invention provides an execution method, device, equipment, medium and program product for constructing a quantum service to solve the technical problem of how to quickly deploy large-scale quantum services, which has become an urgent problem to be solved.

[0004] In a first aspect, the present invention provides an execution method for quantum service construction, which is applied to a quantum service to construct a blockchain network, wherein the quantum service to construct a blockchain network includes an edge-end quantum service library node deployed at an edge end, a cloud-end quantum service private library node deployed at a cloud end, and a cloud-end quantum service public library node, and the method includes:

[0005] Receive a construction request for a quantum service, the construction request carries a sub-service list of the quantum service to be constructed, and the sub-service list is used to represent multiple sub-services included in the quantum service;

[0006] According to the sub-service list, a first deployment operation is performed on the edge end quantum service library node to obtain a first difference list, where the first difference list is used to characterize the sub-services in the sub-service list that are not included in the edge end quantum service library node;

[0007] According to the first difference list, a second deployment operation is performed on the cloud quantum service private library node to obtain a second difference list, where the second difference list is used to represent the sub-services in the first difference list that are not included in the cloud quantum service private library node;

[0008] According to the second difference list, a third deployment operation is performed on the cloud quantum service public library node.

[0009] The execution method of quantum service construction of the present invention deploys quantum service nodes on both the cloud and edge ends, and the nodes on the cloud are divided into private library nodes and public library nodes. Therefore, based on the construction request of the quantum service, the edge end quantum service library node, the cloud end quantum service private library node and the cloud end quantum service public library node respectively perform quantum service deployment operations, which can meet the personalized needs of users to the maximum extent and realize efficient, fast, safe and automated custom deployment of quantum services. In addition, a blockchain network is constructed based on quantum services, and the deployment operation of quantum services is automatically executed, so that the execution of quantum services has very strong traceability and is more secure and reliable.

[0010] In an optional implementation, according to the sub-service list, performing a first deployment operation at the edge quantum service library node includes:

[0011] Send the sub-service list to the quantum service to build the blockchain network;

[0012] Triggering the query smart contract of the edge quantum service library node, querying the quantum service library of the edge quantum service library node to obtain a first difference list;

[0013] Execute the deployment function of the edge quantum service library node, and deploy the sub-services in the sub-service list contained in the quantum service library of the edge quantum service library node.

[0014] The execution method of quantum service construction of the present invention builds a blockchain network based on quantum services, and executes the first deployment operation at the edge quantum service library node, so that the quantum service execution has very strong traceability and is more secure and reliable.

[0015] In an optional implementation, according to the first difference list, performing a second deployment operation on a cloud quantum service private library node includes:

[0016] Send the first difference list to the quantum service to build the blockchain network;

[0017] Triggering the query smart contract of the cloud quantum service private library node, querying the sub-services in the first difference list from the quantum service library of the cloud quantum service private library node, and obtaining the second difference list;

[0018] Execute the deployment function of the cloud-based quantum service private library node to deploy the sub-services in the first difference list included in the quantum service library of the cloud-based quantum service private library node.

[0019] The execution method of quantum service construction of the present invention builds a blockchain network based on quantum services, and executes the second deployment operation on a cloud-based quantum service private library node, so that the quantum service execution has very strong traceability and is more secure and reliable.

[0020] In an optional implementation, according to the second difference list, performing a third deployment operation on the cloud quantum service public library node includes:

[0021] Send the second difference list to the quantum service to build the blockchain network;

[0022] Triggering the query smart contract of the cloud quantum service public library node to query the sub-services in the second difference list from the quantum service library of the cloud quantum service public library node;

[0023] Execute the deployment function of the cloud quantum service public library node to deploy the sub-services in the second difference list included in the quantum service library of the cloud quantum service public library node.

[0024] The execution method of quantum service construction of the present invention builds a blockchain network based on quantum services, and executes the third deployment operation on the cloud quantum service public library node, so that the quantum service execution has very strong traceability and is more secure and reliable.

[0025] In an optional implementation, after the cloud quantum service public library node performs the third deployment operation, the method further includes:

[0026] If the second difference list contains a sub-service that is not included in the cloud quantum service public library node, a reminder message indicating that the quantum service construction is not completed is sent.

[0027] The execution method of quantum service construction of the present invention, after the cloud quantum service public library node executes the third deployment operation, if the second difference list contains sub-services that are not included in the cloud quantum service public library node, it means that there are sub-services in the sub-service list that are not included in the quantum service library of the edge quantum service library node, the cloud quantum service private library node, and the cloud quantum service public library node, and at this time, a reminder message for characterizing the incomplete quantum service construction is sent. While realizing the automatic deployment of quantum services, reminders are issued in time for construction requests that cannot be completed automatically, and users process the undeployed sub-services in time, effectively ensuring the integrity of the quantum service construction.

[0028] In an optional embodiment, the method further includes: constructing multiple parallel quantum service blockchain networks during the execution of the first deployment operation, the second deployment operation, and the third deployment operation.

[0029] The execution method of quantum service construction of the present invention constructs multiple parallel quantum service blockchain networks during the execution of the first deployment operation, the second deployment operation and the third deployment operation, further ensuring the automation and traceability of the quantum service construction and execution process, thereby further ensuring the security of the quantum service.

[0030] In an optional implementation, after the cloud quantum service public library node performs the third deployment operation, the method further includes:

[0031] receiving at least one execution request of a quantum service, the execution request carrying a service type of the quantum service to be executed;

[0032] Distribute execution requests to multiple parallel quantum service blockchain networks based on service type;

[0033] A voting mechanism is used to determine the optimal quantum service node;

[0034] The smart contract corresponding to the execution request is triggered at the optimal quantum service node to call the quantum service and output the feedback results.

[0035] The execution method of quantum service construction of the present invention realizes the automatic construction and execution of quantum services through a multi-level blockchain network, ensures the traceability of quantum services, and further ensures the security of quantum services.

[0036] In an optional implementation, the sub-service list includes at least one of the service names, service types, service execution blockchain names, and service execution blockchain categories of the multiple sub-services included in the quantum service to be constructed.

[0037] In an optional implementation, before receiving a request to construct a quantum service, the method further includes:

[0038] Deploy multiple smart contracts on edge quantum service library nodes, cloud quantum service private library nodes, and cloud quantum service public library nodes.

[0039] In an optional implementation, the smart contracts deployed by the edge quantum service library node include: a quantum service query smart contract, a quantum service deployment smart contract, a quantum service differentiation list generation smart contract, and a quantum service joining quantum service execution blockchain smart contract;

[0040] The smart contracts deployed by the cloud quantum service private library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, and quantum service joining quantum service execution blockchain smart contract;

[0041] The smart contracts deployed on the cloud quantum service public library nodes include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, and quantum service joining quantum service execution blockchain smart contract.

[0042] The execution method for constructing a quantum service of the present invention realizes the automatic construction and execution of quantum services by rationally configuring relevant smart contracts in a multi-level blockchain network, thereby ensuring the traceability of quantum services and further ensuring the security of quantum services.

[0043] In an optional embodiment, the edge quantum service library node includes a quantum simulator service and / or a quantum algorithm service;

[0044] The cloud quantum service private library node includes quantum simulator service and / or quantum algorithm service;

[0045] The cloud quantum service public library node includes quantum simulator service and / or quantum algorithm service.

[0046] In an optional implementation, the quantum simulator service and the quantum algorithm service are virtual machines at the operating system level.

[0047] In an optional embodiment, the quantum algorithm service includes at least one of a noisy quantum computing simulation service, a single-amplitude quantum computing simulation service, a partial-amplitude quantum computing simulation service, a full-amplitude quantum computing simulation service, and a tensor network-based quantum computing simulation service;

[0048] The quantum simulator service includes at least one of the ProjectQ simulator service, the Qiskit simulator service, and the Cirq simulator service.

[0049] In an optional implementation, the method further includes: adding the quantum services deployed by the first deployment operation, the second deployment operation, and the third deployment operation to the quantum service execution blockchain network.

[0050] In an optional embodiment, the quantum service execution blockchain network includes a quantum algorithm service blockchain network and / or a quantum simulator service blockchain network;

[0051] The quantum algorithm service blockchain network includes building a quantum algorithm service blockchain node that deploys quantum algorithm services;

[0052] The quantum simulator service blockchain network includes building a quantum simulation service blockchain node that deploys quantum simulation services.

[0053] In an optional embodiment, the quantum service execution blockchain network includes multiple parallel business chains divided according to the functional type of the quantum service;

[0054] The quantum service execution blockchain network is used to receive quantum service execution requests, and distribute the quantum service execution requests to the corresponding parallel business chains according to the functional type of the quantum service in the quantum service execution request to perform quantum service calculations.

[0055] In a second aspect, the present invention provides an execution device for quantum service construction, which is applied to quantum service construction of a blockchain network. The quantum service construction of a blockchain network includes an edge-end quantum service library node deployed at the edge, a cloud-end quantum service private library node deployed at the cloud, and a cloud-end quantum service public library node. The device includes:

[0056] A receiving module, used to receive a construction request of a quantum service, the construction request carries a sub-service list of the quantum service to be constructed, and the sub-service list is used to represent multiple sub-services included in the quantum service;

[0057] A first deployment module is used to perform a first deployment operation on the edge quantum service library node according to the sub-service list to obtain a first difference list, where the first difference list is used to characterize the sub-services in the sub-service list that are not included in the edge quantum service library node;

[0058] A second deployment module is used to perform a second deployment operation on the cloud quantum service private library node according to the first difference list to obtain a second difference list, where the second difference list is used to represent the sub-services in the first difference list that are not included in the cloud quantum service private library node;

[0059] The third deployment module is used to perform a third deployment operation on the cloud quantum service public library node according to the second difference list.

[0060] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the execution method of the quantum service construction of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0061] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the execution method for constructing a quantum service according to the first aspect or any corresponding embodiment thereof.

[0062] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, the computer instructions being used to enable a computer to execute the execution method of the quantum service construction of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0064] Figure 1 is a flowchart of an execution method of a quantum service construction according to an embodiment of the present invention;

[0065] Figure 2 is a flowchart of an execution method of another quantum service construction according to an embodiment of the present invention;

[0066] Figure 3 is a flowchart of a method for executing quantum service construction in a specific application example of the method for executing quantum service construction according to an embodiment of the present invention;

[0067] Figure 4 The flowchart of the execution of blockchain by quantum service in a specific application example of the execution method of quantum service construction of the present invention is shown;

[0068] Figure 5 is a structural block diagram of an execution device constructed according to a quantum service of an embodiment of the present invention;

[0069] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0071] Blockchain technology, also known as distributed ledger technology, is a decentralized, collectively maintained distributed ledger technology solution. Its essence is a distributed database system in which multiple nodes participate collectively. Blockchain is not a single technology, but the result of the integration of multiple technologies. Using blockchain technology to maintain a reliable, tamper-proof ledger record can reduce the risk of trust and effectively reduce the maintenance cost of collaboration among all parties. With the development of quantum computing technology, the number of quantum simulation services is increasing. Quantum simulation services include quantum simulator services and quantum algorithm services. In order to simplify the expression, the quantum simulation service is also referred to as quantum service below. Different users have personalized needs for quantum services. Therefore, when deploying a management system composed of quantum services, it is necessary to build and deploy quantum services according to the personalized needs of users. Therefore, the embodiment of the present invention proposes an execution method, device, equipment, medium and program product for quantum service construction to solve the technical problem of how to quickly deploy large-scale quantum services, which needs to be solved urgently.

[0072] According to an embodiment of the present invention, an execution method embodiment of quantum service construction is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0073] In this embodiment, a method for executing quantum service construction is provided, which is applied to a quantum service to construct a blockchain network. The quantum service to construct a blockchain network includes an edge quantum service library node deployed at the edge, a cloud quantum service private library node deployed in the cloud, and a cloud quantum service public library node. Figure 1 is a flow chart of an execution method of quantum service construction according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0074] Step S101, receiving a construction request for a quantum service, the construction request carries a sub-service list of the quantum service to be constructed, and the sub-service list is used to represent multiple sub-services included in the quantum service.

[0075] In an optional implementation, the sub-service list includes at least one of the service names, service types, service execution blockchain names, and service execution blockchain categories of the multiple sub-services included in the quantum service to be constructed.

[0076] In an optional implementation, the edge quantum service library node deployed at the edge, the cloud quantum service private library node deployed at the cloud, and the cloud quantum service public library node can all deploy smart contracts built and executed by quantum services, for example: query smart contracts, quantum service deployment smart contracts, and differentiated list generation smart contracts.

[0077] In an optional implementation, the quantum service may be a relatively systematic service, which may include multiple sub-services. The sub-services may be named according to actual needs, for example, the sub-service name may be composed of characters, numbers, etc. The service type may be a quantum algorithm service or a quantum simulator service. Specifically, the quantum algorithm service may also include a simulation service containing noise, a single amplitude simulation service, a full amplitude simulation service, a tensor network simulation service, etc. The quantum simulator service may also include a ProjectQ simulator service, a Qiskit simulator service, a Cirq simulator service, and a Q# simulation service, etc. The service execution blockchain name of the sub-service may correspond to the service name of the sub-service, and the service execution blockchain category of the sub-service may correspond to the service type of the sub-service.

[0078] Step S102: According to the sub-service list, a first deployment operation is performed on the edge quantum service library node to obtain a first difference list, where the first difference list is used to characterize the sub-services in the sub-service list that are not included in the edge quantum service library node.

[0079] In an optional implementation, the above step S102 may include:

[0080] Step S1021, sending the sub-service list to the quantum service to build a blockchain network.

[0081] Step S1022, triggering the query smart contract of the edge quantum service library node, and obtaining a first difference list from the quantum service library of the edge quantum service library node.

[0082] Step S1023, executing the deployment function of the edge end quantum service library node, deploying the sub-services in the sub-service list contained in the quantum service library of the edge end quantum service library node.

[0083] In an optional embodiment of the present invention, when a user sends a quantum service to build a blockchain network, the edge quantum service library node deployed at the edge can be triggered to query the smart contract and query the quantum service library of the edge quantum service library node. Completing the query of the quantum service can trigger the quantum service deployment contract of the edge quantum service library node, execute the deployment function of the edge quantum service library node, and build the sub-service queried from the quantum service library of the edge quantum service library node.

[0084] Furthermore, the edge quantum service library node also executes a differentiated list generation smart contract, and obtains a first difference list from the quantum service library of the edge quantum service library node by querying the first difference list, and the first difference list is used to characterize the sub-services in the sub-service list that are not included in the edge quantum service library node.

[0085] Step S103: According to the first difference list, a second deployment operation is performed on the cloud quantum service private library node to obtain a second difference list, where the second difference list is used to represent the sub-services in the first difference list that are not included in the cloud quantum service private library node.

[0086] In an optional implementation, according to the first difference list, performing a second deployment operation on a cloud quantum service private library node includes:

[0087] Step S1031, sending the first difference list to the quantum service to build a blockchain network;

[0088] Step S1032, triggering the query smart contract of the cloud quantum service private library node, querying the sub-services in the first difference list from the quantum service library of the cloud quantum service private library node, and obtaining the second difference list;

[0089] Step S1033, executing the deployment function of the cloud-based quantum service private library node, deploying the sub-services in the first difference list included in the quantum service library of the cloud-based quantum service private library node.

[0090] Similar to executing the first deployment operation at the edge quantum service library node, when executing the second deployment operation at the cloud quantum service private library node, what is triggered is the query smart contract and other smart contracts of the cloud quantum service private library node. And the query list based on which the query smart contract is executed is the first difference list. The first difference list only includes sub-services that are not included in the edge quantum service library node in the sub-service list. Therefore, when the cloud quantum service private library node executes the second deployment operation, the query time of the sub-service is shorter than when the first deployment operation is executed.

[0091] Step S104: Execute a third deployment operation on the cloud quantum service public library node according to the second difference list.

[0092] In an optional implementation, according to the second difference list, performing a third deployment operation on the cloud quantum service public library node includes:

[0093] Send the second difference list to the quantum service to build the blockchain network;

[0094] Triggering the query smart contract of the cloud quantum service public library node to query the sub-services in the second difference list from the quantum service library of the cloud quantum service public library node;

[0095] Execute the deployment function of the cloud quantum service public library node to deploy the sub-services in the second difference list included in the quantum service library of the cloud quantum service public library node.

[0096] Similar to the first deployment operation performed on the edge quantum service library node and the second operation performed on the cloud quantum service private library node, when the third deployment operation is performed on the cloud quantum service public library node, what is triggered is the query smart contract and other smart contracts of the cloud quantum service public library node. And the query list based on which the query smart contract is executed is the second difference list. The second difference list only includes sub-services that are not included in the cloud quantum service private library node in the first difference list, and the first difference list only includes sub-services that are not included in the edge quantum service library node in the sub-service list. As a result, when the cloud quantum service public library node performs the third deployment operation, the query time of the sub-service is shorter than when the first deployment operation and the second deployment operation are performed.

[0097] The execution method for constructing the quantum service of the present invention constructs a blockchain network based on the quantum service, executes a first deployment operation at an edge quantum service library node, executes a second deployment operation at a cloud-end quantum service private library node, and executes a third deployment operation at a cloud-end quantum service public library node, so that the quantum service execution has very strong traceability and is more secure and reliable.

[0098] In an optional implementation, the quantum services deployed by the first deployment operation of step S102, the second deployment operation of step S103, and the third deployment operation of step S104 are also added to the quantum service execution blockchain network.

[0099] In an optional implementation, multiple parallel quantum service blockchain networks are constructed during the execution of the first deployment operation of step S102, the second deployment operation of step S103, and the third deployment operation of step S104.

[0100] For example, based on the first deployment operation of step S102, the second deployment operation of step S103, and the third deployment operation of step S104, multiple sub-services of the quantum service can be constructed, each of which can be a quantum algorithm service or a quantum simulator service, and these sub-services are in parallel. In the process of constructing the quantum service, multiple parallel quantum service blockchain networks can be constructed for multiple sub-services. Therefore, when a quantum service execution request is received, that is, when quantum computing is required based on the quantum service, at least one of the multiple sub-services can be called according to actual needs, and quantum computing can be performed based on the quantum service blockchain network corresponding to the sub-service. Here, the multiple sub-services of the quantum service can be understood as multiple large models.

[0101] The execution method of quantum service construction of the present invention, during the process of executing the first deployment operation, the second deployment operation and the third deployment operation, adds the quantum services deployed by the first deployment operation, the second deployment operation and the third deployment operation to the quantum service execution blockchain network, and constructs multiple parallel quantum service blockchain networks, further ensuring the automation and traceability of the quantum service construction and execution process, thereby further ensuring the security of the quantum service.

[0102] The execution method of quantum service construction of the present invention deploys quantum service nodes on both the cloud and edge ends, and the nodes on the cloud are divided into private library nodes and public library nodes. Therefore, based on the construction request of the quantum service, the edge end quantum service library node, the cloud end quantum service private library node and the cloud end quantum service public library node respectively perform quantum service deployment operations, which can meet the personalized needs of users to the maximum extent and realize efficient, fast, safe and automated custom deployment of quantum services. In addition, a blockchain network is constructed based on quantum services, and the deployment operation of quantum services is automatically executed, so that the execution of quantum services has very strong traceability and is more secure and reliable.

[0103] This embodiment also provides a method for executing quantum service construction. Figure 2 It is a flowchart of an execution method for quantum service construction according to an embodiment of the present invention, which is applied to quantum service construction of blockchain network, and the quantum service construction of blockchain network includes edge-end quantum service library nodes deployed at the edge, cloud-end quantum service private library nodes deployed in the cloud, and cloud-end quantum service public library nodes. In this embodiment of the present invention, the edge-end quantum service library node, the cloud-end quantum service private library node, and the cloud-end quantum service public library node can all include quantum simulator services and quantum algorithm services. Both the quantum simulator service and the quantum algorithm service can be Docker (a virtual machine at the operating system level). Among them, the quantum algorithm service can include at least one of a noisy quantum computing simulation service, a single amplitude quantum computing simulation service, a partial amplitude quantum computing simulation service, a full amplitude quantum computing simulation service, and a quantum computing simulation service based on a tensor network. The quantum simulator service includes at least one of a ProjectQ simulator service, a Qiskit simulator service, and a Cirq simulator service.

[0104] like Figure 2 As shown, the process may include the following steps:

[0105] Step S201, deploy multiple smart contracts on the edge quantum service library node, the cloud quantum service private library node and the cloud quantum service public library node.

[0106] In an optional implementation, the smart contracts deployed by the edge quantum service library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, quantum service join quantum service execution blockchain smart contract. The smart contracts deployed by the cloud quantum service private library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, quantum service join quantum service execution blockchain smart contract. The smart contracts deployed by the cloud quantum service public library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, quantum service join quantum service execution blockchain smart contract.

[0107] The execution method for constructing a quantum service of the present invention realizes the automatic construction and execution of quantum services by rationally configuring relevant smart contracts in a multi-level blockchain network, thereby ensuring the traceability of quantum services and further ensuring the security of quantum services.

[0108] Step S202: receiving a construction request for a quantum service, the construction request carries a sub-service list of the quantum service to be constructed, and the sub-service list is used to represent multiple sub-services included in the quantum service.

[0109] For details, please see Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0110] Step S203: According to the sub-service list, a first deployment operation is performed on the edge quantum service library node to obtain a first difference list, where the first difference list is used to characterize the sub-services in the sub-service list that are not included in the edge quantum service library node.

[0111] For details, please see Figure 1 Step S102 of the illustrated embodiment will not be described in detail here.

[0112] Step S204: According to the first difference list, a second deployment operation is performed on the cloud quantum service private library node to obtain a second difference list, where the second difference list is used to represent the sub-services in the first difference list that are not included in the cloud quantum service private library node.

[0113] For details, please see Figure 1 Step S103 of the illustrated embodiment will not be described in detail here.

[0114] Step S205: Execute a third deployment operation on the cloud quantum service public library node according to the second difference list.

[0115] For details, please see Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0116] In one embodiment of the present invention, if the second difference list contains a sub-service that is not included in the cloud quantum service public library node, a reminder message indicating that the quantum service construction is not completed is sent.

[0117] The execution method of quantum service construction of the present invention, after the cloud quantum service public library node executes the third deployment operation, if the second difference list contains sub-services that are not included in the cloud quantum service public library node, it means that there are sub-services in the sub-service list that are not included in the quantum service library of the edge quantum service library node, the cloud quantum service private library node, and the cloud quantum service public library node, and at this time, a reminder message for characterizing the incomplete quantum service construction is sent. While realizing the automatic deployment of quantum services, reminders are issued in time for construction requests that cannot be completed automatically, and users process the undeployed sub-services in time, effectively ensuring the integrity of the quantum service construction.

[0118] It should be noted that in response to the increasing number of quantum services such as quantum simulation services or quantum algorithm services and the enhanced personalized needs, edge quantum service library nodes, cloud quantum service private library nodes and cloud quantum service public library nodes are configured. In actual application, the quantum service configured by each node can be updated to meet the user's needs for quantum service construction and execution. Here, step S205 is a more optimized solution for the quantum service construction and execution process. Step S205 may not be included in the specific embodiment.

[0119] Step S206: receiving at least one execution request of a quantum service, where the execution request carries a service type of the quantum service to be executed.

[0120] In one embodiment of the present invention, the service types of quantum services may include quantum algorithm services and quantum simulator services.

[0121] In one embodiment of the present invention, the execution request of the quantum service is also the quantum computing execution request. When multiple execution requests of the quantum service are received, they can be processed in parallel or in series according to actual needs.

[0122] Step S207: Distribute the execution request to multiple parallel quantum service blockchain networks according to the service type.

[0123] In an optional implementation, the quantum service execution blockchain network may include a quantum algorithm service blockchain network and a quantum simulator service blockchain network. The quantum algorithm service blockchain network includes building a quantum algorithm service blockchain node for deploying quantum algorithm services, and the quantum simulator service blockchain network includes building a quantum simulation service blockchain node for deploying quantum simulation services.

[0124] In an optional implementation, the quantum service execution blockchain network includes multiple parallel business chains divided according to the function type of the quantum service. The quantum service execution blockchain network is used to receive a quantum service execution request, and according to the function type of the quantum service of the quantum service execution request, distribute the quantum service execution request to the corresponding parallel business chain to perform quantum service calculation.

[0125] Step S208: Using a voting mechanism to determine the optimal quantum service node.

[0126] In an optional implementation, after distributing the execution request to multiple parallel quantum service blockchain networks, the smart contract related to the quantum service blockchain network can be triggered.

[0127] Specifically, for sub-services whose service type is quantum algorithm service, they can be automatically distributed to the quantum algorithm service blockchain network, triggering relevant smart contracts, using a voting mechanism to select the optimal quantum algorithm service node, and executing relevant smart contracts at this node to call the quantum algorithm service and output feedback results.

[0128] For sub-services whose service type is quantum simulator service, they can be automatically distributed to the quantum simulator service blockchain network, triggering relevant smart contracts, using a voting mechanism to select the optimal quantum service simulator node, and executing relevant smart contracts at this node to call the quantum simulator service and output feedback results.

[0129] Step S209: triggering the smart contract corresponding to the execution request at the optimal quantum service node to call the quantum service and output the feedback result.

[0130] The execution method of quantum service construction of the present invention realizes the automatic construction and execution of quantum services through a multi-level blockchain network, ensures the traceability of quantum services, and further ensures the security of quantum services.

[0131] In this embodiment, a specific application example of the execution method of service construction is also provided. In this specific application example, Figure 3 is a flowchart of a specific application example of an execution method for quantum service construction according to an embodiment of the present invention, refer to Figure 3 , cloud quantum service public service library nodes and cloud quantum service private service library nodes can be created in the cloud quantum center. The edge end is referred to as the deployment end here, and a deployment end quantum service library node can be created at the deployment end. It should be noted that in the embodiment of the present invention, the edge end and the deployment end can be understood as the same concept. The following refers to the deployment end quantum service library nodes in the figure, as well as other deployment end-related concepts, all represented by the edge end.

[0132] Among them, the quantum service library nodes at the deployment end and the cloud both contain quantum simulator services and quantum algorithm services in the form of Docker (virtualization technology at the operating system level). In the execution method of quantum service construction of the present invention, first, the quantum service library nodes at the deployment end, the public service library nodes of the cloud quantum service, and the private service library nodes of the cloud quantum service are used to form a quantum service construction blockchain network, and the relevant smart contracts of quantum service construction are deployed on multiple nodes respectively.

[0133] Further, sending a quantum service construction request to the quantum service construction blockchain triggers the smart contract of the edge quantum service library node. According to the sub-service list of the quantum service to be constructed carried by the quantum service construction request, the sub-service list is also the quantum service construction execution list. Based on the sub-service list, the edge quantum service library is queried, and the sub-services in the sub-service list included in the edge quantum service library node are constructed or added to the quantum service execution blockchain network. And trigger the quantum difference list generation smart contract to generate the first difference list.

[0134] Further, the first difference list is sent to the cloud-based quantum private service library node, triggering the cloud-based quantum private service library node to build a quantum service list request smart contract, requesting the deployment of the sub-services of the first difference list. The cloud-based private quantum service library node pre-deploys the relevant smart contracts to query whether the cloud-based quantum private service library node can meet the sub-service construction of the first difference list. The remote deployment of quantum services is performed for the sub-services in the sub-service list queried from the cloud-based quantum private service library node, and the quantum services deployed after the query are built or added to the quantum service execution blockchain network.

[0135] Furthermore, the first difference list is sent to the cloud quantum public service library node, triggering the cloud quantum public service library node to build a quantum service list request smart contract, requesting the deployment of the sub-services of the second difference list. The relevant smart contracts pre-deployed by the cloud public quantum service library node execute the query whether the cloud quantum public service library node can meet the sub-service construction of the second difference list. The remote deployment of quantum services is performed for the sub-services in the sub-service list queried from the cloud quantum public service library node, and the quantum services deployed after the query are built or added to the quantum service execution blockchain network.

[0136] The quantum execution blockchain network includes one or both of the quantum algorithm service blockchain network and the quantum simulator service blockchain network.

[0137] Furthermore, when a quantum computing execution request is received, a quantum execution distribution operation is performed according to the quantum computing type. Specifically, the quantum computing type is the quantum service type such as the quantum algorithm service and quantum simulator service described above. Here, the quantum computing service execution request may include at least one quantum computing service, and the quantum computing service can also be understood as a sub-service described above. Multiple quantum computing services can be calculated in parallel. Distributing quantum computing services to different quantum execution blockchain networks according to quantum computing types can trigger related smart contracts.

[0138] Specifically, Figure 4 The flowchart of the execution of the blockchain by the quantum service in the specific application example of the execution method of the quantum service construction of the present invention is shown, refer to Figure 4 In the specific application example of the execution method of quantum service construction of the present invention, the quantum service execution blockchain execution process may include:

[0139] Step S401, construct a quantum service execution blockchain network including a quantum algorithm blockchain network and a quantum simulator service blockchain network.

[0140] Step S402: Send a quantum computing request task and distribute the quantum computing task according to the service type of the quantum service.

[0141] If the service type is a quantum algorithm service, then execute step S403. If the service type is a quantum simulator service, then execute step S404.

[0142] Step S403: The quantum algorithm service blockchain network receives the quantum computing request, triggers the smart contract, selects the optimal quantum algorithm service node using a voting mechanism, executes the relevant smart contract, calls the quantum algorithm service, and outputs the result feedback.

[0143] Quantum algorithm service blockchain networks can include: noisy simulation services, single amplitude simulation services, full amplitude simulation services, and tensor network simulation services, etc.

[0144] Step S404: The quantum simulator service blockchain network receives the quantum simulator computing request, triggers the smart contract, uses a voting mechanism to select the optimal quantum simulator service node, executes the relevant smart contract, calls the quantum simulator service, and outputs the result feedback.

[0145] The quantum simulator service blockchain network can include ProjectQ simulator service, Qiskit simulator service, Cirq simulator service, etc.

[0146] Therefore, by establishing a three-level service library blockchain network, combined with a differentiated list of quantum service requests, quantum services can be deployed efficiently, quickly, securely, and automatically. At the same time, the deployed services build or join the quantum execution blockchain network, making quantum service execution more secure, traceable, and automated.

[0147] It should be noted that in the embodiment of the present invention, the three deployment operations of the edge quantum service library node, the cloud quantum service private library node and the cloud quantum service public library node at the edge are an optimized embodiment of the execution method of the quantum service construction of the present invention. In practical applications, it may be possible to complete the quantum deployment of multiple sub-services on the sub-service list by only executing the first deployment operation or completing the second deployment operation, and then the execution process of the quantum service construction can be ended. It is not necessary to complete all deployment operations. It can also be set to force the completion of all deployment operations to confirm the completion of the deployment operation by generating a difference list.

[0148] In this embodiment, an execution device for quantum service construction is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0149] This embodiment provides an execution device for quantum service construction, which is applied to quantum service construction of blockchain network. The quantum service construction of blockchain network includes edge quantum service library nodes deployed at the edge, cloud quantum service private library nodes deployed at the cloud, and cloud quantum service public library nodes, such as Figure 5 As shown, including:

[0150] A receiving module 501 is used to receive a construction request of a quantum service, where the construction request carries a sub-service list of the quantum service to be constructed, where the sub-service list is used to represent multiple sub-services included in the quantum service;

[0151] A first deployment module 502 is used to perform a first deployment operation on the edge quantum service library node according to the sub-service list to obtain a first difference list, where the first difference list is used to represent the sub-services in the sub-service list that are not included in the edge quantum service library node;

[0152] A second deployment module 503 is used to perform a second deployment operation on the cloud quantum service private library node according to the first difference list to obtain a second difference list, where the second difference list is used to represent the sub-services in the first difference list that are not included in the cloud quantum service private library node;

[0153] The third deployment module 504 is used to perform a third deployment operation on the cloud quantum service public library node according to the second difference list.

[0154] In an optional implementation, the first deployment module 502 includes:

[0155] A first sending unit, used to send a sub-service list to the quantum service to build a blockchain network;

[0156] A first triggering unit is used to trigger a query smart contract of an edge-end quantum service library node, and obtain a first difference list from a quantum service library of the edge-end quantum service library node;

[0157] The first execution unit is used to execute the deployment function of the edge end quantum service library node, and deploy the sub-services in the sub-service list contained in the quantum service library of the edge end quantum service library node.

[0158] In an optional implementation, the second deployment module 503 includes:

[0159] A second sending unit is used to send the first difference list to the quantum service to build a blockchain network;

[0160] A second trigger unit is used to trigger the query smart contract of the cloud quantum service private library node, query the sub-services in the first difference list from the quantum service library of the cloud quantum service private library node, and obtain a second difference list;

[0161] The second execution unit is used to execute the deployment function of the cloud-based quantum service private library node, and deploy the sub-services in the first difference list included in the quantum service library of the cloud-based quantum service private library node.

[0162] In an optional implementation, the third deployment module 504 includes:

[0163] A third sending unit is used to send the second difference list to the quantum service to build a blockchain network;

[0164] A third triggering unit is used to trigger the query smart contract of the cloud quantum service public library node to query the sub-services in the second difference list from the quantum service library of the cloud quantum service public library node;

[0165] The third execution unit is used to execute the deployment function of the cloud-based quantum service public library node, and deploy the sub-services in the second difference list included in the quantum service library of the cloud-based quantum service public library node.

[0166] In an optional embodiment, the device further comprises:

[0167] The reminder module is used to send a reminder message indicating that the quantum service construction is not completed if the second difference list contains a sub-service not included in the cloud quantum service public library node after the cloud quantum service public library node executes the third deployment operation.

[0168] In an optional embodiment, the device also includes: a first network module, used to build multiple parallel quantum service blockchain networks during the execution of the first deployment operation, the second deployment operation and the third deployment operation.

[0169] In an optional embodiment, the device further includes: a computing request module, configured to receive at least one execution request of the quantum service after the cloud quantum service public library node executes the third deployment operation, wherein the execution request carries the service type of the quantum service to be executed;

[0170] A distribution module, used to distribute execution requests to multiple parallel quantum service blockchain networks according to service types;

[0171] A node determination module is used to determine the optimal quantum service node using a voting mechanism;

[0172] The computing module is used to trigger the smart contract corresponding to the execution request at the optimal quantum service node, call the quantum service and output the feedback results.

[0173] In an optional implementation, the sub-service list includes at least one of the service names, service types, service execution blockchain names, and service execution blockchain categories of the multiple sub-services included in the quantum service to be constructed.

[0174] In an optional embodiment, the device further comprises:

[0175] The contract configuration module is used to deploy multiple smart contracts on the edge quantum service library node, the cloud quantum service private library node, and the cloud quantum service public library node before receiving the quantum service construction request.

[0176] In an optional implementation, the smart contracts deployed by the edge quantum service library node include: a quantum service query smart contract, a quantum service deployment smart contract, a quantum service differentiation list generation smart contract, and a quantum service joining quantum service execution blockchain smart contract;

[0177] The smart contracts deployed by the cloud quantum service private library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, and quantum service joining quantum service execution blockchain smart contract;

[0178] The smart contracts deployed on the cloud quantum service public library nodes include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, and quantum service joining quantum service execution blockchain smart contract.

[0179] In an optional embodiment, the edge quantum service library node includes a quantum simulator service and / or a quantum algorithm service;

[0180] The cloud quantum service private library node includes quantum simulator service and / or quantum algorithm service;

[0181] The cloud quantum service public library node includes quantum simulator service and / or quantum algorithm service.

[0182] In an optional implementation, the quantum simulator service and the quantum algorithm service are virtual machines at the operating system level.

[0183] In an optional embodiment, the quantum algorithm service includes at least one of a noisy quantum computing simulation service, a single-amplitude quantum computing simulation service, a partial-amplitude quantum computing simulation service, a full-amplitude quantum computing simulation service, and a tensor network-based quantum computing simulation service;

[0184] The quantum simulator service includes at least one of the ProjectQ simulator service, the Qiskit simulator service, and the Cirq simulator service.

[0185] In an optional embodiment, the device also includes: a second network module, used to add the quantum services deployed by the first deployment operation, the second deployment operation and the third deployment operation to the quantum service execution blockchain network.

[0186] In an optional embodiment, the quantum service execution blockchain network includes a quantum algorithm service blockchain network and / or a quantum simulator service blockchain network;

[0187] The quantum algorithm service blockchain network includes building a quantum algorithm service blockchain node that deploys quantum algorithm services;

[0188] The quantum simulator service blockchain network includes building a quantum simulation service blockchain node that deploys quantum simulation services.

[0189] In an optional embodiment, the quantum service execution blockchain network includes multiple parallel business chains divided according to the functional type of the quantum service;

[0190] The quantum service execution blockchain network is used to receive quantum service execution requests, and distribute the quantum service execution requests to the corresponding parallel business chains according to the functional type of the quantum service in the quantum service execution request to perform quantum service calculations.

[0191] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0192] The execution device constructed by the quantum service in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0193] The embodiment of the present invention also provides a computer device having the above Figure 5 The execution device of the quantum service build shown.

[0194] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 6 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0195] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0196] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0197] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0198] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0199] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0200] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0201] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0202] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for executing quantum service construction, characterized in that: Applied to quantum service construction of blockchain network, the quantum service construction of blockchain network includes edge end quantum service library node deployed on edge end, cloud end quantum service private library node deployed on cloud end and cloud end quantum service public library node, the method includes: Receive a construction request for a quantum service, the construction request carrying a sub-service list of the quantum service to be constructed, the sub-service list being used to represent a plurality of sub-services included in the quantum service; According to the sub-service list, a first deployment operation is performed on the edge quantum service library node to obtain a first difference list, where the first difference list is used to represent the sub-services in the sub-service list that are not included in the edge quantum service library node; According to the first difference list, a second deployment operation is performed on the cloud quantum service private library node to obtain a second difference list, where the second difference list is used to represent the sub-services in the first difference list that are not included in the cloud quantum service private library node; According to the second difference list, performing a third deployment operation on the cloud quantum service public library node; The performing of a first deployment operation at the edge quantum service library node according to the sub-service list includes: Sending the sub-service list to the quantum service to build a blockchain network; Triggering a query smart contract of the edge quantum service library node to obtain the first difference list from the quantum service library of the edge quantum service library node; Execute the deployment function of the edge end quantum service library node, and deploy the sub-services in the sub-service list contained in the quantum service library of the edge end quantum service library node; The performing a second deployment operation on the cloud quantum service private library node according to the first difference list includes: Sending the first difference list to the quantum service to build a blockchain network; Triggering the query smart contract of the cloud quantum service private library node, querying the sub-services in the first difference list from the quantum service library of the cloud quantum service private library node, and obtaining the second difference list; Execute the deployment function of the cloud-based quantum service private library node to deploy the sub-services in the first difference list included in the quantum service library of the cloud-based quantum service private library node; According to the second difference list, performing a third deployment operation on the cloud quantum service public library node includes: Sending the second difference list to the quantum service to build a blockchain network; Triggering the query smart contract of the cloud quantum service public library node to query the sub-services in the second difference list from the quantum service library of the cloud quantum service public library node; Execute the deployment function of the cloud-based quantum service public library node to deploy the sub-services in the second difference list contained in the quantum service library of the cloud-based quantum service public library node.

2. The method according to claim 1, characterized in that After the cloud-based quantum service public library node performs the third deployment operation, the method further includes: If the second difference list contains a sub-service that is not included in the cloud quantum service public library node, a reminder message indicating that the quantum service construction is not completed is sent.

3. The method according to claim 1, characterized in that The method also includes: in the process of performing the first deployment operation, the second deployment operation, and the third deployment operation, constructing multiple parallel quantum service blockchain networks.

4. The method according to claim 3, characterized in that After the cloud-based quantum service public library node performs the third deployment operation, the method further includes: receiving at least one execution request of a quantum service, wherein the execution request carries a service type of the quantum service to be executed; Distributing the execution request to the multiple parallel quantum service blockchain networks according to the service type; A voting mechanism is used to determine the optimal quantum service node; The smart contract corresponding to the execution request is triggered at the optimal quantum service node to call the quantum service and output the feedback result.

5. The method according to any one of claims 1 to 4, characterized in that The sub-service list includes at least one of a service name, a service type, a service execution blockchain name, and a service execution blockchain category of a plurality of sub-services included in the quantum service to be constructed.

6. The method according to any one of claims 1 to 4, characterized in that Before receiving the request to construct the quantum service, the method further includes: A plurality of smart contracts are deployed on the edge quantum service library node, the cloud quantum service private library node and the cloud quantum service public library node.

7. The method according to claim 6, characterized in that The smart contracts deployed by the edge quantum service library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiation list generation smart contract, quantum service joining quantum service execution blockchain smart contract; The smart contracts deployed by the cloud quantum service private library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, quantum service joining quantum service execution blockchain smart contract; The smart contracts deployed by the cloud-based quantum service public library node include: quantum service query smart contract, quantum service deployment smart contract, quantum service differentiated list generation smart contract, and quantum service joining quantum service execution blockchain smart contract.

8. The method according to claim 1, characterized in that The edge quantum service library node includes a quantum simulator service and / or a quantum algorithm service; The cloud-based quantum service private library node includes a quantum simulator service and / or a quantum algorithm service; The cloud-based quantum service public library node includes a quantum simulator service and / or a quantum algorithm service.

9. The method according to claim 8, characterized in that The quantum simulator service and quantum algorithm service are virtual machines at the operating system level.

10. The method according to claim 8, characterized in that The quantum algorithm service includes at least one of a noisy quantum computing simulation service, a single-amplitude quantum computing simulation service, a partial-amplitude quantum computing simulation service, a full-amplitude quantum computing simulation service, and a tensor network-based quantum computing simulation service; The quantum simulator service includes at least one of a ProjectQ simulator service, a Qiskit simulator service, and a Cirq simulator service.

11. The method according to claim 1, characterized in that: The method also includes: adding the quantum services deployed by the first deployment operation, the second deployment operation, and the third deployment operation to a quantum service execution blockchain network.

12. The method according to claim 11, characterized in that The quantum service execution blockchain network includes a quantum algorithm service blockchain network and / or a quantum simulator service blockchain network; The quantum algorithm service blockchain network includes building a quantum algorithm service blockchain node that deploys quantum algorithm services; The quantum simulator service blockchain network includes building a quantum simulation service blockchain node that deploys a quantum simulation service.

13. The method according to claim 11, characterized in that The quantum service execution blockchain network includes a plurality of parallel business chains divided according to the functional type of the quantum service; The quantum service execution blockchain network is used to receive a quantum service execution request, and distribute the quantum service execution request to a corresponding parallel business chain according to the function type of the quantum service of the quantum service execution request to perform quantum service calculation.

14. An execution device for quantum service construction, characterized in that: Applied to quantum service construction of blockchain network, the quantum service construction of blockchain network includes edge end quantum service library node deployed on edge end, cloud end quantum service private library node deployed on cloud end and cloud end quantum service public library node, the device includes: A receiving module, configured to receive a construction request for a quantum service, wherein the construction request carries a sub-service list of the quantum service to be constructed, wherein the sub-service list is used to represent a plurality of sub-services included in the quantum service; A first deployment module is used to perform a first deployment operation on the edge end quantum service library node according to the sub-service list to obtain a first difference list, where the first difference list is used to represent the sub-services in the sub-service list that are not included in the edge end quantum service library node; A second deployment module is used to perform a second deployment operation on the cloud quantum service private library node according to the first difference list to obtain a second difference list, where the second difference list is used to represent a sub-service that is not included in the cloud quantum service private library node in the first difference list; A third deployment module, configured to perform a third deployment operation on the cloud quantum service public library node according to the second difference list; The first deployment module includes: A first sending unit, used to send a sub-service list to the quantum service to build a blockchain network; A first triggering unit is used to trigger a query smart contract of an edge-end quantum service library node, and obtain a first difference list from a quantum service library of the edge-end quantum service library node; A first execution unit is used to execute a deployment function of an edge-end quantum service library node, and deploy a sub-service in a sub-service list included in a quantum service library of the edge-end quantum service library node; The second deployment module includes: A second sending unit is used to send the first difference list to the quantum service to build a blockchain network; A second trigger unit is used to trigger the query smart contract of the cloud quantum service private library node, query the sub-services in the first difference list from the quantum service library of the cloud quantum service private library node, and obtain a second difference list; A second execution unit is used to execute a deployment function of a cloud quantum service private library node, and deploy sub-services in a first difference list included in a quantum service library of the cloud quantum service private library node; The third deployment module includes: A third sending unit is used to send the second difference list to the quantum service to build a blockchain network; A third trigger unit is used to trigger the query smart contract of the cloud quantum service public library node to query the sub-services in the second difference list from the quantum service library of the cloud quantum service public library node; The third execution unit is used to execute the deployment function of the cloud-based quantum service public library node, and deploy the sub-services in the second difference list included in the quantum service library of the cloud-based quantum service public library node.

15. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the execution method of the quantum service construction according to any one of claims 1 to 13 by executing the computer instructions.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the execution method of the quantum service construction according to any one of claims 1 to 13.

17. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the method for executing the quantum service construction according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • Service-based differentiated chain code deployment method

    CN112905190A

  • Quantum computer operating system and quantum computer

    CN118114779A