Quantum circuit construction method and device, equipment and storage medium

By adjusting the initial proposed unit and the parameters of the proposed unit to make it suitable for quantum circuit construction, the problem of low quantum circuit construction efficiency in the existing technology is solved, and more efficient quantum circuit construction and data processing are achieved.

CN118690860APending Publication Date: 2024-09-24ORIGIN QUANTUM COMPUTING TECH (HEFEI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310303649.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-24
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

In the existing technology, the construction efficiency of quantum circuits is low and is limited by the complexity of the proposed unit, which results in complex parameter adjustment during the construction process and affects efficiency.

Method used

By using the initial first proposed unit and the initial second proposed unit to construct an initial quantum circuit, multiple qubits in designated quantum states are controlled, and parameters are adjusted to make the target data matrix comply with the value constraints to form a quantum circuit.

Benefits of technology

The number of quantum circuit parameters is reduced, the speed of quantum circuit construction is increased, the structure and parameters of the proposed unit are simplified, and the efficiency of data processing tasks is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690860A
    Figure CN118690860A
Patent Text Reader

Abstract

The embodiment of the invention provides a quantum circuit construction method and device, equipment and a storage medium. The method comprises the following steps: regulating and controlling a plurality of quantum bits in a specified quantum state according to an initial quantum circuit comprising an initial first configuration unit and an initial second configuration unit to obtain an initial measurement result of the quantum state of the regulated and controlled quantum bits; the initial first configuration unit and the initial second configuration unit have the same structure and parameter and respectively act on different quantum bits in the plurality of quantum bits; under the condition that a matrix numerical value of a specified position in an initial target data matrix represented by the initial measurement result does not meet a value constraint condition, adjusting parameters of the initial first simulation unit and the initial second simulation unit until the initial target data matrix meets the value constraint condition to obtain a first simulation unit and a second simulation unit; and forming a quantum circuit. Through the first simulation unit and the second simulation unit which have the same parameters and structures, the construction rate of the quantum circuit can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments in this specification relate to the field of data processing, and specifically to a method, device, equipment and storage medium for constructing a quantum circuit. Background Art

[0002] With the continuous development of quantum computing technology, more and more data processing tasks are assigned to quantum computing systems for processing. For example, for the data generation task of generating a diagonal matrix corresponding to a real symmetric data matrix, it can be processed by a quantum computing system according to a specified quantum circuit. Among them, the specified quantum circuit can be constructed by a simulation. Specifically, through the difference between the input and the target output of the quantum circuit, the parameters of the simulation can be adjusted until the difference meets the specified conditions, and the specified quantum circuit can be obtained.

[0003] However, in the prior art, due to the complexity of the quantum circuit design, the efficiency of quantum circuit construction may be low. Summary of the invention

[0004] In view of this, multiple embodiments of this specification are dedicated to providing a method for processing data processing tasks and a method for processing data generation tasks, so as to improve the efficiency of quantum circuit construction to a certain extent.

[0005] One embodiment of the present specification provides a method for constructing a quantum circuit, which is applied to a quantum computing system, wherein the quantum circuit is used to regulate multiple quantum bits in a specified quantum state to obtain a measurement result representing a target data matrix; the specified quantum state represents a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified position in the target data matrix meet the value constraint condition; the method comprises: regulating multiple quantum bits in the specified quantum state according to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit to obtain an initial measurement result of the quantum state of the regulated quantum bits; wherein the initial first proposed unit and the initial second proposed unit have the same structure and parameters, and act on different quantum bits in the multiple quantum bits respectively; when the matrix values ​​at the specified position in the initial target data matrix represented by the initial measurement result do not meet the value constraint condition, adjusting the parameters of the initial first proposed unit and the initial second proposed unit until the matrix values ​​at the specified position in the initial target data matrix meet the value constraint condition, obtaining the first proposed unit and the second proposed unit, so as to form the quantum circuit.

[0006] One embodiment of the present specification provides a method for processing a data processing task, which is applied to a quantum computing unit, wherein the data processing task is used to control a plurality of quantum bits in a specified quantum state; the specified quantum state represents a real symmetric data matrix; the method comprises: controlling the plurality of quantum bits in a specified quantum state according to a quantum circuit comprising a first proposed unit and a second proposed unit, and obtaining a measurement result of the quantum state of the controlled quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits in the plurality of quantum bits respectively; wherein the measurement result is used to generate a target data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraint conditions.

[0007] One embodiment of the present specification provides a method for processing a data generation task, which is applied to a basic computing unit, wherein the data generation task is used to generate a target data matrix based on a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at specified positions in the target data matrix meet the value constraint conditions; the method includes: quantum state encoding the real symmetric data matrix to obtain quantum state data representing specified quantum states of multiple quantum bits; providing the quantum state data to a quantum computing unit, so that the quantum computing unit controls the multiple quantum bits in the specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtains measurement results of the quantum states of the controlled quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; and generating the target data matrix according to the measurement results fed back by the quantum computing unit.

[0008] The embodiment of the present specification proposes a device for constructing a quantum circuit, wherein the quantum circuit is used to control a plurality of quantum bits in a specified quantum state to obtain a measurement result representing a target data matrix; the specified quantum state represents a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified position in the target data matrix meet the value constraint condition; the device comprises: a quantum state control module, used to control a plurality of quantum bits in the specified quantum state according to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit, to obtain an initial measurement result of the quantum state of the controlled quantum bit; wherein the initial first proposed unit and the initial second proposed unit have the same structure and parameters, and act on different quantum bits in the plurality of quantum bits respectively; a parameter adjustment module, used to adjust the parameters of the initial first proposed unit and the initial second proposed unit when the matrix values ​​at the specified position in the initial target data matrix represented by the initial measurement result do not meet the value constraint condition, so that the matrix values ​​at the specified position in the initial target data matrix meet the value constraint condition, and obtain the first proposed unit and the second proposed unit to form the quantum circuit.

[0009] One embodiment of the present specification provides a processing device for a data processing task, wherein the data processing task is used to control a plurality of quantum bits in a specified quantum state; the specified quantum state represents a real symmetric data matrix; the device comprises: a quantum state control module, used to control the plurality of quantum bits in a specified quantum state according to a quantum circuit comprising a first proposed unit and a second proposed unit, and obtain a measurement result of the quantum state of the controlled quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the plurality of quantum bits respectively; wherein the measurement result is used to generate a target data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraint conditions.

[0010] The implementation mode of this specification proposes a processing device for a data generation task, characterized in that the data generation task is used to generate a target data matrix based on a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraint conditions; the device includes: an encoding module, used to perform quantum state encoding on the real symmetric data matrix to obtain quantum state data representing the specified quantum state of multiple quantum bits; a providing module, used to provide the quantum state data to a quantum computing unit, and the quantum computing unit controls the multiple quantum bits in the specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtains the measurement results of the quantum states of the controlled quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; a generating module, used to generate the target data matrix according to the measurement results fed back by the quantum computing unit.

[0011] The embodiments of this specification provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the method described in the above embodiments when executing the computer program.

[0012] The embodiments of this specification provide a computer-readable storage medium having computer program instructions stored thereon. When the program is executed by a processor, the method described in the above embodiments is implemented.

[0013] The multiple implementation methods provided in this specification use the initial quantum circuit constructed by the initial first proposed unit and the initial second proposed unit to regulate multiple quantum bits in the quantum state representing the real symmetric data matrix to measure and obtain the measurement result representing the initial target data matrix. In the case where the matrix value at the specified position in the initial target data matrix represented by the initial measurement result does not meet the value constraint condition, the parameters of the initial first proposed unit and the initial second proposed unit can be adjusted until the matrix value at the specified position in the initial target data matrix meets the value constraint condition, and the first proposed unit and the second proposed unit are obtained to form the quantum circuit. Among them, there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix value at the specified position in the target data matrix meets the value constraint condition, and the results and parameters of the first proposed unit and the second proposed unit are the same, and they act on different quantum bits in the multiple quantum bits respectively, so that the number of parameters of the quantum circuit can be reduced to a certain extent, and the speed of quantum circuit construction can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1A schematic diagram of a quantum computing system provided for one embodiment of the present specification.

[0015] Figure 2 A schematic diagram of an initial quantum circuit provided for one embodiment of this specification.

[0016] Figure 3 A schematic diagram of a process for constructing a quantum circuit provided for one embodiment of this specification.

[0017] Figure 4 A flowchart of a method for processing a data processing task provided for one embodiment of the present specification.

[0018] Figure 5 A flowchart of a method for processing a data generation task provided in accordance with one embodiment of the present specification.

[0019] Figure 6 A schematic diagram of a device for constructing a quantum circuit provided for one embodiment of the present specification.

[0020] Figure 7 A schematic diagram of a processing device for a data processing task provided for one embodiment of the present specification.

[0021] Figure 8 A schematic diagram of a processing device for a data generation task provided for one embodiment of the present specification.

[0022] Fig. 9 A schematic diagram of a computer device is provided for one embodiment of the present specification. DETAILED DESCRIPTION

[0023] Overview

[0024] In related technologies, a quantum computing system can process specified data. Specifically, the quantum computing system can indicate the data processing method through quantum circuits, and control the quantum states of multiple quantum bits according to the quantum circuits, so as to obtain the data processing results based on the measurement results of the quantum states of the controlled quantum bits.

[0025] In the related art, a quantum circuit can be formed by a pseudo-unit. By evolving the parameters in the pseudo-unit, the relationship between the quantum states corresponding to the data to be processed and the target output data can be determined. Specifically, for example, for the task of diagonalizing a real symmetric data matrix, the pseudo-unit can learn the relationship between the quantum state representing the real symmetric data matrix and the quantum state represented by the diagonal matrix representing the target output, thereby diagonalizing the real symmetric data matrix. Therefore, the structure of the pseudo-unit and the number of parameters of the pseudo-unit have a certain influence on the speed of constructing the quantum circuit.

[0026] Therefore, it is necessary to provide a method for constructing a quantum circuit, by using an initial quantum circuit constructed by an initial first proposed unit and an initial second proposed unit to regulate multiple quantum bits in a quantum state representing a real symmetric data matrix, so as to measure and obtain a measurement result representing an initial target data matrix. In the case where the matrix value at a specified position in the initial target data matrix represented by the initial measurement result does not meet the value constraint condition, the parameters of the initial first proposed unit and the initial second proposed unit can be adjusted until the matrix value at a specified position in the initial target data matrix meets the value constraint condition, and the first proposed unit and the second proposed unit are obtained to form the quantum circuit. Among them, there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix value at a specified position in the target data matrix meets the value constraint condition, and the results and parameters of the first proposed unit and the second proposed unit are the same, and they act on different quantum bits in the multiple quantum bits respectively, so that the number of parameters of the quantum circuit can be reduced to a certain extent, and the speed of quantum circuit construction can be improved.

[0027] System Architecture

[0028] See also Figure 1 The embodiments of this specification provide a system for constructing a quantum circuit. The system for constructing a quantum circuit can be implemented by a quantum computing system. The quantum computing system can include a basic computing unit and a quantum computing unit.

[0029] The basic computing unit may be an electronic device with certain computing and processing capabilities. Specifically, for example, the basic computing unit may include a desktop computer, a tablet computer, a laptop computer, a smart phone, a smart TV, and a smart wearable device. The basic computing unit may have a network communication module, a processor, and a memory.

[0030] A quantum computing unit can be a device that uses the characteristics of quantum mechanics to realize quantum computing. Specifically, the quantum computing unit can use the quantum state of the quantum bit as a data carrier and realize data processing based on the linear superposition principle of the quantum state. For example, the quantum computing unit can be a superconducting quantum bit control circuit realized based on ultra-low temperature technology. Alternatively, the quantum computing unit can be a quantum bit control circuit built by quantum well technology. Of course, the quantum computing unit can also be an optical quantum integrated chip, etc.

[0031] The basic computing unit and the quantum computing unit can communicate with each other. For example, the basic computing unit and the quantum computing unit can communicate with each other through a wired connection. Alternatively, the basic computing unit and the quantum computing unit can communicate wirelessly through a network communication module.

[0032] Based on the existing computer architecture, the basic computing unit may include a server and a workstation. The server may be a distributed server, which may be a system with multiple processors, memories, network communication modules, etc. operating in coordination. Alternatively, the server may also be a server cluster formed by several servers.

[0033] In some embodiments, the basic computing unit may be a middleware server for allocating designated computing tasks to quantum computing units for processing.

[0034] In some embodiments, the basic computing unit can also serve as a client. Alternatively, the basic computing unit can be deployed with client software. The basic computing unit can send a specified computing task to the quantum computing unit for processing, and receive the processing result of the computing task fed back by the quantum computing unit.

[0035] In some embodiments, the basic computing unit and the quantum computing unit may form a server together. The basic computing unit may communicate with a client or other server to receive computing tasks provided by the client or other server and send them to the quantum computing unit for processing.

[0036] Example scenario

[0037] The embodiments of this specification provide a scenario example of a quantum circuit construction system. The quantum circuit construction system can be implemented by a quantum computing system. A user may hope that the quantum circuit constructed by the quantum circuit construction system can realize data processing of an input real symmetric data matrix to obtain a diagonal matrix formed by the eigenvalues ​​of the real symmetric data matrix.

[0038] The basic computing unit of the quantum computing system can receive a 4th-order real symmetric data matrix input by a user, and an instruction to diagonalize the real symmetric data matrix. The basic computing unit can perform quantum state encoding on 16 matrix values ​​in the 4th-order real symmetric data matrix according to amplitude coding to obtain quantum state data representing a specified quantum state. Then, the basic computing unit can provide the quantum state data to the quantum computing unit of the quantum computing system.

[0039] The quantum computing unit can excite the four quantum bits in the ground state to the specified quantum state according to the received quantum state data. Then, the quantum computing unit can regulate the quantum bits in the specified quantum state according to the pre-set initial quantum circuit to obtain the initial measurement result. Figure 2The initial quantum circuit may include an initial first proposed unit and an initial second proposed unit. The initial first proposed unit and the initial second proposed unit have the same structure and parameters, and act on two different quantum bits among the four quantum bits respectively. Further, the quantum computing unit may send the initial measurement result of the quantum bit to the basic computing unit.

[0040] The basic computing unit can determine the initial target data matrix represented by the initial measurement result. In addition, for the instruction to diagonalize the real symmetric data matrix, the basic computing unit can also calculate the difference between the matrix values ​​on the non-diagonal line in the initial target data matrix and the value 0, and generate adjustment values ​​for the parameters of the initial first proposed unit and the initial second proposed unit according to the difference.

[0041] Then, the basic computing unit can send the adjustment value to the quantum computing unit, and the quantum computing unit can regulate the quantum states of multiple quantum bits according to the initial first proposed unit and the initial second proposed unit after parameter adjustment, and provide the measurement results of the quantum circuit after parameter adjustment to the basic computing unit.

[0042] When the difference between the matrix values ​​on the non-diagonal lines of the initial target data matrix represented by the measurement result and the value 0 meets the value constraint condition, the basic computing unit can confirm the initial target data matrix as the target data matrix representing the diagonal matrix, and confirm the initial quantum circuit including the initial first proposed unit and the initial second proposed unit as the constructed quantum circuit including the first proposed unit and the second proposed unit. The values ​​on the diagonal lines of the target data matrix can represent the eigenvalues ​​of the real symmetric data matrix. The matrices corresponding to the first proposed unit and the second proposed unit can represent the eigenvectors of the real symmetric data matrix.

[0043] The above is only an example scenario provided in this specification and is not intended to limit the present invention. Any modifications, equivalent substitutions, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0044] Example Method

[0045] See also Figure 3One embodiment of the present specification provides a method for constructing a quantum circuit. The method for constructing a quantum circuit can be applied to a quantum computing system. The quantum circuit can be used to regulate a plurality of quantum bits in a specified quantum state to obtain a measurement result representing a target data matrix. The specified quantum state can represent a real symmetric data matrix. There can be a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix can meet the value constraints. The method for constructing a quantum circuit can include the following steps.

[0046] Step S110: According to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit, multiple quantum bits in the specified quantum state are regulated to obtain initial measurement results of the quantum state of the regulated quantum bits; wherein the initial first proposed unit and the initial second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively.

[0047] In some cases, the construction of quantum circuits can be achieved through the proposed units. However, in some data processing tasks, the parameters and structures of the proposed units may be more complex. Specifically, for example, in the related art, for the data processing task of decomposing a real symmetric data matrix into multiple data matrices, multiple data matrices can be divided into a target data matrix determined by the measurement results of the quantum circuit and a decomposed data matrix represented by the proposed units. Among them, different decomposed data matrices need to be provided with different proposed units, and the parameters of the corresponding proposed units are further adjusted to obtain the target data matrix whose matrix values ​​at the specified position meet the value constraints. For example, for the quantum singular value decomposition (QSVD) algorithm, the structures and parameters of different proposed units are different. Therefore, the related art may cause the construction process of the quantum circuit to require more proposed parameters to be adjusted and the proposed structure to be more complex, resulting in a low construction rate of the quantum circuit.

[0048] Therefore, in the data processing task for data processing of a real symmetric data matrix in this embodiment, an initial target data matrix can be generated according to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit, and further, when the matrix value of the initial target data matrix does not meet the value constraint condition, the parameters of the initial first proposed unit and the initial second proposed unit are adjusted until the initial target data matrix meets the value constraint condition of the target data matrix, and the initial first proposed unit and the initial second proposed unit can be determined as the first proposed unit and the second proposed unit. Accordingly, the corresponding initial quantum circuit is used as the constructed quantum circuit. Among them, the parameters and structures of the initial first proposed unit and the initial second proposed unit are the same. During the construction of the initial quantum circuit, the number of parameters of the quantum circuit that need to be adjusted will also be small, which can improve the speed of quantum circuit construction to a certain extent.

[0049] In this embodiment, the method for constructing a quantum circuit can also be expressed as a method for training a quantum circuit. Since this embodiment adopts the technical means of sharing parameters and structures of different proposed units, it is possible to improve the training rate of the quantum circuit.

[0050] In this embodiment, the real symmetric data matrix can represent the input data of the data generation task. The real symmetric data matrix can be represented as the input of the quantum circuit through quantum state encoding. In some embodiments, the real symmetric data matrix can be obtained by changing the non-real symmetric data matrix. For example, the non-real symmetric matrix can be converted by formula 1.

[0051]

[0052] Among them, C D It can represent the transformed real symmetric data matrix. D represents the transformed matrix.

[0053] In this embodiment, the target data matrix may have a linear transformation relationship with the real symmetric data matrix. Specifically, the target data matrix may be a diagonal matrix obtained by matrix decomposition of the real symmetric data matrix. Alternatively, the target data matrix may also be a Jordan canonical matrix decomposed from the real symmetric data matrix.

[0054] In the present embodiment, the matrix value of the target data matrix meets the value constraint.The type of the target data matrix is ​​different, and the value constraint may also be different.Therefore, for unused data processing tasks or data generation tasks, different value constraints may be adopted.Specifically, for example, when the target data matrix is ​​a diagonal matrix, the value constraint may limit the value of the matrix value on the off-diagonal line in the target data matrix to be close to 0 or equal to 0.When the target data matrix is ​​a Jordan standard matrix, the value constraint may also include limiting the matrix value of the position corresponding to the Jordan standard matrix in the target data matrix that has a value of 0, limiting the conditions such as the matrix value on the secondary diagonal is identical.In some embodiments, the value constraint may also include that the sum of the matrix values ​​of the target data matrix is ​​1.

[0055] In this embodiment, the specified quantum state can characterize a real symmetric data matrix. Specifically, the specified quantum state can be obtained by quantum state encoding the matrix values ​​of the real symmetric data matrix. Among them, the matrix values ​​of the real symmetric data matrix can be represented by the probability values ​​of different superposition states of multiple quantum bits. Correspondingly, the probability values ​​of different superposition states in the measurement results of the quantum bits can also represent the initial target data matrix or the target data matrix. In some embodiments, the quantum state encoding can be amplitude encoding. Accordingly, when the number of rows and columns of the real symmetric data matrix is ​​not an exponent of 2, rows and columns can be added to the real symmetric data matrix. For example, rows and columns with values ​​of 0 can be added so that the number of rows and columns of the real symmetric data matrix conforms to the exponent of 2. In some embodiments, the initial quantum circuit can be a part of a quantum circuit. Correspondingly, the specified quantum state can also be obtained by regulating multiple quantum bits based on the part of the quantum circuit that is ahead in time in the quantum circuit.

[0056] In this embodiment, the initial first proposed unit and the initial second proposed unit can represent the proposed units in the initial quantum circuit. When the target data matrix represented by the measurement results of multiple quantum bits after the initial quantum circuit is regulated meets the value constraint, the initial quantum circuit including the initial first proposed unit and the initial second proposed unit can be determined as a quantum circuit including the first proposed unit and the second proposed unit. Among them, the structure and parameters of the initial first proposed unit and the initial second proposed unit can be the same, and they act on different quantum bits in the multiple quantum bits respectively. Correspondingly, the structure and parameters of the first proposed unit and the second proposed unit in the constructed quantum circuit are also the same. In some embodiments, there can be relative independence between the initial first proposed unit and the initial second proposed unit. That is, there is no direct quantum circuit connection relationship between the initial first proposed unit and the initial second proposed unit.

[0057] In this embodiment, the initial measurement result can represent the initial target data matrix. The probability values ​​of different superposition states of multiple quantum bits in the initial measurement result can represent the matrix values ​​of the initial target data matrix. The initial measurement result can be measured by methods such as the Monte Carlo method.

[0058] Step S120: When the matrix values ​​at the specified positions in the initial target data matrix represented by the initial measurement results do not meet the value constraints, adjust the parameters of the initial first proposed unit and the initial second proposed unit until the matrix values ​​at the specified positions in the initial target data matrix meet the value constraints, and obtain the first proposed unit and the second proposed unit to form the quantum circuit.

[0059] In some cases, for different real symmetric data matrices, the initial quantum circuit can adjust the parameters of the initial first proposed unit and the initial second proposed unit so that the initial target data matrix represented by the initial measurement result of the initial quantum circuit can meet the value constraint condition, so that the initial first proposed unit and the initial second proposed unit of the corresponding parameters can be determined as the first proposed unit and the second proposed unit to form the quantum circuit. And, the corresponding initial target data matrix can be used as the target data matrix. By constructing an initial quantum circuit formed by the initial first proposed unit and the initial second proposed unit with the same structure and parameters, the parameters of the quantum circuit that need to be adjusted can be reduced, and the speed of quantum circuit construction can be improved to a certain extent.

[0060] In this embodiment, when the matrix value at the specified position in the initial target data matrix represented by the initial measurement result does not meet the value constraint, the parameters of the initial first proposed unit and the initial second proposed unit are adjusted until the matrix value at the specified position in the initial target data matrix meets the value constraint. The method for obtaining the first proposed unit and the second proposed unit can be to optimize the parameters of the initial first proposed unit and the initial second proposed unit by a quantum variation algorithm. Of course, other optimization algorithms can also be used. In some embodiments, during the cyclic iteration process, the parameters can be adjusted according to the difference between the initial measurement result of the initial quantum circuit and the value constraint and the specified optimizer through the collaboration of the quantum computing unit and the basic computing unit. Specifically, for example, in the case of processing a real symmetric data matrix to obtain a diagonal matrix, the difference between the matrix value on the non-main diagonal line in the initial target data matrix represented by the initial measurement result and the value 0 can be combined with the gradient descent algorithm to construct a corresponding loss function to further adjust the parameters of the initial first proposed unit and the initial second proposed unit, so that the loss output of the loss function meets the requirement of being less than the specified threshold.

[0061] In some embodiments, the constructed quantum circuit can also be used in different data processing tasks. For example, the constructed quantum circuit can be applied to principal component analysis. In some embodiments, the constructed quantum circuit can also be used as a part of a quantum circuit.

[0062] In this embodiment, through the quantum circuit of the first proposed unit and the second proposed unit with the same parameters and the same structure, the specified data processing of the real symmetric data matrix can be realized. Specifically, the quantum circuit can learn the linear change relationship between the real symmetric data matrix and the target data matrix associated with the real symmetric data matrix. For example, the quantum circuit can calculate the target data matrix in multiple matrices after decomposing the real symmetric data matrix. Among them, the target data matrix can be a diagonal matrix formed by the eigenvalues ​​of the real symmetric data matrix.

[0063] Specifically, through the following derivation process, it can be proved that the quantum circuit constructed by the first proposed unit and the second proposed unit with the same parameters and the same structure in this embodiment can generate a target data matrix that has a linear change relationship with the real symmetric data matrix and the matrix values ​​meet the value constraints.

[0064] Specifically, the target formula for the proof can refer to Formula 2:

[0065] A is an m*n matrix. B is a k*l matrix. M is an n*k matrix. m and n are the number of rows and columns of A matrix. k and l are the number of rows and columns of B matrix. n and k are the number of rows and columns of M matrix. Specifically, A can be written as m×n =(a ij ) m×n , B k×l =(b ij ) k×l , M n × k =(m ij ) n×k .in, It can represent the Kronecker product of the matrix. Among them, the flatten function can represent the vectorization operation of the input matrix. Specifically, the operation of the flatten function can be represented by formula 3.

[0066] flatten:A m×n =(a ij ) m×n →[a 11 , a 12 , ..., a 1n , a 21 , a 22, ..., a 2n , ..., a m1 , a m2 , ..., a mn ] T Formula 3

[0067] Furthermore, Formula 4 and Formula 5 can be obtained.

[0068]

[0069]

[0070] Further, The wl+t row in the matrix represented by can be expressed by formula 6:

[0071] [a w+1,1 b 1,t , a w+1,1 b 2,t , ..., a w+1,1 b k,t , a w+1,2 b 1,t , a w+1,2 b 2,t , ..., aw +1,2 b k, t, ..., a w+1, n b 1,t , a w+1,n b 2,t , ..., a w+1,n b k,t ] Formula 6

[0072] Among them, 1≤t≤n.

[0073] Correspondingly, flatten(M) can be expressed by Formula 7.

[0074] flatten(M)=[m 11 , m 12 , ..., m 1k , m 21 , m 22 , ..., m 2k , m n1 , m n2 , ..., m nk ] Formula 7

[0075] therefore, The wl+tth element in can be expressed by Formula 8.

[0076]

[0077] Therefore, Formula 2 can be proved.

[0078] Furthermore, for an n-order real symmetric matrix C, it can satisfy C = C T At the same time, there exists an orthogonal matrix P that can diagonalize the real symmetric matrix C. Therefore, the real symmetric matrix C and the orthogonal matrix P can satisfy Formula 9.

[0079] P -1 C P =P T C P =Λ=diag(λ1,λ2,...,λ n ) Formula 9

[0080] Where P = (p ij ) n*n , C=(c ij ) n*n .

[0081] Furthermore, we can set C′=[c 11 , c 12 , ..., C 1n , c 21 , c 22 , ..., c 2n , ..., c n1 , c n2 , ..., c nn ] T At the same time, we can let Λ′=[λ1,0,...,0,0,λ2,...,0,...,0,0,...,λ n ] T Combining with formula 2, we can get formula 10.

[0082]

[0083] In formula 10, Λ′ can represent a one-dimensional vector of the diagonal matrix of the real symmetric data matrix C. Therefore, by The diagonal matrix of the real symmetric data matrix C, i.e. the target data matrix, can be determined. Therefore, based on formula 10, the quantum circuit can achieve After completing part of the calculation process, the quantum computing system can generate the target data matrix. middle, P on the left and right of the symbol T Therefore, P can be realized by the same proposed unit T Corresponding linear transformation. That is, two corresponding P TThe structure and parameters of the proposed assumptions can be consistent. At the same time, performing corresponding proposed operations on different quantum bits can be considered as performing the Kronecker product operation of the matrices corresponding to different assumptions on the quantum bits. Therefore, by constructing a first proposed unit and a second proposed unit with the same parameters and the same structure, it can be realized Partial operation. At the same time, part C′ can also be formed by quantum state encoding of the real symmetric data matrix C. Thus, by constructing a quantum circuit including a first proposed unit and a second proposed unit, and the parameters and structures of the first proposed unit and the second proposed unit are the same, and the first proposed unit and the second proposed unit act on different quantum bits respectively, it is possible to process multiple quantum bits in a specified quantum state representing the real symmetric data matrix, and obtain measurement results representing the target data matrix. At the same time, it is precisely because of the use of the first proposed unit and the second proposed unit with the same parameters and structure that the rate of quantum circuit construction and the rate of generating the target data matrix through the real symmetric data matrix can be improved. Among them, the initial first proposed unit and the initial second proposed unit can also have the ability to realize the above-mentioned data generation task.

[0084] In some embodiments, the first proposed unit and the second proposed unit represent multiple eigenvectors of the real symmetric data matrix, and the target data matrix is ​​a diagonal matrix formed by eigenvalues ​​of the real symmetric data matrix.

[0085] In some cases, in the quantum circuit that has been constructed, the first proposed unit and the second proposed unit can respectively represent a linear transformation matrix of a linear transformation operation performed on a real symmetric data matrix. Specifically, when the target data matrix is ​​a diagonal matrix formed by the eigenvalues ​​of the real symmetric data matrix, the linear transformation matrix represented by the first proposed unit and the second proposed unit can be a matrix formed by the eigenvectors of the real symmetric data matrix.

[0086] In some embodiments, the number of the multiple quantum bits is an even number, and the multiple quantum bits are divided into two quantum bit sets with the same number; wherein the initial first proposed unit and the initial second proposed unit act on quantum bits in different quantum bit sets respectively.

[0087] In some cases, the number of the multiple quantum bits may be an even number. Accordingly, the multiple quantum bits are divided into two quantum bit sets of the same number, and the initial first proposed unit and the initial second proposed unit act on the quantum bits in different quantum bit sets respectively. Specifically, for example, the number of multiple quantum bits may be 4. Among them, the quantum bits numbered 1 and 2 may form a quantum bit set. The quantum bits numbered 3 and 4 may form another quantum bit set. The initial first proposed unit may act on the quantum bits numbered 1 and 2. The initial second proposed unit acts on the quantum bits numbered 3 and 4. Of course, the first proposed unit and the second proposed unit may also act on the quantum bits in different quantum bit sets respectively.

[0088] See also Figure 4 . One embodiment of the present specification provides a method for processing a data processing task. The method for processing the data processing task can be applied to a quantum computing unit. The data processing task can be used to control multiple quantum bits in a specified quantum state. The specified quantum state can represent a real symmetric data matrix. The method for processing the data processing task can include the following steps.

[0089] Step S210: According to a quantum circuit including a first proposed unit and a second proposed unit, the multiple quantum bits in a specified quantum state are regulated to obtain measurement results of the quantum states of the regulated quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; wherein the measurement results are used to generate a target data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraints.

[0090] In some cases, data processing tasks can be used to control multiple quantum bits in a specified quantum state that represents a real symmetric data matrix, and based on the measurement results of the controlled quantum bits, determine a target data matrix that has a linear transformation relationship with the real symmetric data matrix and whose matrix values ​​satisfy the value constraints.

[0091] In this embodiment, the data processing task may represent a task of regulating a plurality of quantum bits representing a specified quantum state.

[0092] In the related art, by constructing a quantum circuit including multiple proposed units, the control process of multiple quantum bits can be realized. However, the complexity of the proposed units of the quantum circuit in the related art is relatively high.

[0093] In the related art, the proposed unit of the quantum circuit may include a quantum logic gate. The quantum logic gate can indicate the control operation on the quantum bit, so that the quantum state of the quantum bit changes. When the operation indicated by the quantum logic gate is executed, the measurement and control subunit of the quantum computing unit needs to apply excitation to the quantum bit for the corresponding quantum logic gate. Therefore, for multiple proposed units with higher complexity, the measurement and control subunit of the quantum computing unit may need to perform more complex excitation operations, thereby affecting the operation rate of the quantum circuit, so that the rate of data processing by the quantum computing system is affected to a certain extent.

[0094] Therefore, according to the quantum circuit formed by the first proposed unit and the second proposed unit with the same structure and parameters, the multiple quantum bits in the specified quantum state can be regulated to obtain the measurement results of the quantum state of the regulated quantum bits. By setting the parameters and structure of the first proposed unit and the second proposed unit to be the same, the number of types of quantum logic gates that the measurement and control subunit needs to operate can be reduced to a certain extent, and the complexity of the measurement and control subunit operation of the quantum computing unit can be reduced to a certain extent, thereby improving the rate at which the quantum computing system regulates the quantum states of multiple quantum bits according to the quantum circuit to a certain extent.

[0095] In some embodiments, a linear transformation matrix can be generated by training the parameters of the first proposed unit and the second proposed unit in the completed quantum circuit. Furthermore, the quantum computing system may wish to store the data of this quantum circuit. Since the parameters and structures of the first proposed unit and the second proposed unit are the same, the storage space can be reduced to a certain extent.

[0096] In some embodiments, the processing method of the data processing task may also include: receiving quantum state data indicating the specified quantum state provided by the basic computing unit; wherein the quantum state data is formed by amplitude encoding the matrix values ​​of the real symmetric data matrix; and exciting the multiple quantum bits to the specified quantum state.

[0097] In some cases, the specified quantum state can be indicated by quantum state data provided by the basic computing unit. The quantum state data can be formed by amplitude encoding the matrix values ​​of the real symmetric data matrix by the basic computing unit. By converting the real symmetric data matrix into a quantum state through amplitude encoding, the amount of data can be reduced to a certain extent. In addition, by performing operations on quantum bits, the rate of data processing on the real symmetric data matrix can be increased.

[0098] See also Figure 5, the embodiment of this specification also provides a method for processing a data generation task. The method for processing the data generation task can be applied to a basic computing unit. The data generation task can be used to generate a target data matrix based on a real symmetric data matrix. There can be a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix can meet the value constraints. The method for processing the data generation task can include the following steps.

[0099] Step S310: performing quantum state encoding on the real symmetric data matrix to obtain quantum state data representing a specified quantum state of a plurality of quantum bits.

[0100] Step S320: providing the quantum state data to a quantum computing unit, so that the quantum computing unit can regulate the multiple quantum bits in a specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtain measurement results of the quantum states of the regulated quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively.

[0101] Step S330: Generate the target data matrix according to the measurement results fed back by the quantum computing unit.

[0102] In this embodiment, the data generation task can generate a target data matrix based on a real symmetric data matrix, which has a linear transformation relationship with the real symmetric data matrix and meets the value constraint conditions.

[0103] In some cases, the basic computing unit can perform more general computing tasks. The quantum computing unit can implement data processing tasks more quickly according to the quantum circuit including the first proposed unit and the second proposed unit to generate a target data matrix. Through the basic computing unit and the quantum computing unit, the data generation task can be implemented more flexibly.

[0104] Example devices, electronic devices, storage media, and software

[0105] See also Figure 6 , the embodiment of this specification provides a device for constructing a quantum circuit. The quantum circuit can be used to control multiple quantum bits in a specified quantum state to obtain a measurement result representing a target data matrix. The specified quantum state can represent a real symmetric data matrix. There can be a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified position in the target data matrix can meet the value constraint conditions. The device for constructing the quantum circuit may include: a quantum state control module and a parameter adjustment module.

[0106] A quantum state control module is used to control multiple quantum bits in the specified quantum state according to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit, so as to obtain an initial measurement result of the quantum state of the quantum bits after control; wherein the initial first proposed unit and the initial second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively.

[0107] A parameter adjustment module is used to adjust the parameters of the initial first proposed unit and the initial second proposed unit when the matrix values ​​at the specified positions in the initial target data matrix represented by the initial measurement result do not meet the value constraint conditions, so that the matrix values ​​at the specified positions in the initial target data matrix meet the value constraint conditions, thereby obtaining the first proposed unit and the second proposed unit to form the quantum circuit.

[0108] See also Figure 7 The embodiment of the specification provides a processing device for a data processing task. The data processing task can be used to control a plurality of quantum bits in a specified quantum state. The specified quantum state can represent a real symmetric data matrix; the processing device for the data processing task can include a quantum state control module.

[0109] A quantum state control module is used to control the multiple quantum bits in a specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtain measurement results of the quantum states of the quantum bits after control; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; wherein the measurement results are used to generate a target data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraints.

[0110] See also Figure 8 , the embodiment of this specification provides a processing device for a data generation task. The data generation task can be used to generate a target data matrix according to a real symmetric data matrix. There can be a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix can meet the value constraint conditions. The processing device for the data generation task may include: an encoding module, a providing module and a generating module.

[0111] The encoding module is used to perform quantum state encoding on the real symmetric data matrix to obtain quantum state data representing the specified quantum state of multiple quantum bits.

[0112] A module is provided, for providing the quantum state data to a quantum computing unit, for the quantum computing unit to regulate the multiple quantum bits in the specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtain a measurement result of the quantum state of the regulated quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively.

[0113] A generation module is used to generate the target data matrix according to the measurement results fed back by the quantum computing unit.

[0114] The specific functions and effects achieved by the construction device of the quantum circuit, the processing device of the data processing task, and the processing device of the data generation task can be explained in reference to other embodiments of this specification, and will not be repeated here. The various modules in the processing device of the weight data can be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0115] See also Fig. 9 The present specification also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and is characterized in that when the processor executes the computer program, it implements the method for constructing a quantum circuit, the method for processing a data processing task, or the method for processing a data generation task in any of the above-mentioned embodiments. The computer device may be a classical computer. The computer device may also be a quantum computer.

[0116] The embodiments of this specification also provide a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a computer, the computer executes the method for constructing a quantum circuit, the method for processing a data processing task, or the method for processing a data generation task in any of the above embodiments.

[0117] The embodiments of this specification also provide a computer program product including instructions, which, when executed by a computer, enables the computer to execute the processing method of the data generation task in any of the above embodiments.

[0118] It should be understood that the specific examples in this specification are only intended to help those skilled in the art to better understand the implementation methods of this specification, rather than to limit the scope of the present invention.

[0119] It can be understood that in the various implementations of this specification, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of this specification.

[0120] It can be understood that the various embodiments described in this specification can be implemented individually or in combination, and the embodiments of this specification are not limited to this.

[0121] Unless otherwise specified, all technical and scientific terms used in the embodiments of this specification have the same meaning as those generally understood by those skilled in the art of the technical field of this specification. The terms used in this specification are only for the purpose of describing specific embodiments and are not intended to limit the scope of this specification. The term "and / or" used in this specification includes any and all combinations of one or more related listed items. The singular forms of "a", "above", and "the" used in the embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.

[0122] It can be understood that the processor of the embodiment of this specification can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method implementation can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiment of this specification can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of this specification can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0123] It is understood that the memory in the embodiments of this specification may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (programmable ROM, PROM), an erasable programmable read-only memory (erasablePROM, EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory may be a random access memory (RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0124] Those skilled in the art will appreciate that the units and algorithm steps of each example 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 performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this specification.

[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method implementation methods and will not be repeated here.

[0126] In the several embodiments provided in this specification, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0127] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0128] In addition, each functional unit in each embodiment of the present specification may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0129] If the functions are implemented in the form of 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 solution of this specification, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of this specification. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0130] The above is only a specific implementation of this specification, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in this specification, which should be included in the protection scope of this specification. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for constructing a quantum circuit, characterized in that: Applied to a quantum computing system, the quantum circuit is used to control a plurality of quantum bits in a specified quantum state to obtain a measurement result representing a target data matrix; the specified quantum state represents a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix value at a specified position in the target data matrix meets the value constraint condition; the method comprises: According to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit, a plurality of quantum bits in the specified quantum state are regulated to obtain an initial measurement result of the quantum state of the regulated quantum bits; wherein the initial first proposed unit and the initial second proposed unit have the same structure and parameters and act on different quantum bits among the plurality of quantum bits respectively; When the matrix values ​​at the specified positions in the initial target data matrix represented by the initial measurement results do not meet the value constraints, the parameters of the initial first proposed unit and the initial second proposed unit are adjusted until the matrix values ​​at the specified positions in the initial target data matrix meet the value constraints, thereby obtaining the first proposed unit and the second proposed unit to form the quantum circuit.

2. The method according to claim 1, characterized in that: The first proposed unit and the second proposed unit represent multiple eigenvectors of the real symmetric data matrix, and the target data matrix is ​​a diagonal matrix formed by eigenvalues ​​of the real symmetric data matrix.

3. The method according to claim 1, characterized in that The number of the multiple quantum bits is an even number, and the multiple quantum bits are divided into two quantum bit sets with the same number; wherein the initial first proposed unit and the initial second proposed unit act on the quantum bits in different quantum bit sets respectively.

4. A method for processing a data processing task, characterized in that: Applied to a quantum computing unit, the data processing task is used to control a plurality of quantum bits in a specified quantum state; The specified quantum state represents a real symmetric data matrix; the method comprises: According to a quantum circuit including a first proposed unit and a second proposed unit, the multiple quantum bits in a specified quantum state are regulated to obtain measurement results of the quantum states of the regulated quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; wherein the measurement results are used to generate a target data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraints.

5. The method according to claim 4, characterized in that The method further comprises: Receiving quantum state data indicating the specified quantum state provided by a basic computing unit; wherein the quantum state data is formed by amplitude encoding the matrix values ​​of the real symmetric data matrix; The plurality of quantum bits are excited to the specified quantum state.

6. A method for processing a data generation task, characterized in that: Applied to a basic computing unit, the data generation task is used to generate a target data matrix according to a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraint conditions; the method comprises: Performing quantum state encoding on the real symmetric data matrix to obtain quantum state data representing a specified quantum state of a plurality of quantum bits; Providing the quantum state data to a quantum computing unit, so that the quantum computing unit regulates the plurality of quantum bits in a specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtains a measurement result of the quantum state of the regulated quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the plurality of quantum bits respectively; The target data matrix is ​​generated according to the measurement results fed back by the quantum computing unit.

7. A device for constructing a quantum circuit, characterized in that: The quantum circuit is used to control a plurality of quantum bits in a specified quantum state to obtain a measurement result representing a target data matrix; the specified quantum state represents a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix value at a specified position in the target data matrix meets the value constraint condition; the device comprises: A quantum state control module, used to control a plurality of quantum bits in the specified quantum state according to an initial quantum circuit including an initial first proposed unit and an initial second proposed unit, and obtain an initial measurement result of the quantum state of the quantum bit after control; wherein the initial first proposed unit and the initial second proposed unit have the same structure and parameters, and act on different quantum bits among the plurality of quantum bits respectively; A parameter adjustment module is used to adjust the parameters of the initial first proposed unit and the initial second proposed unit when the matrix values ​​at the specified positions in the initial target data matrix represented by the initial measurement result do not meet the value constraint conditions, so that the matrix values ​​at the specified positions in the initial target data matrix meet the value constraint conditions, thereby obtaining the first proposed unit and the second proposed unit to form the quantum circuit.

8. A processing device for a data processing task, characterized in that: The data processing task is used to control a plurality of quantum bits in a specified quantum state; The specified quantum state represents a real symmetric data matrix; the device comprises: A quantum state control module is used to control the multiple quantum bits in a specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtain measurement results of the quantum states of the quantum bits after control; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; wherein the measurement results are used to generate a target data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraints.

9. A processing device for a data generation task, characterized in that: The data generation task is used to generate a target data matrix according to a real symmetric data matrix; there is a linear transformation relationship between the target data matrix and the real symmetric data matrix, and the matrix values ​​at the specified positions in the target data matrix meet the value constraint conditions; the device includes: An encoding module, used for performing quantum state encoding on the real symmetric data matrix to obtain quantum state data representing a specified quantum state of a plurality of quantum bits; Providing a module, for providing the quantum state data to a quantum computing unit, for the quantum computing unit to regulate the multiple quantum bits in the specified quantum state according to a quantum circuit including a first proposed unit and a second proposed unit, and obtain a measurement result of the quantum state of the regulated quantum bits; wherein the first proposed unit and the second proposed unit have the same structure and parameters, and act on different quantum bits among the multiple quantum bits respectively; A generation module is used to generate the target data matrix according to the measurement results fed back by the quantum computing unit.

10. 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, the method according to any one of claims 1 to 6 is implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.