Quantum communication method, device, computer equipment, storage medium and program product

By encoding and XORing ciphertext information, detecting channel anomalies, and realizing one-way transmission of quantum communication, it solves the problems of high loss and low security in quantum communication, reduces communication loss and improves channel security.

CN115250177BActive Publication Date: 2024-09-10TSINGHUA UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210810257.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-11
Publication Date
2024-09-10
Estimated Expiration
2042-07-11

AI Technical Summary

Technical Problem

The information loss caused by the two-way transmission method in quantum communication doubles. It is difficult for existing technology to effectively reduce communication loss, and there is the risk of eavesdropping and the threat of photon number separation attack.

Method used

Process the ciphertext information through encoding and XOR, generate at least three intensities of optical pulse signals, detect the reception rate and bit error rate, and calculate channel abnormalities. If there are no abnormalities, the encoding method and key information will be sent to achieve one-way transmission. Reduce losses and protect channels.

Benefits of technology

It effectively reduces the loss of quantum communication, ensures deterministic transmission of information, and improves security by monitoring channel anomalies to prevent eavesdropping and photon number separation attacks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115250177B
    Figure CN115250177B
Patent Text Reader

Abstract

The present application relates to a quantum communication method, device, computer equipment, storage medium and program product. The first communication terminal encodes the first ciphertext information to obtain a first optical pulse signal, and sends the first optical pulse signal and the second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, detects the second optical pulse signal to obtain a second reception rate and a second bit error rate, and obtains a first calculation result based on the received first reception rate, first bit error rate, second reception rate, second bit error rate and at least three intensities; if the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information. The first communication terminal and the second communication terminal do not need two-way transmission to complete information transmission, which can effectively reduce communication loss.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of quantum communication technology, and in particular to a quantum communication method, apparatus, computer equipment, storage medium and program product. Background Art

[0002] As a cross-product of quantum physics and cryptography, quantum communication has attracted widespread international attention because of its ability to detect eavesdropping, which makes the communication process highly secure. As one of the main research directions of quantum communication, quantum direct communication has developed rapidly in recent years and has now entered the stage of practical development. Quantum direct communication has developed protocols such as measurement device-independent quantum direct communication and measurement device-independent quantum direct communication without quantum storage. In a series of quantum secure direct communication protocols, quantum state bidirectional transmission is used to transmit information, which doubles the loss of each communication. Summary of the invention

[0003] Based on this, it is necessary to provide a quantum communication method, device, computer equipment, storage medium and program product that can reduce quantum communication losses in response to the above-mentioned technical problems.

[0004] In a first aspect, the present application provides a quantum communication method, the method comprising:

[0005] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0006] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal;

[0007] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0008] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0009] In one embodiment, a first calculation result is obtained according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate and at least three strengths, including:

[0010] Determining a third reception rate and a third bit error rate of the single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and the at least three intensities;

[0011] Obtaining a loss rate according to the first ciphertext information, the first receiving rate, and the first bit error rate;

[0012] A first calculation result is obtained according to the third receiving rate, the third bit error rate and the loss rate.

[0013] In one embodiment, before encoding the first ciphertext information to obtain the first optical pulse signal, the method further includes:

[0014] Generate key information corresponding to the encoded content;

[0015] The codeword in the encoded content is XOR-ed with the target bit to obtain the first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

[0016] In one embodiment, before encoding the first ciphertext information to obtain the first optical pulse signal, the method further includes:

[0017] At least one of a homogenization process, an information dilution process, and a channel error correction process is performed on the plaintext information to obtain the encoded content.

[0018] In one embodiment, applied to a second communication terminal, the method includes:

[0019] Detecting the first optical pulse signal to obtain a first bit error rate and a first reception rate, and publishing the first bit error rate and the first reception rate; detecting the second optical pulse signal to obtain a second bit error rate and a second reception rate, and publishing the second bit error rate and the second reception rate, so that the first communication terminal can obtain a first calculation result according to the first bit error rate, the first reception rate, the second bit error rate, the second reception rate and the at least three intensities;

[0020] Receiving a preset encoding method and key information sent by the first communication terminal;

[0021] According to the encoding method and the key information, the plaintext information corresponding to the first ciphertext information is obtained.

[0022] In one embodiment, obtaining plaintext information corresponding to the first ciphertext information according to the encoding method and the key information includes:

[0023] Decrypting the first ciphertext information according to the key information to obtain the coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on the codeword in the coded content and the target bit;

[0024] The encoding method is used to decrypt the encoded content to obtain the plaintext information.

[0025] In a second aspect, the present application further provides a quantum communication device, applied to a first communication terminal, the device comprising:

[0026] The encoding module is used to encode the first ciphertext information to obtain a first optical pulse signal, and send the first optical pulse signal and the second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0027] A first receiving module, configured to receive a first receiving rate, a first bit error rate, a second receiving rate, and a second bit error rate published by a second communication terminal;

[0028] A first determination module, configured to obtain a first calculation result according to a first receiving rate, a first bit error rate, a second receiving rate, a second bit error rate and at least three strengths;

[0029] The sending module is used to send a preset encoding method and key information to the second communication terminal if the first calculation result indicates that there is no abnormality in the communication channel, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0030] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:

[0031] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0032] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal;

[0033] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0034] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0035] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0036] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0037] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal;

[0038] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0039] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0040] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0041] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0042] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal;

[0043] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0044] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0045] In the above-mentioned quantum communication method, device, computer equipment, storage medium and program product, the first communication terminal encodes the first ciphertext information to obtain the first optical pulse signal, and sends the first optical pulse signal and the second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain the first reception rate and the first bit error rate, detects the second optical pulse signal to obtain the second reception rate and the second bit error rate, receives the first reception rate, the first bit error rate, the second reception rate and the second bit error rate; obtains the first calculation result according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and at least three intensities; if the first calculation result indicates that there is no abnormality in the communication channel, sends the preset encoding method and key information to the second communication terminal, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information. In this method, the first communication terminal sends the first optical pulse signal and the second optical pulse signal to the second communication terminal to complete the information transmission, does not need to perform two-way transmission, effectively reduces the loss of communication, and performs XOR processing on the encoding content and the target bit to obtain the first ciphertext information, ensuring that even if the eavesdropper intercepts the first ciphertext information, he cannot know the content of the information. Moreover, according to the first calculation result, it can be determined whether there is an eavesdropper and whether there is a photon number separation attack taken by the eavesdropper on the technical channel, thereby achieving the protection of the technical channel and realizing the deterministic transmission of information. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 A diagram showing an application environment of a quantum communication method in one embodiment;

[0047] Figure 2 A schematic diagram of a flow chart of a quantum communication method in one embodiment;

[0048] Figure 3 is a schematic diagram of a flow chart of determining a second detection result in one embodiment;

[0049] Figure 4 A schematic diagram of a process for determining first ciphertext information in an embodiment;

[0050] Figure 5 A schematic diagram of a flow chart of a quantum communication method in another embodiment;

[0051] Figure 6 A schematic diagram of a process of decrypting first ciphertext information to determine plaintext information in one embodiment;

[0052] Figure 7 is a structural block diagram of a quantum communication device in one embodiment;

[0053] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0055] In the related technology, when quantum communication is used for deterministic information transmission, assuming that the second communication terminal needs to transmit information to the first communication terminal, the first communication terminal first transmits a single-photon mode optical pulse signal to the second communication terminal. The second communication terminal encodes and processes the single-photon mode optical pulse signal sent by the first communication terminal in accordance with the agreed protocol, that is, the single-photon mode optical pulse signal is not processed, or an inversion operation is performed. Different encoding processing methods represent different transmission information. The encoded single-photon mode optical pulse signal is then returned to the first communication terminal. The first communication terminal measures the encoded optical pulse signal to determine the information that the second communication terminal wants to send to the first communication terminal.

[0056] The quantum communication method provided in the embodiments of the present application is applied to Figure 1 The application environment shown includes a first communication terminal (Alice) and a second communication terminal (Bob). The first communication terminal and the second communication terminal can be satellites, free space, optical fibers, servers, etc.

[0057] In one embodiment, Figure 2 As shown, a quantum communication method is provided, which is applied to Figure 1 Taking the first communication terminal in the example as an example, the method includes the following steps:

[0058] S201, encode the first ciphertext information to obtain a first optical pulse signal, and send the first optical pulse signal and the second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities.

[0059] The first optical pulse signal and the second optical pulse signal are optical pulse signals in a superposition state including a pulse signal of a zero-photon mode, a pulse signal of a single-photon mode, and a pulse signal of a multi-photon mode.

[0060] In this embodiment, in the coding mode window, the first optical pulse signal is an optical pulse signal of a certain intensity, and the first ciphertext information (i.e. Figure 1The ciphertext M' in the ciphertext is encoded to obtain a first optical pulse signal (i.e., the first ciphertext information is modulated into a quantum state), and the first optical pulse signal is sent to the second communication terminal. If the first ciphertext information is encoded using the X basis vector, the phase of the first optical pulse signal is 0 or Π, representing 0 and 1 respectively; if the first ciphertext information is encoded using the Y basis vector, the phase of the first optical pulse signal is Π / 2 or 3Π / 2, representing 0 and 1 respectively.

[0061] In this embodiment, in the spoofed state mode window, the second optical pulse signal is an optical pulse signal with random phases and including three types of intensity information, and the first communication terminal sends the second optical pulse signal to the second communication terminal.

[0062] In this embodiment, the second communication terminal detects the first optical pulse signal in a form agreed upon with the first communication terminal, that is, if the first communication terminal uses the X basis vector to encode the first ciphertext information, the second communication terminal uses the X basis vector to detect the first optical pulse signal to obtain the corresponding ciphertext information.

[0063] It should be noted that the first optical pulse signal sent in the coding mode window and the second optical pulse signal sent in the decoy state window are both repeated transmissions of two identical optical pulse signals, and the two optical pulse signals form a group. That is, one group of first optical pulse signals is transmitted in the coding mode, and three groups of second optical pulse signals are transmitted in the decoy state window.

[0064] S202, receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal.

[0065] In this embodiment, the second communication terminal detects the first optical pulse signal and the second optical pulse signal respectively to obtain a first reception rate and a first bit error rate of the photon beam superposition state of the first optical pulse signal, and a second reception rate and a second bit error rate of the photon beam superposition state of the second optical pulse signal.

[0066] It should be noted that if the second optical pulse signal sent by the first communication terminal includes three intensities, three second receiving rates and three second bit error rates will be obtained.

[0067] S203, obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate and at least three strengths.

[0068] In this embodiment, the first reception rate, the first bit error rate, the second reception rate and the second bit error rate obtained according to the first optical pulse and the second optical pulse signal are relationship equations regarding the zero-photon mode, the single-photon mode and the multi-photon mode. The first communication terminal can fit at least three types of intensity information in the decoy mode window to obtain the third reception rate and the third bit error rate of the single-photon mode, and directly obtain the first calculation result based on the third reception rate and the third bit error rate.

[0069] In this embodiment, after determining the third reception rate and the third bit error rate of the single-photon mode as above, the loss rate can be determined according to the first reception rate and the first bit error rate, and the first calculation result can be obtained according to the third reception rate, the third bit error rate and the loss rate.

[0070] S204: If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal, so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0071] In this embodiment, if the first calculation result indicates that there is no abnormality in the communication channel, the first communication terminal publishes the preset coding method and key information, and the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the coding method and key information published by the first communication terminal.

[0072] In the above quantum communication method, the first communication terminal encodes the first ciphertext information to obtain the first optical pulse signal, and sends the first optical pulse signal and the second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain the first reception rate and the first bit error rate, detects the second optical pulse signal to obtain the second reception rate and the second bit error rate, receives the first reception rate, the first bit error rate, the second reception rate and the second bit error rate; obtains the first calculation result according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and at least three intensities; if the first calculation result indicates that there is no abnormality in the communication channel, the preset encoding method and key information are sent to the second communication terminal, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information. In this method, the first communication terminal sends the first optical pulse signal and the second optical pulse signal to the second communication terminal to complete the information transmission, and does not need to perform two-way transmission, which effectively reduces the loss of communication, and performs XOR processing on the encoding content and the target bit to obtain the first ciphertext information, ensuring that even if the eavesdropper intercepts the first ciphertext information, he cannot know the content of the information. Moreover, according to the first calculation result, it is determined whether there is an eavesdropper and whether there is a photon number separation attack taken by the eavesdropper on the technical channel, thereby protecting the technical channel and realizing deterministic transmission of information.

[0073] Figure 3FIG. 1 is a flow chart of determining the second detection result in one embodiment. Figure 3 As shown, the embodiment of the present application relates to a possible implementation method of how to obtain a first calculation result according to a first reception rate, a first bit error rate, a second reception rate, a second bit error rate and at least three strengths, including the following steps:

[0074] S301 , determining a third reception rate and a third bit error rate of a single-photon mode according to a first reception rate, a first bit error rate, a second reception rate, a second bit error rate, and at least three intensities.

[0075] In this embodiment, the first reception rate, the first bit error rate, the second reception rate and the second bit error rate obtained according to the first optical pulse signal and the second optical pulse signal are relationship equations regarding the zero-photon mode, the single-photon mode and the multi-photon mode. The first communication terminal can fit and calculate at least three types of intensity information in the decoy mode window to obtain a third reception rate and a third bit error rate of the single-photon mode.

[0076] In this embodiment, the first bit error rate is determined in such a way that the first communication terminal can randomly extract some code words from the first ciphertext information and publish the positions of some code words. For example, the first ciphertext information is 0010100, and the first communication terminal publishes the first ciphertext information as 0, the fifth digit as 1, and the seventh digit as 0. The second communication terminal obtains the ciphertext information based on the detection, and compares the first digit, the fifth digit, and the seventh digit in the received ciphertext information with some code words published by the first communication terminal. If the code words corresponding to the fifth digit are different, the first bit error rate is determined to be 1 / 3.

[0077] In this embodiment, the second bit error rate is determined in the following manner: the second communication terminal publishes the measurement result of the second optical pulse, and the first communication terminal checks the information of its own coded 0 and 1 positions. For example, the coded position is 0 for the first bit, 1 for the fifth bit, and 0 for the seventh bit, and the remaining positions are random phases, that is, no coded information; the second communication terminal compares the first bit, the fifth bit, and the seventh bit in the received information with the codeword published by the first communication terminal according to the second detection result, and if the codeword corresponding to the fifth bit is different, the second bit error rate is determined to be 1 / 3.

[0078] S302, obtaining a loss rate according to the first ciphertext information, the first receiving rate and the first bit error rate.

[0079] In this embodiment, the loss rate obtained based on the first ciphertext information, the first reception rate and the first bit error rate can be understood as based on the codeword length of the successfully transmitted ciphertext information received by the second communication terminal, the second communication terminal publishes the successfully transmitted codeword length, and the first communication terminal compares the successfully transmitted codeword length with the codeword length of the first ciphertext information to obtain the loss rate.

[0080] S303: Obtain a first calculation result according to the third receiving rate, the third bit error rate, and the loss rate.

[0081] In this embodiment, due to the inherent loss of the quantum communication channel, the third reception rate, the third bit error rate and the loss rate can be compared with the corresponding preset thresholds respectively. If the third reception rate, the third bit error rate and the loss rate all meet the requirements of the preset thresholds, it is considered that there is no abnormality in the communication channel. If one of them does not meet the requirements of the preset threshold, it is considered that there is an abnormality in the communication channel.

[0082] In the embodiment of the present application, the third reception rate and the third bit error rate of the single-photon mode are determined according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and at least three intensities, and the loss rate is obtained according to the first ciphertext information and the first detection result, and finally the communication channel is judged whether there is an abnormality according to the third reception rate, the third bit error rate and the loss rate. In this method, the abnormality of the communication channel is monitored in the form of the decoy state mode, the published partial codeword, and the first detection result. The combination of the two methods improves the accuracy of channel abnormality monitoring and improves the security of channel transmission.

[0083] Figure 4 FIG. 1 is a schematic diagram of a process for determining the first ciphertext information in an embodiment. Figure 4 As shown, the following steps are included:

[0084] S401, generating key information corresponding to the encoded content.

[0085] In this embodiment, the first communication terminal randomly generates a string of key information. The length of the key information may correspond to the length of the encoded content, or may not correspond.

[0086] S402, performing XOR processing on the codeword in the encoded content and the target bit to obtain first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

[0087] In this embodiment, when the codeword in the coded content is XORed with the target bit, any one of the key information can be selected as the target bit, so the first ciphertext information obtained also has multiple forms. Assuming that the coded content is 00100 and the key information is 10010, the XOR can be performed directly according to the order of the coded content and the order of the key information, then the target bits are 1, 0, 0, 1, 0 respectively, and the first ciphertext information obtained by the XOR process is 10110. If the codeword in the coded content is XORed with any one of the key information, assuming that the target bits are 0, 0, 0, 1, 1 respectively, the first ciphertext information obtained by the XOR process is 00111.

[0088] In an embodiment of the present application, the first communication terminal generates key information corresponding to the encoded content, performs XOR processing on the codeword in the encoded content and the target bit, and obtains the first ciphertext information. In this method, the encoded content is XOR-processed. Since any selection can be made in the key information, a variety of first ciphertext information can be obtained, thereby improving the security of the information.

[0089] In one embodiment, before encoding the first ciphertext information to obtain the first optical pulse signal, the plaintext information may be subjected to at least one of a homogenization process, an information dilution process, and a channel error correction process to obtain the encoded content.

[0090] In this embodiment, the plaintext information is homogenized and diluted, and the homogenization and dilution refer to using an inverse hash function family to uniformly expand the length of the information to be transmitted. Using this method can greatly enhance the security of the information.

[0091] In this embodiment, channel error correction and loss tolerance coding processing is performed on the plaintext information. Channel error correction and loss tolerance coding processing refers to the use of error control coding, for example, Low Density Parity Check Code (LDPC, LDPC coding), etc., to add redundant information to the information sender sequence. The receiver's decoder can make full use of the redundant information to determine the bit information actually sent by the sender, thereby determining whether the transmitted information is complete and reliable.

[0092] In the embodiments of the present application, the security of quantum communication can be improved by performing homogenization and information dilution processing on plaintext information, and the reliability of quantum communication can be improved by performing channel error correction processing.

[0093] In one embodiment, Figure 5 As shown, a quantum communication method is provided, which is applied to Figure 1 Taking the second communication terminal in the example as an example, the method includes the following steps:

[0094] S501, detecting the first optical pulse signal to obtain a first bit error rate and a first reception rate, and announcing the first bit error rate and the first reception rate, detecting the second optical pulse signal to obtain a second bit error rate and a second reception rate, and announcing the second bit error rate and the second reception rate; the first communication terminal obtains a first calculation result based on the first bit error rate, the first reception rate, the second bit error rate, the second reception rate and at least three intensities.

[0095] For the specific implementation of this embodiment, please refer to S203.

[0096] S502: Receive a preset encoding method and key information sent by a first communication terminal.

[0097] In this embodiment, the first communication terminal sends a preset encoding method and key information to the second communication terminal, where the key information includes key information corresponding to the generated encoded content and target bits corresponding to each codeword in the encoded content.

[0098] S503: Obtain plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0099] In this embodiment, the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information, which may specifically include the following steps:

[0100] S601, decrypting first ciphertext information according to key information to obtain coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on a codeword in the coded content and a target bit.

[0101] In this embodiment, first, the first ciphertext information is decrypted according to the key information to obtain the encoded content, that is, each codeword of the first ciphertext information and the corresponding target bit are reversely deduced according to the XOR process to obtain the encoded content.

[0102] S602, using the encoding method to decrypt the encoded content to obtain plain text information.

[0103] In this embodiment, decryption is performed according to the encoding method of the first communication terminal to obtain plaintext information. Assuming that the first communication terminal encodes the plaintext information in the order of equalization processing, information dilution processing, and channel error correction processing, the second communication terminal can perform decoding processing in the manner of channel error correction processing, information dilution processing, and equalization processing to obtain plaintext information.

[0104] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0105] Based on the same inventive concept, the embodiment of the present application also provides a quantum communication device for implementing the quantum communication method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more quantum communication device embodiments provided below can refer to the limitations on the quantum communication method above, and will not be repeated here.

[0106] In one embodiment, Figure 7 As shown, a quantum communication device is provided, which is applied to a first communication terminal. The device includes: an encoding module 11, a first receiving module 12, a first determining module 13 and a sending module 14, wherein:

[0107] The encoding module 11 is used to encode the first ciphertext information to obtain a first optical pulse signal, and send the first optical pulse signal and the second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain a reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate, wherein the second optical pulse signal includes optical pulse signals of at least three intensities;

[0108] The first receiving module 12 is used to receive the first receiving rate, the first bit error rate, the second receiving rate and the second bit error rate published by the second communication terminal;

[0109] A first determination module 13, configured to obtain a first calculation result according to a first reception rate, a first bit error rate, a second reception rate, a second bit error rate and at least three strengths;

[0110] The sending module 14 is used to send a preset encoding method and key information to the second communication terminal if the first calculation result indicates that there is no abnormality in the communication channel, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0111] In one embodiment, the first determining module includes:

[0112] A first determining unit, configured to determine a third receiving rate and a third bit error rate of the single photon mode according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate and at least three intensities;

[0113] A second determining unit, configured to obtain a loss rate according to the first ciphertext information, the first receiving rate and the first bit error rate;

[0114] The third determining unit is used to obtain a first calculation result according to a third receiving rate, a third bit error rate and a loss rate.

[0115] In one embodiment, the quantum communication device further comprises:

[0116] A generation module, used to generate key information corresponding to the encoded content;

[0117] The second determination module is used to perform XOR processing on the codeword in the encoded content and the target bit to obtain the first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

[0118] In one embodiment, the quantum communication device further comprises:

[0119] The processing module is used to perform at least one of homogenization processing, information dilution processing and channel error correction processing on the plaintext information to obtain the encoded content.

[0120] In one embodiment, applied to a second communication terminal, the quantum communication device includes:

[0121] a third determination module, configured to detect the second optical pulse signal to obtain a first bit error rate and a first reception rate, and publish the first bit error rate and the first reception rate, so that the first communication terminal can obtain a first calculation result according to the first bit error rate, the first reception rate, the second reception rate, the second bit error rate and at least three intensities;

[0122] A second receiving module, used to receive a preset encoding method and key information sent by the first communication terminal;

[0123] The fourth determination module is used to obtain the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0124] In one embodiment, the quantum communication device further comprises:

[0125] A first decryption module, configured to decrypt the first ciphertext information according to the key information to obtain the coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on the codeword in the coded content and the target bit;

[0126] The second decryption module is used to decrypt the encoded content using the encoding method to obtain plain text information.

[0127] Each module in the above quantum communication device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0128] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data about quantum communication. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a quantum communication method is implemented.

[0129] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0130] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0131] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0132] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal;

[0133] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0134] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0135] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0136] Determining a third reception rate and a third bit error rate of the single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and the at least three intensities;

[0137] Obtaining a loss rate according to the first ciphertext information, the first receiving rate, and the first bit error rate;

[0138] A first calculation result is obtained according to the third receiving rate, the third bit error rate and the loss rate.

[0139] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0140] Generate key information corresponding to the encoded content;

[0141] The codeword in the encoded content is XOR-ed with the target bit to obtain the first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

[0142] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0143] At least one of a homogenization process, an information dilution process, and a channel error correction process is performed on the plaintext information to obtain the encoded content.

[0144] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0145] Detecting the first optical pulse signal to obtain a first bit error rate and a first reception rate, and publishing the first bit error rate and the first reception rate, so that the first communication terminal can obtain a first calculation result according to the first bit error rate, the first reception rate, the second reception rate, the second bit error rate and at least three intensities;

[0146] Receiving a preset encoding method and key information sent by the first communication terminal;

[0147] According to the encoding method and the key information, the plaintext information corresponding to the first ciphertext information is obtained.

[0148] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0149] Decrypting the first ciphertext information according to the key information to obtain the coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on the codeword in the coded content and the target bit;

[0150] The encoding method is used to decrypt the encoded content to obtain the plaintext information.

[0151] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0152] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0153] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate published by a second communication terminal;

[0154] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0155] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0156] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0157] Determining a third reception rate and a third bit error rate of the single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and the at least three intensities;

[0158] A loss rate is obtained according to the first ciphertext information and a first detection result, wherein the first detection result is a detection result published by the second communication terminal and received by the first communication terminal; and a first calculation result is obtained according to the third reception rate, the third bit error rate and the loss rate.

[0159] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0160] Generate key information corresponding to the encoded content;

[0161] The codeword in the encoded content is XOR-ed with the target bit to obtain the first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

[0162] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0163] At least one of a homogenization process, an information dilution process, and a channel error correction process is performed on the plaintext information to obtain the encoded content.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] Detecting the first optical pulse signal to obtain a first bit error rate and a first reception rate, and publishing the first bit error rate and the first reception rate, so that the first communication terminal can obtain a first calculation result according to the first bit error rate, the first reception rate, the second reception rate, the second bit error rate and at least three intensities;

[0166] Receiving a preset encoding method and key information sent by the first communication terminal;

[0167] According to the encoding method and the key information, the plaintext information corresponding to the first ciphertext information is obtained.

[0168] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0169] Decrypting the first ciphertext information according to the key information to obtain the coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on the codeword in the coded content and the target bit;

[0170] The encoding method is used to decrypt the encoded content to obtain the plaintext information.

[0171] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0172] The first ciphertext information is encoded to obtain a first optical pulse signal, and the first optical pulse signal and the second optical pulse signal are sent, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities;

[0173] receiving a first reception rate, a first bit error rate, a second reception rate, and a second bit error rate announced by a second communication terminal;

[0174] Obtaining a first calculation result according to the first receiving rate, the first bit error rate, the second receiving rate, the second bit error rate, and at least three intensities;

[0175] If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal so that the second communication terminal obtains plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0177] Determining a third reception rate and a third bit error rate of the single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and the at least three intensities;

[0178] Obtaining a loss rate according to the first ciphertext information, the first receiving rate, and the first bit error rate;

[0179] A first calculation result is obtained according to the third receiving rate, the third bit error rate and the loss rate.

[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0181] Generate key information corresponding to the encoded content;

[0182] The codeword in the encoded content is XOR-ed with the target bit to obtain the first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

[0183] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0184] At least one of a homogenization process, an information dilution process, and a channel error correction process is performed on the plaintext information to obtain the encoded content.

[0185] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0186] Detecting the first optical pulse signal to obtain a first bit error rate and a first reception rate, and publishing the first bit error rate and the first reception rate; detecting the second optical pulse signal to obtain a second bit error rate and a second reception rate, and publishing the second bit error rate and the second reception rate, so that the first communication terminal can obtain a first calculation result according to the first bit error rate, the first reception rate, the second reception rate, the second bit error rate, and at least three intensities;

[0187] Receiving a preset encoding method and key information sent by the first communication terminal;

[0188] According to the encoding method and the key information, the plaintext information corresponding to the first ciphertext information is obtained.

[0189] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0190] Decrypting the first ciphertext information according to the key information to obtain the coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on the codeword in the coded content and the target bit;

[0191] The encoding method is used to decrypt the encoded content to obtain the plaintext information.

[0192] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0193] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0194] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0195] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A quantum communication method, characterized in that: Applied to a first communication terminal, the method includes: Encoding the first ciphertext information to obtain a first optical pulse signal, and sending the first optical pulse signal and a second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate; the second optical pulse signal includes optical pulse signals of at least three intensities; receiving the first reception rate, the first bit error rate, the second reception rate, and the second bit error rate published by the second communication terminal; Determine a third reception rate and a third bit error rate of a single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate, and the at least three intensities; obtain a loss rate according to the first ciphertext information, the first reception rate, and the first bit error rate; obtain a first calculation result according to the third reception rate, the third bit error rate, and the loss rate; If the first calculation result indicates that there is no abnormality in the communication channel, a preset encoding method and key information are sent to the second communication terminal, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

2. The method according to claim 1, characterized in that Before encoding the first ciphertext information to obtain the first optical pulse signal, the method further includes: Generate key information corresponding to the encoded content; The codeword in the encoded content is XOR-ed with the target bit to obtain the first ciphertext information, wherein the target bit is any one of the key information corresponding to the encoded content.

3. The method according to claim 2, characterized in that Before encoding the first ciphertext information to obtain the first optical pulse signal, the method further includes: The plaintext information is subjected to at least one of a homogenization process, an information dilution process, and a channel error correction process to obtain the encoded content.

4. A quantum communication method, characterized in that: Applied to a second communication terminal, the method includes: Detecting a first optical pulse signal sent by a first communication terminal to obtain a first bit error rate and a first reception rate, and publishing the first bit error rate and the first reception rate; wherein the first optical pulse signal is obtained by encoding first ciphertext information by the first communication terminal; Detecting a second optical pulse signal sent by the first communication terminal to obtain a second bit error rate and a second reception rate, and announcing the second bit error rate and the second reception rate, so that the first communication terminal receives the first reception rate, the first bit error rate, the second reception rate, and the second bit error rate; wherein the second optical pulse signal includes optical pulse signals of at least three intensities; and providing the first communication terminal with determining a third reception rate and a third bit error rate of a single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate and the at least three intensities, obtaining a loss rate according to the first ciphertext information, the first reception rate and the first bit error rate, obtaining a first calculation result according to the third reception rate, the third bit error rate and the loss rate, and sending a preset encoding method and key information to the second communication terminal when the first calculation result indicates that there is no abnormality in the communication channel; The encoding method and key information are received, and plaintext information corresponding to the first ciphertext information is obtained according to the encoding method and the key information.

5. The method according to claim 4, characterized in that The obtaining, according to the encoding method and the key information, plaintext information corresponding to the first ciphertext information comprises: Decrypting the first ciphertext information according to the key information to obtain coded content, wherein the first ciphertext information is information obtained by the first communication terminal performing an XOR process on a codeword in the coded content and a target bit; The encoding method is used to decrypt the encoded content to obtain the plaintext information.

6. A quantum communication device, characterized in that: Applied to a first communication terminal, the device includes: an encoding module, configured to encode the first ciphertext information to obtain a first optical pulse signal, and send the first optical pulse signal and a second optical pulse signal, so that the second communication terminal detects the first optical pulse signal to obtain a first reception rate and a first bit error rate, and detects the second optical pulse signal to obtain a second reception rate and a second bit error rate, wherein the second optical pulse signal includes optical pulse signals of at least three intensities; A first receiving module, configured to receive the first receiving rate, the first bit error rate, the second receiving rate, and the second bit error rate published by the second communication terminal; A first determination module is configured to determine a third reception rate and a third bit error rate of a single-photon mode according to the first reception rate, the first bit error rate, the second reception rate, the second bit error rate, and the at least three intensities; obtain a loss rate according to the first ciphertext information, the first reception rate, and the first bit error rate; and obtain a first calculation result according to the third reception rate, the third bit error rate, and the loss rate; A sending module is used to send a preset encoding method and key information to the second communication terminal if the first calculation result indicates that there is no abnormality in the communication channel, so that the second communication terminal obtains the plaintext information corresponding to the first ciphertext information according to the encoding method and the key information.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.