Quantum key distribution method, device, equipment and storage medium

By combining the key demand information and the noise information of the target quantum channel, dynamically selecting quantum states and generating photon sequences, the problem of insufficient stability and security of quantum key distribution in complex channel environments in the prior art is solved, and the self-reliance of self-reliance is achieved Adaptive quantum key distribution ensures accurate and secure transmission of keys.

CN118972057BActive Publication Date: 2025-02-11SHENZHEN SUNSON TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411423741.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-12
Publication Date
2025-02-11
Estimated Expiration
2044-10-12

AI Technical Summary

Technical Problem

Existing quantum key distribution methods cannot guarantee the stability and security of transmission in complex channel noise environments.

Method used

By obtaining the key demand information of the key demander, a preset quantum random number generator is used to generate a matching quantum key, and the noise information of the target quantum channel is obtained, the target quantum state is dynamically determined, and the quantum key is mapped to this Quantum states and generate corresponding photon sequences, which are sent to the key demander through the target quantum channel.

Benefits of technology

Adaptive quantum key distribution in complex channel environments is realized, ensuring the personalization and applicability of the key, reducing the impact of noise on key transmission, and ensuring the accuracy and secure transmission of the key.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118972057B_ABST
    Figure CN118972057B_ABST
Patent Text Reader

Abstract

The present application relates to the field of quantum key technology, and provides a quantum key distribution method, device, equipment and storage medium. The method includes: obtaining key demand information of a key demander, generating a quantum key matching the key demand information through a preset quantum random number generator; obtaining noise information of a target quantum channel, and determining a target quantum state based on the noise information; mapping the quantum key to the target quantum state, obtaining a photon state sequence corresponding to the quantum key, and generating a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state; sending the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence. This method can improve the stability and security of quantum keys during transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of quantum key technology, and in particular to a quantum key distribution method, device, equipment and storage medium. Background Art

[0002] With the rapid development of information technology, traditional encryption methods have gradually exposed the problem of insufficient security in the face of increasingly complex attack methods. Especially in the context of quantum computers gradually approaching practical application, encryption algorithms based on classical computing may face the risk of being cracked in the future. Therefore, quantum key distribution, as a new encryption technology based on the basic principles of quantum mechanics, has attracted widespread attention because it provides unconditional security.

[0003] In the prior art, quantum key distribution methods usually transmit directly through quantum channels in set quantum states. When faced with complex channel noise environments, the stability and security of transmission are often unable to be guaranteed. Summary of the invention

[0004] The present application provides a quantum key distribution method, apparatus, device and storage medium to solve the problems raised by the above background technology.

[0005] In a first aspect, the present application provides a quantum key distribution method, comprising:

[0006] Obtaining key requirement information of a key demander, and generating a quantum key matching the key requirement information through a preset quantum random number generator;

[0007] Acquiring noise information of a target quantum channel, and determining a target quantum state based on the noise information;

[0008] Mapping the quantum key to the target quantum state to obtain a photon state sequence corresponding to the quantum key, and generating a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state;

[0009] The photon sequence is sent to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence.

[0010] In a possible implementation, generating a quantum key matching the key requirement information by a preset quantum random number generator includes:

[0011] Inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information;

[0012] A quantum key matching the encryption level is generated by a preset quantum random number generator.

[0013] In a possible implementation, inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information includes:

[0014] Inputting the key requirement information into a preset security level prediction model; wherein the security level prediction model includes a classification layer, multiple feature extraction layers, a risk factor generation layer and an encryption level generation layer;

[0015] The classification layer classifies the key requirement information to obtain a plurality of requirement factors corresponding to the key requirement information, and distributes each of the requirement factors to a corresponding feature extraction layer;

[0016] Each of the feature extraction layers performs feature extraction on the received demand factors to obtain feature vectors corresponding to each of the demand factors;

[0017] The risk factor generation layer generates risk factors based on the feature vectors corresponding to the demand factors;

[0018] The encryption level generation layer determines the encryption level corresponding to the risk factor based on a preset risk factor-encryption level mapping relationship table.

[0019] In a possible implementation, the risk factor generation layer generates a risk factor based on the feature vector corresponding to each of the demand factors, including:

[0020] For each of the demand factors, the risk factor generation layer calculates the similarity between the feature vector corresponding to the demand factor and the standard vector corresponding to the demand factor, and determines the product of the similarity and the risk weight corresponding to the demand factor as the risk value corresponding to the demand factor;

[0021] The risk factor is obtained by adding the risk values ​​corresponding to the various demand factors.

[0022] In a possible implementation manner, the noise information includes parameter values ​​corresponding to multiple noise parameters of the target quantum channel, and determining the target quantum state based on the noise information includes:

[0023] For each of the noise parameters, obtaining the absolute value of the difference between the parameter value corresponding to the noise parameter and the standard parameter value corresponding to the noise parameter, calculating the percentage between the absolute value and the standard parameter value, and determining the product of the percentage and the noise weight corresponding to the noise parameter as the noise value corresponding to the noise parameter;

[0024] The noise values ​​corresponding to the various noise parameters are added together to obtain a noise index corresponding to the noise information, and a target quantum state is determined based on the noise index.

[0025] In a possible implementation, the quantum key includes multiple bit values, and mapping the quantum key to the target quantum state to obtain a photon state sequence corresponding to the quantum key includes:

[0026] Each bit value of the quantum key is mapped to the target quantum state in sequence to obtain a photon state sequence corresponding to the quantum key.

[0027] In a possible implementation manner, sending the photon sequence to the key demander through the target quantum channel includes:

[0028] Each photon of the photon sequence is sent sequentially to the key demander through the target quantum channel.

[0029] In a second aspect, the present application provides a quantum key distribution device, comprising:

[0030] A first acquisition module is used to obtain key demand information of a key demander, and generate a quantum key matching the key demand information through a preset quantum random number generator;

[0031] A second acquisition module is used to acquire noise information of a target quantum channel and determine a target quantum state based on the noise information;

[0032] A generation module, used to map the quantum key to the target quantum state, obtain a photon state sequence corresponding to the quantum key, and generate a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state;

[0033] A sending module is used to send the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence.

[0034] In a third aspect, the present application provides a terminal device, characterized in that the terminal device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the quantum key distribution method as described in any one of the above items is implemented.

[0035] In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, wherein when the computer program is executed by a processor, the quantum key distribution method as described in any one of the above items is implemented.

[0036] The present application provides a quantum key distribution method, device, equipment and storage medium, wherein the method includes: obtaining key demand information of a key demander, generating a quantum key matching the key demand information through a preset quantum random number generator; obtaining noise information of a target quantum channel, and determining a target quantum state based on the noise information; mapping the quantum key to the target quantum state, obtaining a photon state sequence corresponding to the quantum key, and generating a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state; sending the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence. The method realizes an adaptive quantum key distribution method by combining the key demand information and the noise information of the target quantum channel. First, a quantum key matching the specific needs of the key demander is generated through a quantum random number generator, thereby ensuring the personalization and applicability of the key. Secondly, by obtaining the noise information of the target quantum channel and dynamically selecting a suitable quantum state, this design can effectively cope with complex channel environments and reduce the impact of noise on key transmission. Finally, the quantum key is mapped to the selected quantum state and the corresponding photon sequence is generated to ensure that the key can accurately and securely reach the key demander during the actual transmission process. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0038] Figure 1 A schematic diagram of a process for quantum key distribution method provided in an embodiment of the present application;

[0039] Figure 2 A schematic block diagram of the structure of a quantum key distribution device provided in an embodiment of the present application;

[0040] Figure 3 A schematic block diagram of the structure of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0042] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change based on actual conditions.

[0043] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0044] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0045] With the rapid development of information technology, traditional encryption methods have gradually exposed the problem of insufficient security in the face of increasingly complex attack methods. Especially in the context of quantum computers gradually approaching practical application, encryption algorithms based on classical computing may face the risk of being cracked in the future. Therefore, quantum key distribution, as a new encryption technology based on the basic principles of quantum mechanics, has attracted widespread attention because it provides unconditional security.

[0046] In the prior art, the method of quantum key distribution usually directly transmits the set quantum state through the quantum channel. When facing a complex channel noise environment, the stability and security of the transmission are often unable to be guaranteed. To this end, the present application provides a quantum key distribution method, device, equipment and storage medium to solve the above problems.

[0047] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0048] See also Figure 1 , Figure 1 A schematic diagram of a quantum key distribution method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the quantum key distribution method provided in the embodiment of the present application includes steps S1 to S4.

[0049] Step S1: Obtain key requirement information of a key demander, and generate a quantum key matching the key requirement information through a preset quantum random number generator.

[0050] It can be understood that the executor of this embodiment is the key distributor. Specifically, the key demander sends key demand information to the key distributor according to its own encryption requirements. After receiving the key demand information, the key distributor generates a quantum key matching the key demand information through a preset quantum random number generator, wherein the key demand information includes but is not limited to the key length, key usage scenario and key usage period.

[0051] Among them, the generating a quantum key matching the key requirement information by a preset quantum random number generator includes: inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information; and generating a quantum key matching the encryption level by a preset quantum random number generator.

[0052] Furthermore, the step of inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information comprises: inputting the key requirement information into a preset security level prediction model; wherein the security level prediction model comprises a classification layer, multiple feature extraction layers, a risk factor generation layer and an encryption level generation layer; the classification layer classifies the key requirement information to obtain multiple requirement factors corresponding to the key requirement information, and distributes each of the requirement factors to a corresponding feature extraction layer; each of the feature extraction layers extracts features from the received requirement factors to obtain a feature vector corresponding to each of the requirement factors; the risk factor generation layer generates a risk factor based on the feature vector corresponding to each of the requirement factors; and the encryption level generation layer determines the encryption level corresponding to the risk factor based on a preset risk factor-encryption level mapping relationship table.

[0053] Furthermore, the risk factor generation layer generates risk factors based on the characteristic vectors corresponding to each of the demand factors, including: for each of the demand factors, the risk factor generation layer calculates the similarity between the characteristic vector corresponding to the demand factor and the standard vector corresponding to the demand factor, and determines the product of the similarity and the risk weight corresponding to the demand factor as the risk value corresponding to the demand factor; and adds the risk values ​​corresponding to each of the demand factors to obtain the risk factor.

[0054] It can be understood that the above-mentioned method of generating a quantum key matching the key requirement information through a preset quantum random number generator, by inputting the key requirement information into a preset security level prediction model, generates a security level matching the key requirement information, which helps to improve the matching degree between the subsequently generated quantum key and the key requirement information, and improves the key demander's experience of using the quantum key.

[0055] Step S2: Obtain noise information of the target quantum channel, and determine the target quantum state based on the noise information.

[0056] It can be understood that the target quantum channel is a quantum channel between a key distributor and a key demander, and the quantum channel is a fiber optic channel.

[0057] Specifically, the noise information includes parameter values ​​corresponding to multiple noise parameters of the target quantum channel, and determining the target quantum state based on the noise information includes:

[0058] For each of the noise parameters, the absolute value of the difference between the parameter value corresponding to the noise parameter and the standard parameter value corresponding to the noise parameter is obtained, and the percentage between the absolute value and the standard parameter value is calculated, and the product between the percentage and the noise weight corresponding to the noise parameter is determined as the noise value corresponding to the noise parameter; the noise values ​​corresponding to each of the noise parameters are added to obtain the noise index corresponding to the noise information, and the target quantum state is determined based on the noise index. Wherein, the noise parameters include but are not limited to the length of the target quantum channel, the temperature of the environment in which the target quantum channel is located, the intensity of electromagnetic radiation, various scattering factors, and the bending angles of each bend. The method for determining the target quantum state based on the noise index is to traverse a preset noise index-quantum state mapping relationship table to determine the target quantum state corresponding to the noise index. The target quantum state is any one of a polarization state, a phase state, a time offset state, and an energy state, and the noise indexes corresponding to the polarization state, the phase state, the time offset state, and the energy state increase in sequence.

[0059] Step S3: Map the quantum key to the target quantum state to obtain a photon state sequence corresponding to the quantum key, and generate a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state.

[0060] Specifically, each bit value of the quantum key is sequentially mapped to the target quantum state to obtain a photon state sequence corresponding to the quantum key, and a photon sequence corresponding to the photon state is generated based on a photon generation method corresponding to the target quantum state.

[0061] Exemplarily, the quantum key is "10101", the target quantum state is the polarization state, the bit value "0" corresponds to the horizontal polarization state "H", and the bit value "1" corresponds to the vertical polarization state "V", then the photon state sequence corresponding to the quantum key "10101" is "VHVHV". After obtaining the photon state sequence "VHVHV", a polarization state photon generating device is used to generate a photon sequence corresponding to the photon state sequence "VHVHV".

[0062] Exemplarily, the quantum key is "10101", the target quantum state is a phase state, the bit value "0" corresponds to a phase difference of "0°", and the bit value "1" corresponds to a phase difference of "180°", then the photon state sequence corresponding to the quantum key "10101" is "180°, 0°, 180°, 0°, 180°", and after obtaining the photon state sequence of "180°, 0°, 180°, 0°, 180°", a phase state photon generating device is used to generate a photon sequence corresponding to the photon state sequence of "180°, 0°, 180°, 0°, 180°".

[0063] Step S4: sending the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence.

[0064] Specifically, each photon of the photon sequence is sent sequentially to the key demander through the target quantum channel.

[0065] Exemplarily, the photon state sequence is "VHVHV", first the photon corresponding to the photon state "V" is sent to the key demander, then the photon corresponding to the photon state "H" is sent to the key demander, secondly the photon corresponding to the photon state "V" is sent to the key demander, and then the photon corresponding to the photon state "H" is sent to the key demander, and finally the photon corresponding to the photon state "V" is sent to the key demander.

[0066] The method provided in this embodiment realizes an adaptive quantum key distribution method by combining key demand information and noise information of the target quantum channel. First, a quantum key that matches the specific needs of the key demander is generated by a quantum random number generator, thereby ensuring the personalization and applicability of the key. Secondly, by obtaining the noise information of the target quantum channel and dynamically selecting a suitable quantum state, this design can effectively cope with complex channel environments and reduce the impact of noise on key transmission. Finally, the quantum key is mapped to the selected quantum state and the corresponding photon sequence is generated to ensure that the key can reach the key demander accurately and securely during the actual transmission process.

[0067] See also Figure 2 , Figure 2 A schematic block diagram of the structure of the quantum key distribution device 100 provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the quantum key distribution device 100 includes:

[0068] The first acquisition module 110 is used to obtain key requirement information of the key demander, and generate a quantum key matching the key requirement information through a preset quantum random number generator.

[0069] The second acquisition module 120 is used to acquire noise information of the target quantum channel and determine the target quantum state based on the noise information.

[0070] The generation module 130 is used to map the quantum key to the target quantum state, obtain a photon state sequence corresponding to the quantum key, and generate a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state.

[0071] The sending module 140 is used to send the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence.

[0072] It should be noted that technicians in the relevant technical field can clearly understand that for the convenience and conciseness of description, the specific working process of the above-described device and each module can refer to the corresponding process in the aforementioned quantum key distribution method embodiment, and will not be repeated here.

[0073] The terminal device 200 provided in the above embodiment can be implemented in the form of a computer program. The computer program can be Figure 3 The system is run on the terminal device 200 shown.

[0074] See also Figure 3 , Figure 3 The present invention provides a schematic block diagram of the structure of a terminal device 200 according to an embodiment of the present application. The terminal device 200 includes a processor 201 and a memory 202. The processor 201 and the memory 202 are connected via a device bus 203, wherein the memory 202 may include a non-volatile storage medium and an internal memory.

[0075] The non-volatile storage medium can store a computer program. The computer program includes program instructions, and when the program instructions are executed by the processor 201, the processor 201 can execute any of the above-mentioned quantum key distribution methods.

[0076] The processor 201 is used to provide computing and control capabilities to support the operation of the entire terminal device 200.

[0077] The internal memory provides an environment for the operation of the computer program in the non-volatile storage medium. When the computer program is executed by the processor 201, the processor 201 can execute any of the above-mentioned quantum key distribution methods.

[0078] Those skilled in the art will understand that Figure 3The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the terminal device 200 involved in the scheme of the present application. The specific terminal device 200 may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0079] It should be understood that the processor 201 may be a central processing unit (CPU), and the processor 201 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0080] In some embodiments, the processor 201 is used to run a computer program stored in the memory to implement the following steps:

[0081] Obtaining key requirement information of a key demander, and generating a quantum key matching the key requirement information through a preset quantum random number generator;

[0082] Acquiring noise information of a target quantum channel, and determining a target quantum state based on the noise information;

[0083] Mapping the quantum key to the target quantum state to obtain a photon state sequence corresponding to the quantum key, and generating a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state;

[0084] The photon sequence is sent to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence.

[0085] It should be noted that technicians in the relevant field can clearly understand that for the convenience and conciseness of description, the specific working process of the terminal device 200 described above can refer to the corresponding process of the aforementioned quantum key distribution method, and will not be repeated here.

[0086] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by one or more processors, the one or more processors implement the quantum key distribution method provided in the embodiment of the present application.

[0087] The computer-readable storage medium may be an internal storage unit of the terminal device 200 in the aforementioned embodiment, such as a hard disk or memory of the terminal device 200. The computer-readable storage medium may also be an external storage device of the terminal device 200, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped with the terminal device 200.

[0088] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A quantum key distribution method, characterized in that: include: Obtaining key requirement information of a key demander, and generating a quantum key matching the key requirement information through a preset quantum random number generator; Acquiring noise information of a target quantum channel, and determining a target quantum state based on the noise information; Mapping the quantum key to the target quantum state to obtain a photon state sequence corresponding to the quantum key, and generating a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state; Sending the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence; The step of generating a quantum key matching the key requirement information by a preset quantum random number generator includes: Inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information; Generate a quantum key matching the encryption level by a preset quantum random number generator; The step of inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information includes: Inputting the key requirement information into a preset security level prediction model; wherein the security level prediction model includes a classification layer, multiple feature extraction layers, a risk factor generation layer and an encryption level generation layer; The classification layer classifies the key requirement information to obtain a plurality of requirement factors corresponding to the key requirement information, and distributes each of the requirement factors to a corresponding feature extraction layer; Each of the feature extraction layers performs feature extraction on the received demand factors to obtain feature vectors corresponding to each of the demand factors; The risk factor generation layer generates risk factors based on the feature vectors corresponding to the demand factors; The encryption level generation layer determines the encryption level corresponding to the risk factor based on a preset risk factor-encryption level mapping relationship table.

2. The quantum key distribution method according to claim 1, characterized in that: The risk factor generation layer generates risk factors based on the feature vectors corresponding to the demand factors, including: For each of the demand factors, the risk factor generation layer calculates the similarity between the feature vector corresponding to the demand factor and the standard vector corresponding to the demand factor, and determines the product of the similarity and the risk weight corresponding to the demand factor as the risk value corresponding to the demand factor; The risk factor is obtained by adding the risk values ​​corresponding to the various demand factors.

3. The quantum key distribution method according to claim 1, characterized in that: The noise information includes parameter values ​​corresponding to a plurality of noise parameters of the target quantum channel, and determining the target quantum state based on the noise information includes: For each of the noise parameters, obtaining the absolute value of the difference between the parameter value corresponding to the noise parameter and the standard parameter value corresponding to the noise parameter, calculating the percentage between the absolute value and the standard parameter value, and determining the product of the percentage and the noise weight corresponding to the noise parameter as the noise value corresponding to the noise parameter; The noise values ​​corresponding to the various noise parameters are added together to obtain a noise index corresponding to the noise information, and a target quantum state is determined based on the noise index.

4. The quantum key distribution method according to claim 1, characterized in that: The quantum key includes a plurality of bit values, and mapping the quantum key to the target quantum state to obtain a photon state sequence corresponding to the quantum key includes: Each bit value of the quantum key is mapped to the target quantum state in sequence to obtain a photon state sequence corresponding to the quantum key.

5. The quantum key distribution method according to claim 1, characterized in that: The sending the photon sequence to the key demander through the target quantum channel includes: Each photon of the photon sequence is sent sequentially to the key demander through the target quantum channel.

6. A quantum key distribution device, characterized in that: include: A first acquisition module is used to obtain key demand information of a key demander, and generate a quantum key matching the key demand information through a preset quantum random number generator; A second acquisition module is used to acquire noise information of a target quantum channel and determine a target quantum state based on the noise information; A generation module, used to map the quantum key to the target quantum state, obtain a photon state sequence corresponding to the quantum key, and generate a photon sequence corresponding to the photon state based on a photon generation method corresponding to the target quantum state; A sending module, used for sending the photon sequence to the key demander through the target quantum channel, so that the key demander obtains the quantum key based on the photon sequence; The step of generating a quantum key matching the key requirement information by a preset quantum random number generator includes: Inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information; Generate a quantum key matching the encryption level by a preset quantum random number generator; The step of inputting the key requirement information into a preset encryption level prediction model to obtain an encryption level corresponding to the key requirement information includes: Inputting the key requirement information into a preset security level prediction model; wherein the security level prediction model includes a classification layer, multiple feature extraction layers, a risk factor generation layer and an encryption level generation layer; The classification layer classifies the key requirement information to obtain a plurality of requirement factors corresponding to the key requirement information, and distributes each of the requirement factors to a corresponding feature extraction layer; Each of the feature extraction layers performs feature extraction on the received demand factors to obtain feature vectors corresponding to each of the demand factors; The risk factor generation layer generates risk factors based on the feature vectors corresponding to the demand factors; The encryption level generation layer determines the encryption level corresponding to the risk factor based on a preset risk factor-encryption level mapping relationship table.

7. A terminal device, characterized in that: The terminal device includes a processor, a memory, and a computer program stored in the memory and executable by the processor, wherein when the computer program is executed by the processor, the quantum key distribution method as described in any one of claims 1 to 5 is implemented.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the quantum key distribution method according to any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Voice signal quantum encryption communication system based on random number

    CN108768542A

  • Communication encryption method and device for power distribution terminal

    CN115694815A