Phase compensation control method, quantum key distribution system and computer equipment
By obtaining the stripe visibility and counting results of interference ring interference in the quantum key distribution system, and adjusting the working voltage of the phase modulator, the problem of phase difference changes in the quantum key distribution system is solved, and fast and accurate phase compensation is achieved. Ensure efficient operation of the system.
Patent Information
- Application Number
- CN202410853818.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-22
AI Technical Summary
In the quantum key distribution system, the phase difference between the transmitting end and receiving end of the time phase QKD system is affected by the environment, resulting in changes in the phase difference. The existing compensation methods have the scanning time and bit error rate calculation. Inaccurate problems, phase compensation cannot be carried out in a timely and accurate manner.
By obtaining the stripe visibility of interference ring interference in the transmitting and receiving ends, the phase modulator is used to adjust the working voltage during the compensation period, and combining the counting results of the first phase state detector and the second phase state detector, the compensation voltage is calculated, and Compensation is made to correct the phase difference error for the next operating cycle.
It realizes fast and accurate compensation of phase difference, reduces the bit error rate, ensures the high-performance and efficient transmission of the system, adapts to complex environment changes, and avoids the system performance degradation caused by phase drift.
Smart Images

Figure CN119011128A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of quantum secure communication technology, and in particular to a phase compensation control method, a quantum key distribution system and a computer device. Background Art
[0002] Quantum key distribution (QKD) is a method of information exchange that uses the properties of quantum mechanics to ensure communication security. The transmitter and receiver of the time phase QKD system both have unequal-arm interferometers with the same phase difference.
[0003] However, in practical applications, the phase difference between the two unequal-arm interferometers will be affected by different environments, resulting in changes in the phase difference. Summary of the invention
[0004] Based on this, it is necessary to provide a phase compensation control method, a quantum key distribution system and a computer device to compensate for the phase difference in response to the above technical problems.
[0005] In a first aspect, the present application provides a phase compensation control method, which is applied to a quantum key distribution system, wherein the system includes a transmitting end and a receiving end, wherein the transmitting end includes a phase modulator, and the receiving end includes a first phase state detector and a second phase state detector; the method includes:
[0006] Obtain the visibility of the fringe of the interference ring in the transmitting end and the receiving end;
[0007] In a compensation period, a first counting result of the first phase state detector and a second counting result of the second phase state detector are obtained, wherein the modulation phase difference of the phase modulator in the compensation period is a first preset phase difference, the compensation period is between a current working period and a next working period, and the working period is a time period for quantum key distribution;
[0008] Obtaining a compensation voltage according to a reference phase voltage, the fringe visibility, the first counting result, and the second counting result, wherein the reference phase voltage is an operating voltage corresponding to when the modulation phase difference of the phase modulator is at a second preset phase difference;
[0009] The operating voltage of the phase modulator in the next working cycle is compensated according to the compensation voltage.
[0010] In one embodiment, obtaining the visibility of interference fringes of interference rings in the transmitting end and the receiving end includes:
[0011] Continuously adjusting the operating voltage of the phase modulator according to the voltage step amount until a target operating voltage is reached, wherein the target operating voltage is an operating voltage corresponding to when the modulation phase difference of the phase modulator is at an extreme phase difference value;
[0012] Obtaining a third counting result of the first phase state detector and a fourth counting result of the second phase state detector at each operating voltage of the phase modulator;
[0013] The stripe visibility is determined according to each of the third counting results and each of the fourth counting results.
[0014] In one embodiment, determining the stripe visibility according to each of the third counting results and each of the fourth counting results includes:
[0015] Obtaining a counting result ratio of the third counting result and the fourth counting result of the phase modulator at each operating voltage;
[0016] The maximum ratio of the counting results is determined as the interference fringe visibility.
[0017] In one embodiment, obtaining the compensation voltage according to the reference phase voltage, the fringe visibility, the first counting result and the second counting result includes:
[0018] Acquire a phase drift amount according to the fringe visibility, the first counting result, and the second counting result;
[0019] A compensation voltage is obtained according to the reference phase voltage and the phase drift amount.
[0020] In one embodiment, compensating the working voltage of the phase modulator in the next working cycle according to the compensation voltage includes:
[0021] Determine the initial operating voltage of the phase modulator in the next operating cycle according to the initial mapping relationship and the modulation phase difference of the phase modulator in the next operating cycle, wherein the initial mapping relationship is a mapping relationship between the modulation phase difference of the phase modulator and the operating voltage;
[0022] The initial operating voltage is compensated according to the compensation voltage to obtain an actual operating voltage of the phase modulator in the next operating cycle.
[0023] In one of the embodiments, the method further includes: updating the initial mapping relationship according to the compensation voltage.
[0024] In the second aspect, the present application also provides a quantum key distribution system, characterized in that the system includes a transmitting end, a receiving end and a processor, the transmitting end includes a phase modulator, the receiving end includes a first phase state detector and a second phase state detector, the processor is used to obtain the fringe visibility of the interference ring in the transmitting end and the receiving end, and within a compensation period, obtain a first counting result of the first phase state detector and a second counting result of the second phase state detector, and obtain a compensation voltage according to a reference phase voltage, the fringe visibility, the first counting result and the second counting result, wherein the reference phase voltage is an operating voltage corresponding to when the modulation phase difference of the phase modulator is at a second preset phase difference, and the operating voltage of the phase modulator in the next working period is compensated according to the compensation voltage, wherein the modulation phase difference of the phase modulator in the compensation period is a first preset phase difference, the compensation period is between the current working period and the next working period, and the working period is a time period for quantum key distribution.
[0025] In a third aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the phase compensation control method in any one of the above embodiments when executing the computer program.
[0026] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the phase compensation control method in any of the above embodiments are implemented.
[0027] In a fifth aspect, the present application also provides a computer program product, including a computer program, which, when executed by a processor, performs the steps of the phase compensation control method in any of the above embodiments.
[0028] The above-mentioned phase compensation control method, quantum key distribution system and computer equipment first obtain the fringe visibility of the interference ring in the transmitting end and the receiving end, and then start the quantum key distribution. At the end of the current working cycle of the quantum key distribution and in the compensation period before the next working cycle of the quantum key distribution begins, the modulation phase difference of the phase modulator at the transmitting end is a first preset phase difference, and the first counting result of the first phase state detector and the second counting result of the second phase state detector at the receiving end are obtained in the compensation period. After that, the compensation voltage can be calculated based on the reference phase voltage, the fringe visibility, the first counting result and the second counting result, and the working voltage of the phase modulator in the next working cycle is compensated according to the compensation voltage, thereby compensating the modulation phase difference of the phase modulator in the next working cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0030] FIG1 is a schematic flow chart of a phase compensation control method in one embodiment;
[0031] FIG2 is a schematic diagram of the structure of a quantum key distribution system in one embodiment;
[0032] FIG3 is a diagram of a phase compensation operation mode in one embodiment;
[0033] FIG4 is a schematic diagram of a flow chart of step S101 in one embodiment;
[0034] FIG5 is a schematic diagram of a flow chart of step S403 in one embodiment;
[0035] FIG6 is a schematic diagram of a flow chart of step S103 in one embodiment;
[0036] FIG7 is a schematic diagram of a flow chart of step S104 in one embodiment;
[0037] FIG. 8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0038] 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.
[0039] The transmitter and receiver of the time phase QKD system both have unequal-arm interferometers with the same phase difference. In practical applications, the phase difference between the two unequal-arm interferometers will be affected by different environments, resulting in changes in the phase difference. To address this problem, there are two compensation methods in related technologies: the first is through scanning, that is, the transmitter emits a pulse light with a fixed phase difference, the receiver performs a full-cycle scan, and the best phase compensation point is analyzed by counting; the second is to use the bit error rate to calculate and analyze the phase drift, so as to perform real-time phase compensation.
[0040] Both phase compensation methods in the related art require a phase compensation device to be set up at the transmitting end of the time phase QKD system, and the first method takes a long time to scan, with a general scanning time of the order of 1 second; the bit error rate used in the second method is the average value obtained by statistics per unit time. When the external environment changes drastically, such as drastic temperature changes and excessive vibrations that cause the phase drift to be too fast, the second method has the problem of untimely and inaccurate system phase compensation leading to excessively high bit error rates. When the transmitting end and the receiving end directly perform long-distance key distribution, the signal-to-noise ratio will decrease and the bit error rate will fluctuate greatly, resulting in inaccurate calculation of the phase drift and inability to perform phase compensation normally.
[0041] In view of the above technical problems, as shown in FIG1 , the present application provides a phase compensation control method, the phase compensation control method comprising:
[0042] S101: Obtain the visibility of interference fringes of interference rings at the transmitting end and the receiving end.
[0043] The phase compensation control method of the present application can be applied to a quantum key distribution system as shown in Figure 2, which includes a transmitting end and a receiving end. The transmitting end includes a laser, a first interferometer, a phase modulator, an intensity modulator and an attenuator, and the receiving end includes a first beam splitter, a second beam splitter, a second interferometer, a first phase state detector, a second phase state detector, a first time state detector and a second time state detector.
[0044] In the application, the laser can send an initial optical signal to the first interferometer, and the second interferometer can generate two optical signals based on the received initial optical signal: the first optical signal and the second optical signal, and transmit the generated first optical signal and the second optical signal to the phase modulator. By adjusting the working voltage of the phase modulator, the phase difference between the first optical signal and the second optical signal can be adjusted, so that the phase modulator outputs the first optical signal and the second optical signal with a phase difference. The magnitude of the phase difference is related to the working voltage of the phase modulator. By adjusting the working voltage of the phase modulator, the phase modulator can also output only the first optical signal or the second optical signal, wherein the first optical signal is the optical signal at time 0, and the second optical signal is the optical signal at time 1. Afterwards, the phase modulator sends the output one or two optical signals to the intensity modulator, and then to the attenuator. The attenuator attenuates the one or two optical signals, and attenuates the one or two optical signals into one or zero single photons. When the attenuator outputs a single photon, the single photon enters the first beam splitter at the receiving end. Afterwards, the single photon may enter the second interferometer or the second beam splitter.
[0045] When the modulation phase difference of the phase modulator is 0, that is, the phase difference between the output first optical signal and the second optical signal is 0, when the single photon output by the attenuator enters the second interferometer, the single photon will enter the first phase state detector, and when the single photon output by the attenuator enters the second beam splitter, the single photon will randomly enter the first time state detector or the second time state detector. When the modulation phase difference of the phase modulator is π, that is, the phase difference between the output first optical signal and the second optical signal is π, when the single photon output by the attenuator enters the second interferometer, the single photon will enter the second phase state detector, and when the single photon output by the attenuator enters the second beam splitter, the single photon will randomly enter the first time state detector or the second time state detector. When the phase modulator only outputs the first optical signal, when the single photon output by the attenuator enters the second interferometer, the single photon will randomly enter the first phase state detector or the second phase state detector, and when the single photon output by the attenuator enters the second beam splitter, the single photon will enter the first time state detector. When the phase modulator outputs only the second optical signal, when the single photon output by the attenuator enters the second interferometer, the single photon will randomly enter the first phase state detector or the second phase state detector, and when the single photon output by the attenuator enters the second beam splitter, the single photon will enter the second time state detector. In the application, due to the existence of dark counts, when the phase difference between the first optical signal and the second optical signal output by the phase modulator is 0 or π, and the single photon output by the attenuator enters the second interferometer, the single photon will not enter the first phase state detector or the second phase state detector 100%. For example, within a period of time, the phase modulator continuously outputs 100 first optical signals and second optical signals with a phase difference of 0, and the attenuator continuously outputs 90 single photons based on the received first optical signal and second optical signal. When 50 of the single photons output by the attenuator enter the second interferometer, 49 single photons may enter the first phase state detector and 1 single photon may enter the second phase state detector.
[0046] By controlling the operating voltage of the phase modulator and calculating the number of single photons entering each detector, the fringe visibility K can be obtained.
[0047] S102: During a compensation period, a first counting result of the first phase state detector and a second counting result of the second phase state detector are obtained.
[0048] Among them, the modulation phase difference of the phase modulator in the compensation period is a first preset phase difference, the compensation period is between the current working period and the next working period, and the working period is the time period of quantum key distribution.
[0049] In this embodiment, please refer to FIG3 , the entire process of quantum key distribution can be decomposed into multiple distribution cycles, one distribution cycle includes a working cycle a and a compensation cycle b, please refer to FIG3 , the entire quantum key distribution process includes an initialization phase p and n distribution cycles: the first distribution cycle q1, the second distribution cycle q2, ..., the nth distribution cycle qn, each distribution cycle includes a working cycle a and a compensation cycle b, such as the first distribution phase q1 includes the first working cycle a1 and the first compensation cycle b1, the second distribution phase q1 includes the second working cycle a2 and the second compensation cycle b2, ..., the nth distribution cycle qn includes the nth working cycle an and the nth compensation cycle bn. During the working cycle, the transmitting end sends the key to the receiving end, and during the compensation cycle, the phase modulator can continuously output the first optical signal and the second optical signal with a fixed phase difference, thereby causing the attenuator to continuously generate single photons, and count the first counting result of the first phase state detector and the second counting result of the second phase state detector, and exemplarily, the fixed phase difference can be π / 2. The size of the distribution cycle can be specifically set according to the change of the environment, and the length of the working cycle is much longer than the length of the compensation cycle. In an example, the length of the distribution cycle is 100ms, wherein the working cycle can be 99ms, and the compensation cycle can be 1ms. By making the compensation time extremely short, the system operation efficiency can be guaranteed while compensating for the phase drift. Therefore, the present invention can maintain high-performance and high-efficiency transmission.
[0050] S103: Obtain a compensation voltage according to the reference phase voltage, the fringe visibility, the first counting result and the second counting result.
[0051] The reference phase voltage is the working voltage corresponding to when the modulation phase difference of the phase modulator is at the second preset phase difference. After obtaining the first counting result of the first phase state detector and the second counting result of the second phase state detector within the compensation period, the compensation voltage can be calculated based on the reference phase voltage, the fringe visibility, the first counting result and the second counting result.
[0052] S104: Compensate the operating voltage of the phase modulator in the next working cycle according to the compensation voltage.
[0053] Afterwards, the working voltage of the phase modulator in the next working cycle can be compensated based on the compensation voltage. Since the phase difference between the two optical signals output by the phase modulator is related to the working voltage of the phase modulator, the error of the phase difference between the two optical signals can be compensated and corrected.
[0054] The above-mentioned phase compensation control method first obtains the fringe visibility of the interference ring in the transmitting end and the receiving end, and then starts quantum key distribution. In the compensation period when the current working cycle of the quantum key distribution ends and the next working cycle of the quantum key distribution has not yet started, the modulation phase difference of the phase modulator at the transmitting end is a first preset phase difference, and the first counting result of the first phase state detector and the second counting result of the second phase state detector at the receiving end are obtained in the compensation period. After that, the compensation voltage can be calculated based on the reference phase voltage, the fringe visibility, the first counting result and the second counting result, and the working voltage of the phase modulator in the next working cycle is compensated according to the compensation voltage, thereby compensating the modulation phase difference of the phase modulator in the next working cycle.
[0055] In one embodiment, as shown in FIG. 4 , step S101 , obtaining the visibility of interference fringes of interference rings in the transmitting end and the receiving end, includes steps S401 to S403 .
[0056] S401: Continuously adjust the operating voltage of the phase modulator according to the voltage step amount until the target operating voltage is reached.
[0057] Before performing quantum key distribution, it is necessary to first obtain the fringe visibility K. Specifically, the relationship between the modulation phase difference of the phase modulator and the working voltage of the phase modulator can be predetermined. For example, when the working voltage of the phase modulator is 1V, the modulation phase difference is 0, when the working voltage of the phase modulator is 6V, the modulation phase difference is π, and when the working voltage of the phase modulator is 11V, the modulation phase difference is 2π. After determining the relationship between the modulation phase difference of the phase modulator and its working voltage, the working voltage of the phase modulator can be continuously adjusted based on the voltage step amount and the time step amount until the target working voltage is reached. The third counting result of the first phase state detector and the fourth counting result of the second phase state detector under each modulation phase difference are counted. The target working voltage is the working voltage corresponding to the modulation phase difference of the phase modulator when it is at the phase difference extreme value, that is, the working voltage of the phase modulator when the modulation phase difference is 0 or 2π.
[0058] S402: Obtain a third counting result of the first phase state detector and a fourth counting result of the second phase state detector of the phase modulator at each operating voltage.
[0059] Exemplarily, when the working voltage of the phase modulator is 1V, the modulation phase difference is 0, when the working voltage of the phase modulator is 6V, the modulation phase difference is π, when the working voltage of the phase modulator is 11V, the modulation phase difference is 2π, the target working voltage is the working voltage of the phase modulator when the modulation phase difference is 0, that is, 1V, the preset voltage step is -0.2V, and the preset time threshold is 5ms. First, the working voltage of the phase modulator is controlled to be 11V for 5ms, and the third counting result and the fourth counting result within the time threshold are obtained and recorded; then the working voltage of the phase modulator is controlled to be 10.8V for 5ms, and the third counting result and the fourth counting result within the time threshold are obtained and recorded; then the working voltage of the phase modulator is controlled to be 10.6V for 5ms, and the third counting result and the fourth counting result within the time threshold are obtained and recorded; ... until the working voltage of the phase modulator is controlled to be 1V for 5ms, and the third counting result and the fourth counting result within the time threshold are obtained and recorded.
[0060] S403: Determine the stripe visibility according to each third counting result and each fourth counting result.
[0061] After obtaining each third counting result and each fourth counting result, the fringe visibility K can be calculated.
[0062] In one embodiment, as shown in FIG. 5 , step S403 , determining the stripe visibility according to each third counting result and each fourth counting result, includes step S501 and step S502 .
[0063] S501: Obtain a counting result ratio between a third counting result and a fourth counting result of a phase modulator at each operating voltage.
[0064] S502: Determine the maximum counting result ratio as the interference fringe visibility.
[0065] Specifically, a counting result ratio (N3 / N4) of the third counting result N3 and the fourth counting result N4 under each working voltage is calculated, and the maximum counting result ratio (N3 / N4) is determined as the stripe visibility K.
[0066] In one embodiment, as shown in FIG. 6 , step S103 , obtaining a compensation voltage according to a reference phase voltage, fringe visibility, a first counting result, and a second counting result, includes steps S601 to S602 .
[0067] S601: Obtain a phase drift amount according to fringe visibility, a first counting result and a second counting result.
[0068] After obtaining the first counting result and the second counting result in the current compensation period, the phase drift amount can be calculated based on the first preset formula. , the first preset formula is: , where N1 is the first counting result and N2 is the second counting result. The phase drift is the error of the phase difference between the transmitting end and the receiving end.
[0069] S602: Obtain a compensation voltage according to a reference phase voltage and a phase drift amount.
[0070] Based on the phase drift, the compensation voltage can be obtained based on the second preset formula , the second preset formula is: , where x is the operating voltage of the phase modulator when the modulation phase difference is π.
[0071] In one embodiment, as shown in FIG. 7 , step S104 , compensating the working voltage of the phase modulator in the next working cycle according to the compensation voltage, includes step S701 and step S702 .
[0072] S701: Determine an initial working voltage of a phase modulator in a next working cycle according to an initial mapping relationship and a preset modulation phase difference of the phase modulator in the next working cycle.
[0073] S702: Compensate the initial working voltage according to the compensation voltage to obtain the actual working voltage of the phase modulator in the next working cycle.
[0074] The initial mapping relationship is a mapping relationship between the modulation phase difference of the phase modulator and the working voltage of the phase modulator. First, the initial mapping relationship is searched according to the modulation phase difference of the phase modulator in the next working cycle, the initial working voltage of the phase modulator in the next working cycle is determined, and the initial working voltage is compensated according to the compensation voltage to determine the actual working voltage of the phase modulator in the next working cycle. Exemplarily, when the calculated compensation voltage is 0.3V, the modulation phase difference of the next working cycle is π, and the initial working voltage of the next working cycle is 6V, it can be determined that the actual working voltage of the initial working voltage of the next working cycle is 6.3V.
[0075] In one embodiment, the method further includes: updating the initial mapping relationship according to the compensation voltage.
[0076] In the application, after each calculation of the compensation voltage, the initial mapping relationship can be updated according to the compensation voltage. Exemplarily, the initial mapping relationship before the first compensation cycle is: when the working voltage of the phase modulator is 1V, the modulation phase difference is 0, when the working voltage of the phase modulator is 6V, the modulation phase difference is π, when the working voltage of the phase modulator is 11V, the modulation phase difference is 2π, assuming that the compensation voltage calculated in the first compensation cycle is 0.2V, the modulation phase difference of the second working cycle is π, and the initial working voltage of the second working cycle is 6V, then the actual working voltage of the initial working voltage of the second working cycle is 6.2V, and the initial mapping relationship is updated. The updated initial mapping relationship is: when the working voltage of the phase modulator is 1.2V, the modulation phase difference is 0, when the working voltage of the phase modulator is 11V, the modulation phase difference is 2π. When the working voltage of the phase modulator is 6.2V, the modulation phase difference is π, and when the working voltage of the phase modulator is 11.2V, the modulation phase difference is 2π; when the compensation voltage calculated in the second compensation cycle is -0.1V, the modulation phase difference of the third working cycle is π, and the initial working voltage of the third working cycle is 6.2V, then the actual working voltage of the initial working voltage of the second working cycle is 6.1V, and the initial mapping relationship is updated. The updated initial mapping relationship is that when the working voltage of the phase modulator is 1.1V, the modulation phase difference is 0, when the working voltage of the phase modulator is 6.1V, the modulation phase difference is π, and when the working voltage of the phase modulator is 11.1V, the modulation phase difference is 2π. Among them, the initial mapping relationship may also not be updated according to the compensation voltage.
[0077] The phase compensation control method of the present invention does not require any phase compensation device at the receiving end, and because the compensation cycle of the present invention takes up an extremely short time, the present invention can compensate for phase drift while ensuring the operating efficiency of the system. In addition, the present invention solves the problem of phase compensation control under drastic changes in complex environments, such as drastic temperature changes and excessively high vibration frequencies causing too fast phase drift, which results in too high a system bit error rate due to untimely system phase compensation. The present invention can modify the size of the distribution cycle according to the severity of environmental changes to ensure that the system always operates in an optimal performance state.
[0078] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned 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 does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can 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 to be 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.
[0079] In an exemplary embodiment, the present application provides a quantum key distribution system, characterized in that the system includes a transmitting end, a receiving end and a processor, the transmitting end includes a phase modulator, the receiving end includes a first phase state detector and a second phase state detector, the processor is used to obtain the fringe visibility of the interference ring in the transmitting end and the receiving end, and within a compensation period, obtain a first counting result of the first phase state detector and a second counting result of the second phase state detector, and obtain a compensation voltage according to a reference phase voltage, the fringe visibility, the first counting result and the second counting result, wherein the reference phase voltage is an operating voltage corresponding to when the modulation phase difference of the phase modulator is at a second preset phase difference, and the operating voltage of the phase modulator in the next working period is compensated according to the compensation voltage, wherein the modulation phase difference of the phase modulator in the compensation period is a first preset phase difference, the compensation period is between the current working period and the next working period, and the working period is a time period for quantum key distribution.
[0080] In an exemplary embodiment, the processor is also used to continuously adjust the operating voltage of the phase modulator according to the voltage step amount until the target operating voltage is reached, wherein the target operating voltage is the operating voltage corresponding to when the modulation phase difference of the phase modulator is at the phase difference extreme value, obtain the third counting result of the first phase state detector and the fourth counting result of the second phase state detector of the phase modulator under each operating voltage, and determine the stripe visibility according to each third counting result and each fourth counting result.
[0081] In an exemplary embodiment, the processor is further configured to obtain a counting result ratio between a third counting result and a fourth counting result of the phase modulator at each operating voltage, and determine the maximum counting result ratio as the interference fringe visibility.
[0082] In an exemplary embodiment, the processor is further configured to obtain a phase drift amount according to the fringe visibility, the first counting result, and the second counting result, and obtain a compensation voltage according to the reference phase voltage and the phase drift amount.
[0083] In an exemplary embodiment, the processor is also used to determine the initial operating voltage of the phase modulator in the next working cycle based on the initial mapping relationship and the modulation phase difference of the phase modulator in the next working cycle preset, wherein the initial mapping relationship is a mapping relationship between the modulation phase difference of the phase modulator and the operating voltage, and the initial operating voltage is compensated according to the compensation voltage to obtain the actual operating voltage of the phase modulator in the next working cycle.
[0084] In an exemplary embodiment, the processor is further configured to update the initial mapping relationship according to the compensation voltage.
[0085] In an exemplary embodiment, the present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the phase compensation control method in any of the above embodiments are implemented.
[0086] The computer device may be a terminal, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a phase compensation control method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0087] Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial 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 shown in the figure, or combine certain components, or have a different arrangement of components.
[0088] In an exemplary embodiment, the present application also provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the phase compensation control method in any of the above embodiments are implemented.
[0089] In an exemplary embodiment, the present application also provides a computer program product, including a computer program, which, when executed by a processor, performs the steps of the phase compensation control method in any of the above embodiments.
[0090] 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, and the collection, use and processing of relevant data must comply with relevant regulations.
[0091] 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 this 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.
[0092] The technical features of the above embodiments may be arbitrarily combined. 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.
[0093] The above-described 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 phase compensation control method, characterized in that: Applied to a quantum key distribution system, the system includes a transmitting end and a receiving end, the transmitting end includes a phase modulator, and the receiving end includes a first phase state detector and a second phase state detector; the method includes: Obtain the visibility of the fringe of the interference ring in the transmitting end and the receiving end; In a compensation period, a first counting result of the first phase state detector and a second counting result of the second phase state detector are obtained, wherein the modulation phase difference of the phase modulator in the compensation period is a first preset phase difference, the compensation period is between a current working period and a next working period, and the working period is a time period for quantum key distribution; Obtaining a compensation voltage according to a reference phase voltage, the fringe visibility, the first counting result, and the second counting result, wherein the reference phase voltage is an operating voltage corresponding to when the modulation phase difference of the phase modulator is at a second preset phase difference; The operating voltage of the phase modulator in the next working cycle is compensated according to the compensation voltage.
2. The phase compensation control method according to claim 1, characterized in that: The obtaining of the visibility of the interference fringes of the interference rings at the transmitting end and the receiving end comprises: Continuously adjusting the operating voltage of the phase modulator according to the voltage step amount until a target operating voltage is reached, wherein the target operating voltage is an operating voltage corresponding to when the modulation phase difference of the phase modulator is at an extreme phase difference value; Obtaining a third counting result of the first phase state detector and a fourth counting result of the second phase state detector at each operating voltage of the phase modulator; The stripe visibility is determined according to each of the third counting results and each of the fourth counting results.
3. The phase compensation control method according to claim 2, characterized in that: The determining the stripe visibility according to each of the third counting results and each of the fourth counting results comprises: Obtaining a counting result ratio of the third counting result and the fourth counting result of the phase modulator at each operating voltage; The maximum ratio of the counting results is determined as the interference fringe visibility.
4. The phase compensation control method according to claim 1, characterized in that: The obtaining of the compensation voltage according to the reference phase voltage, the fringe visibility, the first counting result and the second counting result comprises: Acquire a phase drift amount according to the fringe visibility, the first counting result, and the second counting result; A compensation voltage is obtained according to the reference phase voltage and the phase drift amount.
5. The phase compensation control method according to claim 1, characterized in that: The compensating the working voltage of the phase modulator in the next working cycle according to the compensation voltage includes: Determine the initial operating voltage of the phase modulator in the next operating cycle according to the initial mapping relationship and the modulation phase difference of the phase modulator in the next operating cycle, wherein the initial mapping relationship is a mapping relationship between the modulation phase difference of the phase modulator and the operating voltage; The initial operating voltage is compensated according to the compensation voltage to obtain an actual operating voltage of the phase modulator in the next operating cycle.
6. The phase compensation control method according to claim 5, characterized in that: The method further includes: updating the initial mapping relationship according to the compensation voltage.
7. A quantum key distribution system, characterized in that: The system includes a transmitting end, a receiving end and a processor; The transmitting end includes a phase modulator; The receiving end includes a first phase state detector and a second phase state detector; The processor is used to obtain the visibility of the fringe interference of the interference ring in the transmitting end and the receiving end, and obtain the first counting result of the first phase state detector and the second counting result of the second phase state detector within a compensation period, and obtain the compensation voltage according to the reference phase voltage, the fringe visibility, the first counting result and the second counting result, wherein the reference phase voltage is the working voltage corresponding to when the modulation phase difference of the phase modulator is at the second preset phase difference, and the working voltage of the phase modulator in the next working period is compensated according to the compensation voltage, wherein the modulation phase difference of the phase modulator in the compensation period is the first preset phase difference, the compensation period is between the current working period and the next working period, and the working period is the time period of quantum key distribution.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. 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 6 are implemented.
10. 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 6 are implemented.
