Processing method, device and equipment of data processing task, and storage medium
Patent Information
- Application Number
- CN202311020742.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2043-08-14
AI Technical Summary
而经典计算机和量子计算机的运算性能难以匹配,数据处理任务的处理速度在一定程度上受到了经典计算机的运算性能限制
[0012]在本说明书提供的多个实施方式中,通过将用于组合多个资源以获得目标组合结果数据的数据处理任务分解为第一子任务和第二子任务,针对第一子任务构建第一量子线路,针对第二子任务构建第二量子线路,并在两量子线路的测量结果不满足指定条件的情况下,按照相同的指定调整规则同时调整两量子线路的线路参数,直至两量子线路的测量结果满足指定条件,则可以通过经任一量子线路中包括的拟设线路单元调控的量子比特的测量结果表征目标组合结果数据,实现了利用量子线路的测量结果直接表征数据处理任务的目标数据,从而减少了在执行数据处理任务过程中基础计算单元的运算量,提高了数据处理任务的处理速度。
Smart Images

Figure CN117112205B_ABST
Abstract
Description
Technical Field
[0001] The embodiments described in this specification relate to the field of data processing, specifically to a data processing method, apparatus, device, and storage medium for a data processing task. Background Technology
[0002] With the continuous development of quantum computing technology, more and more enterprises and individuals are choosing to use quantum computers to perform data processing tasks in order to take advantage of the "quantum parallel computing" characteristics of quantum computers to speed up the processing of data.
[0003] However, quantum computers struggle to process data independently. In related technologies, data processing tasks typically require collaboration between classical and quantum computers. This involves breaking down the task into classical computation subtasks executed by the classical computer and quantum computation subtasks executed by the quantum computer. These subtasks are then executed separately by the classical and quantum computers, and the final result is obtained based on the execution outcomes of the two subtasks. However, the computational performance of classical and quantum computers is difficult to match, and the processing speed of the data processing task is limited to some extent by the computational performance of the classical computer.
[0004] Therefore, the related technologies suffer from the technical problem that when classical computers and quantum computers work together to process data processing tasks, the processing speed of the data processing tasks is limited by the computing performance of classical computers. Summary of the Invention
[0005] In view of this, various embodiments of this specification aim to provide a data processing method, apparatus, device, and storage medium for improving the processing speed of data processing tasks.
[0006] One embodiment of this specification provides a method for processing a data processing task, applied to a quantum computing system. The method includes: receiving a data processing task; wherein the data processing task is used to combine multiple specified resources to obtain a target combination result data; the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combination result data according to a first operation rule; the second subtask is used to process the combination result data according to a second operation rule different from the first operation rule; constructing a first quantum circuit for executing the first subtask according to the first operation rule; and constructing a second quantum circuit for executing the second subtask according to the second operation rule; wherein the first quantum circuit and the second quantum circuit... All circuits include proposed circuit units; the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit have the same circuit structure and circuit parameters; the circuit parameters of the proposed circuit units are variable; if the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit are adjusted simultaneously according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions, and the target combination result data is characterized by the measurement results of the qubits after being controlled by the proposed circuit units.
[0007] One embodiment of this specification provides a method for processing a data processing task, applied to a basic computing unit. The method includes: receiving a data processing task; wherein the data processing task is used to combine multiple specified resources to obtain target combined result data; the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule; generating first circuit initial data according to the first operation rule, and generating second circuit initial data according to the second operation rule; and sending the first circuit initial data and the second circuit initial data to a quantum computing unit belonging to the same quantum computing system, so that the quantum computing unit can construct a first quantum circuit for executing the first subtask based on the first circuit initial data, and construct a second quantum circuit for executing the second subtask based on the second circuit initial data; wherein both the first quantum circuit and the second quantum circuit are... The system includes a proposed circuit unit; the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit have the same circuit structure and circuit parameters; the circuit parameters of the proposed circuit units are variable; if the measurement results of the first quantum circuit and the second quantum circuit sent by the quantum computing unit do not meet the specified conditions, first circuit adjustment data and second circuit adjustment data are determined according to the specified adjustment rules; and the first circuit adjustment data and the second circuit adjustment data are sent to the quantum computing unit so that the quantum computing unit can simultaneously adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions; the system receives the measurement results of the qubits controlled by the proposed circuit units sent by the quantum computing unit, and characterizes the target combination result data through the measurement results of the qubits.
[0008] One embodiment of this specification provides a data processing method for a data processing task, applied to a quantum computing unit. The method includes: receiving first line initial data and second line initial data sent by a basic computing unit belonging to the same quantum computing system; wherein the first line initial data is generated according to a first operation rule; the second line initial data is generated according to a second operation rule; constructing a first quantum circuit for executing a first sub-task based on the first line initial data; and constructing a second quantum circuit for executing a second sub-task based on the second line initial data; wherein both the first quantum circuit and the second quantum circuit include proposed circuit units; the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit have the same circuit structure and circuit parameters; the circuit parameters of the proposed circuit units are variable; the first sub-task is used to process combined result data according to the first operation rule; the second sub-task is used to process combined result data according to the first operation rule. Different second operational rules process the combined result data; the first subtask and the second subtask belong to the same data processing task; the data processing task is used to combine multiple specified resources to obtain target combined result data; if the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, the measurement results of the first quantum circuit and the second quantum circuit are sent to the basic computing unit; and, according to the first circuit adjustment data and the second circuit adjustment data sent by the basic computing unit, the circuit parameters of the proposed circuit unit are simultaneously adjusted according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions; the qubits controlled by the proposed circuit unit are measured, and the measurement results of the qubits are sent to the basic computing unit so that the basic computing unit can characterize the target combined result data through the measurement results of the qubits.
[0009] One embodiment of this specification provides a data processing apparatus for a data processing task applied to a quantum computing system; the apparatus includes: a receiving module for receiving a data processing task; wherein the data processing task is used to combine multiple specified resources to obtain a target combination result data; wherein the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combination result data according to a first operation rule; the second subtask is used to process the combination result data according to a second operation rule different from the first operation rule; a construction module for constructing a first quantum circuit for executing the first subtask according to the first operation rule; and constructing a second quantum circuit for executing the second subtask according to the second operation rule; wherein the first quantum circuit and the specified resources are combined to form a first quantum circuit for executing the second subtask. The second quantum circuits all include proposed circuit units; the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit have the same circuit structure and circuit parameters; the circuit parameters of the proposed circuit units are variable; the adjustment module is used to simultaneously adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit according to the same specified adjustment rules when the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions, and the measurement results of the qubits after being controlled by the proposed circuit units characterize the target combination result data.
[0010] This specification provides a computer device including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the methods described in the above embodiments.
[0011] This specification provides a computer-readable storage medium storing computer program instructions that, when executed by a processor, implement the methods described in the above embodiments.
[0012] In the various embodiments provided in this specification, by decomposing the data processing task for combining multiple resources to obtain the target combined result data into a first subtask and a second subtask, constructing a first quantum circuit for the first subtask and a second quantum circuit for the second subtask, and simultaneously adjusting the circuit parameters of the two quantum circuits according to the same specified adjustment rules when the measurement results of the two quantum circuits do not meet the specified conditions, until the measurement results of the two quantum circuits meet the specified conditions, the target combined result data can be characterized by the measurement results of the qubits controlled by the proposed circuit unit included in any quantum circuit. This realizes the direct characterization of the target data of the data processing task using the measurement results of the quantum circuit, thereby reducing the amount of computation of the basic computing unit during the execution of the data processing task and improving the processing speed of the data processing task. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 A schematic diagram of a quantum computing system provided for one embodiment of this specification.
[0015] Figure 2 A schematic diagram of a quantum circuit for performing a first subtask, provided as one embodiment of this specification.
[0016] Figure 3 A schematic diagram of a quantum circuit for performing a second subtask, provided as one embodiment of this specification.
[0017] Figure 4 This is a flowchart illustrating a data processing task processing method provided in one embodiment of this specification.
[0018] Figure 5 This is a flowchart illustrating a data processing task processing method provided in another embodiment of this specification.
[0019] Figure 6 This is a flowchart illustrating a data processing task processing method provided in another embodiment of this specification.
[0020] Figure 7 This is a schematic diagram of a data processing apparatus for one embodiment of the present specification.
[0021] Figure 8 A schematic diagram of a computer device provided for one embodiment of this specification. Detailed Implementation
[0022] Using quantum computers to perform data processing tasks can accelerate the processing speed. However, due to the limitation of quantum computers' versatility, the types of data processing tasks that can be performed by quantum computers are relatively limited. Therefore, related technologies require classical and quantum computers to collaboratively process data processing tasks. Collaborative data processing tasks can include three processes: task decomposition, execution of computation processes, and processing of computation results. Specifically, the data processing task is typically decomposed in the classical computer into classical computation subtasks executed by the classical computer and quantum computation subtasks that conform to the computation rules of the quantum computer. The classical computer then sends the quantum computation subtasks to the quantum computer. Next, the classical computer executes the classical computation subtasks to obtain classical computation results. After receiving the quantum computation subtasks, the quantum computer executes the quantum computation subtasks to obtain quantum computation results and feeds them back to the classical computer. Finally, after receiving the quantum computation results, the classical computer processes both the classical and quantum computation results to obtain the target data for the data processing task.
[0023] However, because quantum computers can utilize qubits in a superposition state to achieve "parallel processing," the computation time required for a quantum computer to execute a quantum subtask may be shorter, while the computation time required for a classical computer to execute a classical subtask may be longer. Even after the quantum computer completes its quantum subtask and sends the result back to the classical computer, the classical computer may still be executing its classical subtask. After completing its classical subtask, the classical computer still needs to process the result to obtain the target data for its data processing task.
[0024] Therefore, in related technologies, classical computers perform a large amount of computation, but their computing power is insufficient to complete such large-scale computational tasks in a short time. After completing a quantum computing subtask, the quantum computer needs to wait a considerable amount of time before the classical computer can complete the entire data processing task. This mismatch in computing power between classical and quantum computers in collaborative data processing makes the classical computer a bottleneck, hindering the full utilization of the quantum computer's high computing performance. Consequently, the processing speed of data processing tasks is limited by the computing power of the classical computer, making significant improvements difficult.
[0025] Therefore, it is necessary to provide a method for processing data processing tasks. This method decomposes the data processing task, which combines multiple resources to obtain a target combined result data, into a first subtask and a second subtask. A first quantum circuit is constructed for the first subtask, and a second quantum circuit is constructed for the second subtask. If the measurement results of the two quantum circuits do not meet the specified conditions, the circuit parameters of the two quantum circuits are simultaneously adjusted according to the same specified adjustment rules until the measurement results of the two quantum circuits meet the specified conditions. Then, the target combined result data can be characterized by the measurement results of the qubits controlled by the proposed circuit unit included in any quantum circuit. This method realizes the direct characterization of the target data of the data processing task using the measurement results of the quantum circuit, reduces the amount of computation of the basic computing unit during the execution of the data processing task, and can achieve a certain balance between the computational performance of the basic computing unit and the quantum computing unit when only a small amount of computation is required. This eliminates the computing power bottleneck of the basic computing unit to a certain extent and improves the processing speed of the data processing task.
[0026] One embodiment of this specification provides an application scenario example of a method for processing a data processing task. The data processing task can be processed using a quantum computing system. The quantum computing system may include basic computing units and quantum computing units.
[0027] In this example scenario, the data processing task can be used to combine multiple specified assets to obtain a target combination result data. For instance, there are m assets to be combined, and each asset has a weight coefficient of x. i Where i = 0, 1, ..., m-1, and x i The constraint is satisfied: the weight coefficients of each asset are greater than or equal to 0 and their sum is 1, i.e., x i ≥0 and st∑x i =1. Please refer to Formula 1. The relationship between the returns and risks of multiple specified asset portfolios is represented by constructing a utility function U.
[0028]
[0029] Where x is the product of x i The vector formed by x T μ is the transpose of x. i The expected return for each asset, μ i ∈R m μ is composed of μ i The vector formed, μ T Let μ be the transpose of μ. M is the covariance matrix representing the correlation between the assets, M∈R. m×m q represents the investor's risk preference level, where q is a given value and q > 0. The smaller the value of q, the greater the investor's risk preference.
[0030] The utility function U can be used to represent the return-risk assessment of multiple asset portfolios. According to Equation 1, the value of the utility function U increases as the expected return of the asset portfolio increases and the risk appetite decreases. Given a certain risk appetite level, the target portfolio outcome data, represented by x, is the portfolio outcome data where the return represented by the utility function U is maximized.
[0031] To obtain the target combination result data, it is necessary to find the maximum and minimum values of the utility function U. A common method for finding the maximum and minimum values of a function is gradient descent, which requires calculating the gradient of the utility function U. To calculate the gradient of U using quantum circuitry, the circuit parameters of the proposed circuit units with variable parameters can be introduced into the gradient calculation of U; that is, the derivative of U with respect to the circuit parameters of the proposed circuit units is calculated. Therefore, after receiving this data processing task, the basic computing unit can decompose the data processing task into a first subtask and a second subtask according to the aforementioned expression of the utility function U. The first subtask is used according to the first operational rule. Calculate the quadratic term x of the independent variable x in the expression for U. T The gradient of Mx, the second subtask is used according to the second operation rule μ T The linear term μ of the independent variable x in the expression for calculating U. T The gradient of x.
[0032] After decomposing the data processing task into a first subtask and a second subtask, the basic computing unit can generate initial data for constructing a first quantum circuit according to the first operational rule corresponding to the first subtask, and generate initial data for constructing a second quantum circuit according to the second operational rule corresponding to the second subtask. The initial data for both subtasks are then sent to the quantum computing unit. The first quantum circuit can be used to execute the first subtask, and the second quantum circuit can be used to execute the second subtask.
[0033] After receiving initial data for both the first and second quantum circuits from the basic computing unit, the quantum computing unit can construct a first quantum circuit based on the first initial data, execute a first sub-task using the first quantum circuit, and measure a designated qubit controlled by the first quantum circuit. Simultaneously, the quantum computing unit can also construct a second quantum circuit based on the second initial data, execute a second sub-task using the second quantum circuit, and measure a designated qubit controlled by the second quantum circuit. After obtaining the measurement results from both quantum circuits, the quantum computing unit can send the measurement results from both quantum circuits to the basic computing unit.
[0034] After receiving the measurement results from the two quantum circuits, the basic computing unit can process the results separately to obtain the gradients of the quadratic and linear terms of x in the expression for U. Then, it sums the gradients of the two terms to obtain the derivative of the utility function U with respect to the circuit parameters. If the derivative of U with respect to the circuit parameters does not meet a specified threshold condition, the basic computing unit can adjust the circuit parameters of the proposed circuit units included in the quantum circuit according to specified adjustment rules, such as a specified step size, to determine the first and second circuit adjustment data, and then send the first and second circuit adjustment data to the quantum computing unit.
[0035] After receiving the first and second line adjustment data, the quantum computing unit can simultaneously adjust the line parameters of the proposed line units included in the first and second quantum lines according to the same specified adjustment rules. It then uses the first quantum line to execute the first sub-task and the second quantum line to execute the second sub-task and measure the specified qubits. After obtaining the measurement results from both quantum lines, the quantum computing unit can send the measurement results back to the basic computing unit.
[0036] Repeat the above process of adjusting the circuit parameters until the derivative of U with respect to the circuit parameters, obtained from the measurement results of the two quantum circuits, meets the specified threshold condition.
[0037] Please see Figure 2 For the first quantum circuit, it can be proven using Equations 2 to 16 that, based on the measurement results of the first quantum circuit, the quadratic term x of the independent variable x in the expression for U can be obtained. T gradient of Mx
[0038] Please refer to Equations 2 and 3. The state of a qubit after being controlled by a parametric pseudo-circuit can be represented by the circuit parameters of that parametric pseudo-circuit. This parametric pseudo-circuit consists of multiple rotating Pauli-Y gates and one CNOT gate.
[0039]
[0040] in, U(θ) represents the possible states of n qubits after being controlled by a parametric pseudo-circuit. U(θ) represents the parametric pseudo-circuit in matrix form, where θ represents the gate parameter of the rotating Pauli-Y gate in the parametric pseudo-circuit.
[0041]
[0042] Among them, f i (θ1, …, θ)m Let θ1, ..., θ2 represent a parametric hypothetical subcircuit in functional form. m represents the number of rotating Pauli-Y gates in the parametric hypothetical subcircuit. m This represents the gate parameters of each rotating Pauli-Y gate in the parameterized sub-circuit.
[0043] Please refer to Equation 4. The expression for differentiating the state of a qubit after being controlled by a parametric pseudo-circuit with respect to the gate parameter of the k-th rotating Pauli-Y gate in the parametric pseudo-circuit is as follows:
[0044]
[0045] To execute the first subtask using the first quantum circuit, the first quantum circuit can be used to drive the qubit to evolve to a specified state over time. Then, a measurement is performed on the specified qubit in the specified state, and the measurement result of the specified qubit represents the quadratic term x of the independent variable x in the expression of U. T The gradient of Mx. Specifically, the first quantum circuit may include a simulated circuit unit, which may include two parametric simulated sub-circuits with the same circuit structure and circuit parameters. The probability of each state that a quantum bit may be in after being controlled by any parametric simulated sub-circuit can characterize the weight vector x.
[0046] Please refer to Equations 5 and 6. When the states of qubits controlled by two parametric pseudo-circuits are identical, they can be characterized by the states of the qubits controlled by the two parametric pseudo-circuits.
[0047] x = f i 2 (θ1, …, θ) m ) Formula 5
[0048]
[0049] Therefore, with the help of auxiliary qubits, the evolution of qubits controlled by two parametric pseudo-circuits, the comparator qubit controlled by a quantum comparator unit, and the auxiliary qubit to a specified state can be driven. Referring to Equations 7 to 11, the states of multiple qubits in a specified state can be represented by the following formulas:
[0050]
[0051] (f i f i )′ k =f i (θ1, …, θ) m )·f i (θ1, ..., π+θ) k, …, θ m ) Formula 8
[0052] (f i f j )′ k =f i (θ1, …, θ) m )·f j (θ1, ..., π+θ) k , …, θ m ) Formula 9
[0053] f i f i =f i (θ1, …, θ) m )·f i (θ1, …, θ) k , …, θ m ) Formula 10
[0054] f i f j =f i (θ1, …, θ) m )·f j (θ1, …, θ) k , …, θ m ) Formula 11
[0055] Where |anc> represents an auxiliary qubit. Let represent qubits controlled by two parametric pseudo-circuits. |com> represents comparator qubits controlled by a quantum comparator unit, where i = 0 indicates that the qubits controlled by the two parametric pseudo-circuits are in the same state, corresponding to a comparator qubit state of |1>, and i ≠ j indicates that the qubits controlled by the two parametric pseudo-circuits are in different states, corresponding to a comparator qubit state of |0>. A′ represents the matrix obtained by taking the square root of each element in matrix A.
[0056] Please refer to Equations 12 and 13. Measure the states of the comparator qubit and the auxiliary qubit, and calculate the difference in probabilities when the auxiliary qubit is in the |1> state and the comparator qubit is in the |1> state and the |0> state, respectively.
[0057]
[0058] Where, a′ (i,j) Represents the matrix elements of matrix A′.
[0059] Let cir_x k ()=p(|01>)-p(|11>), then
[0060]
[0061] Among them, A′ ×2 This represents the matrix obtained by squaring each element of matrix A′.
[0062] Let x be the quadratic term x of the independent variable x in the expression for U expressed by the above probability difference. T The gradient of Mx can be obtained by taking the matrix M′ as a function cir_x. k The input to the function is (), where M′ is the matrix obtained by taking the square root of each element in the covariance matrix M. However, the function cir_x k () does not have linear properties with respect to the input matrix, therefore, Hamiltonian decomposition of the covariance matrix M is required.
[0063] Please refer to Equations 14 to 16. Since the covariance matrix M is a real symmetric matrix, no Y quantum gate will appear during the Hamiltonian decomposition process; only the conversion between the Z quantum gate and the S quantum gate is required.
[0064]
[0065] Where α represents the weight coefficients of each matrix in the Hamiltonian decomposition process, I represents the identity matrix, Z represents the matrix corresponding to the Z quantum gate, and X represents the matrix corresponding to the X quantum gate. Represents the matrix tensor product.
[0066]
[0067]
[0068] Where S represents the matrix corresponding to the S quantum gate.
[0069] Please see Figure 3 Similar to the first quantum circuit, for the second quantum circuit, it can be proven using Equations 17 to 19 that, based on the measurement results of the second quantum circuit, the linear term μ of the independent variable x in the expression for U can be obtained. T gradient of x
[0070]
[0071]
[0072]
[0073] The meanings of the symbols in Formulas 17 to 19 are the same as those of the same symbols in Formulas 1 to 16. They will not be repeated here.
[0074] The above description is merely a scenario example provided in this specification and is not intended to limit the invention. The data processing method for the data processing task provided in this specification can also be applied to solve other problems involving combining multiple specified resources to obtain a target combination result data. For example, the Traveling Salesman Problem, which combines multiple paths to obtain a target path combination result data that passes through all specified locations and has the shortest total distance; and the Production Scheduling Problem, which combines multiple machine tool man-hours to obtain a target machine tool man-hour combination result data that processes all parts and has the shortest total man-hour. Any modifications or equivalent substitutions made within the spirit and principles of this invention should be included within the scope of protection of this invention.
[0075] Please see Figure 1 One embodiment of this specification provides a data processing system for a data processing task. This data processing system can be implemented using a quantum computing system. The quantum computing system may include basic computing units and quantum computing units.
[0076] A basic computing unit can be an electronic device with a certain level of computing and display capabilities. Specifically, for example, a basic computing unit can include desktop computers, tablets, laptops, smartphones, smart TVs, and smart wearable devices equipped with displays. A basic computing unit may include a network communication module, a processor, and memory.
[0077] In some implementations, the basic computing unit can act as a client. Alternatively, the basic computing unit can be deployed with client software. The basic computing unit can send specified data or data computation tasks to the quantum computing unit for computation, receive the quantum computation results from the quantum computing unit, and process and display the quantum computation results from the quantum computing unit.
[0078] Based on existing computer architecture, the basic computing unit may also include servers or workstations. The server can be a distributed server, or a system with multiple processors, memory, network communication modules, etc., operating collaboratively. Alternatively, the server can be a server cluster formed by several servers. The basic computing unit can process the quantum computation results fed back by the quantum computing unit through the server or workstation, and then send the processing results to the client for display.
[0079] A quantum computing unit can be a device that utilizes the properties of quantum mechanics to achieve quantum computing. Specifically, a quantum computing unit can use the quantum states of qubits as data carriers, and drive the evolution of qubits based on the principle of linear superposition of quantum states to achieve a specified computation process. For example, a quantum computing unit can be a superconducting qubit control circuit based on ultra-low temperature technology. Alternatively, a quantum computing unit can be a qubit control circuit built using quantum well technology. Of course, a quantum computing unit can also be an integrated optical quantum chip, etc.
[0080] The basic computing unit and the quantum computing unit can communicate with each other. For example, they can communicate via a wired connection. Alternatively, they can communicate wirelessly via a network communication module.
[0081] Please see Figure 4 One embodiment of this specification provides a method for processing a data processing task. This method can be applied to quantum computing systems. The method may include the following steps.
[0082] Step S110: Receive a data processing task; wherein the data processing task is used to combine multiple specified resources to obtain target combined result data.
[0083] In some cases, the received data processing tasks are complex, making it difficult to construct a quantum circuit that can directly execute the task, or the computational complexity of such a circuit would be too high. In such cases, the data processing task can be decomposed into multiple sub-tasks according to its processing rules to simplify the construction of the quantum circuit or reduce its computational complexity.
[0084] In this embodiment, the task parameters of the data processing task may include the data processing object and the data processing rules. Specifically, for example, the data processing object may be the combined result data that the data processing task targets, and the data processing rules may include the operation rules for the data processing object and the constraints that need to be satisfied during the operation.
[0085] In this embodiment, the data processing task may include a first subtask and a second subtask. The first subtask can be used to process the combined result data according to a first operational rule. The second subtask can be used to process the combined result data according to a second operational rule different from the first operational rule. Specifically, the first and second operational rules may include rule expression data. For example, if the operational rule of the data processing task can be a polynomial function with the combined result data as the independent variable, then the rule expression data included in the first and second operational rules can be expressions containing different terms of the independent variable in the polynomial function.
[0086] In some implementations, the first and second operation rules may further include operation constraints. Specifically, the operation constraints may represent the constraints that need to be satisfied during the execution of the first subtask and the second subtask. The operation constraints included in the first and second operation rules may be the same or different.
[0087] In this embodiment, the designated resource can be a virtual resource. Specifically, for example, the designated resource can be an asset, computing resources, etc. In some embodiments, the designated resource can also be a physical resource. Specifically, for example, the designated resource can be a machine tool, production line, logistics route, etc.
[0088] In this embodiment, the target combination result data can be combination result data that satisfies specified conditions, determined according to the operation rules of the data processing task. Specifically, for example, if the operation rule of the data processing task is a polynomial function with the combination result data as the independent variable, the target combination result data can be the combination result data corresponding to the maximum or minimum value of the polynomial function.
[0089] In this embodiment, when the designated resource is an asset, the data processing task can be used to combine multiple assets to obtain the asset combination result data with the optimal investment return-risk assessment. When the designated resource is a computing resource, the data processing task can be used to combine multiple computing resources to obtain the computing resource combination result data with the optimal processing speed-computing resource utilization assessment. When the designated resource is a machine tool, the data processing task can be used to combine multiple machine tools to obtain the machine tool combination result data with the shortest total working time required to complete part processing. When the designated resource is a production line, the data processing task can be used to combine multiple production lines to obtain the production line combination result data with the shortest production cycle time. When the designated resource is a logistics path, the data processing task can be used to combine multiple logistics paths to obtain the logistics path combination result data with the shortest total logistics distance passing through all logistics nodes.
[0090] In this embodiment, receiving a data processing task can be achieved by directly receiving a data processing task that has been decomposed into a first subtask and a second subtask. Specifically, for example, a data processing task data packet composed of a first subtask data packet and a second subtask data packet can be directly received.
[0091] In some implementations, receiving a data processing task can be done by receiving a complete data processing task and then decomposing it into a first subtask and a second subtask according to the data processing rules of the task. Specifically, for example, the received complete data can be input into a pre-trained task decomposition model, and the model's output can be used as the first and second subtasks. Different data processing rules can correspond to different task decomposition models.
[0092] In this embodiment, the quantum computing system can act as a client to directly receive data processing tasks input by the user. In some embodiments, the quantum computing system can also act as a server to receive data processing tasks transmitted from the client or other servers. This specification does not impose specific limitations on the data source for the data processing tasks.
[0093] Step S120: Construct a first quantum circuit for performing a first subtask according to the first operation rule; and construct a second quantum circuit for performing a second subtask according to the second operation rule.
[0094] In this embodiment, after the task decomposition of the data processing task is completed, quantum circuits can be constructed according to the operation rules corresponding to each sub-task, so as to execute each sub-task using the quantum circuits. Then, the task execution results of each sub-task are obtained according to the measurement results of each quantum circuit. The task execution results of the data processing task are obtained by processing the task execution results of each sub-task, thereby improving the processing speed of the data processing task.
[0095] In this embodiment, both the first quantum circuit and the second quantum circuit may include a proposed circuit unit. The proposed circuit unit may be a quantum circuit unit composed of at least two quantum circuits with known circuit structures and variable circuit parameters. Since the circuit structure of the proposed circuit unit is known, the circuit structures of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit may be identical. Furthermore, the initial circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit may be the same preset values.
[0096] In this embodiment, a first quantum circuit for executing the first subtask is constructed according to the first operational rules. A quantum program executable by the quantum computing unit can be directly written according to the first operational rules and sent to the quantum computing unit for execution. Specifically, for example, the rule expression data and the initial values of the data processing object included in the first operational rules can be used as the initial parameters of the quantum program, and the operational constraints included in the first operational rules can be used as the running conditions of the quantum program to write the quantum program.
[0097] In this embodiment, the process of constructing the second quantum circuit for executing the second sub-task using the second operation rule is basically the same as the process of constructing the first quantum circuit, and will not be described again here.
[0098] Step S130: If the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the circuit parameters of the proposed circuit units included in the second quantum circuit simultaneously according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The target combination result data is characterized by the measurement results of the qubits after being controlled by the proposed circuit units.
[0099] In this embodiment, after constructing the first quantum circuit and the second quantum circuit, the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit can be adjusted simultaneously until the measurement results of the first quantum circuit and the measurement results of the second quantum circuit meet the specified conditions. In this case, the target combination result data can be characterized by the measurement results of the qubits after being controlled by the proposed circuit units, thereby realizing the direct characterization of the target data of the data processing task using the measurement results of the quantum circuit, reducing the computational load of the basic computing unit.
[0100] In this embodiment, the specified conditions can be direct limiting conditions for the measurement results of the quantum circuit. Specifically, for example, the specified conditions can be numerical conditions that the measurement results of the first quantum circuit and the measurement results of the second quantum circuit need to satisfy. The numerical conditions that the measurement results of the first quantum circuit need to satisfy and the numerical conditions that the measurement results of the second quantum circuit need to satisfy can be the same or different.
[0101] In some implementations, after obtaining the measurement results of the quantum circuit, data processing can be performed on the measurement results to obtain the computational results of the quantum circuit. In this case, the specified conditions can also be limiting conditions for the computational results of the quantum circuit. Specifically, for example, the specified conditions can be numerical conditions that the computational results of the first quantum circuit and the computational results of the second quantum circuit need to satisfy. The numerical conditions that the computational results of the first quantum circuit need to satisfy and the numerical conditions that the computational results of the second quantum circuit need to satisfy can be the same or different.
[0102] In some implementations, after obtaining the computation results of the quantum circuits, further data processing can be performed on the computation results of each quantum circuit to obtain the computation results of the quantum computing unit. In this case, the specified conditions can also be limiting conditions for the computation results of the quantum computing unit.
[0103] In this embodiment, the specified adjustment rule can be a preset adjustment rule. Specifically, for example, the specified adjustment rule can be to adjust the circuit parameters each time according to a preset fixed step size. Since the circuit parameters of the proposed circuit unit can be represented by the rotation angle of the quantum bit relative to the ground state, the preset fixed step size can be 1°.
[0104] In some implementations, the specified adjustment rule can also be a historical adjustment rule. Specifically, for example, when there is a large gap between the measurement result of the quantum circuit and the specified conditions, a larger adjustment step size can be set; when the measurement result of the quantum circuit is closer to the specified conditions, a larger or smaller adjustment step size can be set.
[0105] In this embodiment, after adjusting the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit simultaneously according to the same specified adjustment rules each time, the circuit parameters of the proposed circuit included in the first quantum circuit and the proposed circuit units included in the second quantum circuit are identical. Since the initial circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit are also identical, the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit remain the same.
[0106] In the embodiments of this specification, by decomposing the data processing task of combining multiple resources to obtain the target combined result data into a first subtask and a second subtask, constructing a first quantum circuit for the first subtask and a second quantum circuit for the second subtask, and simultaneously adjusting the circuit parameters of the two quantum circuits according to the same specified adjustment rules when the measurement results of the two quantum circuits do not meet the specified conditions, until the measurement results of the two quantum circuits meet the specified conditions, the target combined result data can be characterized by the measurement results of the qubits controlled by the proposed circuit unit included in any quantum circuit. This realizes the direct characterization of the target data of the data processing task using the measurement results of the quantum circuit, reducing the amount of computation of the basic computing unit during the execution of the data processing task. When only a small amount of computation needs to be processed, the computational performance of the basic computing unit and the quantum computing unit can be balanced to a certain extent, thereby eliminating the computing power bottleneck of the basic computing unit to a certain extent and improving the processing speed of the data processing task.
[0107] In some embodiments, the proposed circuit unit may include two identical parametric proposed sub-circuits; both the first quantum circuit and the second quantum circuit may further include a quantum comparator unit; wherein, the quantum comparator unit may be used to screen a specified quantum state; the specified quantum state may be used to indicate that the states of multiple qubits after being controlled by the two identical parametric proposed sub-circuits are the same.
[0108] In this embodiment, the parametric pseudo-circuit can be a quantum circuit with a known circuit structure and variable circuit parameters. Specifically, for example, the parametric pseudo-circuit can consist of multiple rotating Pauli gates and one CNOT gate. The gate types of the multiple rotating Pauli gates can be all the same, partially the same, or completely different.
[0109] In this embodiment, the identical parametric simulated sub-circuits can be parametric simulated sub-circuits with the same number of controllable qubits, circuit structure, and circuit parameters. Specifically, for example, the initial circuit parameters of two parametric simulated sub-circuits can be the same. Each time the circuit parameters of the simulated circuit unit are adjusted, the circuit parameters of the two parametric simulated sub-circuits included in the simulated circuit unit can be adjusted simultaneously according to the same specified adjustment rule. Therefore, the circuit parameters of the two parametric simulated sub-circuits remain the same.
[0110] In this embodiment, the quantum comparator unit may include a quantum comparator and a C-NOT gate controlled by the quantum comparator. Specifically, for example, when the quantum comparator determines that the states of multiple qubits after being controlled by two identical parametric pseudo-sub-circuits are the same, the C-NOT gate can control the comparator qubits.
[0111] Since the proposed circuit unit includes two identical parametric proposed sub-circuits, a quantum comparator is used to select the specified quantum states that represent the same state of multiple qubits after being controlled by the two identical parametric proposed sub-circuits. Then, operations are performed on the multiple qubits in the specified quantum states, which speeds up the adjustment of the circuit parameters of the parametric proposed sub-circuits and provides a basis for the subsequent evolution of the qubits.
[0112] In some embodiments, the first quantum circuit may further include Hamiltonian matrix units; the Hamiltonian matrix units may include two Hamiltonian matrix sub-units corresponding to the two identical parametric simulation sub-circuits, respectively.
[0113] In adjusting the parameters of a parametric pseudo-circuit using gradient descent, computational complexity is a key factor affecting the adjustment speed. In related technologies, the quantum circuit used to calculate the gradient has high computational complexity, resulting in slow parameter adjustment. Therefore, after a quantum comparator selects a specified quantum state, multiple qubits in that state can be driven to continue evolving along the quantum circuit to perform Hamiltonian decomposition. This reduces the computational complexity of the quantum circuit used to calculate the gradient and accelerates the parameter adjustment speed of the parametric pseudo-circuit.
[0114] In this embodiment, the Hamiltonian matrix unit can be used for Hamiltonian decomposition. Specifically, for example, the Hamiltonian matrix unit can be controlled by auxiliary qubits used for measurement.
[0115] In some embodiments, the second quantum circuit may further include a Born machine unit; the Born machine unit may include two Born machine sub-units corresponding to the two identical parametric simulation sub-circuits, respectively.
[0116] Because the second operational rule used to construct the second quantum circuit differs from the first operational rule used to construct the first quantum circuit, the circuit structure of the second quantum circuit is different from that of the first quantum circuit. However, to enhance the reusability of quantum circuits and reduce the difficulty of constructing them, the circuit structure of the first quantum circuit can be slightly modified. In the second quantum circuit, existing Born machine units can be used to replace the Hamiltonian matrix units in the first quantum circuit, and constraints controlled by auxiliary qubits used for measurement can be added to the proposed circuit units.
[0117] In this embodiment, the Born machine unit can be controlled by auxiliary qubits used for measurement.
[0118] In some implementations, if the measurement results of the first quantum circuit and the second quantum circuit do not meet specified conditions, the circuit parameters of the proposed circuit units included in the first quantum circuit and the circuit parameters of the proposed circuit units included in the second quantum circuit are simultaneously adjusted according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet specified conditions. The step of characterizing the target combination result data through the measurement results of the qubits controlled by the proposed circuit units may include: measuring the first qubit controlled by the first quantum circuit to obtain the measurement result of the first quantum circuit; wherein the number of the first qubits is less than the total number of qubits controlled by the first quantum circuit; and measuring the first qubits controlled by the proposed circuit units. The second qubit controlled by the two quantum circuits is measured to obtain the measurement result of the second quantum circuit; wherein the number of the second qubits is less than the total number of qubits controlled by the second quantum circuit; the measurement results of the first quantum circuit and the measurement results of the second quantum circuit are processed according to the specified processing rules to obtain the quantum operation result; if the quantum operation result does not meet the specified threshold condition, the circuit parameters of two identical parameterized sub-circuits in the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit are adjusted simultaneously according to the specified step size until the quantum operation result meets the specified threshold condition, and the target combination result data is characterized by the measurement result of all qubits controlled by any parameterized sub-circuit in the proposed circuit unit.
[0119] In some cases, obtaining measurement results from a quantum circuit requires measuring all the qubits controlled by the quantum circuit. To reduce the number of qubits required to obtain measurement results, only a subset of the qubits controlled by the quantum circuit can be measured, thereby improving measurement efficiency.
[0120] In this embodiment, the first qubit may include a comparator qubit controlled by a quantum comparator and an auxiliary qubit for measurement. The measurement result of the first quantum circuit can be the measurement result of the auxiliary qubit and the comparator qubit. Specifically, for example, the measurement result of the first quantum circuit can be the probability that the auxiliary qubit and the comparator qubit are in the |01> state and the probability that the auxiliary qubit and the comparator qubit are in the |11> state.
[0121] In this embodiment, the measurement results of the second qubit and the second quantum circuit are basically the same as those of the first qubit and the first quantum circuit, and will not be described again here.
[0122] In this embodiment, the specified processing rules may include a first processing rule and a second processing rule. Specifically, the first processing rule can be used to preprocess the measurement results of a quantum circuit to obtain the circuit operation result. For example, the first processing rule can be to perform a difference operation on the two probabilities included in the measurement results of a quantum circuit. The second processing rule can be used to further process the two circuit operation results to obtain the quantum operation result. For example, the second processing rule can be to perform a sum operation on the two circuit operation results obtained after processing according to the first processing rule.
[0123] In this embodiment, the quantum computation result can represent the task processing result obtained by the quantum circuit performing the data processing task. Specifically, the task processing result can be the target data of the data processing task, or it can be the intermediate data generated in the process of obtaining the target data of the data processing task. For example, if the data processing task is to combine multiple assets to obtain the portfolio result data when the return-risk assessment of the portfolio is optimal, the quantum computation result can represent the gradient of the portfolio return-risk assessment utility function.
[0124] In this embodiment, the specified threshold condition may include a specified numerical condition and a specified precision condition. Specifically, for example, in the case where the data processing task is to combine multiple assets to obtain the portfolio result data when the return-risk assessment of the portfolio is optimal, the specified threshold condition may be that the quantum operation result equals a specified numerical value while satisfying a specified precision condition. For example, a specified precision condition of 10... -3 Taking a specified numerical condition of 0 as an example, when the result of the quantum operation is 0.0009, it can be considered that the result of the quantum operation is equal to 0, that is, the result of the quantum operation satisfies the specified threshold condition.
[0125] Please see Figure 5 One embodiment of this specification provides a method for processing a data processing task. This method can be applied to a basic computing unit. The method may include the following steps.
[0126] Step S210: Receive a data processing task; wherein the data processing task is used to combine multiple specified resources to obtain target combined result data; the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule.
[0127] Step S220: Generate initial data for a first circuit according to the first operation rule, and generate initial data for a second circuit according to the second operation rule; and send the initial data for the first circuit and the initial data for the second circuit to a quantum computing unit belonging to the same quantum computing system, so that the quantum computing unit can construct a first quantum circuit for executing a first sub-task based on the initial data for the first circuit, and construct a second quantum circuit for executing a second sub-task based on the initial data for the second circuit; wherein, both the first quantum circuit and the second quantum circuit include proposed circuit units; the circuit structure and circuit parameters of the proposed circuit units included in the first quantum circuit and the second quantum circuit are the same; the circuit parameters of the proposed circuit units are variable.
[0128] In this embodiment, the initial data for the first circuit may include the initial circuit parameters of the proposed circuit units of the first quantum circuit. The initial data for the second circuit may include the initial circuit parameters of the proposed circuit units of the second quantum circuit. The two initial circuit parameters may be the same.
[0129] Step S230: If the measurement results of the first quantum circuit and the second quantum circuit sent by the quantum computing unit do not meet the specified conditions, determine the first circuit adjustment data and the second circuit adjustment data according to the specified adjustment rules; and send the first circuit adjustment data and the second circuit adjustment data to the quantum computing unit so that the quantum computing unit can simultaneously adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the circuit parameters of the proposed circuit units included in the second quantum circuit according to the same specified adjustment rules, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions.
[0130] Step S240: Receive the measurement results of the qubits controlled by the proposed circuit unit sent by the quantum computing unit, and characterize the target combination result data through the measurement results of the qubits.
[0131] In the embodiments described in this specification, the data processing task for combining multiple resources to obtain the target combined result data is decomposed into a first subtask and a second subtask. Initial data for constructing a first quantum circuit is generated for the first subtask, and initial data for constructing a second quantum circuit is generated for the second subtask. Both initial data are sent to the quantum computing unit. If the measurement results of the two quantum circuits do not meet specified conditions, first and second line adjustment data are determined according to the same specified adjustment rules for simultaneously adjusting the circuit parameters of the two quantum circuits. These two line adjustment data are then sent to the quantum computing unit until the measurement results of the two quantum circuits meet the specified conditions. Thus, the target combined result data can be characterized by the measurement results of the qubits controlled by the proposed circuit unit included in any quantum circuit. This achieves the direct characterization of the target data of the data processing task using the measurement results of the quantum circuits, reducing the computational load of the basic computing unit during the execution of the data processing task. With only a small amount of computation required, the computational performance of the basic computing unit and the quantum computing unit can be balanced to a certain extent, thereby eliminating the computational bottleneck of the basic computing unit to a certain extent and improving the processing speed of the data processing task.
[0132] Please see Figure 6 One embodiment of this specification provides a method for processing a data processing task. This method can be applied to a quantum computing unit. The method may include the following steps.
[0133] Step S310: Receive the first line initial data and the second line initial data sent by the basic computing unit belonging to the same quantum computing system; wherein, the first line initial data is generated according to the first operation rule; and the second line initial data is generated according to the second operation rule.
[0134] Step S320: Construct a first quantum circuit for executing a first subtask based on the initial data of the first circuit; and construct a second quantum circuit for executing a second subtask based on the initial data of the second circuit; wherein both the first quantum circuit and the second quantum circuit include proposed circuit units; the circuit structures and circuit parameters of the proposed circuit units included in the first quantum circuit and the second quantum circuit are the same; the circuit parameters of the proposed circuit units are variable; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule; the first subtask and the second subtask belong to the same data processing task; the data processing task is used to combine multiple specified resources to obtain target combined result data.
[0135] Step S330: If the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, send the measurement results of the first quantum circuit and the second quantum circuit to the basic computing unit; and simultaneously adjust the circuit parameters of the proposed circuit unit according to the first circuit adjustment data and the second circuit adjustment data sent by the basic computing unit according to the same specified adjustment rules, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions.
[0136] Step S340: Measure the qubit controlled by the proposed circuit unit, and send the measurement result of the qubit to the basic computing unit so that the basic computing unit can characterize the target combination result data through the measurement result of the qubit.
[0137] In the embodiments described in this specification, by receiving initial data from the first and second lines sent by the basic computing unit, a first quantum line for executing a first sub-task and a second quantum line for executing a second sub-task are constructed based on the initial data. Measurements are then performed on the two quantum lines. If the measurement results of the two quantum lines do not meet specified conditions, the line parameters of the proposed line units included in the two quantum lines are simultaneously adjusted according to the same specified adjustment rules based on the first and second line adjustment data sent by the basic computing unit until the measurement results of the two quantum lines meet the specified conditions. Thus, the target combination result data can be characterized by the measurement results of the qubits controlled by the proposed line units included in any quantum line. This achieves the direct characterization of the target data of the data processing task using the measurement results of the quantum lines, reducing the computational load of the basic computing unit during the execution of the data processing task. With only a small amount of computation required, the computational performance of the basic computing unit and the quantum computing unit can be balanced to a certain extent, thereby eliminating the computational bottleneck of the basic computing unit to a certain extent and improving the processing speed of the data processing task.
[0138] Please see Figure 7 One embodiment of this specification provides a processing apparatus for a data processing task. The apparatus may include a receiving module, a building module, and an adjusting module.
[0139] The receiving module can receive data processing tasks; wherein the data processing tasks are used to combine multiple specified resources to obtain target combined result data; wherein the data processing tasks include a first subtask and a second subtask; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule.
[0140] The construction module can be used to construct a first quantum circuit for executing a first sub-task according to the first operation rule; and to construct a second quantum circuit for executing a second sub-task according to the second operation rule; wherein the first quantum circuit and the second quantum circuit both include proposed circuit units; the circuit structure and circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit are the same; the circuit parameters of the proposed circuit units are variable.
[0141] The adjustment module can be used to simultaneously adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit according to the same specified adjustment rules when the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The measurement results of the qubits after being controlled by the proposed circuit units characterize the target combination result data.
[0142] The specific functions and effects of the data processing device can be explained by referring to other embodiments in this specification, and will not be repeated here. Each module in the data processing device can be implemented entirely or partially through software, hardware, or a combination thereof. Each module can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0143] Please see Figure 8 This specification also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement a processing method for a data processing task as described in any of the above embodiments. The computer device may be a classical computer. The computer device may also be a quantum computer.
[0144] The computer device may include a processor connected to a system bus, a non-volatile storage medium, internal memory, a communication interface, and an input device. The non-volatile storage medium may store an operating system and related computer program instructions.
[0145] This specification also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, causes the computer to perform a processing method for a data processing task in any of the above embodiments.
[0146] This specification also provides a computer program product containing instructions that, when executed by a computer, cause the computer to perform a data processing method for any of the data processing tasks described above.
[0147] It is understood that the specific examples in this specification are only intended to help those skilled in the art better understand the implementation methods described herein, and are not intended to limit the scope of the invention.
[0148] It is understood that in the various embodiments of this specification, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not limit the implementation process of the embodiments of this specification in any way.
[0149] It is understood that the various implementation methods described in this specification can be implemented individually or in combination, and the implementation methods in this specification are not limited in this respect.
[0150] Unless otherwise stated, all technical and scientific terms used in the embodiments of this specification have the same meaning as commonly understood by one of ordinary skill in the art. The terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the scope of this specification. The term "and / or" as used in this specification includes any and all combinations of one or more of the associated listed items. The singular forms "a," "the," and "the" as used in the embodiments of this specification and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.
[0151] It is understood that the processor in the embodiments of this specification can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiments can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this specification. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this specification can be directly implemented by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above methods.
[0152] It is understood that the memory in the embodiments of this specification may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM). It should be noted that the memory in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0153] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this specification.
[0154] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the aforementioned method implementations, and will not be repeated here.
[0155] In the several embodiments provided in this specification, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.
[0156] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0157] In addition, the functional units in the various embodiments of this specification can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0158] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of this specification, in essence, or the parts that contribute to the prior art, or parts of the technical solutions, can be embodied in the form of software products. These computer software products are stored in a storage medium and include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this specification. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0159] The above description is merely a specific embodiment of this specification, but the scope of protection of this invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this specification should be included within the scope of protection of this specification. Therefore, the scope of protection of this invention should be determined by the scope of the claims.
Claims
1. A method for processing a data processing task, characterized in that, Applied to quantum computing systems; the method includes: A data processing task is received; wherein the data processing task is used to combine multiple specified resources to obtain target combined result data; the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule; A first quantum circuit for executing a first subtask is constructed according to the first operational rule; and a second quantum circuit for executing a second subtask is constructed according to the second operational rule; wherein both the first and second quantum circuits include simulated circuit units; the simulated circuit units included in the first and second quantum circuits have the same circuit structure and circuit parameters; the circuit parameters of the simulated circuit units are variable; each simulated circuit unit includes two identical parametric simulated sub-circuits; both the first and second quantum circuits also include quantum comparator units; wherein the quantum comparator units are used to select a specified quantum state; the specified quantum state is used to indicate that the states of multiple qubits after being controlled by the two identical parametric simulated sub-circuits are the same; the first quantum circuit also includes a Hamiltonian matrix unit; the Hamiltonian matrix unit includes two Hamiltonian matrix sub-units corresponding to the two identical parametric simulated sub-circuits respectively; the second quantum circuit also includes a Born machine unit; the Born machine unit includes two Born machine sub-units corresponding to the two identical parametric simulated sub-circuits respectively. If the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, the circuit parameters of the proposed circuit units included in the first quantum circuit and the circuit parameters of the proposed circuit units included in the second quantum circuit are adjusted simultaneously according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The target combination result data is characterized by the measurement result of the quantum bit after being controlled by any parameterized proposed sub-circuit in the proposed circuit unit.
2. The method according to claim 1, characterized in that, If the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, the circuit parameters of the proposed circuit units included in the first quantum circuit and the circuit parameters of the proposed circuit units included in the second quantum circuit are simultaneously adjusted according to the same specified adjustment rules until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The step of characterizing the target combination result data by the measurement results of the qubits after being controlled by the proposed circuit units includes: The first qubit controlled by the first quantum circuit is measured to obtain the measurement result of the first quantum circuit; wherein the number of the first qubit is less than the total number of qubits controlled by the first quantum circuit. The second qubit controlled by the second quantum circuit is measured to obtain the measurement result of the second quantum circuit; wherein the number of the second qubit is less than the total number of qubits controlled by the second quantum circuit. The measurement results of the first quantum circuit and the measurement results of the second quantum circuit are processed according to the specified processing rules to obtain the quantum operation results; If the quantum operation result does not meet the specified threshold condition, the circuit parameters of two identical parametric sub-circuits in the proposed circuit units of the first quantum circuit and the proposed circuit units of the second quantum circuit are adjusted simultaneously according to a specified step size until the quantum operation result meets the specified threshold condition. The target combination result data is characterized by the measurement results of all qubits controlled by any parametric sub-circuit in the proposed circuit unit.
3. A method for processing a data processing task, characterized in that, Applied to basic computing units; the method includes: A data processing task is received; wherein the data processing task is used to combine multiple specified resources to obtain target combined result data; the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule; First line initial data is generated according to the first operation rule, and second line initial data is generated according to the second operation rule; and the first line initial data and the second line initial data are sent to a quantum computing unit belonging to the same quantum computing system, so that the quantum computing unit can construct a first quantum circuit for executing a first sub-task based on the first line initial data, and construct a second quantum circuit for executing a second sub-task based on the second line initial data; wherein, both the first quantum circuit and the second quantum circuit include a proposed circuit unit; the circuit structure and circuit parameters of the proposed circuit units included in the first quantum circuit and the second quantum circuit are the same; the proposed circuit units... The circuit parameters of the circuit unit are variable; the proposed circuit unit includes two identical parametric proposed sub-circuits; both the first quantum circuit and the second quantum circuit further include a quantum comparator unit; wherein, the quantum comparator unit is used to screen a specified quantum state; the specified quantum state is used to indicate that the states of multiple qubits after being controlled by the two identical parametric proposed sub-circuits are the same; the first quantum circuit further includes a Hamiltonian matrix unit; the Hamiltonian matrix unit includes two Hamiltonian matrix sub-units corresponding to the two identical parametric proposed sub-circuits respectively; the second quantum circuit further includes a Born machine unit; the Born machine unit includes two Born machine sub-units corresponding to the two identical parametric proposed sub-circuits respectively; If the measurement results of the first quantum circuit and the second quantum circuit sent by the quantum computing unit do not meet the specified conditions, the first circuit adjustment data and the second circuit adjustment data are determined according to the specified adjustment rules; and the first circuit adjustment data and the second circuit adjustment data are sent to the quantum computing unit so that the quantum computing unit can simultaneously adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the circuit parameters of the proposed circuit units included in the second quantum circuit according to the same specified adjustment rules, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The measurement results of the qubit controlled by any parameter-controlled sub-circuit in the proposed circuit unit are received from the quantum computing unit, and the target combination result data are characterized by the measurement results of the qubit.
4. A method for processing a data processing task, characterized in that, Applied to quantum computing units; the method includes: The system receives initial data from a first line and initial data from a second line sent by a basic computing unit belonging to the same quantum computing system; wherein the initial data from the first line is generated according to a first operation rule; and the initial data from the second line is generated according to a second operation rule. A first quantum circuit for executing a first subtask is constructed based on the initial data of the first circuit; and a second quantum circuit for executing a second subtask is constructed based on the initial data of the second circuit; wherein both the first and second quantum circuits include simulated circuit units; the simulated circuit units included in the first and second quantum circuits have the same circuit structure and circuit parameters; the circuit parameters of the simulated circuit units are variable; each simulated circuit unit includes two identical simulated sub-circuits with parameters; both the first and second quantum circuits further include a quantum comparator unit; wherein the quantum comparator unit is used to select a specified quantum state; the specified quantum state is used to represent the state obtained by passing through the two identical simulated sub-circuits respectively. The first quantum circuit, after being manipulated by a parametrically simulated sub-circuit, exhibits the same state for multiple qubits. The first quantum circuit further includes Hamiltonian matrix units, each comprising two Hamiltonian matrix sub-units corresponding to the two identical parametrically simulated sub-circuits. The second quantum circuit also includes a Born machine unit, each comprising two Born machine sub-units corresponding to the two identical parametrically simulated sub-circuits. The first subtask processes the combined result data according to a first operational rule. The second subtask processes the combined result data according to a second operational rule different from the first operational rule. The first and second subtasks belong to the same data processing task. The data processing task combines multiple specified resources to obtain the target combined result data. If the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, the measurement results of the first quantum circuit and the second quantum circuit are sent to the basic computing unit; and the circuit parameters of the proposed circuit unit are simultaneously adjusted according to the first circuit adjustment data and the second circuit adjustment data sent by the basic computing unit in accordance with the same specified adjustment rules, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The qubit controlled by any parameter-controlled sub-circuit in the proposed circuit unit is measured, and the measurement result of the qubit is sent to the basic computing unit so that the basic computing unit can characterize the target combination result data through the measurement result of the qubit.
5. A processing apparatus for a data processing task, characterized in that, Applied to quantum computing systems; the device includes: A receiving module is used to receive a data processing task; wherein the data processing task is used to combine multiple specified resources to obtain a target combined result data; wherein the data processing task includes a first subtask and a second subtask; the first subtask is used to process the combined result data according to a first operation rule; the second subtask is used to process the combined result data according to a second operation rule different from the first operation rule; A construction module is configured to construct a first quantum circuit for executing a first sub-task according to the first operational rule; and to construct a second quantum circuit for executing a second sub-task according to the second operational rule; wherein both the first and second quantum circuits include simulated circuit units; the simulated circuit units included in the first and second quantum circuits have the same circuit structure and circuit parameters; the circuit parameters of the simulated circuit units are variable; each simulated circuit unit includes two identical parametric simulated sub-circuits; both the first and second quantum circuits further include quantum comparator units; wherein the quantum comparator units are used to select a specified quantum state; the specified quantum state is used to indicate that the states of multiple qubits after being controlled by the two identical parametric simulated sub-circuits are the same; the first quantum circuit further includes a Hamiltonian matrix unit; the Hamiltonian matrix unit includes two Hamiltonian matrix sub-units corresponding to the two identical parametric simulated sub-circuits respectively; the second quantum circuit further includes a Born machine unit; the Born machine unit includes two Born machine sub-units corresponding to the two identical parametric simulated sub-circuits respectively. An adjustment module is used to simultaneously adjust the circuit parameters of the proposed circuit units included in the first quantum circuit and the proposed circuit units included in the second quantum circuit according to the same specified adjustment rules when the measurement results of the first quantum circuit and the second quantum circuit do not meet the specified conditions, until the measurement results of the first quantum circuit and the second quantum circuit meet the specified conditions. The target combination result data is characterized by the measurement result of the quantum bit after being controlled by any parameterized proposed sub-circuit in the proposed circuit unit.
6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 4.
Citation Information
Patent Citations
Quantum computing task processing method and system and computer equipment
CN114037082A
Method and device for simulating energy of target system based on quantum calculation and medium
CN114492814A