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

By building a blockchain network in a quantum computer and using smart contracts to collect data, the problem of insufficient means of monitoring and analysis of quantum task data is solved, real-time monitoring and analysis of the quantum task execution process is realized, and the system maintenance efficiency and stability are improved.

CN119917385AActive Publication Date: 2025-05-02SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The lack of means of monitoring and analyzing the task data of quantum tasks in the prior art makes it difficult for users to understand and manage the execution process of quantum computing tasks in real time.

Method used

By building a business acquisition blockchain network and a log acquisition blockchain network in a quantum computer, smart contracts collect and store business data and log data, and sending these data to the monitoring software for visual display.

Benefits of technology

Real-time monitoring and analysis of the quantum task execution process is realized, helping to quickly locate problems in the task execution process and improving the system maintenance efficiency and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119917385A_ABST
    Figure CN119917385A_ABST
Patent Text Reader

Abstract

The invention discloses a data processing method and device, computer equipment, a storage medium and a program product, and relates to the technical field of computers, and the method comprises the steps: constructing a business collection block chain network and a log collection block chain network based on a quantum computer, the log collection block chain network comprises log collectors deployed in each node of the quantum computer; based on a first intelligent contract deployed in the service collector, collecting and storing service data in the corresponding node, and based on a second intelligent contract deployed in the log collector, collecting and storing log data in the corresponding node; and sending the business data and the log data to monitoring software to visually display the execution process of the quantum task, thereby realizing collection processing of the business data and the log data of the quantum task through a block chain technology, and visualizing the processed data through the monitoring software. The problem in the task execution process can be quickly positioned, and the maintenance efficiency and stability of the system are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data processing method, apparatus, computer equipment, storage medium and program product. Background Art

[0002] With the development of science and technology, quantum computers are becoming a reality. Quantum computers are completely different from ordinary computers, which leads to certain difficulties in monitoring and analyzing task data when quantum computers perform quantum computing tasks.

[0003] However, since quantum computing uses unique quantum algorithms, it is 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, not to mention the design and development of data collection and analysis systems based on them. Generally speaking, users can only check whether quantum tasks have been completed through page displays, and lack the means to monitor and analyze the task data of quantum tasks. Summary of the invention

[0004] The present application provides a data processing method, apparatus, computer device, storage medium and program product to at least solve the problem in the related art that there is a lack of means for monitoring and analyzing task data of quantum tasks.

[0005] The present application provides a data processing method, the method comprising: Based on quantum computers, a business collection blockchain network and a log collection blockchain network are constructed, wherein 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; Based on the first smart contract deployed in the business collector, the business data in the corresponding node is collected and stored, and based on the second smart contract deployed in the log collector, the log data in the corresponding node is collected and stored; Send business data and log data to the monitoring software to visualize the execution process of the quantum task.

[0006] The present application also provides a data processing device, the device comprising: A construction module is used to construct a business collection blockchain network and a log collection blockchain network based on a quantum computer, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector deployed in each node of the quantum computer; A collection module, used to collect and store business data in the corresponding node based on the first smart contract deployed in the business collector, and to collect and store log data in the corresponding node based on the second smart contract deployed in the log collector; The display module is used to send business data and log data to the monitoring software to visualize the execution process of the quantum task.

[0007] The present application also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any of the above-mentioned data processing methods when executing the computer program.

[0008] The present application also provides a computer-readable storage medium, in which a computer program is stored, wherein when the computer program is executed by a processor, the steps of any of the above-mentioned data processing methods are implemented.

[0009] The present application also provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned data processing methods when executed by a processor.

[0010] Through this application, since the data processing method can be based on a quantum computer, a business collection blockchain network and a log collection blockchain network can be constructed, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector 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 visualize the execution process of the quantum task, thereby realizing the collection and processing of the business data and 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 improve the maintenance efficiency and stability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 is a flow chart of a data processing method according to an embodiment of the present invention; Figure 2is a flow chart of another data processing method according to an embodiment of the present invention; Figure 3 is a schematic diagram of a blockchain network structure according to an embodiment of the present invention; Figure 4 is a schematic diagram of a process for collecting obligation data according to an embodiment of the present invention; Figure 5 is a schematic diagram of a process for collecting log data according to an embodiment of the present invention; Figure 6 is a structural block diagram of a data processing device according to an embodiment of the present invention; Figure 7 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0013] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0014] It should be noted that, in the description of this 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 includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in this application are used to distinguish similar objects, and are not used to describe a specific order or sequence.

[0015] In order to enable those skilled in the art to better understand the present application, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

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

[0017] With the development of science and technology, quantum computers are becoming a reality. Quantum computers are completely different from ordinary computers, which leads to certain difficulties in monitoring and analyzing task data when quantum computers perform quantum computing tasks.

[0018] However, since quantum computing uses unique quantum algorithms, it is 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, not to mention the design and development of data collection and analysis systems based on them. Generally speaking, users can only check whether quantum tasks have been completed through page displays, and lack the means to monitor and analyze the task data of quantum tasks.

[0019] The embodiment of the present application provides a data processing method. First, a business collection blockchain network and a log collection blockchain network can be constructed based on a quantum computer, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector 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 visualize the execution process of the quantum task, thereby realizing the collection and processing of the business data and 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 improve the maintenance efficiency and stability of the system.

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

[0021] In this embodiment, a data processing method is provided, which can be used in the above-mentioned quantum computer. Figure 1 is a flow chart of a data processing method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps: Step S101, based on the quantum computer, construct a business collection blockchain network and a log collection blockchain network, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector deployed in each node of the quantum computer.

[0022] In the embodiment of the present invention, blockchain technology is a technical solution for decentralized and collectively maintaining distributed ledgers, and its essence is a distributed database system in which multiple nodes collectively participate. Here, since the components of quantum computers are all distributed and deployed, when setting up a blockchain network, a corresponding collector (collector is the basic component unit of blockchain) can be set in advance for each node of the quantum computer to collect business data and log data through the node.

[0023] Specifically, a business collection blockchain network for collecting business data during the execution of quantum tasks can be set up, and a log 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 based on the principle of quantum mechanics and performed using the superposition state and entanglement characteristics of quantum bits. Task data is data directly related to the execution of the task generated during the operation of the quantum computing task. These data are usually generated by quantum algorithms to describe the state, evolution process and final calculation results of the quantum system. Log data can be log exception data, which refers to data recorded by the system that is inconsistent with the normal operating state during the execution of the quantum computing task. These data may reflect problems such as system failures, performance degradation, and resource conflicts.

[0024] Step S102, 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.

[0025] In an embodiment of the present invention, a corresponding smart contract can be set in advance for each node in the quantum computer, 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, 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.

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

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

[0028] In an embodiment of the present invention, the blockchain network can communicate with the monitoring software through a communication interface, wherein the monitoring software is used to monitor the execution status of quantum tasks and visualize business data and log data to help researchers and engineers better understand the quantum computing process, analyze results, and troubleshoot problems.

[0029] For example, when visualizing business data, you can visualize the quantum state and quantum entanglement during task execution, and visualize the results of quantum algorithm execution. When visualizing log data, you can analyze the indicators that change over time during the execution of quantum tasks and the call relationships between modules according to time series.

[0030] It can be seen from the above description 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 a quantum computer, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector 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 visualize the execution process of the quantum task, thereby realizing the collection and processing of the business data and 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 improve the maintenance efficiency and stability of the system.

[0031] In this embodiment, another data processing method is provided, which can be used in the above-mentioned quantum computer. Figure 2 is a flow chart of a data processing method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps: Step S201, based on the preset blockchain network, collect the business data and log data corresponding to each node when the quantum computer performs a quantum task.

[0032] Step S2011, deploy a business collector for each node of the quantum computer when executing a quantum task, and deploy a first smart contract for each node to obtain a business collection blockchain network.

[0033] Step S2012, deploy a log collector for each node, and deploy a second smart contract for each node to obtain a log collection blockchain network.

[0034] In the embodiment of the present invention, Figure 3The diagram shows a schematic diagram of the blockchain network structure, where the business collection blockchain network is composed of nodes where the business collector is located, each node deploys the relevant first smart contract, and automatically executes the smart contract to complete the business indicator collection, chain storage, and business data integration of the relevant nodes. Similarly, the log collection blockchain network is composed of nodes where the log collector is located, each node deploys the relevant second smart contract, and automatically executes the smart contract to complete the log collection, chain storage, and log data integration of the relevant nodes.

[0035] Specifically, when deploying a blockchain network, corresponding collectors can be deployed in each node of a quantum computer. Here, the nodes that perform quantum tasks in a quantum computer may include: quantum simulators, quantum software nodes, quantum measurement and control nodes, and quantum real machines, where the quantum simulator is used to optimize the quantum algorithm for performing 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 perform quantum tasks based on control signals.

[0036] Here, after deploying a business collector for each node of the quantum computer when executing a quantum task and deploying a first smart contract for each node, the above step S102 can be performed to collect and store business data in the corresponding node based on the first smart contract deployed in the business collector, specifically including: Based on the business collector deployed in the quantum software node, the business data corresponding to the quantum software business indicators are collected and stored; and based on the business collector deployed in the quantum measurement and control node, the business data corresponding to the quantum measurement and control business indicators are collected and stored; and based on the business collector deployed in the quantum real machine, the business data corresponding to the quantum real machine business indicators are collected and stored; and based on the business collector deployed in the quantum simulator, the business data corresponding to the quantum simulator business indicators are collected and stored.

[0037] In the embodiment of the present invention, Figure 3 It can be seen that the business collection blockchain network can include business collector 1, business collector 2, business collector 3 and business collector 4, among which business collector 1 can be deployed in a quantum software node, business collector 2 can be deployed in a quantum measurement and control node, business collector 3 can be deployed in a quantum real machine, and business collector 4 can be deployed in a quantum simulator.

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

[0039] After the business collector is deployed, the above step S2011 can be executed to deploy the first smart contract for each node in the quantum computer node to obtain a business collection blockchain network, which specifically includes the following process: A business collector is deployed for a quantum software node, and a first sub-smart contract is deployed for the quantum software node, wherein the first sub-smart contract is used to collect and store business data of the quantum software node, and analyze and alarm the business data according to the business indicators of the quantum software; and a business collector is deployed for a quantum measurement and control node, and a second sub-smart contract is deployed for the quantum measurement and control node, wherein the second sub-smart contract is used to collect and store business data of the quantum measurement and control node, and analyze and alarm the business data according to the business indicators of the quantum measurement and control; and a business collector is deployed for a quantum real machine, and a third sub-smart contract is deployed for the quantum real machine, wherein the third sub-smart contract is used to collect and store business data of the quantum real machine, and analyze and alarm the business data according to the business indicators of the quantum real machine; and a business collector is deployed for a quantum simulator, and a fourth sub-smart contract is deployed for the quantum simulator, wherein the fourth sub-smart contract is used to collect and store business data of the quantum simulator, and analyze and alarm the business data according to the business indicators of the quantum simulator, and the first smart contract includes: a first sub-smart contract, a second sub-smart contract, a third sub-smart contract and a fourth sub-smart contract.

[0040] When designing the corresponding first smart contract for each node in the above quantum computer, the data structure of the business data in each node can be defined, and the data collection method can be designed to design the corresponding smart contract interface for data on-chain. 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 business collector 1, the second sub-smart contract corresponding to the above business collector 2, the third sub-smart contract corresponding to the above business collector 3, and the fourth sub-smart contract corresponding to the above business collector 4.

[0041] Specifically, after triggering the second smart contract, the business collection blockchain network can perform business data collection and storage functions. After obtaining and storing the business data, it can further execute the smart contract in the second smart contract that analyzes and alarms the business data to perform business data integration and alarm operations.

[0042] Here, the following process may be included when executing the alarm operation: Step a1: After the business data analysis and alarm smart contract is executed based on the blockchain network to integrate the business data, the quantum task is analyzed based on the business data to obtain the execution status.

[0043] Step a2: When the execution status does not meet the preset business data indicators, business alarm information is generated for the quantum task.

[0044] In an embodiment of the present invention, a business data analysis and alarm smart contract can be written for a quantum computer node based on the business data indicators corresponding to the node. Specifically, a business data analysis and alarm smart contract can be written based on the business objectives, business indicators and alarm mechanisms of the quantum task. When executing the business data analysis and alarm smart contract, business alarm information can be generated in time to remind when abnormal business data occurs.

[0045] For example, when writing a business data analysis and alarm smart contract, the business goal can be the business goal of the quantum task, such as improving calculation accuracy, shortening calculation time, reducing error rate, etc. Business indicators can include performance indicators corresponding to quantum software nodes (such as execution time of quantum algorithms, memory usage, algorithm complexity, etc.), reliability indicators (such as algorithm stability, reproducibility, exception handling capabilities, etc.), performance indicators corresponding to quantum measurement and control nodes (such as preparation accuracy of quantum states, measurement accuracy, control accuracy, etc.), stability indicators (such as stability of quantum devices, anti-interference capabilities, etc.), and hardware performance indicators corresponding to quantum real machines and quantum simulators (such as the number, quality, connectivity of quantum bits, etc.), operating environment indicators (such as the impact of temperature, humidity, electromagnetic environment, etc. on the operation of quantum devices), etc.

[0046] In addition, the alarm mechanism can include alarm threshold settings, alarm method settings, alarm level classification, etc. When setting the alarm threshold, you can set a reasonable alarm threshold for each business indicator. When the indicator exceeds or falls below the threshold, the alarm is triggered. When setting the alarm method, you can choose email notification, SMS reminder, instant messaging tool message, etc. When setting the alarm level, you can classify the alarm into different levels according to the severity and impact range of the business. For example, high-level alarms should be handled immediately, while low-level alarms can be used as a reference or basis for subsequent optimization.

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

[0048] Similarly, after a log collector is deployed for each node of the quantum computer when executing a quantum task, and a second smart contract is deployed for each node, the above step S102 can be performed to collect and store log data in the corresponding node based on the second smart contract deployed in the log collector, specifically including: 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.

[0049] 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, wherein log collector 1 can be deployed in a quantum software node, log collector 2 can be deployed in a quantum measurement and control node, log collector 3 can be deployed in a quantum real machine, and log collector 4 can be deployed in a quantum simulator.

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

[0051] After the log collector is deployed on each node of the quantum computer, the above step S2011 can be executed to deploy the log collector for each node and deploy the second smart contract for each node to obtain a log collection blockchain network, which specifically includes the following process: A log collector is deployed for the quantum software node, and a fifth sub-smart contract is deployed for the quantum software node, wherein the fifth sub-smart contract is used to collect and store quantum software exception logs; and a log collector is deployed for the quantum measurement and control node, and a sixth sub-smart contract is deployed for the quantum measurement and control node, wherein the sixth sub-smart contract is used to collect and store quantum measurement and control exception logs; and a log collector is deployed for the quantum real machine, and a seventh sub-smart contract is deployed for the quantum real machine, wherein the seventh sub-smart contract is used to collect and store quantum real machine exception logs, and perform fusion calculations on quantum real machine exception logs; and a log collector is deployed for the quantum simulator, and an eighth sub-smart contract is deployed for the quantum simulator, wherein the eighth sub-smart contract is used to collect and store quantum simulator exception logs, and perform fusion calculations on quantum simulator exception logs, wherein the second smart contract includes: a fifth sub-smart contract, a sixth sub-smart contract, a seventh sub-smart contract, and an eighth sub-smart contract.

[0052] When designing the corresponding second smart contract for each node in the above-mentioned 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 the quantum task, and store the log data on the chain, wherein the log data includes abnormal log data during the execution of the quantum task. Specifically, 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.

[0053] Next, the third smart contract can be executed based on the log collection blockchain network to collect and store the abnormal log data corresponding to each node. Specifically, when designing the corresponding second smart contract for each node in the above-mentioned 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 on-chain. Then, the data structure, data collection method and smart contract interface can be designed to design the corresponding data collection and storage smart contract.

[0054] In an embodiment of the present invention, a second smart contract can be deployed to automatically execute the second smart contract, thereby automating the log data collection, chain storage and data integration of each node in the quantum computer, improving the efficiency and accuracy of data collection, reducing manual intervention, reducing the error rate, and enhancing the reliability of the system.

[0055] In some optional implementations, the node in the quantum computer includes: a quantum software node, the first smart contract includes: a first sub-smart contract, and the implementations corresponding to the above steps S101-S103 also include: After the business data in the quantum software node is collected and stored based on the business collector, the first sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0056] In an embodiment of the present invention, the implementation method of analyzing and warning based on the first sub-smart contract and business data is as described in the above step S2011 and will not be repeated here.

[0057] In addition, the nodes in the quantum computer include: quantum measurement and control nodes, the first smart contract includes: a second sub-smart contract, and the implementation methods corresponding to the above steps S101-S103 also include: After the business data in the quantum measurement and control node is collected and stored based on the business collector, the second sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0058] In the example of the present invention, the implementation method of analyzing and warning based on the second sub-smart contract and business data is as described in the above step S2011 and will not be repeated here.

[0059] In addition, the node in the quantum computer includes: a quantum real machine, the first smart contract includes: a third sub-smart contract, and the implementation method corresponding to the above steps S101-S103 also includes: After the business data in the quantum real machine is collected and stored based on the business collector, the third sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0060] In the example of the present invention, the implementation method of analyzing and warning based on the third sub-smart contract and business data is as described in the above step S2011 and will not be repeated here.

[0061] In addition, the node in the quantum computer includes: a quantum simulator, the first smart contract includes: a fourth sub-smart contract, and the implementation method corresponding to the above steps S101-S103 also includes: After the business data in the quantum simulator is collected and stored based on the business collector, the fourth sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0062] In the example of the present invention, the implementation method of analyzing and warning based on the fourth sub-smart contract and business data is as described in the above step S2011 and will not be repeated here.

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

[0064] In some optional implementations, the nodes in the quantum computer include: a quantum real machine and a quantum simulator, 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, and the embodiments corresponding to the above steps S101-S103 also include: After collecting and storing the business data in the quantum real machine and the quantum simulator, as well as the 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.

[0065] In the embodiment of the present invention, various log information is generated in the quantum computing environment to record the operation status, operation steps, performance indicators, etc. of the quantum system. These logs play an important role in monitoring the quantum computing process, troubleshooting, and optimizing algorithms. Therefore, the seventh and eighth sub-smart contracts can be designed to integrate the abnormal log data generated in the quantum real machine and the quantum simulator.

[0066] Here, the fusion computing smart contract for the abnormal log data collection results is to further process and integrate the abnormal log data collected above. Due to the complexity and particularity of quantum systems, the analysis and processing of abnormal data requires professional knowledge and methods. The smart contract may define specific algorithms and logic, such as weighted processing, correlation analysis or trend prediction of different types of abnormal data.

[0067] In the embodiments of the present invention, valuable information can be extracted from a large amount of abnormal data, helping researchers to better understand the behavior and performance of quantum systems, timely discover potential problems and take corresponding measures to repair or optimize them. At the same time, it also provides guarantees for the reliability and stability of quantum computing, ensuring that quantum computing can operate normally within a reasonable error range.

[0068] In addition, the present invention can also perform fusion calculation operations on the business data in the above-mentioned quantum real machine and quantum simulator. For example, the fusion calculation of business data may include the following processes: summarizing data collected at different timestamps, comprehensively analyzing data in different quantum bit states, and performing statistics on data collected from multiple experiments. Through integrated calculations, valuable information can be extracted from a large amount of original quantum business data to provide support for quantum computing services.

[0069] In some optional implementations, the above-mentioned fusion computing operation on the business data corresponding to the quantum simulator and the quantum real machine specifically includes the following process: The business data stored in the business collection blockchain is obtained, and a first data interface is determined according to business rules, wherein the first data interface is used for communication between the business collection blockchain and the monitoring software, and the first data interface includes at least one of the following: task name, execution name, execution type, and execution business indicator alarm of the quantum task.

[0070] In an embodiment of the present invention, the first data interface may include a business data monitoring and display interface corresponding to a quantum simulator and a quantum real machine.

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

[0072] In the embodiment of the present invention, when sending business data, the business 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 visualize the business data.

[0073] In some optional implementations, the above-mentioned fusion computing operation on the business data corresponding to the quantum simulator and the quantum real machine specifically includes the following process: Obtain log data stored in the log collection blockchain, and determine a second data interface corresponding to the log data, wherein 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: task name, execution name, execution type, and log abnormality alarm of the quantum task.

[0074] In an embodiment of the present invention, the second data interface may include a log data exception display interface corresponding to a quantum simulator and a quantum real machine.

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

[0076] 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 visualize the log data.

[0077] In some optional implementations, the embodiments corresponding to the above steps S101-S103 further include: Based on the collection business indicators corresponding to the execution process of the quantum task executed in the quantum computer, metadata and collection implementation classes are determined for the business collector, wherein the metadata and collection implementation classes are used to collect and upload business data to the business collection blockchain network.

[0078] In an embodiment of the present invention, the collection implementation class is used to complete the collection of relevant business data and report the relevant blockchain network.

[0079] Specifically, the collection metadata and corresponding collection implementation classes can be defined according to the collection business indicators corresponding to each stage of the execution process of quantum computing, where the metadata of business data is data that describes the characteristics, attributes, sources, processing procedures and related contextual information of the data itself.

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

[0081] In some optional implementations, the embodiments corresponding to the above steps S101-S103 further include: Based on the execution process of the quantum task executed in the quantum computer, a probe is determined for the log collector, wherein the probe is used to analyze the logs generated in the execution process to obtain log data including abnormal logs.

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

[0083] In an embodiment of the present invention, log data corresponding to nodes at various execution stages of a quantum computer when executing a quantum task can be collected based on a blockchain network, thereby effectively completing the collection and reporting of abnormal log data related to the quantum task. At the same time, stable operation of the log collector and continuous improvement of data collection quality can be ensured through monitoring and management.

[0084] In some optional implementations, the above step S103, visually displaying the execution process of the quantum task, includes: Based on the execution process of quantum tasks, business data and log data are displayed on the display interface.

[0085] In an embodiment of the present invention, the execution process of a quantum task may include the state of a quantum bit, and the execution result may be an algorithm output result represented by an icon or the like. Specifically, when displaying the execution process of a quantum task, the state of the quantum bit at different time points may be displayed, and the superposition and entanglement of the quantum state may be represented by a two-dimensional or three-dimensional graph. For example, the state of a single quantum bit may be represented by drawing a Bloch sphere, or the joint state of multiple quantum bits may be displayed in the form of a density matrix. In addition, when displaying the execution result of a quantum task, the output result of the quantum algorithm may be presented in the form of a graph, such as a histogram, a scatter plot, and the like. For example, for a quantum search algorithm, a histogram may be used to display the probability distribution of finding a target, and for another example, for a quantum optimization algorithm, a line graph may be used to display the change in the value of the objective function during the iteration process.

[0086] In addition, when visualizing log data, the changes in indicators during the execution of quantum tasks can be intuitively represented through charts and other forms. For example, when the data indicators include time, the log data contains time-related information, such as the execution time of the quantum computing task, the quantum state at different times, etc., and the trend of data changes 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 related indicators can be used as the y-axis to draw a line chart or area chart, etc., in order to observe the dynamic changes in the quantum computing process.

[0087] In an embodiment of the present invention, the execution process and results of a quantum task can be displayed on a visual interface of the monitoring software based on business data, and the indicator changes of the quantum task during the execution process can be displayed on a visual interface of the monitoring software based on log data. Thus, each process of the execution of the quantum computing task can be monitored in real time through the display software, and business data alarm display and execution process abnormality display can be realized, so as to quickly locate the problem when a failure occurs.

[0088] In this embodiment, another data processing method is provided, which can be used in the above-mentioned quantum computer. The process of the data processing method in this embodiment of the present invention includes the following steps: Here, if Figure 4 The figure shows a schematic diagram of the process of collecting business data, which specifically includes the following steps: Step S31, deploying a business data collector.

[0089] Step S32, building a business collection blockchain network.

[0090] Step S33, based on the business collector 1, the business data of the quantum software node is collected and published to the business collection blockchain network, triggering the corresponding smart contract to complete the business data collection, storage and analysis, wherein the business collector 1 is a collector deployed in the quantum software node.

[0091] Step S34, based on the business collector 2, the business data of the quantum measurement and control node is collected and published to the business collection blockchain network, triggering the corresponding smart contract to complete the business data collection, storage and analysis, wherein the business collector 1 is a collector deployed in the quantum software node.

[0092] Step S35, based on the business collector 3, the business data of the quantum real machine is collected and published to the business collection blockchain network, triggering the corresponding smart contract to complete the business data collection, storage and analysis, and generate a fusion computing interface, where 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.

[0093] Step S36, based on the business collector 4, the business data of the quantum simulator is collected and published to the business collection blockchain network, triggering the corresponding smart contract to complete the business data collection, storage and analysis, and generate a fusion computing interface, wherein the business collector 1 is a collector deployed in the quantum simulator, and the fusion computing interface is the above-mentioned first communication interface.

[0094] In addition, such as Figure 5 The figure shows a flow chart of collecting log data, which specifically includes the following steps: Step S41, deploying an abnormal log data collector.

[0095] Step S42, building a log collection blockchain network.

[0096] Step S43, based on the log collector 1, the abnormal log data of the quantum software node is collected and published to the log collection blockchain network, triggering the corresponding smart contract to complete the abnormal log data collection, storage and analysis, wherein the log collector 1 is a collector deployed in the quantum software node.

[0097] Step S44, based on the log collector 2, the abnormal log data of the quantum measurement and control node is collected and published to the log collection blockchain network, triggering the corresponding smart contract to complete the abnormal log data collection, storage and analysis, wherein the log collector 1 is a collector deployed in the quantum software node.

[0098] Step S45, based on the log collector 3, the abnormal log data of the quantum real machine is collected and published to the log collection blockchain network, triggering the corresponding smart contract to complete the abnormal log data collection, storage and analysis, and generate a fusion computing interface, where 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.

[0099] Step S46, based on the log collector 4, the abnormal log data of the quantum simulator is collected and published to the log collection blockchain network, triggering the corresponding smart contract to complete the abnormal log data collection, storage and analysis, and generate a fusion computing interface, wherein the log collector 1 is a collector deployed in the quantum simulator, and the fusion computing interface is the above-mentioned second communication interface.

[0100] For example, business collector 1 and log collector 1 collect corresponding business data and log exception data, and publish them to the corresponding business collection blockchain network and log collection blockchain network. The business collection blockchain network receives quantum software business collection data, triggers the quantum software business collection storage smart contract, executes the function of receiving quantum business collection data and storing it, and further executes the quantum software business collection data analysis alarm smart contract, and executes the quantum software business collection data analysis alarm operation. The log collection blockchain network receives quantum software log collection data, triggers the quantum log exception collection storage smart contract, and executes the function of receiving log exception collection data and storing it.

[0101] Business collector 2 and log collector 2 collect the corresponding measurement and control business data and measurement and control log abnormal data, and publish them to the corresponding business collection blockchain network and log collection blockchain network. The business collection blockchain network receives the measurement and control business collection data, triggers the quantum measurement and control business collection storage smart contract, executes the function of receiving quantum measurement and control business collection data and storing it, and further executes the quantum measurement and control business collection data analysis alarm smart contract, and executes the measurement and control business collection data analysis alarm operation. The log collection blockchain network receives the measurement and control log collection data, triggers the quantum measurement and control log abnormal collection storage smart contract, and executes the function of receiving log abnormal collection data and storing it.

[0102] The business collector 3 and the log collector 3 collect the corresponding real machine business data and real machine log abnormal data, and publish them to the corresponding business collection blockchain network and log collection blockchain network. The business collection blockchain network receives the real machine business collection data, triggers the quantum real machine business collection storage smart contract, executes the function operation of receiving quantum real machine business collection data and storing it, further executes the quantum real machine business collection data analysis alarm smart contract, executes the real machine business collection data analysis alarm operation, further triggers the quantum business data collection result fusion calculation smart contract, executes the integrated calculation of the quantum collection business data stored on the process chain, outputs the collection business data monitoring display interface, and provides it to the display software for monitoring and display. The log collection blockchain network receives the real machine log collection data, triggers the quantum real machine log abnormal collection storage smart contract, executes the function operation of receiving log abnormal collection data and storing it, further triggers the quantum log abnormal data collection result fusion calculation smart contract, outputs the collection log data abnormal display interface, and provides it to the monitoring software for centralized display.

[0103] The business collector 4 and the log collector 4 collect the corresponding simulator business data and simulator log abnormal data, and publish them to the corresponding simulator business collection blockchain network and simulator log collection blockchain network. The business collection blockchain network receives the simulator business collection data to trigger the quantum simulator business collection storage smart contract, executes the function of receiving quantum simulator business collection data and storing it, further executes the quantum simulator business collection data analysis alarm smart contract, and executes the simulator business collection data analysis alarm operation; further triggers the quantum business data collection result fusion calculation smart contract, executes the integrated calculation of the quantum collection business data stored on the process chain, outputs the collection business data monitoring display interface, and provides it to the display software for monitoring and display. The log collection blockchain network receives the simulator log collection data to trigger the quantum simulator log abnormal collection storage smart contract, executes the function of receiving log abnormal collection data and storing it, further triggers the quantum log abnormal data collection result fusion calculation smart contract, outputs the collection log data abnormal display interface, and provides it to the monitoring software for centralized display.

[0104] In summary, in an embodiment of the present invention, a business collection blockchain network and a log collection blockchain network can be constructed based on a quantum computer, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector 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 visualize the execution process of the quantum task, thereby realizing the collection and processing of the business data and 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 improve the maintenance efficiency and stability of the system.

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

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

[0107] This embodiment provides a data processing device, such as Figure 6 As shown, including: A construction module 601 is used to construct a business collection blockchain network and a log collection blockchain network based on a quantum computer, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector deployed in each node of the quantum computer; A collection module 602, which is used to collect and store business data in the corresponding node based on the first smart contract deployed in the business collector, and to collect and store log data in the corresponding node based on the second smart contract deployed in the log collector; The display module 603 is used to send the business data and log data to the monitoring software to visualize the execution process of the quantum task.

[0108] In some optional implementations, the construction module 601 is further used to: Deploy a business collector for each node of the quantum computer when executing a quantum task, and deploy a first smart contract for each node to obtain a business collection blockchain network; A log collector is deployed for each node, and a second smart contract is deployed for each node to obtain a log collection blockchain network.

[0109] In some optional implementations, the nodes in the quantum computer include: quantum software nodes, quantum measurement and control nodes, quantum real machines, and quantum simulators, wherein the quantum simulator is used to optimize quantum algorithms for executing quantum tasks, the quantum software nodes are used to publish quantum instructions for editing quantum tasks, the quantum measurement and control nodes are used to generate control signals based on quantum instructions, and the quantum real machines are used to execute quantum tasks based on control signals; In some optional implementations, the acquisition module 602 is further configured to: Based on the business collector deployed in the quantum software node, the business data corresponding to the quantum software business indicators are collected and stored; and based on the business collector deployed in the quantum measurement and control node, the business data corresponding to the quantum measurement and control business indicators are collected and stored; and based on the business collector deployed in the quantum real machine, the business data corresponding to the quantum real machine business indicators are collected and stored; and based on the business collector deployed in the quantum simulator, the business data corresponding to the quantum simulator business indicators are collected and stored.

[0110] In some optional implementations, the acquisition module 602 is further configured to: 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.

[0111] In some optional implementations, the construction module 601 is further used to: A business collector is deployed for a quantum software node, and a first sub-smart contract is deployed for the quantum software node, wherein the first sub-smart contract is used to collect and store business data of the quantum software node, and analyze and alarm the business data according to the business indicators of the quantum software; and a business collector is deployed for a quantum measurement and control node, and a second sub-smart contract is deployed for the quantum measurement and control node, wherein the second sub-smart contract is used to collect and store business data of the quantum measurement and control node, and analyze and alarm the business data according to the business indicators of the quantum measurement and control; and a business collector is deployed for a quantum real machine, and a third sub-smart contract is deployed for the quantum real machine, wherein the third sub-smart contract is used to collect and store business data of the quantum real machine, and analyze and alarm the business data according to the business indicators of the quantum real machine; and a business collector is deployed for a quantum simulator, and a fourth sub-smart contract is deployed for the quantum simulator, wherein the fourth sub-smart contract is used to collect and store business data of the quantum simulator, and analyze and alarm the business data according to the business indicators of the quantum simulator, and the first smart contract includes: a first sub-smart contract, a second sub-smart contract, a third sub-smart contract and a fourth sub-smart contract.

[0112] In some optional implementations, the construction module 601 is further used to: A log collector is deployed for the quantum software node, and a fifth sub-smart contract is deployed for the quantum software node, wherein the fifth sub-smart contract is used to collect and store quantum software exception logs; and a log collector is deployed for the quantum measurement and control node, and a sixth sub-smart contract is deployed for the quantum measurement and control node, wherein the sixth sub-smart contract is used to collect and store quantum measurement and control exception logs; and a log collector is deployed for the quantum real machine, and a seventh sub-smart contract is deployed for the quantum real machine, wherein the seventh sub-smart contract is used to collect and store quantum real machine exception logs, and perform fusion calculations on quantum real machine exception logs; and a log collector is deployed for the quantum simulator, and an eighth sub-smart contract is deployed for the quantum simulator, wherein the eighth sub-smart contract is used to collect and store quantum simulator exception logs, and perform fusion calculations on quantum simulator exception logs, wherein the second smart contract includes: a fifth sub-smart contract, a sixth sub-smart contract, a seventh sub-smart contract, and an eighth sub-smart contract.

[0113] In some optional embodiments, the node in the quantum computer includes: a quantum software node, the first smart contract includes: a first sub-smart contract; and the device is further used to: After the business data in the quantum software node is collected and stored based on the business collector, the first sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0114] In some optional implementations, the node in the quantum computer includes: a quantum measurement and control node, the first smart contract includes: a second sub-smart contract; and the device is further used for: After the business data in the quantum measurement and control node is collected and stored based on the business collector, the second sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0115] In some optional implementations, the node in the quantum computer includes: a quantum real machine, the first smart contract includes: a third sub-smart contract; the device is also used for: After the business data in the quantum real machine is collected and stored based on the business collector, the third sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0116] In some optional embodiments, the node in the quantum computer includes: a quantum simulator, the first smart contract includes: a fourth sub-smart contract; and the device is further used to: After the business data in the quantum simulator is collected and stored based on the business collector, the fourth sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

[0117] In some optional embodiments, the nodes in the quantum computer include: a quantum real machine and a quantum simulator, 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 device is also used to: After collecting and storing the business data in the quantum real machine and the quantum simulator, as well as the 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.

[0118] In some optional implementations, the business data corresponding to the quantum simulator and the quantum real machine are subjected to a fusion computing operation, and the device is further used to: The business data stored in the business collection blockchain is obtained, and a first data interface is determined according to business rules, wherein the first data interface is used for communication between the business collection blockchain and the monitoring software, and the first data interface includes at least one of the following: task name, execution name, execution type, and execution business indicator alarm of the quantum task.

[0119] In some optional implementations, a fusion calculation operation is performed on the log data corresponding to the quantum simulator and the quantum real machine, and the device is also used to: Obtain log data stored in the log collection blockchain, and determine a second data interface corresponding to the log data, wherein 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: task name, execution name, execution type, and log abnormality alarm of the quantum task.

[0120] In some optional embodiments, the device is also used for: Based on the collection business indicators corresponding to the execution process of the quantum task executed in the quantum computer, metadata and collection implementation classes are determined for the business collector, wherein the metadata and collection implementation classes are used to collect and upload business data to the business collection blockchain network.

[0121] In some optional embodiments, the device is also used for: Based on the execution process of the quantum task executed in the quantum computer, a probe is determined for the log collector, wherein the probe is used to analyze the logs generated in the execution process to obtain log data including abnormal logs.

[0122] In some optional implementations, the display module 603 is further used to: Based on the execution process of quantum tasks, business data and log data are displayed on the display interface.

[0123] For the description of the features in the embodiments corresponding to the data processing device, reference can be made to the relevant description of the embodiments corresponding to the data processing method, which will not be described in detail here.

[0124] The embodiment of the present application also provides an electronic device, such as Figure 7 As shown in , the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any of the above data processing method embodiments.

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

[0126] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0127] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any of the above data processing method embodiments are implemented.

[0128] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above-mentioned data processing method embodiments are implemented.

[0129] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0130] The above is a detailed introduction to a data processing method, device, computer equipment, storage medium and program product provided by the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of ​​the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of the present application.

Claims

1. A data processing method, characterized in that: The method comprises: Based on a quantum computer, a business collection blockchain network and a log collection blockchain network are constructed, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector deployed in each node of the quantum computer; 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; The business data and the log data are sent to monitoring software to visualize the execution process of the quantum task.

2. The method according to claim 1, characterized in that The business collection blockchain network and the log collection blockchain network are constructed based on quantum computers, including: Deploy a business collector for each node of the quantum computer when executing a quantum task, and deploy a first smart contract for each node to obtain the business collection blockchain network; A log collector is deployed for each of the nodes, and a second smart contract is deployed for each of the nodes to obtain the log collection blockchain network.

3. The method according to claim 2, characterized in that The nodes in the quantum computer include: quantum software nodes, quantum measurement and control nodes, quantum real machines and quantum simulators, wherein the quantum simulator is used to optimize the quantum algorithm for executing quantum tasks, the quantum software nodes are used to publish quantum instructions for editing the quantum tasks, the quantum measurement and control nodes are used to generate control signals based on the quantum instructions, and the quantum real machines are used to execute the quantum tasks based on the control signals; The collecting and storing the business data in the corresponding node based on the first smart contract deployed in the business collector includes: Based on the business collector deployed in the quantum software node, collect and store business data corresponding to the quantum software business indicators; and Based on the service collector deployed in the quantum measurement and control node, collect and store service data corresponding to the quantum measurement and control service indicators; and Based on the business collector deployed in the quantum real machine, collect and store business data corresponding to the business indicators of the quantum real machine; and Based on the business collector deployed in the quantum simulator, business data corresponding to the business indicators of the quantum simulator are collected and stored.

4. The method according to claim 3, characterized in that The collecting and storing log data in the corresponding node based on the second smart contract deployed in the log collector includes: Based on the log collector deployed in the quantum software node, collect and store quantum software exception logs; and Based on the log collector deployed in the quantum measurement and control node, collect and store quantum measurement and control abnormality logs; and Based on the log collector deployed in the quantum real machine, collect and store the quantum real machine abnormal log; and Based on the log collector deployed in the quantum simulator, abnormal logs of the quantum simulator are collected and stored.

5. The method according to claim 3, characterized in that: The step of deploying a business collector for each node of the quantum computer when executing a quantum task, and deploying a first smart contract for each node to obtain the business collection blockchain network includes: Deploy a business collector for the quantum software node, and deploy a first sub-smart contract for the quantum software node, wherein the first sub-smart contract is used to collect and store business data of the quantum software node, and analyze and alarm the business data according to quantum software business indicators; 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, wherein the second sub-smart contract is used to collect and store service data of the quantum measurement and control node, and analyze and alarm the service data according to quantum measurement and control service indicators; and Deploy a business collector for the quantum real machine, and deploy a third sub-smart contract for the quantum real machine, wherein the third sub-smart contract is used to collect and store business data of the quantum real machine, and analyze and alarm the business data according to the business indicators of the quantum real machine; and A business collector is deployed for the quantum simulator, and a fourth sub-smart contract is deployed for the quantum simulator, wherein the fourth sub-smart contract is used to collect and store business data of the quantum simulator, and analyze and warn the business data according to business indicators of the quantum simulator, and 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.

6. The method according to claim 3, characterized in that The step of deploying a log collector for each node and deploying a second smart contract for each node to obtain the log collection blockchain network includes: Deploy a log collector for the quantum software node, and deploy a fifth sub-smart contract for the quantum software node, wherein 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, wherein the sixth sub-smart contract is used to collect and store quantum measurement and control abnormality logs; and Deploy a log collector for the quantum real machine, and deploy a seventh sub-smart contract for the quantum real machine, wherein the seventh sub-smart contract is used to collect and store abnormal logs of the quantum real machine, and perform fusion calculation on the abnormal logs of the quantum real machine; and A log collector is deployed for the quantum simulator, and an eighth sub-smart contract is deployed for the quantum simulator, wherein the eighth sub-smart contract is used to collect and store abnormal logs of the quantum simulator, and perform fusion calculations on the abnormal logs of the quantum simulator, wherein 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.

7. The method according to claim 1, characterized in that The node in the quantum computer includes: a quantum software node, and the first smart contract includes: a first sub-smart contract; The method further comprises: After the business data in the quantum software node is collected and stored based on the business collector, the first sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

8. 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: a second sub-smart contract; The method further comprises: After the business data in the quantum measurement and control node is collected and stored based on the business collector, the second sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

9. The method according to claim 1, characterized in that: The nodes in the quantum computer include: quantum real machines, and the first smart contract includes: a third sub-smart contract; The method further comprises: After the business data in the quantum real machine is collected and stored based on the business collector, the third sub-smart contract is executed based on the business collection blockchain network to analyze and alarm the business data.

10. The method according to claim 1, characterized in that The nodes in the quantum computer include: a quantum simulator, and the first smart contract includes: a fourth sub-smart contract; The method further comprises: After the business data in the quantum simulator is collected and stored based on the business collector, the fourth sub-smart contract is executed based on the business collection blockchain network to analyze and issue an alarm on the business data.

11. The method according to claim 1, characterized in that: The nodes in the quantum computer include: a quantum real machine and a quantum simulator, 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 comprises: After collecting and storing the business data in the quantum real machine and the quantum simulator, as well as the log data in the quantum real machine and the quantum simulator based on the first smart contract, a fusion computing 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 computing operation is performed on the business data and log data corresponding to the quantum simulator based on the eighth sub-smart contract.

12. The method according to claim 11, characterized in that Performing a fusion calculation operation on the business data corresponding to the quantum simulator and the quantum real machine, including: The business data stored in the business collection blockchain is obtained, and a first data interface is determined according to business rules, wherein the first data interface is used for communication between the business 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 business indicator alarm of the quantum task.

13. The method according to claim 11, characterized in that The performing a fusion calculation operation on the log data corresponding to the quantum simulator and the quantum real machine includes: The log data stored in the log collection blockchain is obtained, and a second data interface corresponding to the log data is determined, wherein 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 abnormality alarm of the quantum task.

14. The method according to claim 1, characterized in that The method further comprises: Based on the collection business indicators corresponding to the execution process of the quantum task executed in the quantum computer, metadata and collection implementation classes are determined for the business collector, wherein the metadata and collection implementation classes are used to collect and upload business data to the business collection blockchain network.

15. The method according to claim 1, characterized in that The method further comprises: Based on the execution process of the quantum task executed in the quantum computer, a probe is determined for the log collector, wherein the probe is used to analyze the logs generated in the execution process to obtain log data including abnormal logs.

16. 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, the business data and log data are displayed on a display interface.

17. A data processing device, characterized in that: The device comprises: A construction module is used to construct a business collection blockchain network and a log collection blockchain network based on a quantum computer, wherein the business collection blockchain network includes a business collector deployed in each node of the quantum computer, and the log collection blockchain network includes a log collector deployed in each node of the quantum computer; A collection module, used to collect and store business data in the corresponding node based on the first smart contract deployed in the business collector, and to collect and store log data in the corresponding node based on the second smart contract deployed in the log collector; A display module is used to send the business data and the log data to the monitoring software to visualize the execution process of the quantum task.

18. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the data processing method according to any one of claims 1 to 16 by executing the computer instructions.

19. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the data processing method according to any one of claims 1 to 16.

20. A computer program product, characterized in that The method comprises computer instructions for causing a computer to execute the data processing method according to any one of claims 1 to 16.

Citation Information

Patent Citations

  • Signature verification method and system based on blockchain smart contract

    CN110048846A

  • Smart contract security monitoring method and device, computer equipment and storage medium

    CN115375468A

  • Early warning decision-making method, system and device based on block chain and storage medium

    CN116599834A

  • Quantum chip design system and method, electronic equipment and storage medium

    CN116911393A

  • Log data management method and device

    CN116975117A