A projection decoding method for quantum color codes combined with Q neural network

The quantum color code is initialized and trained through the Q neural network, and combined with quantum topological coding for projection decoding, which solves the problem of low decoding efficiency in the existing technology, achieves faster and more accurate decoding effects, and is adaptable to a variety of noises Model.

CN114692856BActive Publication Date: 2024-08-23QINGDAO UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210228001.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-08
Publication Date
2024-08-23
Estimated Expiration
2042-03-08

AI Technical Summary

Technical Problem

Existing quantum color code decoding methods are inefficient and lack the technology to combine neural networks, and cannot effectively utilize the representation capabilities of neural networks for projection decoding.

Method used

The Q neural network is used to initialize the quantum color code, train the decoder, and perform projection decoding through quantum topological coding. The greedy strategy and stochastic gradient descent training are used to update the network parameters to achieve efficient decoding.

Benefits of technology

It improves the decoding speed and accuracy, simplifies the state space representation, adapts to a variety of noise models, builds a fast and flexible decoder, and solves the problems of slow speed and low accuracy of traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114692856B
    Figure CN114692856B
Patent Text Reader

Abstract

The present invention relates to the field of machine learning technology, and more specifically, to a method for projecting and decoding quantum color codes in combination with a Q neural network. The method includes initializing the color code, training the neural network decoder, and decoding the color code using quantum topological coding. The present invention is designed to use a color code decoder trained using machine learning, and the prediction speed is very fast, which solves the problems of slow speed and low accuracy of the traditional color code decoding algorithm; the color code is mapped to the surface code using a projection method, and the translation invariance of the surface code is fully utilized during decoding, which greatly simplifies the state space representation, avoids being affected by the number of defects, and better combines with the deep neural network DQN; when facing a variety of noise models, the network structure can be quickly adjusted by machine learning to adapt to a variety of noise models; the decoding scheme process is relatively simple, which can meet the decoding needs of color codes in various occasions, and a set of suitable decoders can be quickly constructed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of machine learning, and in particular to a projection decoding method of a quantum color code combined with a Q neural network. Background Art

[0002] In recent years, the research results of machine learning have become more and more mature, and have been widely used in biology, image recognition, artificial intelligence and other fields. Machine learning involves many disciplines such as probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory, etc. The results of these disciplines are applied to various problems, enabling automatic learning of the intrinsic structure of data and data analysis.

[0003] The development of quantum computing and quantum information has produced many new algorithms and applications. If future quantum computers are to be able to successfully run quantum algorithms, it is necessary to ensure the accuracy of quantum bits, which has led to different research directions such as quantum error correction, quantum error avoidance, and quantum fault tolerance. Quantum error correction is a rapidly developing direction. The use of quantum coding to correct quantum errors and ensure the accuracy of quantum information transmission is currently a hot topic of research. In terms of coding, topological coding has been widely studied due to its excellent performance. Topological coding is a type of coding based on topological stabilizer coding that is mapped to a geometric plane. It includes plane codes and color codes. After encoding, decoding becomes the key to the next research. Generally, mathematical methods are used for error correction, which is inefficient.

[0004] As a predictive model, artificial neural networks in machine learning are considered to have strong representation capabilities and are suitable for building decoders based on machine learning. Recently, in many studies, many numerical comparisons have been conducted between neural network-based neural decoders and existing methods, and it has been found that the performance of neural decoders is better than that of known efficient decoders. However, there is currently no technology that can be combined with neural networks to perform projection decoding of quantum color codes. In view of this, we propose a projection decoding method for quantum color codes combined with Q neural networks. Summary of the invention

[0005] The object of the present invention is to provide a projection decoding method of quantum color code combined with Q neural network to solve the problems raised in the above background technology.

[0006] In order to solve the above technical problems, one of the purposes of the present invention is to provide a projection decoding method of quantum color code combined with Q neural network, comprising the following steps:

[0007] S1, initialize the color code;

[0008] S2, training the neural network decoder;

[0009] S3. Use quantum topological coding to decode the color code.

[0010] As a further improvement of the technical solution, in S1, the specific method for initializing the color code includes the following steps:

[0011] S1.1, Assume that the matrix C represents the color code encoding that has errors, and w represents the initial network parameters;

[0012] S1.2. Perform projection calculation on the color code, project the color code C into a surface code according to the rules, and use the matrix S to represent the projected surface code.

[0013] Among them, the color code is a type of quantum topological code, which uses colors to distinguish different stabilizers.

[0014] Among them, in S1.2, the projection process will retain all the stabilizer information and encoding information of the color code.

[0015] As a further improvement of the technical solution, in S2, the specific method for training the neural network decoder includes the following steps:

[0016] S2.1. Determine whether there is an error in the encoding based on the eigenvalue of the stabilizer. If there is an error, input the surface code matrix S into the training program. Then, based on the structure of the surface code in the two-dimensional plane, move the matrix S composed of the stabilizer horizontally or vertically in a loop so that the error stabilizer is in a set position for calculation. The changed matrix obtained after the movement is called the observation result P. The set of multiple observation results obtained after selecting multiple physical quantum bits for observation is recorded as O, and P∈O;

[0017] S2.2, update the Q neural network using the initial network parameter w as the parameter according to the obtained observation result set O. Calculate all actions a of the generating string operator corresponding to each selected error stabilizer in the observation result set in turn;

[0018] S2.3. Calculate the executable action a of a stabilizer based on the greedy strategy of the selected Q neural network i The corresponding cost r i Then compare the cost of all actions of this stabilizer and select the optimal action a according to the state transfer formula k ;

[0019] S2.4. Execute the optimal action a at P k After that, a new observation result P' will be obtained. P' will be used as a new matrix input. According to step S2.1, a new observation set O' will be obtained again, and the execution action a will be executed. k The previous observation P, the action a k, the cost of executing the action r k , the observation results P' after execution are combined into a tuple for storage;

[0020] S2.5. In step S2.1, if it is judged that there is no error, stochastic gradient descent training is used to learn different actions taken for different defects.

[0021] As a further improvement of the technical solution, in S2.2, action a has four ways of adding correctors, namely upward, downward, leftward and rightward, according to the two-dimensional geometric structure of the surface code, which correspond to four ways of generating chord operators.

[0022] As a further improvement of the technical solution, in S2.3, the expression of the state transfer formula is:

[0023]

[0024] Among them, s,a means that action a is not taken under P observation results i status and behavior at the time, Indicates the corresponding execution action a i Next state and behavior.

[0025] As a further improvement of the technical solution, in S2.5, the specific method of stochastic gradient descent training learning includes the following steps:

[0026] S2.5.1, first randomly extract a stored tuple and calculate the corresponding objective function of the Q network;

[0027] S2.5.2. After that, gradient descent is used to minimize the difference between the sample target and the prediction of the Q neural network.

[0028] As a further improvement of the technical solution, in S2.5.1, the specific algorithm formula for randomly extracting a stored tuple to calculate the corresponding Q network objective function is:

[0029]

[0030] P∈O,P'∈O';

[0031] Among them, P is the current state, P' is the next state, a k is the action performed when the state changes, w is the network parameter, and γ is the discount factor in reinforcement learning.

[0032] As a further improvement of the technical solution, in S2.5.2, the network parameters are updated according to the gradient of the deep neural network DQN, and the updating formula is:

[0033] w t+1 '←ε·wt+1 +(1-ε)·w t ;

[0034] Among them, w t+1 Use w after gradient descent for DQN t Subtract the result of gradient descent, and ε as a weighting parameter needs to be set manually;

[0035] Update the network parameters w←w after every n iterations t+1 '.

[0036] As a further improvement of the technical solution, in S3, the specific method of decoding the color code using quantum topological coding includes the following steps:

[0037] S3.1. After the training, the parameters of DQN including but not limited to the experience replay set size, neural network structure, GAMMA value, learning rate, e_greedy value, positive and negative reward values ​​are obtained;

[0038] S3.2. After setting the generated parameters, a model that can be used for decoding can be obtained;

[0039] S3.3. When encountering a color code that needs error correction, the color code is projected and converted into a matrix input, and then the above decoder is used to perform efficient decoding operations.

[0040] Among them, the model used for decoding can continuously optimize its own decoding efficiency through the decoding process.

[0041] The second object of the present invention is to provide an operating platform device for a projection decoding method of a quantum color code combined with a Q neural network, comprising a processor, a memory, and a computer program stored in the memory and running on the processor, wherein the processor is used to implement the steps of the projection decoding method of a quantum color code combined with a Q neural network when executing the computer program.

[0042] The third object of the present invention is to provide a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, it implements the steps of the above-mentioned projection decoding method of quantum color code combined with Q neural network.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] 1. The quantum color code projection decoding method combined with the Q neural network uses a color code decoder trained by machine learning. After the training is completed, the prediction speed is very fast. When a sufficiently large effective data set is provided, the prediction of the neural decoder will be more accurate and the decoding speed will be faster, which solves the problem of slow speed and low accuracy of the traditional color code decoding algorithm;

[0045] 2. The projection decoding method of quantum color code combined with Q neural network uses the projection method to map the color code encoding to the surface code, so that the translation invariance of the surface code is fully utilized when decoding the color code, which greatly simplifies the state space representation, avoids the influence of the number of defects, and better combines with the deep neural network DQN;

[0046] 3. Compared with the traditional color code decoding scheme, the quantum color code projection decoding method combined with the Q neural network can rely on machine learning to quickly adjust the network structure and adapt to various noise models when facing various noise models;

[0047] 4. The decoding process of the projection decoding method of quantum color code combined with Q neural network is relatively simple, which can meet the decoding needs of color code in various occasions and can quickly build a suitable decoder. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1 It is a schematic diagram of the structure of the error and stabilizer of the exemplary color code in the present invention;

[0049] Figure 2 Schematic diagram of the projection of an exemplary color code in the present invention;

[0050] Figure 3 is an exemplary decoding flow chart of the present invention;

[0051] Figure 4 It is a schematic diagram of the structure of an exemplary electronic computer device in the present invention. DETAILED DESCRIPTION

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

[0053] Example 1

[0054] like Figure 1-Figure 4 As shown, this embodiment provides a projection decoding method of quantum color code combined with Q neural network, comprising the following steps:

[0055] S1, initialize the color code;

[0056] S2, training the neural network decoder;

[0057] S3. Use quantum topological coding to decode the color code.

[0058] In this embodiment, in S1, the specific method for initializing the color code includes the following steps:

[0059] S1.1, Assume that the matrix C represents the color code encoding that has errors, and w represents the initial network parameters;

[0060] S1.2. Perform projection calculation on the color code, project the color code C into a surface code according to the rules, and use the matrix S to represent the projected surface code.

[0061] like Figure 1 As shown, the color code is a type of quantum topological code, that is, different stabilizers are distinguished by colors.

[0062] At the same time, in S1.2, the projection process will retain all the stabilizer information and encoding information of the color code, such as Figure 2 shown.

[0063] In this embodiment, in S2, the specific method for training the neural network decoder includes the following steps:

[0064] S2.1. Determine whether there is an error in the encoding based on the eigenvalue of the stabilizer. If there is an error, input the surface code matrix S into the training program. Then, based on the structure of the surface code in the two-dimensional plane, move the matrix S composed of the stabilizer horizontally or vertically in a loop so that the error stabilizer is in a set position for calculation. The changed matrix obtained after the movement is called the observation result P. The set of multiple observation results obtained after selecting multiple physical quantum bits for observation is recorded as O, and P∈O;

[0065] S2.2, update the Q neural network using the initial network parameter w as the parameter according to the obtained observation result set O. Calculate all actions a of the generating string operator corresponding to each selected error stabilizer in the observation result set in turn;

[0066] S2.3. Calculate the executable action a of a stabilizer based on the greedy strategy of the selected Q neural network i The corresponding cost r i Then compare the cost of all actions of this stabilizer and select the optimal action a according to the state transfer formula k ;

[0067] S2.4. Execute the optimal action a at P k After that, a new observation result P' will be obtained. P' will be used as a new matrix input. According to step S2.1, a new observation set O' will be obtained again, and the execution action a will be executed. k The previous observation P, the action a k , the cost of executing the action r k, the observation results P' after execution are combined into a tuple for storage;

[0068] S2.5. In step S2.1, if it is judged that there is no error, stochastic gradient descent training is used to learn different actions taken for different defects.

[0069] Among them, in S2.2, action a has four ways of adding correctors: upward, downward, left, and right according to the two-dimensional geometric structure of the surface code, which corresponds to the four ways of generating chord operators.

[0070] Specifically, in S2.3, the expression of the state transition formula is:

[0071]

[0072] Among them, s,a means that action a is not taken under P observation results i status and behavior at the time, Indicates the corresponding execution action a i Next state and behavior.

[0073] Furthermore, in S2.5, the specific method of stochastic gradient descent training learning includes the following steps:

[0074] S2.5.1, first randomly extract a stored tuple and calculate the corresponding objective function of the Q network;

[0075] S2.5.2. After that, gradient descent is used to minimize the difference between the sample target and the prediction of the Q neural network.

[0076] Specifically, in S2.5.1, the specific algorithm formula for randomly selecting a stored tuple to calculate the corresponding Q network's objective function is:

[0077]

[0078] P∈O,P'∈O';

[0079] Among them, P is the current state, P' is the next state, a k is the action performed when the state changes, w is the network parameter, and γ is the discount factor in reinforcement learning.

[0080] Specifically, in S2.5.2, the network parameters are updated according to the gradient of the deep neural network DQN, and the update formula is:

[0081] w t+1 '←ε·w t+1 +(1-ε)·w t ;

[0082] Among them, w t+1Use w after gradient descent for DQN t Subtract the result of gradient descent, and ε as a weighting parameter needs to be set manually;

[0083] Update the network parameters w←w after every n iterations t+1 '.

[0084] In this embodiment, in S3, the specific method of decoding the color code using quantum topological coding includes the following steps:

[0085] S3.1. After the training, the parameters of DQN including but not limited to the experience replay set size, neural network structure, GAMMA value, learning rate, e_greedy value, positive and negative reward values ​​are obtained;

[0086] S3.2. After setting the generated parameters, a model that can be used for decoding can be obtained;

[0087] S3.3. When encountering a color code that needs error correction, the color code is projected and converted into a matrix input, and then the above decoder is used to perform efficient decoding operations.

[0088] In addition, it is worth mentioning that the model used for decoding can continuously optimize its own decoding efficiency through the decoding process.

[0089] In summary, this embodiment corrects color codes through machine learning, which can solve the problems of slow speed and low accuracy of traditional color code decoding algorithms. Through projection mapping, the color code encoding is transferred to a plane code that is easier to decode, and the color code is successfully decoded; the neural network model used can perform error correction training on encodings with high resistance to bit flip and phase flip error rates, so that the required chord operation can be efficiently found for error correction; and during the training process, the program can continuously adjust the training parameters to optimize the trained decoder, thereby achieving better error correction effects.

[0090] like Figure 4 As shown, this embodiment also provides an operating platform device for a projection decoding method of a quantum color code combined with a Q neural network, the device comprising a processor, a memory, and a computer program stored in the memory and running on the processor.

[0091] The processor includes one or more processing cores. The processor is connected to the memory through a bus. The memory is used to store program instructions. When the processor executes the program instructions in the memory, the steps of the projection decoding method of the quantum color code combined with the Q neural network are implemented.

[0092] Optionally, the memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0093] In addition, the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the above-mentioned projection decoding method of quantum color code combined with Q neural network are implemented.

[0094] Optionally, the present invention also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the steps of the projection decoding method of quantum color codes combined with the Q neural network in the above aspects.

[0095] Those skilled in the art will appreciate that the process of implementing all or part of the steps of the above embodiments may be accomplished by hardware, or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk, or an optical disk, etc.

[0096] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A projection decoding method of quantum color code combined with Q neural network, characterized in that: The steps include: S1, initialize the color code; S2, training the neural network decoder; S3, using quantum topological coding to decode the color code; In S1, the specific method for initializing the color code includes the following steps: S1.1, Assume that the matrix C represents the color code encoding that has errors, and w represents the initial network parameters; S1.2, perform projection calculation on the color code, project the color code C into a surface code according to the rules, and use the matrix S to represent the projected surface code; In S2, the specific method for training the neural network decoder includes the following steps: S2.

1. Determine whether there is an error in the encoding based on the eigenvalue of the stabilizer. If there is an error, input the surface code matrix S into the training program. Then, based on the structure of the surface code in the two-dimensional plane, move the matrix S composed of the stabilizer horizontally or vertically in a loop so that the error stabilizer is in a set position for calculation. The changed matrix obtained after the movement is called the observation result P. The set of multiple observation results obtained after selecting multiple physical quantum bits for observation is recorded as O, and P∈O; S2.2, updating the Q neural network using the initial network parameter w as a parameter according to the obtained observation result set O, and sequentially calculating all actions a of the generating string operator corresponding to each selected error stabilizer in the observation result set; S2.

3. Calculate the executable action a of a stabilizer based on the greedy strategy of the selected Q neural network i The corresponding cost r i Then compare the cost of all actions of this stabilizer and select the optimal action a according to the state transfer formula k ; S2.

4. Execute the optimal action a at P k After that, a new observation result P' will be obtained. P' will be used as a new matrix input. According to step S2.1, a new observation set O' will be obtained again, and the execution action a will be executed. k The previous observation P, the action a k , the cost of executing the action r k , the observation results P' after execution are combined into a tuple for storage; S2.

5. In step S2.1, if it is judged that there is no error, stochastic gradient descent training is used to learn different actions taken for different defects.

2. The projection decoding method of quantum color code combined with Q neural network according to claim 1, characterized in that: In S2.2, action a has four ways of adding correctors, upward, downward, leftward, and rightward, according to the two-dimensional geometric structure of the surface code, which correspond to four ways of generating chord operators.

3. The projection decoding method of quantum color code combined with Q neural network according to claim 1, characterized in that: In S2.3, the state transition formula is expressed as: Among them, s,a means that action a is not taken under P observation results i The state and behavior of Indicates the corresponding execution action a i Next state and behavior.

4. The projection decoding method of quantum color code combined with Q neural network according to claim 1, characterized in that: In S2.5, the specific method of stochastic gradient descent training learning includes the following steps: S2.5.

1. First, randomly select a stored tuple and calculate the corresponding objective function of the Q network. S2.5.

2. After that, gradient descent is used to minimize the difference between the sample target and the prediction of the Q neural network.

5. The projection decoding method of quantum color code combined with Q neural network according to claim 4 is characterized in that: In S2.5.1, the specific algorithm formula for randomly extracting a stored tuple to calculate the corresponding Q network objective function is: P∈O,P'∈O'; Among them, P is the current state, P" is the next state, and a k is the action performed when the state changes, w is the network parameter, and γ is the discount factor in reinforcement learning.

6. The projection decoding method of quantum color code combined with Q neural network according to claim 4 is characterized in that: In S2.5.2, the network parameters are updated according to the gradient of the deep neural network DQN, and the update formula is: t+1 '←ε·w t+1 +(1-ε)·w t ; Among them, w t+1 Use w after gradient descent for DQN t Subtract the result of the gradient descent value, and ε as a weighting parameter needs to be set manually; Update the network parameters w←w after every n iterations t+1 '.

7. The projection decoding method of quantum color code combined with Q neural network according to claim 4, characterized in that: In S3, the specific method of decoding the color code using quantum topological coding includes the following steps: S3.

1. After the training, the parameters of DQN including but not limited to the experience replay set size, neural network structure, GAMMA value, learning rate, e_greedy value, positive and negative reward values ​​are obtained; S3.

2. After setting the generated parameters, a model that can be used for decoding can be obtained; S3.

3. When encountering a color code that needs error correction, the color code is projected and converted into a matrix input, and then the above decoder is used to perform efficient decoding operations.