A key distribution method and system based on quantum communication

By constructing feature sequences and training deep learning and polynomial prediction models, the phase compensation value is optimized to solve the problem of interference contrast degradation caused by fiber drift and temperature changes in the TF-QKD protocol, improving the key generation rate.

CN120238303BActive Publication Date: 2025-08-05CAS QUANTUM NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510704168.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-08-05
Estimated Expiration
2045-05-29

AI Technical Summary

Technical Problem

The existing TF-QKD protocol in long-distance communication causes the interference contrast to decrease due to factors such as phase drift and temperature changes in optical fibers, affecting the key generation rate.

Method used

By constructing feature sequences and training deep learning models and polynomial prediction models, combining error control strategies, predicting and optimizing phase compensation values to improve interference contrast and improve key generation rate.

Benefits of technology

It effectively improves the key generation rate of the TF-QKD protocol, reduces the bit error rate, and adapts to the influence of factors such as phase drift and temperature changes in optical fibers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238303B_ABST
    Figure CN120238303B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of quantum communication technology, and discloses a key distribution method and system based on quantum communication. A key distribution method based on quantum communication includes the following steps: Step S101, constructing a characteristic sequence; Step S102, transmitting a reference optical signal and obtaining a phase compensation value by combining with an experimental method; Step S103, obtaining first and second phase compensation prediction values; Step S104, if the difference is less than the first threshold, selecting the first phase compensation prediction value for compensation; Step S105, if the difference is greater than or equal to the first threshold and less than the second threshold, compensating by weighted summation of the two; Step S106, if the difference is greater than or equal to the second threshold, compensating by weighted summation of the sum of the two and the phase compensation value at the current time point. Based on the TF-QKD protocol, the present invention combines deep learning with polynomial to predict the phase compensation value, and uses an error control strategy to optimize the compensation decision, thereby improving the interference contrast and increasing the key generation rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of quantum communication, and more specifically, it relates to a key distribution method and system based on quantum communication. Background Art

[0002] Quantum Key Distribution (QKD) based on quantum communication is a technology for secure key sharing using the principles of quantum mechanics. It transmits random keys through quantum bits, uses the quantum no-cloning property (unknown quantum states cannot be precisely replicated) to ensure that eavesdroppers cannot copy the keys, and uses quantum measurement collapse (when an eavesdropper attempts to measure the quantum state, the quantum state will change) to ensure that any eavesdropping behavior will be exposed. Taking the widely used BB84 protocol as an example, Alice (the sender) randomly generates a bit stream composed of 0 and 1, and randomly selects a basis for each bit for encoding (including 4 polarization states). After Bob (the receiver) receives the bit stream through the quantum channel, he randomly selects a basis for decoding, and then publicly discloses their respective basis information through the public channel. When the bases corresponding to the bits are the same, the bit is retained; otherwise, it is discarded, and finally a key is generated. However, the transmission distance of the quantum channel in the BB84 protocol is limited by photon attenuation. As the transmission distance increases, the number of photons decreases sharply, resulting in a significant decrease in the secure key generation rate.

[0003] Currently, the bottleneck of long-distance communication is overcome through the Twin-Field Quantum Key Distribution (TF-QKD) protocol. That is, Alice and Bob each generate a weak coherent optical pulse encoded by a random phase. The phase encoding rule is that the phase corresponding to a 0 bit is 0 or π, and the phase corresponding to a 1 bit is π / 2 or 3π / 2. Then, the weak coherent optical pulses are sent to an intermediate station for interference measurement. The interference measurement rule is that when the phase difference is 0 or π, coherent enhancement occurs and the detector D0 lights up. When the phase difference is π / 2 or 3π / 2, coherent attenuation occurs and the detector D1 lights up. Finally, the interference results are announced to generate the key. Due to the setting of the intermediate station, photons do not need to traverse the entire channel, thus effectively increasing the communication distance. And because the intermediate station only performs interference measurement and announcement, even if the intermediate station is attacked, the key cannot be deciphered. Therefore, it has the advantage of measurement device independence (MDI). In addition, phase encoding is more suitable for long-distance transmission than polarization states.

[0004] However, there are phase drifts, temperature changes, fiber length changes, etc. in the optical fiber, and the TF-QKD protocol requires two optical pulses to maintain coherence, resulting in a decrease in the interference contrast and affecting the key generation rate. Summary of the Invention

[0005] The present invention provides a key distribution method and system based on quantum communication to solve the technical problems in the above background art.

[0006] The present invention provides a key distribution method based on quantum communication, including the following steps:

[0007] Step S101, preprocess the historical operation data of the optical fiber to form a feature sequence as the sample data of the training samples for training the first prediction model and the second prediction model;

[0008] The feature sequence includes M sequence units, each sequence unit corresponds to the operation data after preprocessing at a time point, and the time intervals of each sequence unit are the same;

[0009] The operation data includes: ambient temperature, bit error rate, phase drift value, and optical fiber interference factor;

[0010] Step S102, obtain the phase compensation value by emitting a reference optical signal in combination with the experimental method as the sample label of the training samples for training the first prediction model and the second prediction model;

[0011] Step S103, respectively perform predictions through the trained first prediction model and the second prediction model to obtain the first phase compensation prediction value and the second phase compensation prediction value;

[0012] Step S104, determine that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is less than the first threshold, then select the first phase compensation prediction value as the actual phase compensation value;

[0013] Step S105, determine that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the first threshold and less than the second threshold, then perform a weighted sum calculation on the two as the actual phase compensation value;

[0014] Step S106, determine that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the second threshold, then perform a weighted sum calculation on the two and the phase compensation value at the current time point as the actual phase compensation value.

[0015] Further, the number M of sequence units, the time interval, the first threshold, the second threshold, and the third threshold of the feature sequence are all custom parameters.

[0016] Further, the optical fiber interference factor The calculation formula is as follows:

[0017] ;

[0018] where n represents the refractive index of the optical fiber, λ represents the wavelength of light, L represents the length of the optical fiber, and Thermal represents the coefficient of thermal expansion.

[0019] Further, the preprocessing is specifically as follows: extract the characteristic parameters of the operation data corresponding to each time point, splice the characteristic parameters with the operation data to obtain combined data, and then perform normalization processing on the combined data of each time point through the Min-max normalization method to form a characteristic sequence. The characteristic parameters include: the change rate of the ambient temperature, the change rate of the bit error rate, and the change rate of the phase drift value.

[0020] Further, the number of hidden layers of the first prediction model is the same as the number of sequence units of the characteristic sequence. The m-th hidden layer inputs the m-th sequence unit of the characteristic sequence and outputs an update vector, where 1 ≤ m ≤ M, and the dimension number of the update vector is a custom parameter;

[0021] Extract the update vector output by the M-th hidden layer and input it into the first classifier. The classification space of the first classifier represents the first phase compensation prediction value;

[0022] Before training the first prediction model, pre-training is added. During the pre-training process, extract the update vector output by the M-th hidden layer and input it into the second classifier. The classification space of the second classifier represents the bit error rate.

[0023] Further, the calculation formula of the m-th hidden layer includes:

[0024] ;

[0025] where and respectively represent the update vectors output by the m-th and the (m - 1)-th hidden layers, is equal to 0, represents the m-th sequence unit of the characteristic sequence input to the m-th hidden layer, and respectively represent the first control vector and the second control vector of the m-th hidden layer, and respectively represent the first weight matrix and the second weight matrix of the m-th hidden layer. tanh represents the hyperbolic tangent activation function, represents element-wise multiplication;

[0026] ;

[0027] where 、 and respectively represent the third weight matrix, the fourth weight matrix, and the bias vector of the m-th hidden layer. sigmoid represents the sigmoid activation function;

[0028] ;

[0029] Among them, MLP represents a multi-layer perceptron, and COMBINE represents a splicing function.

[0030] Furthermore, a phase compensation value is obtained by transmitting a reference optical signal in combination with an experimental method, including the following steps:

[0031] Step S201: Detect the phase drift value by transmitting a reference optical signal to the intermediate station, and perform 7 floating operations respectively to obtain 7 phase compensation values;

[0032] The floating percentages are -10%, -5%, -2%, 0%, +2%, +5%, and +10% respectively;

[0033] Step S202: Modulate the weak coherent optical pulse according to the 7 phase compensation values respectively, and send it to the intermediate station to obtain the corresponding bit error rate, and select the phase compensation value with the minimum bit error rate;

[0034] Step S203: Repeat Step S201 to Step S202 until U phase compensation values are obtained;

[0035] where U is a user-defined parameter.

[0036] Furthermore, the calculation formula of the second prediction model is as follows:

[0037] ;

[0038] where represents the second phase compensation prediction value output by the second prediction model, G represents the number of dimensions of the sequence unit, and respectively represent the g-th dimension value and the corresponding weight coefficient of the m-th sequence unit, and respectively represent the weight coefficient and the bias coefficient of the m-th sequence unit.

[0039] Furthermore, the calculation formula for obtaining the actual phase compensation value by weighted summation calculation in step S105 is as follows:

[0040] ;

[0041] where represents the first phase compensation prediction value, represents the second phase compensation prediction value;

[0042] The calculation formula for obtaining the actual phase compensation value by weighted summation calculation in step S106 is as follows:

[0043] ;

[0044] Where Current represents the phase compensation value at the current time point.

[0045] The present invention provides a quantum communication-based key distribution system, including:

[0046] A sample data construction module, which is used to preprocess the historical operation data of the optical fiber to form a feature sequence as sample data for training the first prediction model and the second prediction model;

[0047] A sample label construction module, which is used to obtain the phase compensation value by transmitting a reference optical signal and combining the experimental method as the sample label for training the first prediction model and the second prediction model;

[0048] A phase compensation prediction module, which is used to respectively perform predictions through the trained first prediction model and the second prediction model to obtain the first phase compensation prediction value and the second phase compensation prediction value;

[0049] A first judgment module, which is used to judge that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is less than the first threshold, then select the first phase compensation prediction value as the actual phase compensation value;

[0050] A second judgment module, which is used to judge that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the first threshold and less than the second threshold, then perform a weighted sum calculation on the two as the actual phase compensation value;

[0051] A third judgment module, which is used to judge that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the second threshold, then perform a weighted sum calculation on the two and the phase compensation value at the current time point as the actual phase compensation value.

[0052] The beneficial effects of the present invention are as follows: Based on the TF-QKD protocol, the present invention comprehensively considers factors such as phase drift, temperature change, and optical fiber length change in the optical fiber, predicts the phase compensation value through the first prediction model (deep learning) combined with the second prediction model (polynomial equation), and uses an error control strategy to optimize the compensation decision, thereby improving the interference contrast, reducing the bit error rate, and increasing the key generation rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 is a flowchart of a quantum communication-based key distribution method of the present invention;

[0054] Figure 2 is a flowchart of obtaining the phase compensation value by transmitting a reference optical signal and combining the experimental method of the present invention;

[0055] Figure 3It is a schematic diagram of a key distribution system based on quantum communication according to the present invention.

[0056] In the figure: sample data construction module 301, sample label construction module 302, phase compensation prediction module 303, first judgment module 304, second judgment module 305, third judgment module 306. Detailed implementation manners

[0057] Now, the subject matter described herein will be discussed with reference to exemplary embodiments. It should be understood that discussing these embodiments is only to enable those skilled in the art to better understand and thus implement the subject matter described herein. Without departing from the scope of protection of the content of this specification, changes can be made to the functions and arrangements of the elements discussed. Each example can omit, substitute, or add various processes or components as needed. Additionally, the features described relative to some examples can also be combined in other examples.

[0058] It should be noted that unless otherwise defined, the technical terms or scientific terms used in one or more embodiments of the present invention should have the ordinary meaning understood by those of ordinary skill in the art to which the present invention pertains. The "first", "second", and similar terms used in one or more embodiments of the present invention do not indicate any order, quantity, or importance, but are only used to distinguish different components. The terms such as "including" or "comprising" mean that the elements or items appearing before this word cover the elements or items listed after this word and their equivalents, without excluding other elements or items. The terms such as "connected" or "coupled" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms such as "upper", "lower", "left", "right", etc. are only used to represent relative positional relationships, and when the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0059] As Figures 1 to 3 shown, a key distribution method based on quantum communication includes the following steps:

[0060] Step S101, preprocess the historical operation data of the optical fiber to form a feature sequence as the sample data of the training samples for training the first prediction model and the second prediction model;

[0061] The feature sequence includes M sequence units, each sequence unit corresponding to the operation data after preprocessing at a time point, and the time intervals of each sequence unit being the same;

[0062] The operation data includes: environmental temperature, bit error rate, phase drift value, and optical fiber interference factor;

[0063] Step S102: Obtain the phase compensation value by transmitting a reference optical signal in combination with the experimental method, and use it as the sample label for the training samples of training the first prediction model and the second prediction model;

[0064] Step S103: Respectively perform predictions through the trained first prediction model and second prediction model to obtain the first phase compensation prediction value and the second phase compensation prediction value;

[0065] Step S104: Determine that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is less than the first threshold, then select the first phase compensation prediction value as the actual phase compensation value;

[0066] Step S105: Determine that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the first threshold and less than the second threshold, then perform a weighted sum calculation on the two as the actual phase compensation value;

[0067] Step S106: Determine that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the second threshold, then perform a weighted sum calculation on the two and the phase compensation value at the current time point as the actual phase compensation value.

[0068] In an embodiment of the present invention, the number M of sequence units of the feature sequence, the time interval, the first threshold, the second threshold, and the third threshold are all user-defined parameters. Preferably, M is set to 12 and the time interval is set to 5 seconds. Then, the total acquisition duration of constructing a feature sequence is 12×5 = 60 seconds, and the first threshold, the second threshold, and the third threshold are respectively set to 10%, 20%, and 30% of the historical maximum phase compensation value.

[0069] In an embodiment of the present invention, the environmental temperature is acquired through an optical fiber temperature sensor; the bit error rate is represented by the ratio of the number of error bits to the total number of bits statistically counted within a user-defined preset time period. For example, the user-defined preset time period is set to 60 seconds; the phase drift value is detected by transmitting a reference optical signal to an intermediate station, where the reference optical signal is a strong coherent light wave; the optical fiber interference factor The calculation formula is as follows:

[0070] ;

[0071] where n represents the refractive index of the optical fiber, represents the wavelength of light, L represents the length of the optical fiber, and Thermal represents the thermal expansion coefficient.

[0072] It should be noted that the fiber refractive index, fiber length, and thermal expansion coefficient are all positively correlated with the fiber interference factor. The larger the fiber refractive index, the slower the optical signal propagates in the fiber; the longer the fiber length, the greater the influence of temperature and mechanical stress, and the lower the transmission efficiency; the thermal expansion coefficient is related to the fiber material and environmental temperature, and the larger the thermal expansion coefficient, the more obvious the influence of temperature on the fiber.

[0073] In an embodiment of the present invention, the preprocessing is specifically as follows: extract the characteristic parameters of the operation data corresponding to each time point, splice the characteristic parameters with the operation data to obtain combined data, and then perform normalization processing on the combined data of each time point through the Min-max normalization method to form a characteristic sequence. The characteristic parameters include: the change rate of the environmental temperature, the change rate of the bit error rate, and the change rate of the phase drift value. That is, each sequence unit is represented by a vector with a dimension of 7, namely the normalized environmental temperature, bit error rate, phase drift value, fiber interference factor, change rate of the environmental temperature, change rate of the bit error rate, and change rate of the phase drift value respectively.

[0074] In an embodiment of the present invention, the number of hidden layers of the first prediction model is the same as the number of sequence units of the characteristic sequence. The m-th hidden layer inputs the m-th sequence unit of the characteristic sequence and outputs an update vector, where 1 ≤ m ≤ M. The dimension number of the update vector is a custom parameter. Preferably, the dimension number of the update vector is set to 16;

[0075] Extract the update vector output by the M-th hidden layer and input it into the first classifier. The classification space of the first classifier represents the first phase compensation prediction value;

[0076] Before training the first prediction model, pre-training is added. During the pre-training process, extract the update vector output by the M-th hidden layer and input it into the second classifier. The classification space of the second classifier represents the bit error rate.

[0077] It should be noted that the sample labels of the training samples for pre-training are relatively easy to obtain, that is, the bit error rate. The target task of pre-training (predicting the bit error rate) and the target task of actual training (predicting the phase compensation value) are similar. After pre-training, fine-tuning the parameters of the first prediction model can significantly reduce the number of training samples in subsequent actual training, greatly improve the actual training speed of the model, and help the model converge better.

[0078] In an embodiment of the present invention, the calculation formula of the m-th hidden layer includes:

[0079] ;

[0080] where and respectively represent the update vectors output by the m-th and the m - 1-th hidden layers, is equal to 0, represents the m-th sequence unit of the feature sequence input to the m-th hidden layer, and respectively represent the first control vector and the second control vector of the m-th hidden layer, and respectively represent the first weight matrix and the second weight matrix of the m-th hidden layer, and tanh represents the hyperbolic tangent activation function, represents element-wise multiplication;

[0081] ;

[0082] where 、 and respectively represent the third weight matrix, the fourth weight matrix and the bias vector of the m-th hidden layer, and sigmoid represents the sigmoid activation function;

[0083] ;

[0084] where MLP represents a multi-layer perceptron and COMBINE represents a concatenation function.

[0085] It should be noted that the weight matrices and bias vectors in the first prediction model are all learnable hyperparameters. For example, if the dimension number of the update vector is set to 16, then the dimension numbers of the first control vector and the second control vector both need to be set to 16, the dimension number of the bias vector needs to be set to 16, and each sequence unit is represented by a vector with a dimension number of 7. Then the sizes of the first weight matrix and the third weight matrix both need to be set to 7×16, and the sizes of the second weight matrix and the fourth weight matrix both need to be set to 16×16.

[0086] In an embodiment of the present invention, as Figure 2 shown, the phase compensation value is obtained by transmitting a reference optical signal in combination with an experimental method, including the following steps:

[0087] Step S201, transmitting a reference optical signal to an intermediate station for detection to obtain a phase drift value, and performing 7 floating operations respectively to obtain 7 phase compensation values;

[0088] The floating percentages are -10%, -5%, -2%, 0%, +2%, +5% and +10% respectively;

[0089] Step S202, modulating the weak coherent optical pulse according to the 7 phase compensation values respectively, and sending it to the intermediate station to obtain the corresponding bit error rate, and taking the phase compensation value with the minimum bit error rate;

[0090] Step S203: Repeat steps S201 to S202 until U phase compensation values are obtained;

[0091] where U is a user-defined parameter. Preferably, U is set to 500.

[0092] In an embodiment of the present invention, phase synchronization can also be performed through an optical frequency comb (OFC) or a high-precision phase-locked loop (PLL). However, their deployment costs are relatively high. Obtaining phase compensation values by transmitting a reference optical signal in combination with the experimental method can effectively reduce costs, which will not be elaborated here.

[0093] In an embodiment of the present invention, the calculation formula of the second prediction model is as follows:

[0094] ;

[0095] where represents the second phase compensation prediction value output by the second prediction model, G represents the number of dimensions of the sequence unit, and respectively represent the g-th dimension value and the corresponding weight coefficient of the m-th sequence unit, and respectively represent the weight coefficient and the bias coefficient of the m-th sequence unit. The weight coefficients and bias coefficients in the second prediction model are both obtained by solving through the gradient descent algorithm or can also be obtained by solving through the least squares method, which will not be elaborated here.

[0096] In an embodiment of the present invention, the calculation formula for obtaining the actual phase compensation value by weighted summation calculation in step S105 is as follows:

[0097] ;

[0098] where represents the first phase compensation prediction value, represents the second phase compensation prediction value;

[0099] The calculation formula for obtaining the actual phase compensation value by weighted summation calculation in step S106 is as follows:

[0100] ;

[0101] where Current represents the phase compensation value at the current time point.

[0102] In an embodiment of the present invention, as Figure 3 shown, a quantum communication-based key distribution system includes:

[0103] A sample data construction module 301, which is used to preprocess the historical operation data of the optical fiber to form a feature sequence as sample data for training the first prediction model and the second prediction model;

[0104] A sample label construction module 302, which is used to obtain a phase compensation value by emitting a reference optical signal in combination with an experimental method as a sample label for training the first prediction model and the second prediction model;

[0105] A phase compensation prediction module 303, which is used to respectively perform predictions through the trained first prediction model and the second prediction model to obtain a first phase compensation prediction value and a second phase compensation prediction value;

[0106] A first judgment module 304, which is used to judge that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is less than a first threshold, then select the first phase compensation prediction value as the actual phase compensation value;

[0107] A second judgment module 305, which is used to judge that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the first threshold and less than a second threshold, then perform a weighted sum calculation on the two as the actual phase compensation value;

[0108] A third judgment module 306, which is used to judge that if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to the second threshold, then perform a weighted sum calculation on the two and the phase compensation value at the current time point as the actual phase compensation value.

[0109] The above describes the embodiments of this embodiment, but this embodiment is not limited to the above specific implementation manners. The above specific implementation manners are merely illustrative and not restrictive. Under the inspiration of this embodiment, those of ordinary skill in the art can also make many forms, all of which fall within the protection scope of this embodiment.

Claims

1. A key distribution method based on quantum communication, characterized in that: The following steps are involved: Step S101, pre-processing historical operation data of the optical fiber to form a feature sequence as sample data of training samples for training the first prediction model and the second prediction model; The feature sequence includes M sequence units, each sequence unit corresponds to the preprocessed running data at a time point, and the time interval of each sequence unit is the same; Operational data include: ambient temperature, bit error rate, phase drift value and fiber interference factor; Step S102, obtaining a phase compensation value by transmitting a reference optical signal and using an experimental method as a sample label of a training sample for training the first prediction model and the second prediction model; Step S103, performing predictions using the trained first prediction model and the trained second prediction model to obtain a first phase compensation prediction value and a second phase compensation prediction value; Step S104: If it is determined that the difference between the first phase compensation prediction value and the second phase compensation prediction value is less than a first threshold, the first phase compensation prediction value is selected as the actual phase compensation value; Step S105: If the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to a first threshold and less than a second threshold, a weighted sum of the two is calculated as an actual phase compensation value; Step S106 , if the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to a second threshold, a weighted sum of the two and the phase compensation value at the current time point is calculated as the actual phase compensation value.

2. A key distribution method based on quantum communication according to claim 1, characterized in that: The number M of sequence units, the time interval, the first threshold, the second threshold, and the third threshold of the feature sequence are all user-defined parameters.

3. A key distribution method based on quantum communication according to claim 1, characterized in that: Fiber interference factor The calculation formula is as follows: ; Where n represents the refractive index of the optical fiber, represents the wavelength of light, L represents the length of the optical fiber, and Thermal represents the thermal expansion coefficient.

4. A key distribution method based on quantum communication according to claim 1, characterized in that: The preprocessing is as follows: the characteristic parameters of the operating data corresponding to each time point are extracted, and the characteristic parameters are spliced with the operating data to obtain combined data. The combined data of each time point is then normalized using the Min-max normalization method to form a characteristic sequence. The characteristic parameters include: the rate of change of ambient temperature, the rate of change of bit error rate, and the rate of change of phase drift value.

5. The key distribution method based on quantum communication according to claim 1, characterized in that: The number of hidden layers in the first prediction model is the same as the number of sequence units in the feature sequence. The mth hidden layer inputs the mth sequence unit of the feature sequence and outputs an update vector, where 1≤m≤M. The number of dimensions of the update vector is a custom parameter. Extracting the update vector output by the Mth hidden layer and inputting it into the first classifier, the classification space of the first classifier represents the first phase compensation prediction value; Before training the first prediction model, pre-training is added. During the pre-training process, the update vector output by the Mth hidden layer is extracted and input into the second classifier. The classification space of the second classifier represents the bit error rate.

6. A key distribution method based on quantum communication according to claim 5, characterized in that: The calculation formula for the mth hidden layer includes: ; in and denote the update vectors of the mth and m-1th hidden layer outputs, respectively. is equal to 0, represents the mth sequence unit of the feature sequence input to the mth hidden layer, and denote the first control vector and the second control vector of the mth hidden layer respectively, and They represent the first weight matrix and the second weight matrix of the mth hidden layer respectively, tanh represents the hyperbolic tangent activation function, represents point-by-point multiplication; ; in 、 and They represent the third weight matrix, fourth weight matrix and bias vector of the mth hidden layer respectively, and sigmoid represents the sigmoid activation function; ; Where MLP represents multi-layer perceptron and COMBINE represents concatenation function.

7. A key distribution method based on quantum communication according to claim 1, characterized in that: The phase compensation value is obtained by transmitting a reference light signal and combining an experimental method, including the following steps: Step S201: a reference optical signal is transmitted to an intermediate station for detection to obtain a phase drift value, and seven phase compensation values are obtained by performing seven floating operations. The floating percentages are -10%, -5%, -2%, 0%, +2%, +5% and +10%; Step S202: modulate the weakly coherent optical pulses according to the seven phase compensation values, send them to the intermediate station to obtain the corresponding bit error rates, and select the phase compensation value with the minimum bit error rate; Step S203, repeating steps S201 to S202 until U phase compensation values are obtained; Where U is a custom parameter.

8. The key distribution method based on quantum communication according to claim 1, characterized in that: The calculation formula of the second prediction model is as follows: ; in represents the second phase compensation prediction value output by the second prediction model, G represents the number of dimensions of the sequence unit, and Represent the g-th dimension value and corresponding weight coefficient of the m-th sequence unit, respectively. and They represent the weight coefficient and bias coefficient of the mth sequence unit respectively.

9. The key distribution method based on quantum communication according to claim 1, characterized in that: In step S105, the weighted summation calculation is performed to obtain the actual phase compensation value. The calculation formula is as follows: ; in represents the first phase compensation prediction value, represents the second phase compensation prediction value; The calculation formula for obtaining the actual phase compensation value by weighted summation in step S106 is as follows: ; Where Current represents the phase compensation value at the current time point.

10. A key distribution system based on quantum communication, characterized in that: Executing a key distribution method based on quantum communication according to any one of claims 1 to 9, comprising: A sample data construction module, which is used to preprocess the historical operation data of the optical fiber to form a feature sequence as sample data of training samples for training the first prediction model and the second prediction model; A sample label construction module, which is used to obtain phase compensation values by transmitting a reference optical signal in combination with an experimental method as sample labels of training samples for training the first prediction model and the second prediction model; A phase compensation prediction module, which is used to predict the first phase compensation prediction value and the second phase compensation prediction value respectively through the trained first prediction model and the second prediction model; a first judging module, configured to judge that a difference between the first phase compensation prediction value and the second phase compensation prediction value is less than a first threshold, and then select the first phase compensation prediction value as the actual phase compensation value; a second judgment module, configured to judge that a difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to a first threshold and less than a second threshold, and then perform a weighted sum calculation on the two as an actual phase compensation value; The third judgment module is used to judge whether the difference between the first phase compensation prediction value and the second phase compensation prediction value is greater than or equal to a second threshold, and then perform weighted sum calculation on the two and the phase compensation value at the current time point as the actual phase compensation value.

Citation Information

Patent Citations

  • Offline phase compensation method for high-speed drift under CVQKD system and storage medium

    CN110380849A

  • TF-QKD system capable of phase compensation

    CN118101078A