Voltage phase scanning method and system based on phase coding QKD system

By adopting a large step and small step algorithm in the phase encoding QKD system, combined with different strategies of first and non-first scans, the rapid completion of high-precision voltage phase scanning is achieved, solving the problems of scanning time and accuracy in the existing technology, and improving the System adaptability and performance.

CN118890102APending Publication Date: 2024-11-01GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411097613.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

The existing phase-encoding QKD systems have problems such as long time or low accuracy in voltage phase scanning, and cannot achieve high-precision and short-time scanning at the same time, especially in the event of environmental changes, which cannot quickly restore accurate phase modulation.

Method used

Using the large-step and small-step algorithm, the full range is scanned with a larger step size during the first scan, and the local range is determined, and then the local range is scanned with a smaller step size; when not the first scan, the local range is determined based on the last scan data, and the local range is determined using Fine scanning is performed with smaller steps, reducing the time and effort of rescanning.

Benefits of technology

It achieves a significant reduction in scanning time while ensuring scanning accuracy, improves the efficiency and accuracy of voltage phase scanning, can quickly adapt to environmental changes, and improves the efficiency and robustness of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890102A_ABST
    Figure CN118890102A_ABST
Patent Text Reader

Abstract

The invention discloses a voltage phase scanning method and system based on a phase coding QKD system, and the method comprises the steps: carrying out the voltage phase scanning of a full scanning range at a first step length during the first scanning, determining a first local scanning range, carrying out the voltage phase scanning of the first local scanning range at a second step length, and determining a second local scanning range; obtaining current scanning data; when the scanning is not the first scanning, determining a second local scanning range according to the previous voltage phase value, and scanning the second local scanning range at a third step length to obtain current scanning data; and performing coordinate calculation on the current scanning data to obtain a voltage phase value. According to the invention, for the first scanning, a large step length is used for the first scanning to determine the local range, and then the small step length scanning is carried out on the local range; and if the scanning is not performed for the first time, scanning with a smaller step length in a layout range is performed according to data scanned last time, so that a high-precision voltage phase value is obtained, meanwhile, the scanning workload is reduced, and the time required by scanning is shortened.
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, and specifically to a voltage phase scanning method and system based on a phase-coded QKD system. Background Art

[0002] Existing phase-coded QKD systems using Faraday-Michelson interferometry often employ a decoyed BB84 phase encoding scheme based on an FM interferometer loop. This scheme improves data transmission speed and robustness by creating a phase difference between Alice (the transmitter) and Bob (the receiver), then using bipolar phase modulators on both sides to perform phase modulation. Before performing phase modulation, a voltage phase scan is required to obtain accurate voltage phase values, providing precise data support for phase modulation.

[0003] There are two main methods for voltage phase scanning. One method starts scanning the voltage phase at 1, gradually increasing the voltage in steps of 1 until it reaches its maximum amplitude. Each scan point is then calculated and processed to determine the voltage phase value that accurately modulates the desired phase. The other method starts scanning the voltage phase at 1, gradually increasing the voltage in slightly larger steps, and calculating and processing each scan point to ultimately determine the appropriate voltage phase value. However, method one uses shorter steps, and while it can scan all points within the full range, it takes a long time. Method two, while selectively scanning selected points takes less time, suffers from low accuracy and cannot find the most accurate voltage phase value. Summary of the Invention

[0004] The present application proposes a voltage phase scanning method and system based on a phase-coded QKD system. For the initial scan, a larger step size is first used to perform the initial scan to determine the local range corresponding to the minimum point of the phase deviation value, and then the local range is scanned with a smaller step size; for non-initial scans, a smaller step size scan is performed within the layout range based on the data of the last scan, so as to obtain high-precision voltage phase values ​​while reducing the time required for scanning.

[0005] A first aspect of the present application provides a voltage phase scanning method based on a phase-coded QKD system, the method comprising:

[0006] Determine the scanning mode according to the scanning condition of the full scanning range of the PM electrode;

[0007] When the scanning situation is the first scanning, performing a voltage phase scan on the full scanning range with a preset first step length to determine a first partial scanning range, and performing a voltage phase scan on the first partial scanning range with a preset second step length to obtain current scanning data; wherein the first step length is greater than the second step length;

[0008] When the scanning situation is not the first scanning, determining a second local scanning range according to the previous voltage phase value, and performing voltage phase scanning on the second local scanning range with a third step length to obtain current scanning data;

[0009] Coordinate calculation is performed on the current scan data to obtain a current voltage phase value.

[0010] The above scheme first determines whether it is the first scan. If it is the first scan, it is necessary to first perform a rough voltage phase scan on the entire scan range with a larger first step length to obtain a first local scan range, narrowing the voltage phase scan range and reducing the scanning time. Then, a high-precision voltage phase scan is performed on the first local scan range with a smaller second step length to obtain more accurate current scan data. If it is not the first scan, the previous voltage phase value obtained from the previous scan is used to determine the second local scan range. By omitting the scanning process with the larger first step length, the scanning time is reduced. At the same time, a finer scan is performed on the second local scan range with a smaller third step length to obtain more accurate current scan data. Finally, the current voltage phase value is obtained from the current scan data to provide data support for subsequent voltage modulation.

[0011] In a possible implementation method of the first aspect, when the scanning situation is the first scanning, when the scanning situation is the first scanning, performing a voltage phase scan on the full scanning range with a preset first step length to determine a first local scanning range is specifically as follows:

[0012] When the scanning situation is the first scanning, the initial voltage phase value of the full scanning range is set, and then the Alice end is controlled to perform encoding and emitting light and the Bob end is controlled to perform decoding and detecting, so that the Alice end and the Bob end form a phase deviation;

[0013] Performing voltage phase scans on coordinate points in the full scanning range several times with the first step length to obtain detection data and voltage phase data;

[0014] Determining a plurality of first coordinate points according to the detection data and the voltage phase data;

[0015] Calculate the first coordinate point to determine a first local scanning range.

[0016] The above scheme first sets the initial voltage phase value and then controls the phase deviation between Alice and Bob to provide a measurement environment for subsequent voltage phase measurements. A voltage phase scan is performed on coordinate points within the full scanning range with a large first step length, obtaining voltage phase data and detection data. From these data, several first coordinates are determined. The first coordinates are then calculated to obtain a first local scanning range that narrows the scanning range, reducing the workload and scanning time of subsequent scans.

[0017] In a possible implementation method of the first aspect, a plurality of first coordinate points are determined according to the detection data and the voltage phase data, specifically:

[0018] determining the abscissa of each first coordinate point according to the voltage phase data;

[0019] Processing the detection data to obtain phase deviation data, and determining the ordinate of each first coordinate point according to the phase deviation data;

[0020] According to the horizontal coordinate and the vertical coordinate, a corresponding first coordinate point is determined.

[0021] The above solution determines the horizontal coordinate of the first coordinate point through voltage phase data and determines the vertical coordinate of the first coordinate point through detection data, thereby determining several first coordinate points to provide data support for subsequent determination of the first local scanning range.

[0022] In a possible implementation method of the first aspect, calculating the first coordinate point to determine the first local scanning range is specifically as follows:

[0023] Adding the ordinates of two adjacent points in the first coordinate points in pairs to obtain a plurality of sum values;

[0024] A minimum sum is selected from the sum values, and a first local scanning range is determined according to two horizontal coordinates corresponding to the minimum sum.

[0025] The above scheme determines the first local scanning range in which the phase deviation value changes most stably by selecting the minimum sum. Because the phase deviation value changes more stably in the first local scanning range, the voltage phase value obtained by scanning can make the power system run more stably.

[0026] In a possible implementation method of the first aspect, when the scanning situation is not the first scanning, a second partial scanning range is determined based on a previous voltage phase value, and a voltage phase scan is performed on the second partial scanning range with a third step size to obtain current scanning data, specifically:

[0027] When the scanning situation is not the first scanning, obtaining the previous voltage phase value;

[0028] The second local scanning range is determined according to the previous voltage phase value and a preset range threshold, and the voltage phase scanning is performed on the coordinate points of the second local scanning range with the third step length to obtain current scanning data.

[0029] When determining that it is not the first scan, the above scheme does not need to perform a large-scale scan again based on the characteristic of the voltage phase value having a small fluctuation. Instead, the previous voltage phase value is directly used to determine the second local scanning range, thereby reducing the scanning time; and then a smaller second step size is used to perform a high-precision scan to obtain the current scanning data.

[0030] In a possible implementation method of the first aspect, coordinate calculation is performed on the current scan data to obtain a current voltage phase value, specifically:

[0031] Obtaining a plurality of scanning coordinate points according to the current scanning data;

[0032] Perform curve fitting or ordinate comparison calculation based on the scanned coordinate points to obtain the target abscissa;

[0033] According to the target horizontal coordinate, the current voltage phase value is obtained.

[0034] A second aspect of the present application provides a voltage phase scanning system based on a phase-coded QKD system, the system comprising: a scanning mode determination module, an initial scanning module, a non-initial scanning module, and a voltage phase value calculation module;

[0035] The scanning mode determination module is used to determine the scanning mode according to the scanning condition of the full scanning range of the PM electrode;

[0036] The initial scanning module is configured to, when the scanning situation is the first scanning, perform a voltage phase scan on the full scanning range with a preset first step length to determine a first partial scanning range, and perform a voltage phase scan on the first partial scanning range with a preset second step length to obtain current scanning data; wherein the first step length is greater than the second step length;

[0037] The non-initial scanning module is configured to, when the scanning situation is not the first scanning, determine a second local scanning range according to a previous voltage phase value, and perform a voltage phase scan on the second local scanning range with a third step length to obtain current scanning data;

[0038] The voltage phase value calculation module is used to perform coordinate calculation on the current scanning data to obtain a current voltage phase value.

[0039] In a possible implementation of the second aspect, the method further includes: a scanning layer device;

[0040] Wherein, the scanning layer device includes a voltage phase scanning module, a scanning resource and configuration module, a scanning process control module and a scanning basic module;

[0041] The scanning basic module is used to control the devices in the voltage phase scanning process and provide an interface for the scanning process control module;

[0042] The scanning process control module is used to provide a process control framework and provide a control interface for the voltage phase scanning module;

[0043] The scanning resource and configuration module is used to configure the initial voltage phase value, the first step length, the second step length and the number of scans, and provides a control interface for the voltage phase scanning module.

[0044] In a possible implementation of the second aspect, the voltage phase scanning module is used to call the control interface of the scanning process control module and the scanning resource and configuration module, set the first step length, the second step length and the number of scans, and set the voltage phase scanning process.

[0045] A third aspect of the present application provides a terminal device, which includes: a terminal device including a processor and a memory, the memory storing a computer program, and the processor implementing the steps of a voltage phase scanning method based on a phase-coded QKD system as described in any one of the embodiments of the present application when executing the computer program. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the implementation. Obviously, the drawings described below are only some implementation methods of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0047] Figure 1 This is a schematic diagram of a specific flow chart of a voltage phase scanning method based on a phase-coded QKD system provided in one embodiment of the present application;

[0048] Figure 2 This is a schematic diagram of a bipolar phase modulator based on a voltage phase scanning method of a phase-coded QKD system provided in one embodiment of the present application;

[0049] Figure 3 This is a diagram showing the first step length scan result of a PM electrode in a voltage phase scanning method based on a phase-coded QKD system provided in one embodiment of the present application;

[0050] Figure 4 This is a specific structural diagram of a voltage phase scanning system based on a phase-coded QKD system provided in one embodiment of the present application;

[0051] Figure 5This is a structural diagram of a terminal device provided in a certain embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0053] It should be understood that the step numbers used herein are only for convenience of description and are not intended to limit the order in which the steps are to be executed.

[0054] Example 1

[0055] Of the two existing voltage phase scanning methods, one scans all points within the entire range, which is highly accurate but time-consuming; the other selects some points for scanning, which is relatively quick but has low accuracy and cannot find the most accurate phase voltage value. Neither of these methods achieves the advantages of high accuracy and short time. Moreover, the entire phase QKD system has four PM electrodes, requiring four rounds of scanning, which further amplifies this shortcoming. In addition, when environmental conditions such as external temperature, vibration, and fiber attenuation change, the phase drifts and the original phase voltage cannot be modulated to the correct phase. All four PM electrodes must be rescanned. This shortcoming makes it impossible to quickly restore the code, resulting in a decrease in the accuracy of the voltage phase scanning.

[0056] Therefore, this embodiment provides a voltage phase scanning method based on a phase-coded QKD system, which is improved based on the large-step small-step algorithm, and greatly reduces the scanning time while ensuring the scanning accuracy.

[0057] like Figure 1 As shown, Figure 1 A specific flow chart of a voltage phase scanning method based on a phase-coded QKD system is provided for a certain embodiment of the present application. The voltage phase scanning method based on a phase-coded QKD system of this embodiment includes steps S1 to S4, which are described in detail as follows:

[0058] Step S1, determining a scanning mode according to the scanning condition of the full scanning range of the PM electrode.

[0059] In this step, the voltage phase scan of each PM electrode is divided into two cases, each with a different scanning range, one is the initial scan after power-on, and the other is the non-initial scan after power-on.

[0060] For the initial scan, a full-range large-step scan is performed first, followed by a smaller-range small-step scan. This minimizes the number of scans required to achieve high-precision enumeration and effectively reduces scan time. For non-initial scans, because voltage phase values ​​tend to drift relatively little, a small-step scan within a small range near the voltage phase value obtained in the previous scan is sufficient to accurately obtain the voltage phase value for the current scan, eliminating the need to re-scan the full range.

[0061] Therefore, after the PM electrode is connected to the power supply, the scanning mode is determined according to whether the full scanning range of the PM is the first scanning.

[0062] Step S2, when the scanning situation is the first scanning, the voltage phase scan is performed on the full scanning range with a preset first step length to determine the first local scanning range, and the voltage phase scan is performed on the first local scanning range with a preset second step length to obtain current scanning data.

[0063] In this step, the PM electrode's ADC circuit typically has 10 bits, ranging from 0 to 1023, so the full scan range contains 1024 points. During the first scan, a first step length of 32 is used, requiring only 32 scans to cover the entire full scan range. Then, a second step length of 1 is used to scan the first partial scan range, encompassing 32 coordinate points. This requires only 31 scans to cover the entire first partial scan range. This process only requires scanning 32+31 points to obtain high-precision scan data, significantly improving the efficiency of voltage phase scanning.

[0064] First, the initial voltage phase value x1 of the full scanning range is set to 31, and then the Alice end is controlled to perform coded light emission and the Bob end is controlled to perform decoding detection, so that a phase deviation is formed between the Alice end and the Bob end.

[0065] In a phase-coded QKD system, Alice performs coded light emission, while Bob performs decoding detection. Alice randomly selects one of four phases: 0, pi / 2, pi, and 3pi / 2. Bob also randomly selects one of these four phases. This ensures that the phase difference between Alice and Bob during detection is one of these four phases. Each end has a bipolar phase modulator. These two electrodes can be independently switched on and off. The phases applied by these two electrodes are summed to produce four different phases. The bipolar phase modulators can be used to phase modulate Alice and Bob.

[0066] To better illustrate the operation of the bipolar phase modulators at Alice and Bob in a phase-coded QKD system, Figure 2 A schematic diagram of a bipolar phase modulator is provided. Figure 2 Alice and Bob each have a Basis PM and a Key PM, which are the independent modulation electrodes mentioned above. When the Basis PM is turned on and provides a voltage of accurate amplitude, the phase pi can be applied, and when it is turned off, the phase 0 can be applied; when the Key PM is turned on and provides a voltage of accurate amplitude, the phase pi / 2 can be applied, and when it is turned off, the phase 0 can be applied. Therefore, according to the voltage phase scanning method provided in the embodiment of the present application, the voltage phase value of the PM electrode can be accurately obtained, and then the voltage amplitude of the PM electrode can be determined based on the voltage phase value, and the phase of the PM electrode can be modulated with the voltage amplitude, providing a basis for reducing the transmission bit error rate of the QKD system and improving the coding performance.

[0067] It is worth mentioning that, in the actual QKD system, the scanning method of each PM electrode is the same, and only the scanning process of one PM electrode is shown in the embodiment of the present application.

[0068] Then, the voltage phase scan is performed several times on the coordinate points in the full scanning range with the first step length to obtain detection data and voltage phase data.

[0069] According to the voltage phase data, the horizontal coordinate of each first coordinate point is determined; the detection data is processed to obtain phase deviation data, and the vertical coordinate of each first coordinate point is determined according to the phase deviation data; finally, the corresponding first coordinate point is determined according to the horizontal coordinate and the vertical coordinate.

[0070] Furthermore, since the first step length is 32, only 32 scans are needed to cover 1024 points and complete the coverage of the full scanning range. Each scan obtains a first coordinate point (x i ,y i ), where x i =i*s-1, which is the voltage phase value of the i-th scan, i is the number of scans, s is the first step length, y i In order to process the detection data to obtain phase deviation data, 32 first coordinate points are finally obtained.

[0071] Because the pm electrode is scanned in small steps over the entire range, that is, after scanning 1024 points, it can be found that the curve fitting using the scanned data is linear. Based on this characteristic, a large-step scan can be performed first, and then the scan results are calculated to determine the local range corresponding to the minimum point of the phase deviation value. After determining the local range, a small-step scan is performed to obtain a high-precision phase. Because the smaller the phase deviation value, the more stable the voltage in the corresponding interval, it is easier to obtain the voltage phase value in the local range corresponding to the minimum point of the phase deviation value, which is used to modulate the phase of the PM electrode to reduce the transmission bit error rate of the QKD system and improve the coding performance. This is why this application first finds the first local range for refined scanning.

[0072] Then, add the vertical coordinates of two adjacent points in the 32 first coordinate points to get y1+y2, y2+y3, ..., y 31 +y 32 There are 31 sum values ​​in total, the minimum sum is selected from them, and then the corresponding two horizontal coordinates are found according to the minimum sum, thereby determining the first local scanning range.

[0073] To better demonstrate the process of using the first step to scan the full range, Figure 3 Provides the first step long scan results of the PM electrode. Figure 3 The horizontal and vertical coordinates of the 32 first coordinate points are shown. It can be seen that the vertical coordinates of the horizontal coordinates 671 and 703 have the lowest sum, that is, the minimum sum. It can be determined that the first local scanning range is (x 21 , x 22 ).

[0074] Then, the voltage phase is scanned for the points within the first partial scanning range with a second step length of 1, but the range points of the first partial scanning range are not scanned, that is, the x 21 and x 22 Scanning is performed because these two points are the first coordinate points and have been scanned in the previous full scan range. In order to save scanning time, no scanning workload is added.

[0075] After scanning, the current scanning data is obtained.

[0076] Step S3: When the scanning situation is not the first scanning, determine the second local scanning range according to the previous voltage phase value, and perform voltage phase scanning on the second local scanning range with a third step length to obtain current scanning data.

[0077] In this step, after determining that the full scan range of the PM electrode is not the first scan, a second local scan range is determined near the previous voltage phase value obtained in the previous scan. In some embodiments, 15 points near the previous voltage phase value are typically selected for scanning. For example, if the previous voltage phase value is 682, 15 points are scanned within the range of 675 to 689.

[0078] Then, a voltage phase scan is performed on points within the second local scanning range with a third step length of 1 to obtain current scanning data; wherein, the third step length is smaller than the first step length.

[0079] Step S4: performing coordinate calculation on the current scan data to obtain a current voltage phase value.

[0080] In this step, after obtaining the current scan data, there are two coordinate calculation methods to obtain the current voltage phase value.

[0081] One method is to use the current scanning data to perform curve fitting on the scanning coordinate points, and obtain the abscissa value of the curve when the ordinate is 0 as the current voltage phase value.

[0082] The other method is to obtain the abscissa value corresponding to the minimum point of the ordinate among all the scanning coordinate points as the current voltage phase value.

[0083] In comparison, the first curve fitting method is more complicated to process, while the second vertical coordinate comparison calculation method is simpler.

[0084] Then, the remaining PM electrodes in the QKD system are scanned in sequence according to the scanning method of the embodiment of the present application to obtain the current voltage phase values ​​of the four PM electrodes in the QKD system, and phase modulation is performed using a bipolar phase modulator based on the voltage phase values ​​to improve data transmission efficiency and robustness.

[0085] The method provided in this embodiment first uses a larger step size to perform an initial scan for the first time to determine the local range corresponding to the minimum point of the phase deviation value, and then scans the local range with a smaller step size; for non-initial scans, a smaller step size scan is performed within the layout range based on the data of the last scan, thereby obtaining a high-precision voltage phase value while reducing the time required for scanning.

[0086] Example 2

[0087] Furthermore, in order to implement the voltage phase scanning system based on the phase-coded QKD system corresponding to the above method embodiment to achieve the corresponding functions and technical effects, Figure 4A specific structural diagram of a voltage phase scanning system based on a phase-coded QKD system is provided. For ease of illustration, only the parts relevant to this embodiment are shown. The voltage phase scanning system based on a phase-coded QKD system provided in the embodiment of the present application includes:

[0088] The scanning mode determination module 201 is used to determine the scanning mode according to the scanning condition of the full scanning range of the PM electrode.

[0089] The initial scanning module 202 is used to perform a voltage phase scan on the full scanning range with a preset first step length when the scanning situation is the first scanning, determine the first local scanning range, and perform a voltage phase scan on the first local scanning range with a preset second step length to obtain current scanning data; wherein the first step length is greater than the second step length.

[0090] The non-initial scanning module 203 is configured to determine a second local scanning range according to a previous voltage phase value when the scanning situation is not the first scanning, and perform a voltage phase scan on the second local scanning range with a third step length to obtain current scanning data.

[0091] The voltage phase value calculation module 204 is configured to perform coordinate calculation on the current scan data to obtain a current voltage phase value.

[0092] The scanning layer device 205 includes a voltage phase scanning module, a scanning resource and configuration module, a scanning process control module and a scanning basic module.

[0093] In some embodiments, the initial scanning module 202 further includes:

[0094] The first local scanning range determining unit is used to set an initial voltage phase value of the full scanning range when the scanning situation is the first scanning, and then control the Alice end to perform coded light emission and the Bob end to perform decoding detection, so that the Alice end and the Bob end form a phase deviation; perform a plurality of voltage phase scans on the coordinate points of the full scanning range with the first step length to obtain detection data and voltage phase data; determine a plurality of first coordinate points based on the detection data and voltage phase data; and calculate the first coordinate points to determine the first local scanning range.

[0095] The first coordinate point determination unit is used to determine the horizontal coordinate of each first coordinate point based on the voltage phase data; process the detection data to obtain phase deviation data, and determine the vertical coordinate of each first coordinate point based on the phase deviation data; and determine the corresponding first coordinate point based on the horizontal and vertical coordinates.

[0096] The first local scanning range calculation unit is used to add the vertical coordinates of two adjacent points in the first coordinate points to obtain a plurality of sum values; select the minimum sum from the sum values, and determine the first local scanning range based on the two horizontal coordinates corresponding to the minimum sum.

[0097] In some embodiments, the non-initial scanning module 203 further includes:

[0098] The current scanning data acquisition unit is used to obtain the previous voltage phase value when the scanning situation is not the first scan; determine the second local scanning range based on the previous voltage phase value and the preset range threshold, and perform voltage phase scanning on the coordinate points of the second local scanning range with the third step size to obtain the current scanning data.

[0099] In some embodiments, the voltage phase value calculation module 204 further includes:

[0100] The voltage phase value calculation unit is used to obtain a number of scanning coordinate points according to the current scanning data; perform curve fitting or ordinate comparison calculation according to the scanning coordinate points to obtain the target horizontal coordinate; and obtain the current voltage phase value according to the target horizontal coordinate.

[0101] In some embodiments, the scanning layer device 205 is specifically:

[0102] The scanning basic module is used to control the devices in the voltage phase scanning process, has the most basic process control, and provides an interface for the scanning process control module.

[0103] The scanning process control module is used to provide a process control framework without limiting the specific process. The process control is separated from the specific configuration to provide flexibility and provide a control interface for the voltage phase scanning module.

[0104] The scanning resource and configuration module is used to configure the initial voltage phase value, the first step length, the second step length and the number of scans, and provide a control interface for the voltage phase scanning module. It can also configure the internal detailed process, specific algorithm configuration and judgment basis of each scan.

[0105] The voltage phase scanning module is used to call the control interface of the scanning process control module and the scanning resource and configuration module, set the first step length, the second step length and the number of scans, and set the voltage phase scanning process.

[0106] It's worth noting that the voltage phase scanning module, the top-level module in this embodiment, can directly determine the scanning process by calling the control interfaces of the scanning process control module and the scanning resource and configuration module. Furthermore, the scanning layering device significantly reduces the coupling between processes by designing the process framework, scanning devices, and parameter settings in a layered manner. This reduces configuration complexity when dynamically modifying the scanning process configuration, saving both manpower and material resources.

[0107] The system provided in this embodiment reduces scanning workload and scanning time by adopting different scanning methods for the initial scan and non-initial scan. During the initial scan, the entire range is scanned once using a larger step size to determine the first local scan range. A smaller second step size is then used to scan the first local scan range to obtain accurate current scan data. During non-initial scans, the voltage phase value obtained in the previous scan is directly used to determine the second local scan range. A smaller third step size is then used to perform a voltage phase scan on the second local scan range to obtain current scan data. Finally, an accurate voltage phase value is obtained from the current scan data, achieving high-precision voltage phase values ​​while reducing scanning time. A scanning layering device is also provided to reduce the coupling of scanning processes. When performing multiple scans with different voltage phases, a new scanning process can be developed by simply modifying the voltage phase scanning module without modifying other module designs, saving manpower and material resources.

[0108] Further, Figure 5 This is a structural diagram of a terminal device provided in one embodiment of the present application. Figure 5 As shown, the terminal device 3 of this embodiment includes: at least one processor 30 (in Figure 5 Only one is shown) and a memory 31 and a computer program 32 stored in the memory 31 and executable on the at least one processor. When the processor 30 executes the computer program 32, the steps of a voltage phase scanning method based on a phase-coded QKD system described in any one of the embodiments of the present application can be implemented.

[0109] The terminal device 3 may be a computing device such as a desktop computer, a cloud server, or a laptop computer. The computing device may include but is not limited to a processor 30 and a memory 31 . Figure 5 This is merely an example of the terminal device 3 and does not constitute a limitation on the terminal device 3 , which may include more or fewer components than those shown in the figure.

[0110] The specific embodiments described above further illustrate the purpose, technical solutions, and beneficial effects of this application. It should be understood that the above description is merely a specific embodiment of this application and is not intended to limit the scope of protection of this application. In particular, it should be noted that for those skilled in the art, any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application should be included in the scope of protection of this application.

Claims

1. A voltage phase scanning method based on a phase-coded QKD system, characterized in that: include: Determine the scanning mode according to the scanning condition of the full scanning range of the PM electrode; When the scanning situation is the first scanning, the voltage phase scanning is performed on the full scanning range with a preset first step length to determine the first partial scanning range, and the voltage phase scanning is performed on the first partial scanning range with a preset second step length to obtain current scanning data; wherein the first step length is greater than the second step length; When the scanning situation is not the first scanning, determining the second local scanning range according to the previous voltage phase value, and performing voltage phase scanning on the second local scanning range with a third step length to obtain current scanning data; Coordinate calculation is performed on the current scanning data to obtain a current voltage phase value.

2. The voltage phase scanning method based on the phase-coded QKD system according to claim 1, characterized in that: When the scanning situation is the first scanning, the voltage phase scanning is performed on the full scanning range with a preset first step length to determine the first local scanning range, specifically: When the scanning situation is the first scanning, the initial voltage phase value of the full scanning range is set, and then the Alice end is controlled to perform coding light emission and the Bob end is controlled to perform decoding detection, so that the Alice end and the Bob end form a phase deviation; Performing voltage phase scans on the coordinate points in the full scanning range several times with the first step length to obtain detection data and voltage phase data; Determine a plurality of first coordinate points according to the detection data and the voltage phase data; The first coordinate point is calculated to determine a first local scanning range.

3. The voltage phase scanning method based on the phase-coded QKD system according to claim 2, characterized in that: The method of determining a plurality of first coordinate points according to the detection data and the voltage phase data is specifically: Determine the horizontal coordinate of each first coordinate point according to the voltage phase data; Processing the detection data to obtain phase deviation data, and determining the ordinate of each first coordinate point according to the phase deviation data; According to the horizontal coordinate and the vertical coordinate, a corresponding first coordinate point is determined.

4. The voltage phase scanning method based on the phase-coded QKD system according to claim 2, characterized in that: The calculating the first coordinate point to determine the first local scanning range is specifically: Adding the ordinates of two adjacent points in the first coordinate points in pairs to obtain a plurality of sum values; A minimum sum is selected from the sum values, and a first local scanning range is determined according to two horizontal coordinates corresponding to the minimum sum.

5. The voltage phase scanning method based on the phase-coded QKD system according to claim 1, characterized in that: When the scanning situation is not the first scanning, the second local scanning range is determined according to the previous voltage phase value, and the voltage phase is scanned on the second local scanning range with a third step length to obtain the current scanning data, specifically: When the scanning situation is not the first scanning, obtaining the previous voltage phase value; According to the previous voltage phase value and the preset range threshold, the second local scanning range is determined, and the voltage phase scanning is performed on the coordinate points of the second local scanning range with the third step length to obtain the current scanning data.

6. The voltage phase scanning method based on the phase-coded QKD system according to claim 1, characterized in that: The coordinate calculation is performed on the current scan data to obtain the current voltage phase value, specifically: According to the current scanning data, a plurality of scanning coordinate points are obtained; According to the scanning coordinate points, curve fitting or ordinate comparison calculation is performed to obtain the target abscissa; According to the target horizontal coordinate, the current voltage phase value is obtained.

7. A voltage phase scanning system based on a phase-coded QKD system, characterized in that: It includes a scanning mode determination module, an initial scanning module, a non-initial scanning module and a voltage phase value calculation module: Wherein, the scanning mode determination module is used to determine the scanning mode according to the scanning condition of the full scanning range of the PM electrode; The initial scanning module is used for performing voltage phase scanning on the full scanning range with a preset first step length to determine a first partial scanning range when the scanning situation is the first scanning, and performing voltage phase scanning on the first partial scanning range with a preset second step length to obtain current scanning data; wherein the first step length is greater than the second step length; The non-initial scanning module is used for determining a second local scanning range according to a previous voltage phase value when the scanning situation is not the first scanning, and performing a voltage phase scan on the second local scanning range with a third step length to obtain current scanning data; The voltage phase value calculation module is used to perform coordinate calculation on the current scanning data to obtain a current voltage phase value.

8. The voltage phase scanning system based on the phase-coded QKD system according to claim 7, characterized in that: Also includes: Scanning layering device; Wherein, the scanning layer device includes a voltage phase scanning module, a scanning resource and configuration module, a scanning process control module and a scanning basic module; The scanning basic module is used to control the devices in the voltage phase scanning process and provide an interface for the scanning process control module; The scanning process control module is used to provide a process control framework and provide a control interface for the voltage phase scanning module; The scanning resource and configuration module is used to configure the initial voltage phase value, the first step length, the second step length and the number of scans, and provide a control interface for the voltage phase scanning module.

9. The voltage phase scanning system based on the phase-coded QKD system according to claim 8, characterized in that: The voltage phase scanning module is used to call the control interface of the scanning process control module and the scanning resource and configuration module, set the first step length, the second step length and the number of scans, and set the process of voltage phase scanning.

10. A terminal device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of a voltage phase scanning method based on a phase-coded QKD system as described in any one of claims 1 to 6 are implemented.