Data generation method and device, quantum computing system, medium and electronic device

By constructing quantum circuits using controlled addition and multiplication operations in the quantum computing unit, the problem of low data generation efficiency of GF(2k) is solved and the goal of accelerating the cracking of classical encryption algorithms is achieved.

CN118780378APending Publication Date: 2024-10-15ORIGIN QUANTUM COMPUTING TECH (HEFEI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310324990.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-29
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

It is difficult for existing technology to efficiently generate target data in GF(2k), thereby accelerating the cracking of classic encryption algorithms.

Method used

By using a controlled addition operation and a multiplication operation to construct a quantum circuit in the quantum computing unit, combined with the downward translation operation and the preset depositioner, the finite field multiplication operation of the polynomial is realized, and the target data in GF(2k) is generated.

Benefits of technology

It achieves efficient generation of target data in GF(2k), thereby accelerating the cracking of classic encryption algorithms and improving calculation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780378A_ABST
    Figure CN118780378A_ABST
Patent Text Reader

Abstract

The invention discloses a data generation method and device, a quantum computing system, a medium and an electronic device.According to the data generation method and device, a data generation task is received, and the data generation task is used for generating target data corresponding to input data; constructing a quantum circuit corresponding to the data generation task based on the controlled addition operation and the one-time multiplication operation; the input data and the quantum circuit are sent to a quantum calculation unit, the quantum calculation unit is indicated to excite the quantum bit to an initial quantum state, the quantum bit is driven to start to evolve from the initial quantum state based on the quantum circuit, a measurement result of the quantum bit is obtained, and the initial quantum state comprises a quantum state obtained by encoding the input data; the measurement result sent by the quantum computing unit is received, and the target data corresponding to the input data is determined based on the measurement result, so that efficient generation of the target data in the GF (2k) is realized, and cracking of a classical encryption algorithm is accelerated.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of quantum computing technology, and in particular to a data generation method, device, quantum computing system, medium and electronic device. Background Art

[0002] Quantum computers are physical devices that follow the laws of quantum mechanics to perform high-speed mathematical and logical operations, store and process quantum information. When a device processes and calculates quantum information and runs quantum algorithms, it is a quantum computer. Quantum computers have become a key technology under research because they have the ability to process mathematical problems more efficiently than ordinary computers. For example, they can speed up the time to crack RSA keys from hundreds of years to a few hours.

[0003] Finite field, also known as Galois Field (GF), is a very important concept in many disciplines such as abstract algebra and cryptography. Taking cryptography as an example, the discrete logarithm problem over finite fields is one of the two core difficult problems in the classical public key cryptography system. GF(2 k ) occupies a special position among many finite fields. How to efficiently generate GF(2 k ), thereby accelerating the cracking of classic encryption algorithms. Summary of the invention

[0004] The purpose of the present invention is to provide a data generation method, device, quantum computing system, medium and electronic device, aiming to efficiently generate GF(2 k ), thereby accelerating the cracking of classic encryption algorithms.

[0005] An embodiment of the present invention provides a data generation method, which is applied to a classical computing unit, and the method includes:

[0006] Receive a data generation task, where the data generation task is used to generate target data corresponding to input data;

[0007] Constructing a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0008] Sending the input data and the quantum circuit to a quantum computing unit, instructing the quantum computing unit to excite a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0009] The measurement result sent by the quantum computing unit is received, and target data corresponding to the input data is determined based on the measurement result.

[0010] Optionally, the input data includes two polynomials to be multiplied, and the highest degree of the polynomials is k-1; the two polynomials are respectively encoded with k data bits, and the quantum bits include 2k data bits.

[0011] Optionally, the quantum bit further includes k result bits and 1 auxiliary bit; and constructing the quantum circuit corresponding to the data generation task based on the controlled addition operation and one multiplication operation includes:

[0012] K controlled addition operations and k-1 single multiplication operations are applied alternately to the 2k data bits, 1 auxiliary bit and k result bits to obtain a quantum circuit corresponding to the data generation task.

[0013] Optionally, the controlled addition operation acts on one of the data bits corresponding to one of the polynomials, k of the data bits corresponding to another polynomial, 1 auxiliary bit and k of the result bits, wherein one of the data bits corresponding to one of the polynomials is a control bit of the controlled addition operation.

[0014] Optionally, the multiplication operation acts on 1 auxiliary bit and k result bits.

[0015] Optionally, the method further includes:

[0016] The one multiplication operation is constructed based on a down shift operation, a preset borrower and a CNOT gate.

[0017] Optionally, constructing the multiplication operation based on the downward translation operation, the preset borrower and the CNOT gate includes:

[0018] The downward shift operation and the preset backbiter are sequentially applied to the data bits and auxiliary bits of an arbitrary polynomial, and the CNOT gate is applied to the data bits and the auxiliary bits corresponding to the constant term in the arbitrary polynomial, so as to obtain a multiplication operation, and the data bits corresponding to the constant term in the arbitrary polynomial are used as the control bits in the CNOT gate.

[0019] Another embodiment of the present invention provides a data generation method, which is applied to a quantum computing unit, and the method includes:

[0020] receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0021] Exciting a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0022] The measurement result is sent to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

[0023] Optionally, the input data includes two polynomials to be multiplied, and the highest degree of the polynomials is k-1; the quantum bits include 2k data bits, 1 auxiliary bit and k result bits; and exciting the quantum bits to an initial quantum state includes:

[0024] Excite k of the data bits to a first quantum state corresponding to one of the polynomials, excite another k of the data bits to a second quantum state corresponding to another of the polynomials, and excite 1 of the auxiliary bits and k of the result bits to a ground state.

[0025] Yet another embodiment of the present invention provides a quantum computing system, the quantum computing system comprising a classical computing unit and a quantum computing unit;

[0026] The classical computing unit is used to perform the following steps:

[0027] Receive a data generation task, where the data generation task is used to generate target data corresponding to input data;

[0028] Constructing a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0029] Sending the input data and the quantum circuit to a quantum computing unit, instructing the quantum computing unit to excite a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0030] The measurement result sent by the quantum computing unit is received, and target data corresponding to the input data is determined based on the measurement result.

[0031] The quantum computing unit is used to perform the following steps:

[0032] receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0033] Exciting a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0034] The measurement result is sent to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

[0035] Another embodiment of the present invention provides a data generation device, which is applied to a classical computing unit, and the device includes:

[0036] A receiving unit, used for receiving a data generation task, wherein the data generation task is used for generating target data corresponding to the input data;

[0037] A construction unit, used to construct a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0038] A sending unit, configured to send the input data and the quantum circuit to a quantum computing unit, instruct the quantum computing unit to excite a quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0039] The receiving unit is further used to receive the measurement result sent by the quantum computing unit, and determine the target data corresponding to the input data based on the measurement result.

[0040] Another embodiment of the present invention provides a data generating device, which is applied to a quantum computing unit, and the device includes:

[0041] A receiving unit, used for receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0042] A computing unit, configured to excite a quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0043] A sending unit is used to send the measurement result to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

[0044] Yet another embodiment of the present invention provides a storage medium, wherein the storage medium stores a computer program, wherein the computer program is configured to execute any of the above methods when running.

[0045] Yet another embodiment of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute any of the above methods.

[0046] Compared with the prior art, the present invention provides a data generation method, device, quantum computing system, medium and electronic device, which receive a data generation task, the data generation task is used to generate target data corresponding to input data; construct a quantum circuit corresponding to the data generation task based on a controlled addition operation, a multiplication operation and a transposed conjugate operation of the multiplication operation, the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and an unknown quantity; send the input data and the quantum circuit to a quantum computing unit, instruct the quantum computing unit to excite the quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit, to obtain a measurement result of the quantum bit, the initial quantum state includes a quantum state obtained by encoding the input data; receive the measurement result sent by the quantum computing unit, and determine the target data corresponding to the input data based on the measurement result;

[0047] By combining classical and quantum computing units, GF(2 k ), the classical computing unit focuses on the design of quantum circuits, and the quantum computing unit efficiently executes the quantum circuits. The two work together to achieve GF(2 k), which helps to accelerate the cracking of classic encryption algorithms. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 A network block diagram of a data generation system provided by an embodiment of the present invention;

[0049] Figure 2 A schematic diagram of a flow chart of a data generation method provided by an embodiment of the present invention;

[0050] Figure 3 A GF(2 k )The quantum circuit diagram corresponding to the multiplication operation;

[0051] Figure 4 A quantum circuit diagram corresponding to a multiplication operation provided by an embodiment of the present invention;

[0052] Figure 5 A schematic diagram of the structure of a detent provided by an embodiment of the present invention;

[0053] Figure 6 A schematic diagram of a flow chart of a data generation method provided by an embodiment of the present invention;

[0054] Figure 7 A schematic diagram of the structure of a data generating device provided by an embodiment of the present invention;

[0055] Figure 8 A schematic diagram of the structure of another data generating device provided by an embodiment of the present invention;

[0056] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0057] The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, but should not be construed as limiting the present invention.

[0058] Figure 1 1 is a network block diagram of a data generation system provided by an embodiment of the present invention. The data generation system may include a network 110, a server 120, a wireless device 130, a client 140, a storage 150, a classical computing unit 160, a quantum computing unit 170, and may also include additional memories, classical processors, quantum processors, and other devices not shown.

[0059] The network 110 is a medium for providing communication links between various devices and computers connected together in the data generation system, including but not limited to the Internet, corporate intranets, local area networks, mobile communication networks and combinations thereof. The connection method may be wired, wireless communication links or optical fiber cables, etc.

[0060] The server 120, the wireless device 130 and the client 140 are conventional data processing systems, which may contain data and applications or software tools for performing conventional computing processes. The client 140 may be a personal computer or a network computer, so the data may also be provided by the server 120. The wireless device 130 may be a smart phone, a tablet, a laptop, a smart wearable device, etc. The storage unit 150 may include a database 151, which may be configured to store data such as quantum bit parameters, quantum logic gate parameters, quantum circuits, quantum programs, etc.

[0061] The classical computing unit 160 (quantum computing unit 170) may include a classical processor 161 (quantum processor 171) for processing classical data (quantum data) and a memory 162 (memory 172) for storing classical data (quantum data). The classical data (quantum data) may be a boot file, an operating system image, and an application 163 (application 173). The application 163 (application 173) may be used to implement a quantum algorithm compiled by a data generation method provided in an embodiment of the present invention.

[0062] Any data or information stored or generated in the classical computing unit 160 (quantum computing unit 170) can also be configured to be stored or generated in another classical (quantum) processing system in a similar manner, and any application program executed by it can also be configured to be executed in another classical (quantum) processing system in a similar manner.

[0063] It should be noted that a true quantum computer is a hybrid structure, which includes at least Figure 1 There are two major parts in it: the classical computing unit 160, which is responsible for performing classical computing and control; the quantum computing unit 170, which is responsible for running quantum programs and thus realizing quantum computing.

[0064] The classical computing unit 160 and the quantum computing unit 170 may be integrated into one device or distributed in two different devices. For example, the first device including the classical computing unit 160 runs a classical computer operating system, on which quantum application development tools and services are provided, as well as storage and network services required for quantum applications. Users develop quantum programs through the quantum application development tools and services thereon, and send quantum programs to the second device including the quantum computing unit 170 through the network services thereon. The second device runs a quantum computer operating system, and the code of the quantum program is parsed and compiled into instructions that can be recognized and executed by the quantum processor 170 through the quantum computer operating system. The quantum processor 170 implements the quantum algorithm corresponding to the quantum program according to the instructions.

[0065] The computing unit of the classic processor 161 in the classic computing unit 160 is a CMOS tube based on a silicon chip. This computing unit is not limited by time and coherence, that is, this computing unit is not limited by the length of use and can be used at any time. In addition, in the silicon chip, the number of such computing units is also sufficient. At present, the number of computing units in a classic processor 161 is tens of thousands. The number of computing units is sufficient and the computing logic that can be selected by the CMOS tube is fixed, such as: AND logic. When calculating with the help of CMOS tubes, a large number of CMOS tubes are combined with limited logic functions to achieve the calculation effect.

[0066] The basic computing unit of the quantum processor 171 in the quantum computing unit 170 is a quantum bit, and the input of the quantum bit is limited by coherence and coherence time, that is, the quantum bit is limited by the use time and is not available at any time. Making full use of the quantum bit within the available use time of the quantum bit is a key problem in quantum computing. In addition, the number of quantum bits in a quantum computer is one of the representative indicators of the performance of a quantum computer. Each quantum bit realizes the computing function through the logical function configured on demand. In view of the limited number of quantum bits, the logical functions in the field of quantum computing are diverse, such as: Hadamard gate (Hadamard gate, H gate), Pauli-X gate (X gate), Pauli-Y gate (Y gate) Pauli-Z gate (Z gate), X gate, RY gate, RZ gate, CNOT gate, CR gate, iSWAP gate, Toffoli gate, etc. During quantum computing, it is necessary to use limited quantum bits combined with a variety of logical functions to achieve the computing effect.

[0067] Based on these differences, the design of CMOS tubes by classical logic functions and the design of quantum bits by quantum logic functions are significantly and essentially different. The design of CMOS tubes by classical logic functions does not need to consider the individuality of CMOS tubes. For example, the representation of CMOS tubes in silicon chips is the individual identification, position, and usable life of each CMOS tube. Therefore, the classical algorithm composed of classical logic functions only expresses the operational relationship of the algorithm, but does not express the algorithm's dependence on individual CMOS tubes.

[0068] When quantum logic functions act on qubits, the individuality of qubits needs to be considered, such as the individual identification of the qubit in the quantum chip, its position, its relationship with surrounding qubits, and the usable time of each qubit. Therefore, the quantum algorithm composed of quantum logic functions not only expresses the computational relationship of the algorithm, but also expresses the algorithm's dependence on individual qubits.

[0069] Exemplary:

[0070] Quantum algorithm 1: H1, H2, CNOT(1,3), H3, CNOT(2,3);

[0071] Quantum Algorithm 2: H1, H2, CNOT(1,2), H3, CNOT(2,3);

[0072] Among them, 1 / 2 / 3 represent three sequentially connected quantum bits Q1, Q2, Q3 or mutually connected quantum bits Q1, Q2, Q3;

[0073] An exemplary explanation of how quantum algorithms are affected by the coherence time of qubits is as follows:

[0074] Define the execution time of a single-qubit logic gate as t, and the execution time of a two-qubit logic gate acting on adjacent bits as 2t; then:

[0075] When Q1, Q2, and Q3 are interconnected, the calculation of quantum algorithm 1 takes 6t, which is divided into 4 time periods. The duration of each time period is t, 2t, t, and 2t respectively. The operations performed in each time period are: H1, H2; CNOT(1,3); H3; CNOT(2,3);

[0076] The calculation of quantum algorithm 1 takes 5t, which is divided into 3 time periods. The duration of each time period is t, 2t, and 2t respectively. The operations performed in each time period are: H1, H2, H3; CNOT(1,2); CNOT(2,3);

[0077] When Q1, Q2, and Q3 are connected in sequence, the quantum algorithm 1 needs to be equivalent to: H 1, H2; swap(1,2), CNOT(2,3), swap(1,2); H3; CNOT(2,3); the calculation of the equivalent quantum algorithm 1 requires 10t, which is divided into 4 time periods, and the duration of each time period is t, 6t, t, and 2t respectively. The operations performed in each time period are: H1, H2; swap(1,2), CNOT(2,3), swap(1,2); H3; CNOT(2,3).

[0078] Therefore, the design of quantum logic functions acting on quantum bits (including the design of whether quantum bits are used or not and the design of the efficiency of each quantum bit) is the key to improving the computing performance of quantum computers, and requires special design. This is also the uniqueness of quantum algorithms based on quantum logic functions, which is essentially and significantly different from classical algorithms based on classical logic functions. The above-mentioned design for quantum bits is a technical problem that ordinary computing devices do not need to consider or face. The present invention proposes a data generation method, device, quantum computing system, medium and electronic device, which aims to efficiently generate GF(2 k ), thereby accelerating the cracking of classic encryption algorithms.

[0079] See also Figure 2 , Figure 2 A flow chart of a data generation method provided by an embodiment of the present invention is applied to a classical computing unit, and the method includes:

[0080] Step 201: receiving a data generation task, wherein the data generation task is used to generate target data corresponding to input data;

[0081] GF(2 k ) are polynomials with coefficients of 0 and 1, or more precisely, the remainder class of polynomials, where the equivalence relation is characterized by modulo division (modulo division means dividing a polynomial and taking the remainder) an irreducible polynomial of degree k. An irreducible polynomial is one that has no other polynomials as factors except 1 and the polynomial itself in the current number field.

[0082] For current binary system computers, GF(2 k ) is particularly important. Many encryption standard algorithms use bytes as processing units. For example, each byte can be regarded as GF(2 8 )(k=8), each corresponding to a polynomial of degree not exceeding 7, a 7 a 6 a 5 a 4 a 3 a2 a 1 a 0 =a 7 x 7 +a 6 x 6 +a 5 x 5 +a 4 x 4 +a 3 x 3 +a 2 x 2 +a 1 x 1 +a 0 .

[0083] The target data may be, for example, GF(2 k ) multiplication result, the input data may, for example, include two polynomials to be multiplied, the highest degree of the polynomials being k-1; the two polynomials are respectively encoded with k data bits, and the quantum bits include 2k data bits.

[0084] Wherein, k is an integer greater than or equal to 1; for a polynomial, since its coefficients can only be 0 or 1, the coefficients of the polynomial can be encoded onto data bits through a NOT gate.

[0085] Step 202: constructing a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0086] For the finite field multiplication of any two polynomials, one of the polynomials can be converted into the multiplication and addition of multiple linear equations, and then the multiplication and addition results of the multiple linear equations are multiplied with the other polynomial in the finite field; since GF(2 k ) are polynomials whose coefficients are 0 and 1, so they can be seen as continuous ×x operations (i.e., a multiplication operation with the unknown quantity x) of the addition results of one polynomial controlled by the corresponding coefficient of another polynomial.

[0087] For example, two polynomials are a=a 0 +a 1 x+a 2 x 2 ,b=b 0 +b 1 x+b 2 x 2 ,

[0088] a·b=(a 0 +a1 x+a 2 x 2 )(b 0 +b 1 x+b 2 x 2 )

[0089] =(a 0 +(a 1 +a 2 x)x)(b 0 +b 1 x+b 2 x 2 )

[0090] Therefore, the finite field multiplication of two polynomials can be decomposed into a 0 +(a 1 +a 2 x)x and b 0 +b 1 x+b 2 x 2 The finite field multiplication operation can be regarded as a 2 Controlled 0 and (b 0 +b 1 x+b 2 x 2 ), and then perform ×x operation on the result of the addition operation; then perform ×x operation on the result of the addition operation and (b 0 +b 1 x+b 2 x 2 ) are added, and the addition is affected by a 1 Control; then perform ×x operation on the result of the operation; then perform ×x operation on the result and (b 0 +b 1 x+b 2 x 2 ) are added, and the addition is affected by a 0 Control, that is, Qin Jiushao algorithm.

[0091] This quantum circuit is not for b 0 +b 1 x+b 2 x 2 Constantly ×x operation, but for b 0 +b 1 x+b 2 x 2 The result of the operation is continuously ×x operation, so the circuit itself is reversible, and there is no need to perform the transpose conjugate operation of a multiplication operation.

[0092] Specifically, the quantum bit also includes k result bits and 1 auxiliary bit; the quantum circuit corresponding to the data generation task is constructed based on the controlled addition operation and one multiplication operation, including:

[0093] K controlled addition operations and k-1 single multiplication operations are applied alternately to the 2k data bits, 1 auxiliary bit and k result bits to obtain a quantum circuit corresponding to the data generation task.

[0094] Since each polynomial requires k data bits to be encoded, and the GF(2 k )The multiplication result also requires k result bits to be encoded. k ) multiplication result, one auxiliary bit is needed for auxiliary calculation, so the total number of quantum bits required is 3k+1.

[0095] It should be noted that the highest degrees of two polynomials can be different. For example, one is k 1 -1, one is k 2 -1, the number of data bits required is k 1 +k 2 The number of result bits required later is k 1 and k 2 The largest one among them. The total number of qubits required is 2k 1 +k 2 +1 or k 1 +2k 2 +1.

[0096] The controlled addition operation acts on one of the data bits corresponding to one of the polynomials, k of the data bits corresponding to another polynomial, 1 of the auxiliary bits and k of the result bits, wherein one of the data bits corresponding to one of the polynomials is a control bit of the controlled addition operation.

[0097] The multiplication operation is performed on 1 auxiliary bit and k result bits.

[0098] like Figure 3 As shown, Figure 3 A GF(2 k ) The quantum circuit diagram corresponding to the multiplication operation. k = 3, the quantum circuit includes 3 data bits a 2 、a 1 、a 0 , used to encode one of the polynomials; it also includes 3 data bits b 2 、b 1 、b 0, used to encode another polynomial; it also includes 1 auxiliary bit c and 3 result bits r 2 、r 1 、r 0 , used to store two polynomials GF(2 k )The result of the multiplication operation.

[0099] For the first controlled addition operation, acting on data bit a 2 、b 2 、b 1 、b 0 , auxiliary bit c and result bit r 2 、r 1 、r 0 , the result bit r 2 、r 1 、r 0 The quantum state of a 2 (b 0 +b 1 The quantum state corresponding to the result of the finite field multiplication operation x+b2x2; for the first ×x operation, it acts on the auxiliary bit c and the result bit r 2 、r 1 、r 0 , the result bit r 2 、r 1 、r 0 The quantum state of a 2 (b 0 The quantum state corresponding to the result of the finite field multiplication operation x+b1x2+b2x3; for the second controlled addition operation, it acts on the data bit a 1 、b 2 、b 1 、b 0 , auxiliary bit c and result bit r 2 、r 1 、r 0 , the result is bit c 2 、c 1 、c 0 The quantum state of a 1 (b 0 +b 1 x+b 2 x 2 )+a 2 (b 0 x+b 1 x 2 +b 2 x 3 ) The quantum state corresponding to the result of the finite field multiplication operation; for the second ×x operation, it acts on the auxiliary bit c and the result bit r 2 、r 1 、r0 , the result bit r 2 、r 1 、r 0 The quantum state of a 1 (b 0 x+b 1 x 2 +b2x3+a2b0x2+b1x3+b2x4; For the third controlled addition operation, it acts on data bits a0, b 2 、b 1 、b 0 , auxiliary bit c and result bit r 2 、r 1 、r 0 , the result is bit c 2 、c 1 、c 0 The quantum state of a 0 (b 0 +b 1 x+b 2 x 2 )+a 1 (b 0 x+b 1 x 2 +b 2 x 3 )+a 2 (b 0 x 2 +b 1 x 3 +b2x4The quantum state corresponding to the result of the finite field multiplication operation.

[0100] Step 203: sending the input data and the quantum circuit to a quantum computing unit, instructing the quantum computing unit to excite a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit, to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0101] The initial quantum state includes the quantum state obtained by encoding the input data, and also includes the quantum state of the auxiliary bit and the result bit initialized to |0>.

[0102] Specifically, the quantum bit is driven to evolve from an initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, including applying a corresponding control waveform to a corresponding quantum bit according to information such as a quantum logic gate in the quantum circuit, a quantum bit acted on by the quantum logic gate, and an action timing, so as to drive the quantum bit to evolve from the initial quantum state. After the evolution is completed, a measurement waveform is applied to the corresponding quantum bit to obtain a feedback measurement result.

[0103] Step 204: Receive the measurement result sent by the quantum computing unit, and determine the target data corresponding to the input data based on the measurement result.

[0104] Specifically, determining the target data corresponding to the input data based on the measurement result includes parsing the measurement result to obtain the target data represented by the measurement result.

[0105] Compared with the prior art, the present invention provides a data generation method, device, quantum computing system, medium and electronic device, which receive a data generation task, the data generation task is used to generate target data corresponding to input data; construct a quantum circuit corresponding to the data generation task based on a controlled addition operation, a multiplication operation and a transposed conjugate operation of the multiplication operation, the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and an unknown quantity; send the input data and the quantum circuit to a quantum computing unit, instruct the quantum computing unit to excite the quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit, to obtain a measurement result of the quantum bit, the initial quantum state includes a quantum state obtained by encoding the input data; receive the measurement result sent by the quantum computing unit, and determine the target data corresponding to the input data based on the measurement result;

[0106] By combining classical and quantum computing units, GF(2 k ), the classical computing unit focuses on the design of quantum circuits, and the quantum computing unit efficiently executes the quantum circuits. The two work together to achieve GF(2 k ), which helps to accelerate the cracking of classic encryption algorithms.

[0107] Furthermore, the method further comprises:

[0108] The one multiplication operation is constructed based on a down shift operation, a preset borrower and a CNOT gate.

[0109] Among them, the result of the finite field multiplication of an arbitrary polynomial and an unknown quantity is calculated, that is, the general multiplication of the arbitrary polynomial and the unknown quantity is calculated first, which can be realized by a downward shift operation; and then the general multiplication result is reduced to obtain the finite field multiplication result, which can be realized by a preset abdicator. In addition, since an auxiliary bit is introduced to record the highest bit in the process of realizing the downward shift operation, the auxiliary bit needs to be reset to realize the reversible quantum circuit. The auxiliary bit can be restored by building a CNOT gate between the lowest bit and the auxiliary bit. Since the irreducible polynomial constant term must be 1 (otherwise it contains the factor x), the execution of the abdication operation will inevitably cause the lowest bit (due to the shift operation, it was 0 before) to be the same as the auxiliary bit, so the CNOT gate can realize the recovery of the reversible quantum circuit.

[0110] Specifically, the multiplication operation is constructed based on the downward translation operation, the preset borrower and the CNOT gate, including:

[0111] The downward shift operation and the preset backbiter are sequentially applied to the data bits and auxiliary bits of an arbitrary polynomial, and the CNOT gate is applied to the data bits and the auxiliary bits corresponding to the constant term in the arbitrary polynomial, so as to obtain a multiplication operation, and the data bits corresponding to the constant term in the arbitrary polynomial are used as the control bits in the CNOT gate.

[0112] like Figure 4 As shown, Figure 4 A quantum circuit diagram corresponding to a multiplication operation provided in an embodiment of the present invention. The quantum circuit includes a data bit b encoding an arbitrary polynomial 2 、b 1 、b 0 and auxiliary bit c. First, the downward shift operation is applied to data bit b 2 、b 1 、b 0 and auxiliary bit c, so that data bit b 2 、b 1 、b 0 The quantum state of the auxiliary bit c is determined by b 0 +b 1 x+b 2 x 2 The corresponding quantum state evolves to b 0 x+b 1 x 2 +b 2 x 3 The corresponding quantum state; then the detent is applied to the data bit b 2 、b 1 、b 0 and auxiliary bit c, so that data bit b 2 、b1 、b 0 The quantum state of the auxiliary bit c is determined by b 0 x+b 1 x 2 +b 2 x 3 The corresponding quantum state evolves to the quantum state corresponding to the result in the finite field; finally, the CNOT gate is applied to the data bit b 0 and auxiliary bit c, so that the quantum state of auxiliary bit c is reset to |0>, where data bit b 0 is the control bit, and the auxiliary bit c is the controlled bit.

[0113] Furthermore, the method further comprises:

[0114] An irreducible polynomial is obtained, and the preset deregister is constructed based on the irreducible polynomial and a CONT gate.

[0115] In the implementation of GF(2 k ) in the modular removal operation, the irreducible polynomial to be removed is preset. k ), since the coefficients of the polynomial come from the binary field (1=-1), a preset de-biter can be constructed using a CNOT gate, in which the control bit and the controlled bit of the CNOT gate are determined based on the irreducible polynomial.

[0116] For example, the two polynomials to be multiplied are 1+x 2 and x 2 , using the Toffoli gate calculation in the above embodiment, the general product x can be obtained. 2 +x 4 . If the irreducible polynomial is 1+x 2 +x 3 =0, then the irreducible polynomial is equivalent to 1+x 2 =x 3 , execute the deregistration once, and get x 2 +x·(1+x 2 )=x+x 2 +x 3 ; Execute the backbiter again and get x+x 2 +1+x 2 =1+x, which achieves the reduction of order and obtains 1+x 2 and x 2 GF(2 k )The multiplication result is 1+x.

[0117] Specifically, constructing the preset deregister based on the irreducible polynomial and the CONT gate includes:

[0118] The preset deregistrator is obtained by using the quantum bit corresponding to the non-highest term in the irreducible polynomial as the controlled bit of the CNOT gate, and using the quantum bit corresponding to the highest term in the irreducible polynomial as the control bit of the CNOT gate.

[0119] Furthermore, the highest degree of the irreducible polynomial is k; the method of using the qubit corresponding to the non-highest term in the irreducible polynomial as the controlled bit of the CNOT gate, and using the qubit corresponding to the highest term in the irreducible polynomial as the control bit of the CNOT gate, comprises:

[0120] Iterative execution applies the CNOT gate to qubit m h and m k , until h = 0, the initial value of h is k-1, the m h is the controlled bit corresponding to the non-highest term in the irreducible polynomial, and the m k is the control bit corresponding to the highest term in the irreducible polynomial.

[0121] Among them, the control bits of multiple CNOT gates are all quantum bits corresponding to the highest term, and the controlled bits are quantum bits corresponding to the non-highest terms as the control bits of the CNOT gates. Therefore, the action timing of multiple CNOT gates does not affect the overall abdication operation. The above embodiment is one of the implementation methods provided by the present invention.

[0122] like Figure 5 As shown, Figure 5 A schematic diagram of the structure of a detent provided by an embodiment of the present invention. Figure 5 In the equation, the irreducible polynomial is 1+x 2 +x 3 =0, the irreducible polynomial is equivalent to 1+x 2 =x 3 Therefore, we can apply the CNOT gate to the qubit m 3 and m 2 And the CNOT gate acts on the quantum bit m 3 and m 0 On the above, we get the delocalizer, where the quantum bit m 3 To control the bit, the quantum bit m 2 and m 0 is the controlled bit. Acting on quantum bit m 3 and m 2 The CNOT gate on the qubit m 3 and m 0 The timing relationship of the CNOT gates above is not limited.

[0123] See also Figure 6 , Figure 6A flow chart of a data generation method provided in an embodiment of the present invention is applied to a quantum computing unit, and the method includes:

[0124] Step 601: receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0125] Step 602: Exciting the quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0126] Step 603: Send the measurement result to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

[0127] Specifically, the input data includes two polynomials to be multiplied, and the highest degree of the polynomials is k-1; the quantum bits include 2k data bits, 1 auxiliary bit and k result bits; and exciting the quantum bits to an initial quantum state includes:

[0128] Excite k of the data bits to a first quantum state corresponding to one of the polynomials, excite another k of the data bits to a second quantum state corresponding to another of the polynomials, and excite 1 of the auxiliary bits and k of the result bits to a ground state.

[0129] Among them, the ground state is |0> and the excited state is |1>.

[0130] For example, the two polynomials to be multiplied are 1+x 2 and x 2 , then the first quantum state is |101>, the second quantum state is |100〉, the quantum state of the auxiliary bit is |0〉, the quantum state of the result bit is |000〉, and the initial quantum state is |0000100101〉. Exciting a quantum bit to a certain quantum state can be achieved through an X gate, for example, initializing all quantum bits to the ground state |0〉, then determining the quantum bit that needs to be excited to the excited state |1〉, and applying the control waveform corresponding to the X gate to the quantum bit.

[0131] The specific implementation of this embodiment can refer to the application to the classic computing unit side. Figure 2 The illustrated embodiments are not described in detail here.

[0132] Yet another embodiment of the present invention provides a quantum computing system, the quantum computing system comprising a classical computing unit and a quantum computing unit;

[0133] The classical computing unit is used to perform the following steps:

[0134] Receive a data generation task, where the data generation task is used to generate target data corresponding to input data;

[0135] Constructing a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0136] Sending the input data and the quantum circuit to a quantum computing unit, instructing the quantum computing unit to excite a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0137] The measurement result sent by the quantum computing unit is received, and target data corresponding to the input data is determined based on the measurement result.

[0138] The quantum computing unit is used to perform the following steps:

[0139] receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0140] Exciting a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0141] The measurement result is sent to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

[0142] See also Figure 7 , Figure 7 A schematic diagram of the structure of a data generation device provided by an embodiment of the present invention, which is applied to a classical computing unit, includes:

[0143] A receiving unit 701 is used to receive a data generation task, where the data generation task is used to generate target data corresponding to input data;

[0144] A construction unit 702 is used to construct a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0145] A sending unit 703 is used to send the input data and the quantum circuit to a quantum computing unit, instruct the quantum computing unit to excite the quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0146] The receiving unit 704 is further configured to receive the measurement result sent by the quantum computing unit, and determine the target data corresponding to the input data based on the measurement result.

[0147] See also Figure 8 , Figure 8 A schematic diagram of the structure of another data generating device provided by an embodiment of the present invention, which is applied to a quantum computing unit, includes:

[0148] A receiving unit 801 is used to receive input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity;

[0149] A computing unit 802 is used to excite the quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data;

[0150] The sending unit 803 is used to send the measurement result to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

[0151] Regarding the specific functions and effects achieved by the data generation device, reference can be made to other embodiments of this specification for comparative explanation, and no further description is given here. Each module in the data generation device can be implemented in whole or in part by software, hardware, and a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0152] 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 the processor implements the data generation method in any of the above embodiments when executing the computer program. Fig. 9 , the computer device may be a classical computer. The computer device may also be a quantum computer.

[0153] The embodiments of the present 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 data generating method in any of the above embodiments.

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

[0155] 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.

[0156] 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.

[0157] 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.

[0158] 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.

[0159] 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.

[0160] 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.

[0161] 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.

[0162] 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.

[0163] 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.

[0164] 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.

[0165] 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.

[0166] 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.

[0167] 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 data generation method, characterized in that: Applied to a classical computing unit, the method comprises: Receive a data generation task, where the data generation task is used to generate target data corresponding to input data; Constructing a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity; Sending the input data and the quantum circuit to a quantum computing unit, instructing the quantum computing unit to excite a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data; The measurement result sent by the quantum computing unit is received, and target data corresponding to the input data is determined based on the measurement result.

2. The method according to claim 1, characterized in that The input data includes two polynomials to be multiplied, and the highest degree of the polynomials is k-1; the two polynomials are respectively encoded with k data bits, and the quantum bits include 2k data bits.

3. The method according to claim 2, characterized in that The quantum bit also includes k result bits and 1 auxiliary bit; the quantum circuit corresponding to the data generation task is constructed based on the controlled addition operation and one multiplication operation, including: K controlled addition operations and k-1 single multiplication operations are applied alternately to the 2k data bits, 1 auxiliary bit and k result bits to obtain a quantum circuit corresponding to the data generation task.

4. The method according to claim 3, characterized in that The controlled addition operation acts on one of the data bits corresponding to one of the polynomials, k of the data bits corresponding to another polynomial, 1 of the auxiliary bits and k of the result bits, wherein one of the data bits corresponding to one of the polynomials is a control bit of the controlled addition operation.

5. The method according to claim 3, characterized in that The one multiplication operation acts on 1 auxiliary bit and k result bits.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The one multiplication operation is constructed based on a down shift operation, a preset borrower and a CNOT gate.

7. The method according to claim 6, characterized in that The constructing of the multiplication operation based on the downward translation operation, the preset borrower and the CNOT gate includes: The downward shift operation and the preset backbiter are sequentially applied to the data bits and auxiliary bits of an arbitrary polynomial, and the CNOT gate is applied to the data bits and the auxiliary bits corresponding to the constant term in the arbitrary polynomial, so as to obtain a multiplication operation, and the data bits corresponding to the constant term in the arbitrary polynomial are used as the control bits in the CNOT gate.

8. A data generation method, characterized in that: Applied to a quantum computing unit, the method comprises: receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity; Exciting a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data; The measurement result is sent to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

9. The method according to claim 8, characterized in that The input data includes two polynomials to be multiplied, and the highest degree of the polynomials is k-1; the quantum bits include 2k data bits, 1 auxiliary bit and k result bits; and exciting the quantum bits to an initial quantum state includes: Excite k of the data bits to a first quantum state corresponding to one of the polynomials, excite another k of the data bits to a second quantum state corresponding to another of the polynomials, and excite 1 of the auxiliary bits and k of the result bits to a ground state.

10. A quantum computing system, characterized in that: The quantum computing system includes a classical computing unit and a quantum computing unit; The classical computing unit is used to perform the following steps: Receive a data generation task, where the data generation task is used to generate target data corresponding to input data; Constructing a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity; Sending the input data and the quantum circuit to a quantum computing unit, instructing the quantum computing unit to excite a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data; The measurement result sent by the quantum computing unit is received, and target data corresponding to the input data is determined based on the measurement result. The quantum computing unit is used to perform the following steps: receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity; Exciting a quantum bit to an initial quantum state, and driving the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data; The measurement result is sent to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

11. A data generating device, characterized in that: Applied to a classical computing unit, the device comprises: A receiving unit, used for receiving a data generation task, wherein the data generation task is used for generating target data corresponding to the input data; A construction unit, used to construct a quantum circuit corresponding to the data generation task based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity; A sending unit, configured to send the input data and the quantum circuit to a quantum computing unit, instruct the quantum computing unit to excite a quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data; The receiving unit is further used to receive the measurement result sent by the quantum computing unit, and determine the target data corresponding to the input data based on the measurement result.

12. A data generating device, characterized in that: Applied to a quantum computing unit, the device comprises: A receiving unit, used for receiving input data sent by a classical computing unit and a quantum circuit corresponding to a data generation task, wherein the data generation task is used to generate target data corresponding to the input data, and the quantum circuit is constructed by the classical computing unit based on a controlled addition operation and a multiplication operation, wherein the multiplication operation is used to calculate a finite field multiplication result of an arbitrary polynomial and a primary unknown quantity; A computing unit, configured to excite a quantum bit to an initial quantum state, and drive the quantum bit to evolve from the initial quantum state based on the quantum circuit to obtain a measurement result of the quantum bit, wherein the initial quantum state includes a quantum state obtained by encoding the input data; A sending unit is used to send the measurement result to the classical computing unit, so that the classical computing unit determines the target data corresponding to the input data based on the measurement result.

13. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method according to any one of claims 1 to 9 when executed.

14. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 9.