Optical fiber secure communication method and system based on quantum technology

Through optical fiber secure communication methods based on quantum technology, using decoy state quantum key distribution protocols and quantum true random number generators, combined with cascade error correction and privacy amplification algorithms, the traditional optical fiber communication security and key distribution problems are solved and achieved Efficient and secure quantum state encryption and data transmission.

CN118573372BActive Publication Date: 2024-10-29NINGBO ZHANTONG TELECOM EQUIP INDAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411019566.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-29
Publication Date
2024-10-29
Estimated Expiration
2044-07-29

AI Technical Summary

Technical Problem

Traditional optical fiber communication relies on classical cryptography technology and faces security challenges brought by the development of computer hardware and algorithms, especially the threat of quantum computers to classical encryption algorithms, and classical key distribution protocols are vulnerable to man-in-the-middle attacks and key leak risks. Predictability issues with random number generators.

Method used

It adopts an optical fiber secure communication method based on quantum technology, establishes a shared key through decoy state quantum key distribution protocol, cascade error correction algorithm and privacy amplification algorithm, uses a quantum true random number generator to generate a key random number, and receives the key through encryption. Control the Pauli-X gate to perform quantum state encryption on plaintext data, and combine it with wavelength division multiplexing technology to transmit it in the optical fiber quantum channel.

Benefits of technology

It improves the security and reliability of quantum key distribution, ensures the true randomness and unpredictability of keys, enhances the confidentiality and integrity of data transmission, realizes end-to-end secure communication, and has good compatibility performance and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573372B_ABST
    Figure CN118573372B_ABST
Patent Text Reader

Abstract

The invention provides a fiber optic secure communication method and system based on quantum technology, which relates to the field of communication technology. The method and system include using a decoyed state quantum key distribution protocol to establish a shared original key between two communicating parties through an optical fiber quantum channel, performing error correction and privacy amplification on the original key through a cascade error correction algorithm and a privacy amplification algorithm, and using a quantum true random number generator to generate a key random number for key negotiation in real time to obtain a target key; using the target key to encrypt plaintext data transmitted by the two communicating parties to obtain quantum state ciphertext data, and combining the quantum state ciphertext data, a time synchronization signal, and error correction redundant check information into target encrypted information; the receiving party synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundant check information to perform error detection and error correction on the target encrypted information, and uses the target key shared by the sending party to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to communication technology, and in particular to a method and system for optical fiber secure communication based on quantum technology. Background Art

[0002] Traditional fiber-optic communications mainly rely on classical cryptography techniques, such as symmetric key encryption and public key encryption, to ensure the secure transmission of data. However, these classical encryption methods face some inherent limitations and potential security risks.

[0003] First, the security of traditional encryption algorithms is usually based on computational complexity assumptions, such as the difficulty of large integer factorization and discrete logarithm problems. However, with the continuous development of computer hardware and algorithms, especially the emergence of quantum computers, the validity of these assumptions has been challenged. Quantum computers can efficiently solve certain types of mathematical problems, posing a serious threat to classical encryption algorithms.

[0004] Secondly, classic key distribution protocols, such as Diffie-Hellman key exchange and RSA encryption, are vulnerable to man-in-the-middle attacks and key leakage during the key distribution process. Attackers can eavesdrop on or tamper with the key distribution channel, obtain or destroy the shared keys of the communicating parties, and thus destroy the confidentiality and integrity of the communication.

[0005] In addition, classical encryption methods usually rely on the quality and security of random number generators. However, truly random numbers are difficult to generate, and many pseudo-random number generators have predictability and periodicity problems, which provide opportunities for cryptanalysis and cracking attacks. Summary of the invention

[0006] The embodiments of the present invention provide a quantum technology-based optical fiber secure communication method and system, which can solve the problems in the prior art.

[0007] According to a first aspect of the embodiments of the present invention,

[0008] Provides a secure optical fiber communication method based on quantum technology, including:

[0009] Using a decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through an optical fiber quantum channel, the original key is corrected and privacy amplified through a cascade error correction algorithm and a privacy amplification algorithm, and a quantum true random number generator is used to generate a key random number for key negotiation in real time to obtain a target key;

[0010] The target key is used to encrypt the plaintext data transmitted by the communicating parties to obtain quantum state ciphertext data, the quantum state ciphertext data, the pre-acquired shared time synchronization signal and the pre-acquired shared error correction redundant check information are combined into target encrypted information, and the target encrypted information is multiplexed into the optical fiber quantum channel through wavelength division multiplexing technology and sent to the receiving party;

[0011] The receiver synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundancy check information to detect and correct errors in the target encrypted information, and uses the target key shared by the sender to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key.

[0012] In an optional embodiment,

[0013] Using the decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through the optical fiber quantum channel, the original key is corrected and privacy amplified through the cascade error correction algorithm and the privacy amplification algorithm, and a quantum true random number generator is used to generate a key random number for key negotiation in real time. Obtaining the target key includes:

[0014] Using the decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through the optical fiber quantum channel;

[0015] Performing cascade error correction processing on the original key, using a low-density parity check code cascade error correction algorithm to correct the original key and obtain a key after error correction;

[0016] The universal hash function constructed by the Toeplitz matrix is ​​used to perform a hash operation on the error-corrected key and the random number seed to obtain the privacy amplification key.

[0017] A quantum true random number generator is used to generate random key numbers for key negotiation in real time, a random entropy source is generated based on photon number distribution, phase fluctuations, and Raman scattering spectrum, and a uniformly distributed random bit sequence is obtained from the random entropy source through a random number extraction algorithm;

[0018] An XOR operation is performed on the privacy amplified key and the random bit sequence to obtain a target key.

[0019] In an optional embodiment,

[0020] Generating a random entropy source based on photon number distribution, phase fluctuation, and Raman scattering spectrum, and obtaining a uniformly distributed random bit sequence from the random entropy source through a random number extraction algorithm includes:

[0021] The random number sequence of photon number distribution, the random number sequence of phase fluctuation and the random number sequence of Raman scattering spectrum are obtained respectively to form a multi-source quantum random entropy source;

[0022] The photon number distribution random number sequence is subjected to photon number segmentation processing, and the original random number sequence is divided into several subsequences based on a preset trigger number threshold, and a uniformly distributed photon random bit sequence is extracted from each subsequence;

[0023] Amplifying and performing analog-to-digital conversion processing on the phase fluctuation random number sequence, eliminating the bias and correlation of the phase fluctuation random number sequence after the amplification and analog-to-digital conversion processing by debiasing and whitening processing, and obtaining a phase random bit sequence;

[0024] The random number sequence of the Raman scattering spectrum is filtered, amplified and thresholded to extract the intensity fluctuation information of the scattered light and obtain a random bit sequence of the spectrum.

[0025] In an optional embodiment,

[0026] Using the target key to encrypt the plaintext data transmitted by the communicating parties to obtain quantum state ciphertext data, and combining the quantum state ciphertext data, the pre-acquired shared time synchronization signal, and the pre-acquired shared error correction redundant check information into target encrypted information includes:

[0027] Converting plaintext data into a binary bit sequence, and mapping the binary bit sequence into a plaintext quantum state basis vector sequence, each plaintext quantum state basis vector sequence consisting of two orthogonal basis states of a single quantum bit;

[0028] The target key is used to encrypt the plaintext quantum state basis vector sequence, and an encrypted controlled Pauli-X gate is applied to each plaintext quantum state basis vector sequence, wherein the control bit of the encrypted controlled Pauli-X gate is the key bit, and the target bit is the plaintext quantum state basis vector sequence, and the quantum state ciphertext data is obtained by modulo 2 addition;

[0029] The quantum state ciphertext data, the pre-acquired shared time synchronization signal, and the pre-acquired shared error correction redundant check information are combined, and time division multiplexing or wavelength division multiplexing technology is used to achieve seamless integration in different time slots or frequency bands to form complete target encrypted information.

[0030] In an optional embodiment,

[0031] The target key is used to encrypt the plaintext quantum state basis vector sequence, and an encrypted controlled Pauli-X gate is applied to each plaintext quantum state basis vector sequence, wherein the control bit of the encrypted controlled Pauli-X gate is the key bit, and the target bit is the plaintext quantum state basis vector sequence. The quantum state ciphertext data obtained by modulo 2 addition includes:

[0032] ;

[0033] in, Represents quantum state ciphertext data, n represents the length of the plaintext quantum state basis vector sequence, Represents the multiplication symbol, indicating the continuous action of multiple quantum gate operations. Indicates i The key bits and i+n A controlled Pauli-X gate between plaintext quantum states, where i is the control bit and i+n is the target bit. H i represents the Hadamard gate acting on the i-th key bit, converting the quantum state between the computational basis and the Hadamard basis, represents the controlled phase gate between the i-th key bit and the i+n-th plaintext quantum state, represents the adjustable phase angle parameter, represents the tensor product, which represents the composite of multiple independent quantum states. k i represents the i-th key bit, d i Represents the i-th plaintext quantum state basis vector.

[0034] In an optional embodiment,

[0035] The receiving party synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundancy check information to perform error detection and error correction on the target encrypted information, and uses the target key shared by the sender to decrypt the target encrypted information, and obtains the plaintext data corresponding to the original key, including:

[0036] The receiving party uses the shared time synchronization signal to perform timing alignment and frame synchronization on the received target encrypted information, and extracts the ciphertext quantum state sequence and the corresponding error correction redundant bits in the target encrypted information;

[0037] Using the error correction redundant bits to perform error detection and correction on the ciphertext quantum state sequence to eliminate errors introduced during the transmission process;

[0038] The error-corrected ciphertext quantum state sequence is decrypted using the shared target key, and a decryption-controlled Pauli-X gate is applied to each ciphertext quantum state sequence, wherein the control bit of the decryption-controlled Pauli-X gate is the plaintext quantum state basis vector sequence, and the target bit is the key bit, so as to recover the plaintext data corresponding to the original key.

[0039] In an optional embodiment,

[0040] When the control bit of the encrypted controlled Pauli-X gate is When the control bit is When , the target bit flips state;

[0041] When the control bit of the decrypted controlled Pauli-X gate is When the control bit is , the target bit flips state.

[0042] In the second aspect of the embodiments of the present application,

[0043] Provides optical fiber secure communication systems based on quantum technology, including:

[0044] The first unit is used to establish a shared original key between the communicating parties through an optical fiber quantum channel by using a decoyed state quantum key distribution protocol, perform error correction and privacy amplification on the original key by using a cascade error correction algorithm and a privacy amplification algorithm, and use a quantum true random number generator to generate a key random number for key negotiation in real time to obtain a target key;

[0045] The second unit is used to encrypt the plaintext data transmitted by the communicating parties using the target key to obtain quantum state ciphertext data, combine the quantum state ciphertext data, the pre-acquired shared time synchronization signal and the pre-acquired shared error correction redundant check information into target encrypted information, and multiplex the target encrypted information into the optical fiber quantum channel through wavelength division multiplexing technology to send it to the receiving party;

[0046] The third unit is used for the receiver to synchronize the target encrypted information according to the time synchronization signal and use the error correction redundant check information to perform error detection and correction on the target encrypted information, and use the target key shared by the sender to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key.

[0047] According to a third aspect of the embodiments of the present invention,

[0048] An electronic device is provided, comprising:

[0049] processor;

[0050] a memory for storing processor-executable instructions;

[0051] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0052] A fourth aspect of the embodiments of the present invention is:

[0053] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0054] The technical solution of the present application adopts a decoyed state quantum key distribution protocol and introduces decoyed states as a way of preparing quantum states, which can effectively detect and defend against potential quantum hacker attacks, such as intercept-retransmission attacks and measurement-retransmission attacks, thereby improving the security and reliability of the quantum key distribution process. The use of a quantum true random number generator to generate key random numbers for key negotiation in real time overcomes the limitations of traditional pseudo-random number generators and ensures the true randomness and unpredictability of the key. At the same time, the original key is corrected and privacy amplified through a cascade error correction algorithm and a privacy amplification algorithm, eliminating possible errors and leaks in the key distribution process and enhancing the confidentiality and security of the key.

[0055] The target key is used to encrypt the plaintext data transmitted by the communicating parties to obtain quantum state ciphertext data, ensuring the confidentiality and integrity of the data during transmission. By combining the quantum state ciphertext data, time synchronization signal and error correction redundant check information into the target encrypted information, and using wavelength division multiplexing technology for multiplexing transmission, the efficiency and throughput of data transmission are improved. By pre-acquiring the shared time synchronization signal, the receiver can accurately synchronize the target encrypted information, ensuring the timing consistency and integrity of data transmission. At the same time, the target encrypted information is error-checked and corrected using the pre-acquired shared error correction redundant check information, improving the reliability and fault tolerance of data transmission.

[0056] By using the target key shared by the sender to decrypt the target encrypted information, the receiver can restore the original plaintext data, realizing the end-to-end secure communication process from key distribution to data encryption and decryption, and ensuring the confidentiality and integrity of information exchange between the two communicating parties. By using optical fiber quantum channels as the transmission medium and using wavelength division multiplexing technology to realize multiplexed transmission of multiple signals, the solution can be flexibly integrated into the existing optical fiber communication network, with good compatibility and scalability, and is easy to realize large-scale quantum secure communication network deployment. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 This is a schematic diagram of a process of a method for secure optical fiber communication based on quantum technology according to an embodiment of the present invention;

[0058] Figure 2 This is a schematic diagram of the structure of a fiber-optic secure communication system based on quantum technology according to an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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.

[0060] The technical solution of the present invention is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0061] Figure 1 FIG. 1 is a flow chart of a method for secure optical fiber communication based on quantum technology according to an embodiment of the present invention. Figure 1 As shown, the method includes:

[0062] S101. Using a decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through an optical fiber quantum channel, the original key is corrected and privacy amplified through a cascade error correction algorithm and a privacy amplification algorithm, and a quantum true random number generator is used to generate a key random number for key negotiation in real time to obtain a target key;

[0063] In an optional embodiment,

[0064] Using the decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through the optical fiber quantum channel, the original key is corrected and privacy amplified through the cascade error correction algorithm and the privacy amplification algorithm, and a quantum true random number generator is used to generate a key random number for key negotiation in real time. Obtaining the target key includes:

[0065] Using the decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through the optical fiber quantum channel;

[0066] Performing cascade error correction processing on the original key, using a low-density parity check code cascade error correction algorithm to correct the original key and obtain a key after error correction;

[0067] The universal hash function constructed by the Toeplitz matrix is ​​used to perform a hash operation on the error-corrected key and the random number seed to obtain the privacy amplification key.

[0068] A quantum true random number generator is used to generate random key numbers for key negotiation in real time, a random entropy source is generated based on photon number distribution, phase fluctuations, and Raman scattering spectrum, and a uniformly distributed random bit sequence is obtained from the random entropy source through a random number extraction algorithm;

[0069] An XOR operation is performed on the privacy amplified key and the random bit sequence to obtain a target key.

[0070] For example, Decoy State Quantum Key Distribution (DS-QKD) is an important QKD protocol. Compared with the traditional BB84 protocol, it introduces decoy state photons, which can effectively resist quantum hacking behaviors such as Photon Number Splitting (PNS) and man-in-the-middle attacks. In this scheme, the communicating parties adopt the DS-QKD protocol and use optical fiber as a quantum channel to establish a shared original key.

[0071] The core idea of ​​the DS-QKD protocol is that in the process of preparing photon states, in addition to the conventional signal state, the sender Alice also randomly prepares some decoy states with different photon number intensities. By comparing the transmission performance of the signal state and the decoy state, it can be inferred whether there is an eavesdropper Eve in the channel. Specifically, Alice randomly selects a state from the signal state, decoy state 1, and decoy state 2 to prepare photons, and adjusts the corresponding photon intensity through the intensity modulator, and then encodes the photons using the polarization modulator to form a polarization-encoded quantum state sequence and send it to the receiver Bob.

[0072] Bob uses optical switches, PBS beam splitters, and single-photon detectors to measure and receive, and records information such as the measurement time, basis vector, and results. Subsequently, Alice and Bob compare the basis vectors through the classical channel, discard the bits that do not match the basis vectors, and obtain the initial key sequence. By analyzing the transmission efficiency and bit error rate of the decoyed state, Alice and Bob can estimate the possible eavesdropping in the channel and dynamically adjust parameters to maintain system security.

[0073] In order to further improve the security and error correction efficiency of the key, this solution uses the Low-Density Parity-Check (LDPC) cascade error correction algorithm and the universal hash function constructed by the Toeplitz matrix to amplify privacy in the post-processing stage. LDPC cascade error correction can effectively reduce the bit error rate and reduce the information leaked during the error correction process, while the universal hash function can amplify the privacy security strength of the key, making the amount of information obtained by the eavesdropper Eve decrease exponentially.

[0074] In addition, in order to ensure the security of random numbers during key negotiation, this solution uses a quantum random number generator (QRNG) to generate a true random sequence. Based on quantum noise effects such as photon number distribution, phase fluctuations, and Raman scattering spectra, QRNG can generate a high-quality entropy source, and then obtain a uniformly distributed random bit sequence through a random number extraction algorithm, providing sufficient randomness for key negotiation.

[0075] Combining the above steps, Alice and Bob finally obtain a secure, random, and consistent target key, fully preparing for subsequent encrypted communications. The organic combination of DS-QKD, cascade error correction, privacy amplification, and QRNG has greatly improved the security and efficiency of quantum key distribution, paving the way for building a practical quantum secure communication network.

[0076] Specifically, the communicating parties use a decoyed state quantum key distribution protocol, such as the decoyed state variant of the BB84 protocol, to prepare, transmit and measure quantum states on a fiber quantum channel. The sender randomly selects two sets of orthogonal quantum state bases, such as horizontal / vertical polarization bases and diagonal / anti-diagonal polarization bases, and randomly prepares quantum states, including decoy states. The sender sends the prepared quantum states to the receiver through the fiber quantum channel. The receiver randomly selects a quantum state base that matches the sender to measure the received quantum state and records the measurement results. The communicating parties compare some of the measurement results through the classical channel, screen out the matching quantum state bases, eliminate bit errors and decoy states, and obtain the shared original key.

[0077] The communicating parties divide the original key into multiple sub-blocks, each of which corresponds to a low-density parity check code (LDPC code). Each sub-block is LDPC-encoded to generate the corresponding check matrix and check bits. The communicating parties exchange check bit information and use the belief propagation algorithm to iteratively decode each sub-block to correct the error bits in the key. The error-corrected sub-blocks are reassembled to obtain the error-corrected key.

[0078] The communicating parties negotiate to select the parameters of the Toeplitz matrix, such as the matrix dimension and random number seed. The Toeplitz matrix is ​​constructed based on the selected parameters as the basis of the universal hash function. The error-corrected key and the random number seed are used as input, and the constructed Toeplitz matrix is ​​used for matrix multiplication to obtain the hash value. By truncating the hash value, the privacy amplification key of the required length is obtained.

[0079] Quantum effects, such as photon number distribution, phase fluctuations, and Raman scattering spectra, are used to generate high-quality random entropy sources. The random entropy source is sampled and digitized to obtain the original random bit sequence. A random number extraction algorithm, such as the Toeplitz hash extractor or the quantum random number post-processing algorithm, is used to extract a uniformly distributed random bit sequence from the original random bit sequence. The extracted random bit sequence is used as a key random number for the subsequent key negotiation process.

[0080] The privacy amplification key and the key random number are synchronized to ensure that the lengths of the two sequences are consistent. The privacy amplification key and the key random number are subjected to bit-by-bit exclusive OR (XOR) operation to obtain the final target key. The target key is shared by both communicating parties for subsequent data encryption and communication processes.

[0081] By using the decoyed state quantum key distribution protocol to establish a shared original key on the fiber quantum channel, and processing the original key through the cascade error correction and privacy amplification algorithm, and using the quantum true random number generator to generate high-quality key random numbers, the secure and reliable target key is finally obtained through XOR operation. This scheme makes comprehensive use of quantum communication and classical post-processing technology, effectively improving the security, confidentiality and randomness of key distribution, and laying the foundation for realizing highly secure quantum secure communication.

[0082] In an optional embodiment,

[0083] Generating a random entropy source based on photon number distribution, phase fluctuation, and Raman scattering spectrum, and obtaining a uniformly distributed random bit sequence from the random entropy source through a random number extraction algorithm includes:

[0084] The random number sequence of photon number distribution, the random number sequence of phase fluctuation and the random number sequence of Raman scattering spectrum are obtained respectively to form a multi-source quantum random entropy source;

[0085] The photon number distribution random number sequence is subjected to photon number segmentation processing, and the original random number sequence is divided into several subsequences based on a preset trigger number threshold, and a uniformly distributed photon random bit sequence is extracted from each subsequence;

[0086] Amplifying and performing analog-to-digital conversion processing on the phase fluctuation random number sequence, eliminating the bias and correlation of the phase fluctuation random number sequence after the amplification and analog-to-digital conversion processing by debiasing and whitening processing, and obtaining a phase random bit sequence;

[0087] The random number sequence of the Raman scattering spectrum is filtered, amplified and thresholded to extract the intensity fluctuation information of the scattered light and obtain a random bit sequence of the spectrum.

[0088] Exemplarily, a single-photon detector is used to measure the photon number distribution, and the photon count value within a certain period of time is recorded to obtain the original photon number distribution random number sequence. A high-speed photodetector is used to measure the phase fluctuation of the optical signal, and the original phase fluctuation random number sequence is obtained through sampling and quantization processing. A spectrometer is used to collect and analyze the Raman scattering spectrum, and the random fluctuation information of the scattered light intensity is extracted to obtain the original Raman scattering spectrum random number sequence. The obtained photon number distribution random number sequence, phase fluctuation random number sequence and Raman scattering spectrum random number sequence are combined to form a multi-source quantum random entropy source.

[0089] Set the trigger number threshold, and select an appropriate threshold to balance randomness and efficiency based on the statistical characteristics of the photon number distribution. Scan the original photon number distribution random number sequence, and divide the sequence into several subsequences based on the trigger number threshold. Post-process each subsequence to extract uniformly distributed binary bits. The vonNeumann extractor, Peres extractor and other methods can be used to generate random bits based on the parity of the photon number or the high-low comparison results. The extracted photon random bit sequence is spliced ​​to obtain the final photon random bit sequence.

[0090] The original phase fluctuation random number sequence is amplified to increase the amplitude and dynamic range of the signal, so as to facilitate the subsequent analog-to-digital conversion and digital processing. The amplified phase fluctuation random number sequence is subjected to analog-to-digital conversion, and the analog signal is converted into a digital signal to obtain a preliminary phase random number sequence. The phase random number sequence after analog-to-digital conversion is debiased, and the possible bias in the sequence is eliminated by methods such as mean removal or von Neumann correction. The debiased phase random number sequence is whitened, and the correlation in the sequence is eliminated by methods such as XOR operation or hash function, so as to obtain a statistically independent and uniform phase random bit sequence.

[0091] The original Raman scattering spectrum random number sequence is digitally filtered to remove low-frequency noise and high-frequency interference, and to extract random fluctuation information of scattered light intensity. The filtered Raman scattering spectrum random number sequence is amplified to improve the signal amplitude and signal-to-noise ratio, which is convenient for subsequent threshold judgment. The amplified Raman scattering spectrum random number sequence is subjected to threshold judgment, and the continuous analog signal is converted into a discrete binary bit sequence according to the set threshold. Signals above the threshold are judged as "1", and signals below the threshold are judged as "0". The judged spectral random bit sequence is sampled and extracted to obtain the final spectral random bit sequence.

[0092] The photon random bit sequence, phase random bit sequence and spectral random bit sequence are synchronized and aligned to ensure that the lengths of the three sequences are consistent. The three random bit sequences are subjected to bit-by-bit XOR operations to obtain a combined quantum random number sequence. The XOR operation can further enhance the randomness and uniformity of the random numbers. The combined quantum random number sequence is subjected to quality assessment and randomness detection to ensure that the sequence meets the statistical characteristics and security requirements of the random numbers.

[0093] By utilizing the three quantum effects of photon number distribution, phase fluctuation and Raman scattering spectrum, a multi-source quantum random entropy source is constructed, and a uniformly distributed random bit sequence is extracted from the original random number sequence through a series of post-processing algorithms, including photon number segmentation, amplification and analog-to-digital conversion, debiasing and whitening, filtering amplification and threshold judgment. Finally, the three random bit sequences are combined to generate high-quality quantum random numbers, providing a reliable random source for key negotiation and other applications. This multi-source fusion scheme effectively improves the randomness, uniformity and unpredictability of random numbers, and enhances the performance and security of the quantum random number generator.

[0094] S102. Encrypt the plaintext data transmitted by the communicating parties using the target key to obtain quantum state ciphertext data, combine the quantum state ciphertext data, the pre-acquired shared time synchronization signal and the pre-acquired shared error correction redundant check information into target encrypted information, multiplex the target encrypted information into the optical fiber quantum channel through wavelength division multiplexing technology and send it to the receiving party;

[0095] In an optional embodiment,

[0096] Using the target key to encrypt the plaintext data transmitted by the communicating parties to obtain quantum state ciphertext data, and combining the quantum state ciphertext data, the pre-acquired shared time synchronization signal, and the pre-acquired shared error correction redundant check information into target encrypted information includes:

[0097] Converting plaintext data into a binary bit sequence, and mapping the binary bit sequence into a plaintext quantum state basis vector sequence, each plaintext quantum state basis vector sequence consisting of two orthogonal basis states of a single quantum bit;

[0098] The target key is used to encrypt the plaintext quantum state basis vector sequence, and an encrypted controlled Pauli-X gate is applied to each plaintext quantum state basis vector sequence, wherein the control bit of the encrypted controlled Pauli-X gate is the key bit, and the target bit is the plaintext quantum state basis vector sequence, and the quantum state ciphertext data is obtained by modulo 2 addition;

[0099] The quantum state ciphertext data, the pre-acquired shared time synchronization signal, and the pre-acquired shared error correction redundant check information are combined, and time division multiplexing or wavelength division multiplexing technology is used to achieve seamless integration in different time slots or frequency bands to form complete target encrypted information.

[0100] In an optional embodiment,

[0101] The target key is used to encrypt the plaintext quantum state basis vector sequence, and an encrypted controlled Pauli-X gate is applied to each plaintext quantum state basis vector sequence, wherein the control bit of the encrypted controlled Pauli-X gate is the key bit, and the target bit is the plaintext quantum state basis vector sequence. The quantum state ciphertext data obtained by modulo 2 addition includes:

[0102] ;

[0103] in, Represents quantum state ciphertext data, n represents the length of the plaintext quantum state basis vector sequence, Represents the multiplication symbol, indicating the continuous action of multiple quantum gate operations. Indicates i The key bits and i+n A controlled Pauli-X gate between plaintext quantum states, where i is the control bit and i+n is the target bit. H i represents the Hadamard gate acting on the i-th key bit, converting the quantum state between the computational basis and the Hadamard basis, represents the controlled phase gate between the i-th key bit and the i+n-th plaintext quantum state, represents the adjustable phase angle parameter, represents the tensor product, which represents the composite of multiple independent quantum states. k i represents the i-th key bit, d i Represents the i-th plaintext quantum state basis vector.

[0104] By using a controlled Pauli-X gate (CNOT) to encrypt the plaintext quantum state basis vector sequence, a modulo-2 addition operation between the key bit and the plaintext quantum state is implemented. The CNOT gate conditionally applies the value of the key bit to the plaintext quantum state to achieve the encryption effect. When the key bit is |1>, the corresponding plaintext quantum state flips; when the key bit is |0>, the plaintext quantum state remains unchanged. This encryption operation has good security and can effectively protect plaintext information.

[0105] The Hadamard gate (H) is introduced before the CNOT gate to perform a basis conversion on the key bits, converting them from the computational basis to the Hadamard basis. This conversion increases the randomness and uncertainty of the key and improves the security of encryption. By switching between different bases, it is difficult for an attacker to accurately know the true state of the key, thereby increasing the confidentiality of the key. The resulting quantum state ciphertext data |C> has a high degree of quantum properties and randomness. Due to the non-cloning properties of the quantum state and the uncertainty of measurement, an attacker cannot accurately measure and copy the ciphertext without being discovered. This quantum state encryption scheme provides theoretical information-theoretic security, ensuring the confidentiality and integrity of communications.

[0106] Through the analysis of the above technical effects, it can be seen that the quantum state encryption scheme makes full use of the characteristics of quantum mechanics, such as superposition, entanglement and uncertainty of quantum states, and combines multiple quantum gate operations and the construction of composite quantum states to achieve highly secure encryption effects. This scheme has broad application prospects in the fields of quantum computing and quantum communication, and provides new ideas and methods for achieving highly secure and efficient quantum secure communications. At the same time, the scheme also provides an important theoretical basis and technical support for the development of post-quantum cryptography.

[0107] Exemplarily, the original plaintext data is encoded and digitized to convert it into a corresponding binary bit sequence. ASCII encoding, Unicode encoding, etc. can be used to represent plaintext information such as characters, numbers, symbols, etc. as binary bits. The obtained binary bit sequence is mapped to a sequence of plaintext quantum state basis vectors according to a predetermined mapping rule. Each plaintext quantum state basis vector consists of two orthogonal basis states of a single quantum bit, and the calculation basis is usually selected, namely |0> and |1>. For each binary bit, it is mapped to a corresponding quantum state basis vector according to its value. For example, bit "0" can be mapped to |0>, and bit "1" can be mapped to |1>. According to the order of the binary bit sequence, the corresponding plaintext quantum state basis vector sequence is generated in sequence to form a complete plaintext quantum state representation.

[0108] The target key is converted into a binary bit sequence as the control bit for the encryption operation. The length of the target key should be the same as the length of the plaintext quantum state basis vector sequence. For each quantum state in the plaintext quantum state basis vector sequence, the key bit at the corresponding position is used as the control bit, and an encrypted controlled Pauli-X gate is applied. The function of the encrypted controlled Pauli-X gate is to conditionally flip the quantum state of the target bit according to the value of the control bit. When the control bit is |1>, the Pauli-X gate operation is performed on the target bit, that is, |0> and |1> are interchanged; when the control bit is |0>, the target bit remains unchanged.

[0109] The quantum state ciphertext data, shared time synchronization signal and shared error correction redundant check information are regarded as independent information units, and are encoded and formatted separately for transmission on the quantum channel. Using time division multiplexing technology, the quantum state ciphertext data, shared time synchronization signal and shared error correction redundant check information are transmitted in different time slots. By allocating dedicated time slots for each information unit, seamless integration in the time domain is achieved.

[0110] Alternatively, the quantum state ciphertext data, shared time synchronization signal and shared error correction redundant check information are modulated onto different carrier frequencies using wavelength division multiplexing technology to achieve seamless integration in the frequency domain. Each information unit occupies an independent frequency band and is transmitted simultaneously on the quantum channel by frequency division multiplexing. At the transmitting end, the quantum state ciphertext data, shared time synchronization signal and shared error correction redundant check information are multiplexed and combined according to a predetermined time slot allocation or frequency band allocation scheme to form complete target encrypted information. At the receiving end, the received target encrypted information is demultiplexed and separated according to the corresponding time slot allocation or frequency band allocation scheme, and the quantum state ciphertext data, shared time synchronization signal and shared error correction redundant check information are extracted, and subsequent processing and decryption operations are performed.

[0111] By using the quantum state basis vector sequence to represent the plaintext data and using the target key to encrypt the plaintext quantum state, quantum state ciphertext data is generated. At the same time, the quantum state ciphertext data is multiplexed and combined with the shared time synchronization signal and shared error correction redundant check information to form a complete target encrypted information. This scheme makes full use of the characteristics of the quantum state and the advantages of quantum operations, combined with time division multiplexing or wavelength division multiplexing technology, to achieve efficient transmission and integration of quantum state ciphertext. Through quantum state encryption and multiplexing transmission, the security and efficiency of communication can be significantly improved, providing a new way to achieve quantum secure communication.

[0112] S103. The receiver synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundancy check information to detect and correct errors in the target encrypted information, and uses the target key shared by the sender to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key.

[0113] In an optional embodiment,

[0114] The receiving party synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundancy check information to perform error detection and error correction on the target encrypted information, and uses the target key shared by the sender to decrypt the target encrypted information, and obtains the plaintext data corresponding to the original key, including:

[0115] The receiving party uses the shared time synchronization signal to perform timing alignment and frame synchronization on the received target encrypted information, and extracts the ciphertext quantum state sequence and the corresponding error correction redundant bits in the target encrypted information;

[0116] Using the error correction redundant bits to perform error detection and correction on the ciphertext quantum state sequence to eliminate errors introduced during the transmission process;

[0117] The error-corrected ciphertext quantum state sequence is decrypted using the shared target key, and a decryption-controlled Pauli-X gate is applied to each ciphertext quantum state sequence, wherein the control bit of the decryption-controlled Pauli-X gate is the plaintext quantum state basis vector sequence, and the target bit is the key bit, so as to recover the plaintext data corresponding to the original key.

[0118] In an optional embodiment,

[0119] When the control bit of the encrypted controlled Pauli-X gate is When the control bit is When , the target bit flips state;

[0120] When the control bit of the decrypted controlled Pauli-X gate is When the control bit is , the target bit flips state.

[0121] Exemplarily, the receiving party uses the pre-acquired shared time synchronization signal to perform timing alignment on the received target encrypted information. By comparing the time synchronization signal, the start time and duration of the target encrypted information are determined to achieve time synchronization of the received signal. According to the time synchronization signal, the target encrypted information is frame synchronized. By identifying specific identifiers such as the frame header and frame tail, the boundary of each data frame is determined to extract the complete data frame.

[0122] From the synchronized target encrypted information, the ciphertext quantum state sequence and the corresponding error correction redundant bits are extracted according to the predetermined format and protocol. The ciphertext quantum state sequence is the received quantum state ciphertext data, and the error correction redundant bits are the additional redundant information used for error detection and correction.

[0123] The receiver performs error detection on the ciphertext quantum state sequence based on the error correction redundant bits. By calculating a certain functional relationship between the error correction redundant bits and the ciphertext quantum state sequence (such as parity check, cyclic redundancy check, etc.), it is determined whether there is a transmission error.

[0124] If an error is detected, the receiver uses the error correction redundant bits to correct the ciphertext quantum state sequence. Based on the redundant information provided by the error correction redundant bits, the erroneous bits in the ciphertext quantum state sequence are located and repaired, and the correct ciphertext quantum state sequence is restored.

[0125] Error correction can use various quantum error correction codes, such as Shor code, Steane code, CSS code, etc. These error correction codes use the principles of quantum entanglement and redundant coding to protect and repair quantum states by introducing additional auxiliary quantum bits. After error detection and correction, an error-free or error-minimized ciphertext quantum state sequence is obtained, providing reliable input for subsequent decryption operations.

[0126] The receiver uses the target key pre-shared with the sender to decrypt the error-corrected ciphertext quantum state sequence. The target key is a binary bit sequence that is the same as the encryption key used by the sender. For each quantum state in the ciphertext quantum state sequence, a decryption controlled Pauli-X gate is applied. The control bit of the decryption controlled Pauli-X gate is the plaintext quantum state basis vector at the corresponding position, and the target bit is the key bit at the corresponding position.

[0127] The function of the decryption controlled Pauli-X gate is the opposite of the encryption process. When the control bit (plaintext quantum state basis vector) is |1>, the Pauli-X gate operation is performed on the target bit (key bit), that is, |0> and |1> are swapped; when the control bit is |0>, the target bit remains unchanged. By performing the decryption controlled Pauli-X gate operation on each quantum state in the ciphertext quantum state sequence in turn, the key bit and the plaintext quantum state are decrypted, and the plaintext quantum state basis vector sequence corresponding to the original key is restored. The decrypted plaintext quantum state basis vector sequence is measured and read to obtain the corresponding classical bit sequence, which is the plaintext data corresponding to the original key.

[0128] The receiver uses the shared time synchronization signal and error correction redundant bits to synchronize, detect and correct the received target encrypted information, ensuring the correctness and integrity of the ciphertext quantum state sequence. Then, the receiver uses the target key shared with the sender to decrypt the error-corrected ciphertext quantum state sequence by decrypting the controlled Pauli-X gate operation, and recovers the plaintext data corresponding to the original key. This decryption scheme makes full use of the characteristics of the quantum state and the reversibility of quantum operations to ensure the confidentiality and integrity of the communication. At the same time, by introducing the error correction mechanism, the fault tolerance and reliability of quantum communication are improved, laying the foundation for realizing efficient and high-fidelity quantum secure communication.

[0129] Figure 2 FIG. 1 is a schematic diagram of the structure of an optical fiber secure communication system based on quantum technology according to an embodiment of the present invention. Figure 2 As shown, the system comprises:

[0130] The first unit is used to establish a shared original key between the communicating parties through an optical fiber quantum channel by using a decoyed state quantum key distribution protocol, perform error correction and privacy amplification on the original key by using a cascade error correction algorithm and a privacy amplification algorithm, and use a quantum true random number generator to generate a key random number for key negotiation in real time to obtain a target key;

[0131] The second unit is used to encrypt the plaintext data transmitted by the communicating parties using the target key to obtain quantum state ciphertext data, combine the quantum state ciphertext data, the pre-acquired shared time synchronization signal and the pre-acquired shared error correction redundant check information into target encrypted information, and multiplex the target encrypted information into the optical fiber quantum channel through wavelength division multiplexing technology to send it to the receiving party;

[0132] The third unit is used for the receiver to synchronize the target encrypted information according to the time synchronization signal and use the error correction redundant check information to perform error detection and correction on the target encrypted information, and use the target key shared by the sender to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key.

[0133] According to a third aspect of the embodiments of the present invention,

[0134] An electronic device is provided, comprising:

[0135] processor;

[0136] a memory for storing processor-executable instructions;

[0137] The processor is configured to call the instructions stored in the memory to execute the aforementioned method.

[0138] A fourth aspect of the embodiments of the present invention is:

[0139] A computer-readable storage medium is provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the aforementioned method is implemented.

[0140] The present invention may be a method, an apparatus, a system and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for executing various aspects of the present invention.

[0141] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for secure optical fiber communication based on quantum technology, characterized in that: include: Using a decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through an optical fiber quantum channel, the original key is corrected and privacy amplified through a cascade error correction algorithm and a privacy amplification algorithm, and a quantum true random number generator is used to generate a key random number for key negotiation in real time to obtain a target key; The target key is used to encrypt the plaintext data transmitted by the communicating parties to obtain quantum state ciphertext data, the quantum state ciphertext data, the pre-acquired shared time synchronization signal and the pre-acquired shared error correction redundant check information are combined into target encrypted information, and the target encrypted information is multiplexed into the optical fiber quantum channel through wavelength division multiplexing technology and sent to the receiving party; The receiving party synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundancy check information to perform error detection and error correction on the target encrypted information, and uses the target key shared by the sending party to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key; Using the decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through the optical fiber quantum channel, the original key is corrected and privacy amplified through the cascade error correction algorithm and the privacy amplification algorithm, and a quantum true random number generator is used to generate a key random number for key negotiation in real time. Obtaining the target key includes: Using the decoyed state quantum key distribution protocol, a shared original key is established between the communicating parties through the optical fiber quantum channel; Performing cascade error correction processing on the original key, using a low-density parity check code cascade error correction algorithm to correct the original key and obtain a key after error correction; The universal hash function constructed by the Toeplitz matrix is ​​used to perform a hash operation on the error-corrected key and the random number seed to obtain the privacy amplification key. A quantum true random number generator is used to generate random key numbers for key negotiation in real time, a random entropy source is generated based on photon number distribution, phase fluctuations, and Raman scattering spectrum, and a uniformly distributed random bit sequence is obtained from the random entropy source through a random number extraction algorithm; Performing an XOR operation on the privacy amplified key and the random bit sequence to obtain a target key; Generating a random entropy source based on photon number distribution, phase fluctuation, and Raman scattering spectrum, and obtaining a uniformly distributed random bit sequence from the random entropy source through a random number extraction algorithm includes: The random number sequence of photon number distribution, the random number sequence of phase fluctuation and the random number sequence of Raman scattering spectrum are obtained respectively to form a multi-source quantum random entropy source; The photon number distribution random number sequence is subjected to photon number segmentation processing, and the original random number sequence is divided into several subsequences based on a preset trigger number threshold, and a uniformly distributed photon random bit sequence is extracted from each subsequence; Amplifying and performing analog-to-digital conversion processing on the phase fluctuation random number sequence, eliminating the bias and correlation of the phase fluctuation random number sequence after the amplification and analog-to-digital conversion processing by debiasing and whitening processing, and obtaining a phase random bit sequence; The random number sequence of the Raman scattering spectrum is filtered, amplified and thresholded to extract the intensity fluctuation information of the scattered light and obtain a random bit sequence of the spectrum.

2. The method according to claim 1, characterized in that Using the target key to encrypt the plaintext data transmitted by the communicating parties to obtain quantum state ciphertext data, and combining the quantum state ciphertext data, the pre-acquired shared time synchronization signal, and the pre-acquired shared error correction redundant check information into target encrypted information includes: Converting plaintext data into a binary bit sequence, and mapping the binary bit sequence into a plaintext quantum state basis vector sequence, each plaintext quantum state basis vector sequence consisting of two orthogonal basis states of a single quantum bit; The target key is used to encrypt the plaintext quantum state basis vector sequence, and an encrypted controlled Pauli-X gate is applied to each plaintext quantum state basis vector sequence, wherein the control bit of the encrypted controlled Pauli-X gate is the key bit, and the target bit is the plaintext quantum state basis vector sequence, and the quantum state ciphertext data is obtained by modulo 2 addition; The quantum state ciphertext data, the pre-acquired shared time synchronization signal, and the pre-acquired shared error correction redundant check information are combined, and time division multiplexing or wavelength division multiplexing technology is used to achieve seamless integration in different time slots or frequency bands to form complete target encrypted information.

3. The method according to claim 2, characterized in that The target key is used to encrypt the plaintext quantum state basis vector sequence, and an encrypted controlled Pauli-X gate is applied to each plaintext quantum state basis vector sequence, wherein the control bit of the encrypted controlled Pauli-X gate is the key bit, and the target bit is the plaintext quantum state basis vector sequence. The quantum state ciphertext data obtained by modulo 2 addition includes: ; in, Represents quantum state ciphertext data, n represents the length of the plaintext quantum state basis vector sequence, Represents the multiplication symbol, indicating the continuous action of multiple quantum gate operations. Indicates i The key bits and i+n A controlled Pauli-X gate between plaintext quantum states, where i is the control bit and i+n is the target bit. H i represents the Hadamard gate acting on the i-th key bit, converting the quantum state between the computational basis and the Hadamard basis, represents the controlled phase gate between the i-th key bit and the i+n-th plaintext quantum state, represents the adjustable phase angle parameter, represents the tensor product, which represents the composite of multiple independent quantum states. k i represents the i-th key bit, d i Represents the i-th plaintext quantum state basis vector.

4. The method according to claim 1, characterized in that: The receiving party synchronizes the target encrypted information according to the time synchronization signal and uses the error correction redundancy check information to perform error detection and error correction on the target encrypted information, and uses the target key shared by the sender to decrypt the target encrypted information, and obtains the plaintext data corresponding to the original key, including: The receiving party uses the shared time synchronization signal to perform timing alignment and frame synchronization on the received target encrypted information, and extracts the ciphertext quantum state sequence and the corresponding error correction redundant bits in the target encrypted information; Using the error correction redundant bits to perform error detection and correction on the ciphertext quantum state sequence to eliminate errors introduced during the transmission process; The error-corrected ciphertext quantum state sequence is decrypted using the shared target key, and a decryption-controlled Pauli-X gate is applied to each ciphertext quantum state sequence, wherein the control bit of the decryption-controlled Pauli-X gate is the plaintext quantum state basis vector sequence, and the target bit is the key bit, so as to recover the plaintext data corresponding to the original key.

5. The method according to claim 2 or 4, characterized in that: When the control bit of the encrypted controlled Pauli-X gate is When the control bit is When , the target bit flips state; When the control bit of the decryption controlled Pauli-X gate is When the control bit is , the target bit flips state.

6. A fiber optic secure communication system based on quantum technology, used to implement the method described in any one of claims 1 to 5, characterized in that: include: The first unit is used to establish a shared original key between the communicating parties through an optical fiber quantum channel by using a decoyed state quantum key distribution protocol, perform error correction and privacy amplification on the original key by using a cascade error correction algorithm and a privacy amplification algorithm, and use a quantum true random number generator to generate a key random number for key negotiation in real time to obtain a target key; The second unit is used to encrypt the plaintext data transmitted by the communicating parties using the target key to obtain quantum state ciphertext data, combine the quantum state ciphertext data, the pre-acquired shared time synchronization signal and the pre-acquired shared error correction redundant check information into target encrypted information, and multiplex the target encrypted information into the optical fiber quantum channel through wavelength division multiplexing technology to send it to the receiving party; The third unit is used for the receiver to synchronize the target encrypted information according to the time synchronization signal and use the error correction redundant check information to perform error detection and correction on the target encrypted information, and use the target key shared by the sender to decrypt the target encrypted information to obtain the plaintext data corresponding to the original key.

7. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to call the instructions stored in the memory to execute the method described in any one of claims 1 to 5.

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