Data processing method, device, computer equipment, storage medium and program product

By building blockchain networks and smart contracts on quantum computer nodes, visual monitoring of quantum task data is achieved, the problem of lack of task data analysis in the existing technology is solved, and the maintenance efficiency and stability of the system are improved.

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

Patent Information

Application Number
CN202510399170.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-08-01
Estimated Expiration
2045-04-01

AI Technical Summary

Technical Problem

The existing technology lacks effective monitoring and analysis methods for quantum computer task data. Users can only view the task completion status through page displays and cannot deeply understand the task execution process.

Method used

Build a business acquisition blockchain network and a log acquisition blockchain network. Through the service collector and log collector deployed on quantum computer nodes, data is collected and stored using smart contracts, and sent to monitoring software for visual display.

Benefits of technology

It realizes the acquisition and processing of quantum task data, can quickly locate problems during task execution, and improves the maintenance efficiency and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917385B_ABST
    Figure CN119917385B_ABST
Patent Text Reader

Abstract

The present application discloses a data processing method, apparatus, computer device, storage medium, and program product, relating to the field of computer technologies, including: constructing a service collection blockchain network and a log collection blockchain network based on a quantum computer, where the log collection blockchain network includes log collectors deployed in each node of the quantum computer; collecting and storing service data in the corresponding node based on a first smart contract deployed in the service collector, and collecting and storing log data in the corresponding node based on a second smart contract deployed in the log collector; sending the service data and the log data to monitoring software to visually display the execution process of the quantum task, thereby realizing the collection and processing of the service data and the log data of the quantum task through blockchain technology, and visualizing the processed data through the monitoring software, which helps to quickly locate problems in the task execution process and improves the maintenance efficiency and stability of the system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and particularly to a data processing method, apparatus, computer device, storage medium, and program product. Background Art

[0002] With the development of technology, quantum computers are becoming a reality. Quantum computers are completely different from ordinary computers, which makes it difficult to monitor and analyze task data when quantum computers execute quantum computing tasks.

[0003] However, since quantum computing uses unique quantum algorithms, which are very different from traditional classical algorithms. The design and execution principles of these algorithms are based on the characteristics of quantum mechanics. It is very difficult for researchers and developers to understand and master these algorithms themselves, let alone design and develop a data collection and analysis system based on them. Generally speaking, users can only view whether a quantum task is completed through page display, lacking means to monitor and analyze the task data of quantum tasks. Summary of the Invention

[0004] This application provides a data processing method, apparatus, computer device, storage medium, and program product to at least solve the problem in the related art of lacking means to monitor and analyze the task data of quantum tasks.

[0005] This application provides a data processing method, which includes:

[0006] Based on a quantum computer, construct a business collection blockchain network and a log collection blockchain network, where the business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer;

[0007] Based on the first smart contract deployed in the business collector, collect and store the business data in the corresponding node, and based on the second smart contract deployed in the log collector, collect and store the log data in the corresponding node;

[0008] Send the business data and the log data to monitoring software to visually display the execution process of the quantum task.

[0009] This application also provides a data processing apparatus, which includes:

[0010] A building module is used to build a business collection blockchain network and a log collection blockchain network based on a quantum computer. The business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer;

[0011] A collection module is used to collect and store business data in the corresponding node based on the first smart contract deployed in the business collector, and collect and store log data in the corresponding node based on the second smart contract deployed in the log collector;

[0012] A display module is used to send the business data and the log data to monitoring software for visual display of the execution process of the quantum task.

[0013] This application also provides an electronic device, including: a memory for storing a computer program; a processor for implementing the steps of any of the above data processing methods when executing the computer program.

[0014] This application also provides a computer-readable storage medium storing a computer program, where the computer program implements the steps of any of the above data processing methods when executed by a processor.

[0015] This application also provides a computer program product including a computer program, where the computer program implements the steps of any of the above data processing methods when executed by a processor.

[0016] Through this application, since the data processing method can build a business collection blockchain network and a log collection blockchain network based on a quantum computer. The business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer. Then, the business data in the corresponding node can be collected and stored based on the first smart contract deployed in the business collector, and the log data in the corresponding node can be collected and stored based on the second smart contract deployed in the log collector. Next, the business data and the log data can be sent to the monitoring software for visual display of the execution process of the quantum task, thereby realizing the collection and processing of the business data and the log data of the quantum task through blockchain technology, and visualizing the processed data through the monitoring software, which helps to quickly locate problems in the task execution process and improves the maintenance efficiency and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the accompanying drawings required for the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.

[0018] Figure 1 is a schematic flowchart of a data processing method according to an embodiment of the present invention;

[0019] Figure 2 is a schematic flowchart of another data processing method according to an embodiment of the present invention;

[0020] Figure 3 is a schematic diagram of a blockchain network structure according to an embodiment of the present invention;

[0021] Figure 4 is a schematic flowchart of collecting obligation data according to an embodiment of the present invention;

[0022] Figure 5 is a schematic flowchart of collecting log data according to an embodiment of the present invention;

[0023] Figure 6 is a block diagram of a data processing device according to an embodiment of the present invention;

[0024] Figure 7 is a schematic hardware structure diagram of a computer device according to an embodiment of the present invention. Detailed Embodiments

[0025] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0026] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0027] To enable those skilled in the art of the present technology to better understand the solution of the present application, the following will further elaborate on the present application with reference to the accompanying drawings and specific embodiments.

[0028] In combination with the specific application environment architecture or specific hardware architecture on which the execution of the data processing method depends, the specific application environment architecture or specific hardware architecture is described herein.

[0029] With the development of technology, quantum computers are becoming a reality. Quantum computers are completely different from ordinary computers, which makes it difficult to monitor and analyze task data when quantum computers execute quantum computing tasks.

[0030] However, since quantum computing uses unique quantum algorithms, which are very different from traditional classical algorithms. The design and execution principles of these algorithms are based on the characteristics of quantum mechanics. For researchers and developers, it is very difficult to understand and master these algorithms themselves, let alone design and develop a data collection and analysis system based on them. Generally speaking, users can only view whether a quantum task is completed through page display, lacking means for monitoring and analyzing the task data of quantum tasks.

[0031] Embodiments of the present application provide a data processing method. First, a business collection blockchain network and a log collection blockchain network can be constructed based on a quantum computer. Among them, the business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer. Then, based on the first smart contract deployed in the business collector, business data in the corresponding node can be collected and stored, and based on the second smart contract deployed in the log collector, log data in the corresponding node can be collected and stored. Next, the business data and log data can be sent to monitoring software to visually display the execution process of the quantum task. Thus, the collection and processing of the business data and log data of the quantum task are realized through blockchain technology, and the processed data is visualized through the monitoring software, which helps to quickly locate problems in the task execution process and improves the maintenance efficiency and stability of the system.

[0032] According to an embodiment of the present invention, an embodiment of a data processing method 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 the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0033] In this embodiment, a data processing method is provided, which can be used for the above-mentioned quantum computer. Figure 1 is a flowchart of the data processing method according to an embodiment of the present invention, as Figure 1 shown, and the process includes the following steps:

[0034] Step S101: Based on a quantum computer, construct a business data collection blockchain network and a log data collection blockchain network. The business data collection blockchain network includes business data collectors deployed in each node of the quantum computer, and the log data collection blockchain network includes log data collectors deployed in each node of the quantum computer.

[0035] In an embodiment of the present invention, the blockchain technology is a technical solution for a decentralized and collectively maintained distributed ledger, and its essence is a distributed database system collectively participated by multiple nodes. Here, since the components of the quantum computer are all distributedly deployed, when setting up the blockchain network, corresponding collectors (collectors are the basic components of the blockchain) can be set for each node of the quantum computer to collect business data and log data through this node.

[0036] Specifically, a business data collection blockchain network for collecting business data during the execution of quantum tasks can be set up, and a log data collection blockchain network for collecting log data during the execution of quantum tasks can be set up. Here, the quantum task can be a quantum computing task, which is a computing task executed based on the principles of quantum mechanics, utilizing the superposition state and entanglement characteristics of quantum bits. The task data is the data directly related to the task execution generated during the operation of the quantum computing task. These data are usually generated by quantum algorithms and are used to describe the state, evolution process, and final calculation results of the quantum system. The log data can be log exception data, which refers to the data recorded by the system during the execution of the quantum computing task that does not conform to the normal operating state. These data may reflect problems such as system failures, performance degradation, and resource conflicts.

[0037] Step S102: Based on the first smart contract deployed in the business data collector, collect and store the business data in the corresponding node, and based on the second smart contract deployed in the log data collector, collect and store the log data in the corresponding node.

[0038] In an embodiment of the present invention, corresponding smart contracts can be set for each node in the quantum computer in advance, so that the blockchain network can automatically execute the smart contract to complete the collection and processing of data. Specifically, the smart contract can be used to instruct the blockchain network to complete data collection, on-chain storage, and data integration. Here, the smart contract can include a first smart contract for processing business data and a second smart contract for processing log data.

[0039] Specifically, the collected data can be cleaned to remove duplicate, incorrect, or incomplete data records. For example, check whether the fields in the business data are null values, and filter and correct the abnormal records in the log data. Then, the data from different sources and in different formats can be converted into a unified format and encoding method for subsequent integration and analysis.

[0040] Step S103: Send the business data and log data to the monitoring software to visually display the execution process of the quantum task.

[0041] In an embodiment of the present invention, the blockchain network can communicate with the monitoring software through a communication interface. The monitoring software is used to monitor the execution status of the quantum task and visually display the business data and log data to help researchers and engineers better understand the quantum computing process, analysis results, and troubleshoot problems.

[0042] For example, when visualizing the business data, the quantum states and quantum entanglement during the task execution process can be visualized, and the execution results of the quantum algorithm can be visualized. When visualizing the log data, the metrics that change over time during the execution process of the quantum task and the call relationships between various modules can be analyzed according to the time series.

[0043] From the above description, it can be seen that in an embodiment of the present invention, first, a business collection blockchain network and a log collection blockchain network can be constructed based on the quantum computer. The business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer. Then, based on the first smart contract deployed in the business collector, the business data in the corresponding node can be collected and stored, and based on the second smart contract deployed in the log collector, the log data in the corresponding node can be collected and stored. Next, the business data and log data can be sent to the monitoring software to visually display the execution process of the quantum task. Thus, the collection and processing of the business data and log data of the quantum task are realized through blockchain technology, and the processed data is visualized through the monitoring software, which helps to quickly locate problems in the task execution process and improves the maintenance efficiency and stability of the system.

[0044] In this embodiment, another data processing method is provided, which can be used for the above-mentioned quantum computer. Figure 2 It is a flowchart of the data processing method according to an embodiment of the present invention, as Figure 2 shown. This process includes the following steps:

[0045] Step S201: Based on a preset blockchain network, collect the business data and log data corresponding to each node of the quantum computer when performing quantum tasks.

[0046] Step S2011: Deploy business collectors for each node of the quantum computer when performing quantum tasks, and deploy a first smart contract for each node to obtain a business collection blockchain network.

[0047] Step S2012: Deploy log collectors for each node, and deploy a second smart contract for each node to obtain a log collection blockchain network.

[0048] In the embodiment of the present invention, as Figure 3 shown in the schematic diagram of the blockchain network structure, where the business collection blockchain network is composed of the nodes where the business collectors are located, and a relevant first smart contract is deployed for each node, and the smart contract is automatically executed to complete the collection, on-chain storage, and integration of business data of relevant nodes. Similarly, the log collection blockchain network is composed of the nodes where the log collectors are located, and a relevant second smart contract is deployed for each node, and the smart contract is automatically executed to complete the collection, on-chain storage, and integration of log data of relevant nodes.

[0049] Specifically, when deploying the blockchain network, corresponding collectors can be deployed in each node of the quantum computer. Here, the nodes of the quantum computer that execute quantum tasks may include: quantum simulators, quantum software nodes, quantum measurement and control nodes, and quantum real machines. Among them, the quantum simulator is used to optimize the quantum algorithm for executing quantum tasks, the quantum software node is used to publish and edit quantum instructions for quantum tasks, the quantum measurement and control node is used to generate control signals based on quantum instructions, and the quantum real machine is used to execute quantum tasks based on control signals.

[0050] Here, after deploying business collectors for each node of the quantum computer when performing quantum tasks and deploying a first smart contract for each node, the above step S102 can be executed to collect and store the business data in the corresponding node based on the first smart contract deployed in the business collector, specifically including:

[0051] Collect and store the business data corresponding to the quantum software business metrics based on the business collector deployed in the quantum software node; and collect and store the business data corresponding to the quantum measurement and control business metrics based on the business collector deployed in the quantum measurement and control node; and collect and store the business data corresponding to the quantum real machine business metrics based on the business collector deployed in the quantum real machine; and collect and store the business data corresponding to the quantum simulator business metrics based on the business collector deployed in the quantum simulator.

[0052] In the embodiment of the present invention, by Figure 3It can be known that the service collection blockchain network may include service collector 1, service collector 2, service collector 3, and service collector 4. Among them, service collector 1 can be deployed in the quantum software node, service collector 2 can be deployed in the quantum measurement and control node, service collector 3 can be deployed in the quantum real machine, and service collector 4 can be deployed in the quantum simulator.

[0053] In the embodiment of the present invention, the blockchain network may be composed of multiple collector nodes deployed in quantum computer nodes, so as to implement the privacy, decentralized storage, and distributed computing of data collection during quantum computing execution based on blockchain technology.

[0054] After deploying the service collector, the above step S2011 may be executed to deploy the first smart contract for each node in the quantum computer node to obtain the service collection blockchain network, which specifically includes the following process:

[0055] Deploy a service collector for the quantum software node and deploy a first sub-smart contract for the quantum software node, where the first sub-smart contract is used to collect and store the service data of the quantum software node and analyze and alarm the service data according to the quantum software service metrics; and deploy a service collector for the quantum measurement and control node and deploy a second sub-smart contract for the quantum measurement and control node, where the second sub-smart contract is used to collect and store the service data of the quantum measurement and control node and analyze and alarm the service data according to the quantum measurement and control service metrics; and deploy a service collector for the quantum real machine and deploy a third sub-smart contract for the quantum real machine, where the third sub-smart contract is used to collect and store the service data of the quantum real machine and analyze and alarm the service data according to the quantum real machine service metrics; and deploy a service collector for the quantum simulator and deploy a fourth sub-smart contract for the quantum simulator, where the fourth sub-smart contract is used to collect and store the service data of the quantum simulator and analyze and alarm the service data according to the quantum simulator service metrics. The first smart contract includes: the first sub-smart contract, the second sub-smart contract, the third sub-smart contract, and the fourth sub-smart contract.

[0056] When designing the corresponding first smart contract for each node in the above quantum computer, the data structure of the service data in each node can be defined, and the data collection method can be designed to design the corresponding smart contract interface for data uploading to the blockchain. Then, the data structure, data collection method, and smart contract interface can be used to design the data collection and storage smart contract corresponding to each node, that is, the first sub-smart contract corresponding to the above service collector 1, the second sub-smart contract corresponding to the above service collector 2, the third sub-smart contract corresponding to the above service collector 3, and the fourth sub-smart contract corresponding to the above service collector 4.

[0057] Specifically, after the business collection blockchain network triggers the second smart contract, it can perform the collection and storage function operations of business data. After obtaining and storing the business data, it can further execute the smart contract in the second smart contract for analyzing and alarming the business data to perform business data integration and alarming operations.

[0058] Here, the following process can be included when performing the alarming operation:

[0059] Step a1, after performing the integration operation on the business data based on the business data analysis and alarming smart contract of the blockchain network, analyze the quantum task based on the business data to obtain the execution status.

[0060] Step a2, when the execution status does not meet the preset business data metrics, generate business alarm information for the quantum task.

[0061] In the embodiment of the present invention, a business data analysis and alarming smart contract can be written based on the business data metrics corresponding to the quantum computer node. Specifically, a business data analysis and alarming smart contract can be written based on the business objectives, business metrics, and alarming mechanism of the quantum task. When executing this business data analysis and alarming smart contract, business alarm information can be generated in a timely manner to give a reminder when the business data is abnormal.

[0062] For example, when writing a business data analysis and alarming smart contract, the business objective can be the business objective of the quantum task, such as improving the calculation accuracy, shortening the calculation time, reducing the error rate, etc. The business metrics can include performance metrics corresponding to the quantum software node (such as the execution time, memory usage, algorithm complexity, etc. of the quantum algorithm), reliability metrics (such as the stability, reproducibility, and exception handling ability of the algorithm), performance metrics corresponding to the quantum measurement and control node (such as the preparation accuracy, measurement accuracy, and control accuracy of the quantum state), stability metrics (such as the stability of the quantum device and the anti-interference ability), as well as hardware performance metrics corresponding to the quantum real machine and the quantum simulator (such as the number, quality, and connectivity of quantum bits), operating environment metrics (such as the impact of temperature, humidity, electromagnetic environment, etc. on the operation of the quantum device), etc.

[0063] In addition, when setting the alarming mechanism, it can include alarm threshold setting, alarm method setting, alarm level classification, etc. Among them, when setting the alarm threshold, a reasonable alarm threshold can be set for each business metric. When the metric exceeds or is lower than the threshold, an alarm is triggered. When setting the alarm method, methods such as email notification, SMS reminder, instant messaging tool message, etc. can be selected. When setting the alarm level, according to the severity and impact range of the business, the alarms can be divided into different levels. For example, high-level alarms should be processed immediately, while low-level alarms can be used as a reference or basis for subsequent optimization.

[0064] In an embodiment of the present invention, a first smart contract can be deployed to automatically execute the second smart contract through a business collection blockchain network, realizing the automation of business data collection, on-chain storage, and data integration of each node in a quantum computer, analyzing and alarming the business data, improving the efficiency and accuracy of data collection, reducing manual intervention, lowering the error rate, and enhancing the reliability of the system.

[0065] Similarly, after deploying log collectors for each node when the quantum computer executes quantum tasks and deploying a second smart contract for each node, the above step S102 can be executed. Based on the second smart contract deployed in the log collector, the log data in the corresponding node is collected and stored, specifically including:

[0066] Based on the log collector deployed in the quantum software node, the quantum software exception log is collected and stored; and based on the log collector deployed in the quantum measurement and control node, the quantum measurement and control exception log is collected and stored; and based on the log collector deployed in the quantum real machine, the quantum real machine exception log is collected and stored; and based on the log collector deployed in the quantum simulator, the quantum simulator exception log is collected and stored.

[0067] In an embodiment of the present invention, the log collection blockchain network may include log collector 1, log collector 2, log collector 3, and log collector 4. Among them, log collector 1 can be deployed in the quantum software node, log collector 2 can be deployed in the quantum measurement and control node, log collector 3 can be deployed in the quantum real machine, and log collector 4 can be deployed in the quantum simulator.

[0068] In an embodiment of the present invention, the blockchain network can be composed of multiple collector nodes deployed in the quantum computer nodes to achieve the privacy, decentralized storage, and distributed computing of data collection during quantum computing execution based on blockchain technology.

[0069] After deploying log collectors for each node of the quantum computer, the above step S2011 can be executed, deploying log collectors for each node and deploying a second smart contract for each node to obtain a log collection blockchain network, specifically including the following process:

[0070] Deploy a log collector for the quantum software node and deploy the fifth sub-smart contract for the quantum software node, where the fifth sub-smart contract is used to collect and store the quantum software exception logs; and deploy a log collector for the quantum measurement and control node and deploy the sixth sub-smart contract for the quantum measurement and control node, where the sixth sub-smart contract is used to collect and store the quantum measurement and control exception logs; and deploy a log collector for the quantum real machine and deploy the seventh sub-smart contract for the quantum real machine, where the seventh sub-smart contract is used to collect and store the quantum real machine exception logs and perform fusion calculation on the quantum real machine exception logs; and deploy a log collector for the quantum simulator and deploy the eighth sub-smart contract for the quantum simulator, where the eighth sub-smart contract is used to collect and store the quantum simulator exception logs and perform fusion calculation on the quantum simulator exception logs, where the second smart contract includes: the fifth sub-smart contract, the sixth sub-smart contract, the seventh sub-smart contract, and the eighth sub-smart contract.

[0071] When designing the corresponding second smart contract for each node in the above quantum computer, the second smart contract is used to instruct the log collector to collect the log data generated by each node in the quantum computer when executing quantum tasks and store the log data on the chain, where the log data includes the exception log data during the execution of the quantum tasks. Specifically, the second smart contract includes: the above-mentioned fifth sub-smart contract, the sixth sub-smart contract, the seventh sub-smart contract, and the eighth sub-smart contract.

[0072] Next, the third smart contract can be executed based on the log collection blockchain network to collect and store the exception log data corresponding to each node. Specifically, when designing the corresponding second smart contract for each node in the above quantum computer, the data structure of the log data in each node can be defined, and the data collection method can be designed to design the corresponding smart contract interface for data uploading to the chain. Then, the data structure, the data collection method, and the smart contract interface can be designed into the corresponding data collection and storage smart contract.

[0073] In the embodiment of the present invention, by deploying the second smart contract, the second smart contract can be automatically executed to realize the automation of log data collection, on-chain storage, and data integration of each node in the quantum computer, improve the efficiency and accuracy of data collection, reduce manual intervention, reduce the error rate, and enhance the reliability of the system.

[0074] In some alternative embodiments, the nodes in the above quantum computer include: quantum software nodes, the first smart contract includes: the first sub-smart contract, and the corresponding implementation manners of the above steps S101-S103 further include:

[0075] After collecting and storing the service data in the quantum software node based on the service collector, execute the first sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0076] In the embodiment of the present invention, the implementation manner of performing analysis and alarm based on the first sub-smart contract and the service data is as described in the above step S2011, and will not be elaborated here.

[0077] In addition, the nodes in the quantum computer include: quantum measurement and control nodes, and the first smart contract includes: the second sub-smart contract. The corresponding implementation manners of the above steps S101-S103 further include:

[0078] After collecting and storing the service data in the quantum measurement and control node based on the service collector, execute the second sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0079] In the embodiment of the present invention, the implementation manner of performing analysis and alarm based on the second sub-smart contract and the service data is as described in the above step S2011, and will not be elaborated here.

[0080] In addition, the nodes in the quantum computer include: quantum real machines, and the first smart contract includes: the third sub-smart contract. The corresponding implementation manners of the above steps S101-S103 further include:

[0081] After collecting and storing the service data in the quantum real machine based on the service collector, execute the third sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0082] In the embodiment of the present invention, the implementation manner of performing analysis and alarm based on the third sub-smart contract and the service data is as described in the above step S2011, and will not be elaborated here.

[0083] In addition, the nodes in the quantum computer include: quantum simulators, and the first smart contract includes: the fourth sub-smart contract. The corresponding implementation manners of the above steps S101-S103 further include:

[0084] After collecting and storing the service data in the quantum simulator based on the service collector, execute the fourth sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0085] In the embodiment of the present invention, the implementation manner of performing analysis and alarm based on the fourth sub-smart contract and the service data is as described in the above step S2011, and will not be elaborated here.

[0086] In an embodiment of the present invention, the first smart contract can be deployed to automatically execute the second smart contract through the business acquisition blockchain network, realizing the automation of business data acquisition, on-chain storage, and data integration of each node in the quantum computer, analyzing and alarming the business data, improving the efficiency and accuracy of data acquisition, reducing manual intervention, lowering the error rate, and enhancing the reliability of the system.

[0087] In some alternative embodiments, the nodes in the above quantum computer include: quantum real machines and quantum simulators, and the second smart contract includes: a seventh sub-smart contract deployed in the quantum real machine and an eighth sub-smart contract deployed in the quantum simulator. The embodiments corresponding to the above steps S101 - S103 further include:

[0088] After collecting and storing the business data and log data in the quantum real machine and the quantum simulator based on the first smart contract, a fusion calculation operation is performed on the business data and log data corresponding to the quantum real machine based on the seventh sub-smart contract, and a fusion calculation operation is performed on the business data and log data corresponding to the quantum simulator based on the eighth sub-smart contract.

[0089] In an embodiment of the present invention, considering that in a quantum computing environment, various log information will be generated to record the running state, operation steps, performance metrics, etc. of the quantum system. These logs play an important role in monitoring the quantum computing process, troubleshooting, and optimizing algorithms. Therefore, the above seventh sub-smart contract and eighth sub-smart contract can be designed to integrate the abnormal log data generated in the quantum real machine and the quantum simulator.

[0090] Here, the fusion calculation smart contract for the abnormal log data acquisition result further processes and integrates the above collected abnormal log data. Due to the complexity and particularity of the quantum system, the analysis and processing of abnormal data require professional knowledge and methods. This smart contract may define specific algorithms and logics, such as performing weighted processing, correlation analysis, or trend prediction on different types of abnormal data.

[0091] In an embodiment of the present invention, valuable information can be extracted from a large amount of abnormal data to help researchers better understand the behavior and performance of the quantum system, timely discover potential problems and take corresponding measures for repair or optimization. At the same time, it also provides guarantee for the reliability and stability of quantum computing, ensuring that quantum computing can operate normally within a reasonable error range.

[0092] Additionally, the present invention can also perform fusion calculation operations on the service data in the above-mentioned quantum real machine and quantum simulator. For example, the fusion calculation of service data can include the following processes: summarizing the data collected at different timestamps, comprehensively analyzing the data under different qubit states, and statistically analyzing the data collected from multiple experiments, etc. Through integrated calculation, valuable information can be extracted from a large amount of original quantum service data to provide support for quantum computing services.

[0093] In some alternative embodiments, the above-mentioned fusion calculation operation on the service data corresponding to the quantum simulator and the quantum real machine specifically includes the following process:

[0094] Obtain the service data stored in the service collection blockchain and determine the first data interface according to the service rules, where the first data interface is used for communication between the service collection blockchain and the monitoring software, and the first data interface includes at least one of the following: the task name, execution name, execution type, and execution service metric alarm of the quantum task.

[0095] In the embodiments of the present invention, the first data interface may include the service data monitoring and display interfaces corresponding to the quantum simulator and the quantum real machine.

[0096] Specifically, when determining the service data monitoring and display interface corresponding to the quantum simulator, the on-chain service data on the service collection blockchain can be obtained and analyzed, parsed, and assembled according to the service rules, and the uniformly output service data monitoring and display interface, where the service data monitoring and display interface may include the task name, execution name, execution type, execution service metric alarm, etc. of the quantum task.

[0097] In the embodiments of the present invention, when sending service data, the service data can be sent to the monitoring software based on the first data interface in the target communication interface, thereby providing a basis for the monitoring software to visually display the service data.

[0098] In some alternative embodiments, the above-mentioned fusion calculation operation on the service data corresponding to the quantum simulator and the quantum real machine specifically includes the following process:

[0099] Obtain the log data stored in the log collection blockchain and determine the second data interface corresponding to the log data, where the second data interface is used for communication between the log collection blockchain and the monitoring software, and the second data interface includes at least one of the following: the task name, execution name, execution type, and log exception alarm of the quantum task.

[0100] In the embodiments of the present invention, the second data interface may include the log data exception display interfaces corresponding to the quantum simulator and the quantum real machine.

[0101] Specifically, when determining the abnormal display interface of the log data corresponding to the quantum simulator, the on-chain log abnormal data on the log collection blockchain network can be obtained, and the log abnormal data can be analyzed and combined, and the monitoring interface of the log abnormal data can be uniformly output. The interface includes the task name, execution name, execution type, and log abnormal alarm.

[0102] In the embodiment of the present invention, when sending log data, the log data can be sent to the monitoring software based on the second interface in the target communication interface, thereby providing a basis for the monitoring software to visually display the log data.

[0103] In some optional implementation manners, the embodiments corresponding to the above steps S101-S103 further include:

[0104] Based on the collection service metrics corresponding to the execution process of the quantum task executed in the quantum computer, determine the metadata and collection implementation class for the service collector, where the metadata and collection implementation class are used to collect and upload the service data to the service collection blockchain network.

[0105] In the embodiment of the present invention, the collection implementation class is used to complete the collection of relevant service data and report it to the relevant blockchain network.

[0106] Specifically, the collection metadata and the corresponding collection implementation class can be defined according to the collection service metrics corresponding to each stage of the execution process of the quantum calculation, where the metadata of the service data is the data that describes the characteristics, attributes, sources, processing processes, and relevant context information of the data itself.

[0107] In the embodiment of the present invention, the service collector in the blockchain network can collect the service data corresponding to each node of the computer when executing the quantum task according to the collection object, thereby effectively completing the collection and reporting work of the service data related to the quantum task. At the same time, through monitoring and management, the stable operation of the service collector and the continuous improvement of the data collection quality can be ensured.

[0108] In some optional implementation manners, the embodiments corresponding to the above steps S101-S103 further include:

[0109] Based on the execution process of the quantum task executed in the quantum computer, determine a probe for the log collector, where the probe is used to analyze the logs generated in the execution process to obtain log data containing abnormal logs.

[0110] In the embodiments of the present invention, nodes corresponding to each execution stage of a quantum computer when performing a quantum task can be predefined, and abnormal log data corresponding to the execution stage can be collected by a log collector in the node. Specifically, the log collector in the log collection blockchain network can, according to the execution process of quantum computing, obtain key abnormal log data through probe analysis of a large number of logs generated in each stage.

[0111] In the embodiments of the present invention, based on the blockchain network, log data corresponding to nodes in each execution stage of a quantum computer when performing a quantum task can be collected, so as to effectively complete the collection and reporting of abnormal log data related to the quantum task. At the same time, through monitoring and management, the stable operation of the log collector and the continuous improvement of data collection quality can be ensured.

[0112] In some alternative embodiments, step S103 of visually displaying the execution process of the quantum task includes:

[0113] Based on the execution process of the quantum task, business data and log data are displayed on the display interface.

[0114] In the embodiments of the present invention, the execution process of the quantum task may include the qubit state of the quantum, and the execution result may be the algorithm output result represented by icons or the like. Specifically, when displaying the execution process of the quantum task, the states of the quantum bits at different time points can be displayed, and the superposition and entanglement of the quantum states can be represented by two-dimensional or three-dimensional graphs. For example, the state of a single qubit can be represented by drawing a Bloch sphere, or the joint state of multiple qubits can be displayed in the form of a density matrix. In addition, when displaying the execution result of the quantum task, the output result of the quantum algorithm is presented in the form of a chart, such as a histogram, a scatter plot, etc. For example, for the quantum search algorithm, the probability distribution of finding the target can be displayed by a histogram, and for another example, for the quantum optimization algorithm, the change of the objective function value during the iteration process can be displayed by a line chart.

[0115] In addition, when visualizing the log data, the change of indicators during the execution process of the quantum task can be intuitively represented in the form of a chart or the like. For example, when the data indicator includes time and the log data contains information related to time, such as the execution time of the quantum computing task, the quantum states at different moments, etc., the change trend of the data over time can be displayed through a time series chart. Specifically, time can be used as the x-axis, and the corresponding quantum state parameters or other relevant indicators can be used as the y-axis to draw a line chart or an area chart, etc., so as to observe the dynamic changes during the quantum computing process.

[0116] In an embodiment of the present invention, business data can be used to display the execution process and results of quantum tasks on the visualization interface of the monitoring software, and based on the log data, the index changes during the execution of quantum tasks can be displayed on the visualization interface of the monitoring software, so as to monitor each process of the execution of quantum computing tasks in real time through the display software, realize the display of business data alarms and the display of abnormal execution processes, and facilitate quickly locating problems in case of failures.

[0117] In this embodiment, another data processing method is provided, which can be used for the above-mentioned quantum computer. The process of the data processing method in the embodiment of the present invention includes the following steps:

[0118] Here, as Figure 4 shown is the schematic flowchart of collecting business data, which specifically includes the following steps:

[0119] Step S31, deploy a business data collector.

[0120] Step S32, construct a business collection blockchain network.

[0121] Step S33, collect the business data of the quantum software node based on the business collector 1 and publish it to the business collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of business data. Among them, the business collector 1 is a collector deployed in the quantum software node.

[0122] Step S34, collect the business data of the quantum measurement and control node based on the business collector 2 and publish it to the business collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of business data. Among them, the business collector 1 is a collector deployed in the quantum software node.

[0123] Step S35, collect the business data of the quantum real machine based on the business collector 3 and publish it to the business collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of business data, and generate a fusion computing interface. Among them, the business collector 1 is a collector deployed in the quantum real machine, and the fusion computing interface is the above-mentioned first communication interface.

[0124] Step S36, collect the business data of the quantum simulator based on the business collector 4 and publish it to the business collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of business data, and generate a fusion computing interface. Among them, the business collector 1 is a collector deployed in the quantum simulator, and the fusion computing interface is the above-mentioned first communication interface.

[0125] In addition, as Figure 5 shown is the schematic flowchart of collecting log data, which specifically includes the following steps:

[0126] Step S41, deploy an abnormal log data collector.

[0127] Step S42, construct a log collection blockchain network.

[0128] Step S43, based on the log collector 1, collect the abnormal log data of the quantum software node and publish it to the log collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of the abnormal log data. Among them, the log collector 1 is a collector deployed in the quantum software node.

[0129] Step S44, based on the log collector 2, collect the abnormal log data of the quantum measurement and control node and publish it to the log collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of the abnormal log data. Among them, the log collector 1 is a collector deployed in the quantum software node.

[0130] Step S45, based on the log collector 3, collect the abnormal log data of the quantum real machine and publish it to the log collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of the abnormal log data, and generate a fusion computing interface. Among them, the log collector 1 is a collector deployed in the quantum real machine, and the fusion computing interface is the above-mentioned second communication interface.

[0131] Step S46, based on the log collector 4, collect the abnormal log data of the quantum simulator and publish it to the log collection blockchain network, trigger the corresponding smart contract to complete the collection, storage and analysis of the abnormal log data, and generate a fusion computing interface. Among them, the log collector 1 is a collector deployed in the quantum simulator, and the fusion computing interface is the above-mentioned second communication interface.

[0132] For example, the service collector 1 and the log collector 1 collect the corresponding service data and log abnormal data, and publish them to the corresponding service collection blockchain network and log collection blockchain network. When the service collection blockchain network receives the quantum software service collection data, it triggers the quantum software service collection storage smart contract, executes the function operation of receiving and storing the quantum service collection data, and further executes the quantum software service collection data analysis and warning smart contract to perform the quantum software service collection data analysis and warning operation. When the log collection blockchain network receives the quantum software log collection data, it triggers the quantum log abnormal collection storage smart contract and executes the function operation of receiving and storing the log abnormal collection data.

[0133] The service collector 2 and the log collector 2 collect the corresponding measurement and control service data and measurement and control log exception data, and publish them to the corresponding service collection blockchain network and log collection blockchain network. When the service collection blockchain network receives the measurement and control service collection data, it triggers the quantum measurement and control service collection storage smart contract, performs the function operations of receiving and storing the quantum measurement and control service collection data, and further executes the quantum measurement and control service collection data analysis and alarm smart contract to perform the measurement and control service collection data analysis and alarm operations. When the log collection blockchain network receives the measurement and control log collection data, it triggers the quantum measurement and control log exception collection storage smart contract, and performs the function operations of receiving and storing the log exception collection data.

[0134] The service collector 3 and the log collector 3 collect the corresponding real machine service data and real machine log exception data, and publish them to the corresponding service collection blockchain network and log collection blockchain network. When the service collection blockchain network receives the real machine service collection data, it triggers the quantum real machine service collection storage smart contract, performs the function operations of receiving and storing the quantum real machine service collection data, and further executes the quantum real machine service collection data analysis and alarm smart contract to perform the real machine service collection data analysis and alarm operations. Furthermore, it triggers the quantum service data collection result fusion calculation smart contract, performs the integrated calculation of the quantum collection service data stored on this process chain, outputs the collection service data monitoring and display interface, and provides it to the display software for monitoring and display. When the log collection blockchain network receives the real machine log collection data, it triggers the quantum real machine log exception collection storage smart contract, performs the function operations of receiving and storing the log exception collection data, and further triggers the quantum log exception data collection result fusion calculation smart contract, and outputs the collection log data exception display interface, which is provided to the monitoring software for centralized display.

[0135] The service collector 4 and the log collector 4 collect the corresponding simulator service data and simulator log exception data, and publish them to the corresponding simulator service collection blockchain network and simulator log collection blockchain network. When the service collection blockchain network receives the simulator service collection data, it triggers the quantum simulator service collection storage smart contract, performs the function operations of receiving and storing the quantum simulator service collection data, and further executes the quantum simulator service collection data analysis and alarm smart contract to perform the simulator service collection data analysis and alarm operations; furthermore, it triggers the quantum service data collection result fusion calculation smart contract, performs the integrated calculation of the quantum collection service data stored on this process chain, outputs the collection service data monitoring and display interface, and provides it to the display software for monitoring and display. When the log collection blockchain network receives the simulator log collection data, it triggers the quantum simulator log exception collection storage smart contract, performs the function operations of receiving and storing the log exception collection data, and further triggers the quantum log exception data collection result fusion calculation smart contract, and outputs the collection log data exception display interface, which is provided to the monitoring software for centralized display.

[0136] In summary, in the embodiments of the present invention, a business collection blockchain network and a log collection blockchain network can be constructed based on a quantum computer. Among them, the business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer. Then, based on the first smart contract deployed in the business collector, the business data in the corresponding node can be collected and stored, and based on the second smart contract deployed in the log collector, the log data in the corresponding node can be collected and stored. Next, the business data and the log data can be sent to the monitoring software to visually display the execution process of the quantum task. Thus, the collection and processing of the business data and the log data of the quantum task are realized through blockchain technology, and the processed data is visualized through the monitoring software, which helps to quickly locate problems in the task execution process and improves the maintenance efficiency and stability of the system.

[0137] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases, the former is a better implementation method.

[0138] The embodiments of the present application also provide a data processing device, which is used to implement the above embodiments and preferred implementation manners, and those that have been described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that can implement a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0139] This embodiment provides a data processing device, as Figure 6 shown, including:

[0140] A construction module 601, configured to construct a business collection blockchain network and a log collection blockchain network based on a quantum computer, where the business collection blockchain network includes business collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer;

[0141] A collection module 602, configured to collect and store business data in the corresponding node based on the first smart contract deployed in the business collector, and collect and store log data in the corresponding node based on the second smart contract deployed in the log collector;

[0142] A display module 603, configured to send the business data and the log data to the monitoring software to visually display the execution process of the quantum task.

[0143] In some alternative embodiments, the building module 601 is further configured to:

[0144] Deploy service collectors for each node of the quantum computer when executing quantum tasks, and deploy a first smart contract for each node to obtain a service collection blockchain network;

[0145] Deploy log collectors for each node, and deploy a second smart contract for each node to obtain a log collection blockchain network.

[0146] In some alternative embodiments, the nodes in the quantum computer include: quantum software nodes, quantum measurement and control nodes, quantum real machines, and quantum simulators. Among them, the quantum simulator is used to optimize the quantum algorithm for executing quantum tasks, the quantum software node is used to publish and edit quantum instructions for quantum tasks, the quantum measurement and control node is used to generate control signals based on quantum instructions, and the quantum real machine is used to execute quantum tasks based on control signals;

[0147] In some alternative embodiments, the acquisition module 602 is further configured to:

[0148] Collect and store service data corresponding to quantum software service metrics based on the service collectors deployed in the quantum software nodes; and collect and store service data corresponding to quantum measurement and control service metrics based on the service collectors deployed in the quantum measurement and control nodes; and collect and store service data corresponding to quantum real machine service metrics based on the service collectors deployed in the quantum real machines; and collect and store service data corresponding to quantum simulator service metrics based on the service collectors deployed in the quantum simulators.

[0149] In some alternative embodiments, the acquisition module 602 is further configured to:

[0150] Collect and store quantum software exception logs based on the log collectors deployed in the quantum software nodes; and collect and store quantum measurement and control exception logs based on the log collectors deployed in the quantum measurement and control nodes; and collect and store quantum real machine exception logs based on the log collectors deployed in the quantum real machines; and collect and store quantum simulator exception logs based on the log collectors deployed in the quantum simulators.

[0151] In some alternative embodiments, the building module 601 is further configured to:

[0152] Deploy a service collector for the quantum software node and deploy a first sub-smart contract for the quantum software node, where the first sub-smart contract is used to collect and store the service data of the quantum software node, and analyze and alarm the service data according to the quantum software service metrics; and deploy a service collector for the quantum measurement and control node and deploy a second sub-smart contract for the quantum measurement and control node, where the second sub-smart contract is used to collect and store the service data of the quantum measurement and control node, and analyze and alarm the service data according to the quantum measurement and control service metrics; and deploy a service collector for the quantum real machine and deploy a third sub-smart contract for the quantum real machine, where the third sub-smart contract is used to collect and store the service data of the quantum real machine, and analyze and alarm the service data according to the quantum real machine service metrics; and deploy a service collector for the quantum simulator and deploy a fourth sub-smart contract for the quantum simulator, where the fourth sub-smart contract is used to collect and store the service data of the quantum simulator, and analyze and alarm the service data according to the quantum simulator service metrics. The first smart contract includes: the first sub-smart contract, the second sub-smart contract, the third sub-smart contract, and the fourth sub-smart contract.

[0153] In some optional embodiments, the building module 601 is further configured to:

[0154] Deploy a log collector for the quantum software node and deploy a fifth sub-smart contract for the quantum software node, where the fifth sub-smart contract is used to collect and store the quantum software exception logs; and deploy a log collector for the quantum measurement and control node and deploy a sixth sub-smart contract for the quantum measurement and control node, where the sixth sub-smart contract is used to collect and store the quantum measurement and control exception logs; and deploy a log collector for the quantum real machine and deploy a seventh sub-smart contract for the quantum real machine, where the seventh sub-smart contract is used to collect and store the quantum real machine exception logs and perform fusion calculation on the quantum real machine exception logs; and deploy a log collector for the quantum simulator and deploy an eighth sub-smart contract for the quantum simulator, where the eighth sub-smart contract is used to collect and store the quantum simulator exception logs and perform fusion calculation on the quantum simulator exception logs. The second smart contract includes: the fifth sub-smart contract, the sixth sub-smart contract, the seventh sub-smart contract, and the eighth sub-smart contract.

[0155] In some optional embodiments, the nodes in the quantum computer include: quantum software nodes, and the first smart contract includes: the first sub-smart contract; the apparatus is further configured to:

[0156] After collecting and storing the service data in the quantum software node based on the service collector, execute the first sub-smart contract based on the service collection blockchain network to perform an analysis and alarm operation on the service data.

[0157] In some alternative embodiments, the nodes in the quantum computer include: quantum measurement and control nodes, and the first smart contract includes: a second sub-smart contract; the apparatus is further configured to:

[0158] After collecting and storing the service data in the quantum measurement and control nodes based on the service collector, execute the second sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0159] In some alternative embodiments, the nodes in the quantum computer include: quantum real machines, and the first smart contract includes: a third sub-smart contract; the apparatus is further configured to:

[0160] After collecting and storing the service data in the quantum real machines based on the service collector, execute the third sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0161] In some alternative embodiments, the nodes in the quantum computer include: quantum simulators, and the first smart contract includes: a fourth sub-smart contract; the apparatus is further configured to:

[0162] After collecting and storing the service data in the quantum simulators based on the service collector, execute the fourth sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

[0163] In some alternative embodiments, the nodes in the quantum computer include: quantum real machines and quantum simulators, and the second smart contract includes: a seventh sub-smart contract deployed in the quantum real machines and an eighth sub-smart contract deployed in the quantum simulators; the apparatus is further configured to:

[0164] After collecting and storing the service data and the log data in the quantum real machines and the quantum simulators based on the first smart contract, perform a fusion calculation operation on the service data and the log data corresponding to the quantum real machines based on the seventh sub-smart contract, and perform a fusion calculation operation on the service data and the log data corresponding to the quantum simulators based on the eighth sub-smart contract.

[0165] In some alternative embodiments, when performing a fusion calculation operation on the service data corresponding to the quantum simulators and the quantum real machines, the apparatus is further configured to:

[0166] Obtain the service data stored in the service collection blockchain, and determine a first data interface according to service rules, where the first data interface is used for communication between the service collection blockchain and the monitoring software, and the first data interface includes at least one of the following: the task name, execution name, execution type, and execution service metric alarm of the quantum task.

[0167] In some alternative embodiments, a fusion calculation operation is performed on the log data corresponding to the quantum simulator and the quantum physical machine, and the apparatus is further configured to:

[0168] Obtain the log data stored in the log collection blockchain and determine the second data interface corresponding to the log data, where the second data interface is used for communication between the log collection blockchain and the monitoring software, and the second data interface includes at least one of the following: the task name, execution name, execution type, and log exception warning of the quantum task.

[0169] In some alternative embodiments, the apparatus is further configured to:

[0170] Based on the collection service metrics corresponding to the execution process of the quantum task executed in the quantum computer, determine the metadata and collection implementation class for the service collector, where the metadata and collection implementation class are used to collect and upload the service data to the service collection blockchain network.

[0171] In some alternative embodiments, the apparatus is further configured to:

[0172] Based on the execution process of the quantum task executed in the quantum computer, determine a probe for the log collector, where the probe is used to analyze the logs generated in the execution process to obtain log data including exception logs.

[0173] In some alternative embodiments, the display module 603 is further configured to:

[0174] Based on the execution process of the quantum task, display the service data and the log data on the display interface.

[0175] For the description of the features in the corresponding embodiments of the data processing apparatus, reference may be made to the relevant description in the corresponding embodiments of the data processing method, which will not be elaborated here one by one.

[0176] An embodiment of the present application further provides an electronic device, as Figure 7 shown, the electronic device includes a memory and a processor, a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above data processing method embodiments.

[0177] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, where the computer program is configured to execute the steps in any one of the above data processing method embodiments when running.

[0178] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs such as USB flash drives, read-only memory (ROM for short), random access memory (RAM for short), mobile hard disks, magnetic disks, or optical discs.

[0179] The embodiments of the present application also provide a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described embodiments of the data processing method.

[0180] The embodiments of the present application also provide another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described embodiments of the data processing method.

[0181] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0182] The above has provided a detailed introduction to a data processing method, device, computer device, storage medium, and program product provided by the present application. Specific examples are used herein to elaborate on the principles and implementation manners of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art in the technical field, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. A data processing method, characterized in that, The method includes: Based on a quantum computer, constructing a service collection blockchain network and a log collection blockchain network, wherein the service collection blockchain network includes service collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer; Based on the first smart contract deployed in the service collector, collecting and storing service data in the corresponding node, and based on the second smart contract deployed in the log collector, collecting and storing log data in the corresponding node; Sending the service data and the log data to monitoring software to visually display the execution process of the quantum task; Wherein, the nodes in the quantum computer include: quantum software nodes, quantum measurement and control nodes, quantum real machines, and quantum simulators. Among them, the quantum simulator is used to optimize the quantum algorithm for executing the quantum task, the quantum software node is used to publish and edit the quantum instructions of the quantum task, the quantum measurement and control node is used to generate control signals based on the quantum instructions, and the quantum real machine is used to execute the quantum task based on the control signals; The collecting and storing service data in the corresponding node based on the first smart contract deployed in the service collector includes: Based on the service collector deployed in the quantum software node, collecting and storing service data corresponding to quantum software service metrics; and Based on the service collector deployed in the quantum measurement and control node, collecting and storing service data corresponding to quantum measurement and control service metrics; and Based on the service collector deployed in the quantum real machine, collecting and storing service data corresponding to quantum real machine service metrics; and Based on the service collector deployed in the quantum simulator, collecting and storing service data corresponding to quantum simulator service metrics.

2. The method according to claim 1, characterized in that, The constructing the service collection blockchain network and the log collection blockchain network based on the quantum computer includes: Deploying service collectors for each node when the quantum computer executes a quantum task, and deploying a first smart contract for each node to obtain the service collection blockchain network; Deploying log collectors for each node, and deploying a second smart contract for each node to obtain the log collection blockchain network.

3. The method according to claim 2, wherein The deploying service collectors for each node when the quantum computer executes a quantum task, and deploying a first smart contract for each node to obtain the service collection blockchain network includes: Deploying a service collector for the quantum software node, and deploying a first sub-smart contract for the quantum software node, wherein the first sub-smart contract is used to collect and store the service data of the quantum software node, and analyze and alarm the service data according to the quantum software service metrics; and Deploying a service collector for the quantum measurement and control node, and deploying a second sub-smart contract for the quantum measurement and control node, wherein the second sub-smart contract is used to collect and store the service data of the quantum measurement and control node, and analyze and alarm the service data according to the quantum measurement and control service metrics; and Deploy a service collector for the quantum real machine and deploy a third sub-smart contract for the quantum real machine, where the third sub-smart contract is used to collect and store the service data of the quantum real machine, and analyze and alarm the service data according to the quantum real machine service metrics; and Deploy a service collector for the quantum simulator and deploy a fourth sub-smart contract for the quantum simulator, where the fourth sub-smart contract is used to collect and store the service data of the quantum simulator, and analyze and alarm the service data according to the quantum simulator service metrics. The first smart contract includes: the first sub-smart contract, the second sub-smart contract, the third sub-smart contract, and the fourth sub-smart contract.

4. The method according to claim 2, wherein Deploy a log collector for each node and deploy a second smart contract for each node to obtain the log collection blockchain network, including: Deploy a log collector for the quantum software node and deploy a fifth sub-smart contract for the quantum software node, where the fifth sub-smart contract is used to collect and store quantum software exception logs; and Deploy a log collector for the quantum measurement and control node and deploy a sixth sub-smart contract for the quantum measurement and control node, where the sixth sub-smart contract is used to collect and store quantum measurement and control exception logs; and Deploy a log collector for the quantum real machine and deploy a seventh sub-smart contract for the quantum real machine, where the seventh sub-smart contract is used to collect and store quantum real machine exception logs and perform fusion calculation on the quantum real machine exception logs; and Deploy a log collector for the quantum simulator and deploy an eighth sub-smart contract for the quantum simulator, where the eighth sub-smart contract is used to collect and store quantum simulator exception logs and perform fusion calculation on the quantum simulator exception logs. The second smart contract includes: the fifth sub-smart contract, the sixth sub-smart contract, the seventh sub-smart contract, and the eighth sub-smart contract.

5. The method according to claim 1, characterized in that Collect and store the log data in the corresponding node based on the second smart contract deployed in the log collector, including: Collect and store quantum software exception logs based on the log collector deployed in the quantum software node; and Collect and store quantum measurement and control exception logs based on the log collector deployed in the quantum measurement and control node; and Collect and store quantum real machine exception logs based on the log collector deployed in the quantum real machine; and Collect and store quantum simulator exception logs based on the log collector deployed in the quantum simulator.

6. The method according to claim 1, characterized in that, The nodes in the quantum computer include: quantum software nodes, and the first smart contract includes: the first sub-smart contract; The method further includes: After collecting and storing the service data in the quantum software node based on the service collector, execute the first sub-smart contract based on the service collection blockchain network to perform an analysis and alarm operation on the service data.

7. The method according to claim 1, characterized in that The nodes in the quantum computer include: quantum measurement and control nodes, and the first smart contract includes: the second sub-smart contract; The method further includes: After collecting and storing the service data in the quantum measurement and control node based on the service collector, execute the second sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

8. The method according to claim 1, wherein The nodes in the quantum computer include: quantum real machines, and the first smart contract includes: a third sub-smart contract; The method further includes: After collecting and storing the service data in the quantum real machine based on the service collector, execute the third sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

9. The method according to claim 1, characterized in that, The nodes in the quantum computer include: quantum simulators, and the first smart contract includes: a fourth sub-smart contract; The method further includes: After collecting and storing the service data in the quantum simulator based on the service collector, execute the fourth sub-smart contract based on the service collection blockchain network to perform analysis and alarm operations on the service data.

10. The method according to claim 1, characterized in that The nodes in the quantum computer include: quantum real machines and quantum simulators, and the second smart contract includes: a seventh sub-smart contract deployed in the quantum real machine and an eighth sub-smart contract deployed in the quantum simulator; The method further includes: After collecting and storing the service data and the log data in the quantum real machine and the quantum simulator based on the first smart contract, perform a fusion calculation operation on the service data and the log data corresponding to the quantum real machine based on the seventh sub-smart contract, and perform a fusion calculation operation on the service data and the log data corresponding to the quantum simulator based on the eighth sub-smart contract.

11. The method according to claim 10, wherein Performing a fusion calculation operation on the service data corresponding to the quantum simulator and the quantum real machine includes: Obtain the service data stored in the service collection blockchain, and determine a first data interface according to service rules, where the first data interface is used for communication between the service collection blockchain and the monitoring software, and the first data interface includes at least one of the following: the task name, execution name, execution type, and execution service metric alarm of the quantum task.

12. The method according to claim 10, wherein Performing a fusion calculation operation on the log data corresponding to the quantum simulator and the quantum real machine includes: Obtain the log data stored in the log collection blockchain, and determine a second data interface corresponding to the log data, where the second data interface is used for communication between the log collection blockchain and the monitoring software, and the second data interface includes at least one of the following: the task name, execution name, execution type, and log exception alarm of the quantum task.

13. The method according to claim 1, wherein The method further includes: Based on the collection service metrics corresponding to the execution process of the quantum task executed in the quantum computer, determine metadata and a collection implementation class for the service collector, where the metadata and the collection implementation class are used to collect and upload service data to the service collection blockchain network.

14. The method according to claim 1, characterized in that, The method further includes: Determine a probe for the log collector based on the execution process of the quantum tasks executed in the quantum computer, where the probe is used to analyze the logs generated in the execution process to obtain log data containing abnormal logs.

15. The method according to claim 1, characterized in that The visual display of the execution process of the quantum task includes: Based on the execution process of the quantum task, display the service data and log data on a display interface.

16. A data processing device, characterized in that, The device includes: A construction module, configured to construct a service collection blockchain network and a log collection blockchain network based on a quantum computer, where the service collection blockchain network includes service collectors deployed in each node of the quantum computer, and the log collection blockchain network includes log collectors deployed in each node of the quantum computer; A collection module, configured to collect and store service data in the corresponding node based on the first smart contract deployed in the service collector, and collect and store log data in the corresponding node based on the second smart contract deployed in the log collector, where the nodes in the quantum computer include: quantum software nodes, quantum measurement and control nodes, quantum real machines, and quantum simulators, where the quantum simulator is used to optimize the quantum algorithm for executing quantum tasks, the quantum software node is used to publish and edit quantum instructions for the quantum task, the quantum measurement and control node is used to generate control signals based on the quantum instructions, and the quantum real machine is used to execute the quantum task based on the control signals; when collecting and storing service data in the corresponding node based on the first smart contract deployed in the service collector, collect and store service data corresponding to quantum software service metrics based on the service collector deployed in the quantum software node; and collect and store service data corresponding to quantum measurement and control service metrics based on the service collector deployed in the quantum measurement and control node; and collect and store service data corresponding to quantum real machine service metrics based on the service collector deployed in the quantum real machine; and collect and store service data corresponding to quantum simulator service metrics based on the service collector deployed in the quantum simulator; A display module, configured to send the service data and the log data to monitoring software for visual display of the execution process of the quantum task.

17. A computer device, characterized in that, Includes: A memory and a processor, which are communicatively connected to each other, where the memory stores computer instructions, and the processor executes the computer instructions to execute the data processing method according to any one of claims 1 to 15.

18. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the data processing method according to any one of claims 1 to 15.

19. A computer program product, characterized in that, Includes computer instructions, and the computer instructions are used to cause a computer to execute the data processing method according to any one of claims 1 to 15.

Citation Information

Patent Citations

  • Log data management method and device

    CN116975117A

  • Calculation result determination system, method and device and block chain network

    CN118195017A