Detection method and system for quantum random number generator

By designing detection methods and systems, including light source, photoelectric conversion, analog-to-digital conversion and safety mechanism detection, the problem of detecting the normal working status of the quantum random number generator and the authenticity of the random numbers is solved, and the detection of the quantum random number generator is realized. Whole-process quality inspection and safety mechanism analysis ensure the generation and safety of high-quality random numbers.

CN118760416APending Publication Date: 2024-10-11HAOFU CIPHER DETECTION TECH (CHENGDU) CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410739391.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

It is difficult to effectively detect whether the quantum random number generator is in normal working condition and whether the random numbers generated each time are true random numbers with existing technology, especially under different temperature conditions.

Method used

A detection method and system are designed, including light source module detection, photoelectric conversion module detection, analog-to-digital conversion module detection and safety mechanism detection. By controlling environmental temperature transformation and safety protection, the number source generation method is confirmed, using a digital optical power meter, The oscilloscope and analog-to-digital conversion module are used to detect light intensity, randomness and normal distribution, combined with the post-processing module and security alarm module to ensure the quality of random numbers.

Benefits of technology

It effectively solves the entire process of detection of quantum random number generators from generation to output of high-quality random numbers, ensuring the authenticity and security of random numbers, and increasing the universality and reliability of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118760416A_ABST
    Figure CN118760416A_ABST
Patent Text Reader

Abstract

The invention discloses a detection method and system for a quantum random number generator, and relates to the field of random number detection, and the detection method comprises the steps: testing the light intensity of a light signal generated by a light source module through a digital optical power meter, and recording a light intensity test result; the output of the photoelectric conversion module and the output of the analog-to-digital conversion module are detected through an oscilloscope; collecting data of the post-processing module, and checking whether the output of the post-processing module is a true random number; performing environment reliability test on the quantum random number generator; performing security mechanism inspection on the quantum random number generator; if each detection result of the quantum random number generator is good, the detected quantum random number generator passes the test; the quantum random number safety detection method has the advantages that detection of the whole process of the quantum random number generator from generation to output of the safety random number is achieved, and the safety detection problem of the quantum random number is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of random number detection, and in particular to a detection method and system for a quantum random number generator. Background Art

[0002] Random numbers have become a core element in many fields, from everyday applications such as cryptography, lotteries, numerical simulations, big data, and fundamental physics research. Pseudorandom number generators, or classical random number generators, which rely on deterministic algorithms or physical processes, have been widely used. However, their predictability and strong long-range correlations make them unsuitable for applications requiring high security, such as cryptography. In contrast, quantum random number generators are considered the best solution for generating unpredictable random numbers by exploiting the inherent uncertainty of quantum mechanics.

[0003] However, there is still a lack of effective detection methods for quantum random number generators to ensure that the quantum random number generator is in normal working condition during use and that the random numbers generated each time are truly random numbers. In response to the shortcomings of the existing technology, the present invention proposes a detection method and system for quantum random number generators. Summary of the Invention

[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a detection method and system for a quantum random number generator. Targeting the structural and quantum characteristics of a quantum random number generator and being applicable to three number source generation methods, the present invention designs detection methods including controlling ambient temperature changes and safety protection, confirming the number source generation method, light source module detection, and photoelectric conversion module detection. After comprehensive analysis, a detection system for a quantum random number generator is formed.

[0005] A detection method for a quantum random number generator, which includes a light source module, a photoelectric conversion module, an analog-to-digital conversion module, a post-processing module, and a security alarm module; the detection method includes:

[0006] S1. Use a digital optical power meter to test the light intensity of the optical signal generated by the light source module, record the light intensity test results, and determine whether the current light source module is working properly based on the light intensity;

[0007] If the light source module works normally, jump to step S2;

[0008] If the light source module works abnormally, the detection ends and the light source is abnormal.

[0009] S2. The photoelectric conversion module receives the optical signal generated by the light source module and converts it into an electrical signal; obtains the output electrical signal through an oscilloscope and performs a randomness test on the electrical signal; and determines whether the photoelectric conversion module is working properly based on the randomness test result;

[0010] If the photoelectric conversion module works normally, jump to step S3;

[0011] If the photoelectric conversion module works abnormally, the detection is terminated and a photoelectric abnormality is output;

[0012] S3. The electrical signal is converted into random number raw data by the analog-to-digital conversion module, and the random number raw data is collected and tested to determine whether the raw data satisfies a normal distribution;

[0013] If the original data satisfies the normal distribution, it indicates that the analog-to-digital conversion module works normally, and then jump to step S4;

[0014] If the original data does not satisfy the normal distribution, it indicates that the analog-to-digital conversion module is working abnormally, and the detection is terminated and the analog-to-digital conversion abnormality is output;

[0015] S4. Input the original random number data into the post-processing module to obtain post-processed data. At the same time, input the original random number data into the post-processing simulation software to obtain standard data. Compare the post-processed data with the standard data:

[0016] If the post-processed data is consistent with the standard data, it indicates that the post-processing algorithm is effective, and then jump to step S5;

[0017] If the post-processing data is inconsistent with the standard data, it indicates that the post-processing algorithm is invalid, and the test is terminated and a post-processing exception is output;

[0018] S5: Turn off the quantum random number generator, place the quantum random number generator under different temperature conditions, and then restart the quantum random number generator to perform environmental reliability testing on the quantum random number generator;

[0019] If the quantum random number generator can start normally at different temperatures and the random number sequence generated by the quantum random number generator meets the preset standard, jump to step S6;

[0020] If not, the output environment test is abnormal;

[0021] S6: Verify the security mechanism of the quantum random number generator;

[0022] If the safety mechanism issues an alarm, the test is passed;

[0023] If the safety mechanism does not issue an alarm, the safety mechanism is output as abnormal.

[0024] Furthermore, the detection method further includes: before performing step S1, disassembling the quantum random number generator, determining the position of each module and the method for generating a number source by the quantum random number generator; the method for generating a number source by the quantum random number generator includes: a method for generating a number source based on phase fluctuations, a method for generating a number source based on vacuum fluctuation quanta, and a method for generating a number source based on a branch path;

[0025] By disassembling the quantum random number generator, recording the parameters, and comparing the parameters with the theoretical models of three implementation methods: the number source generation method based on phase fluctuations, the number source generation method based on vacuum fluctuation quanta, and the number source generation method based on branch paths, the number source generation method of the quantum random number generator to be tested is determined.

[0026] Furthermore, the step S1 includes:

[0027] Power on the quantum random number generator to ensure that the light source module is working properly.

[0028] Keep the quantum random generator running stably for 24 hours, and use a digital optical power meter to test the light intensity generated by the light source module every eight hours;

[0029] Record the light intensity three times and calculate the average value of the light intensity based on the three light intensity values;

[0030] Obtain the average light intensity value multiple times;

[0031] If the fluctuation of the average value does not exceed the preset fluctuation range, the light source module is normal;

[0032] If the fluctuation of any pair of average values ​​exceeds the preset fluctuation range, the detection is terminated and the light source is output as abnormal;

[0033] Preferably, the fluctuation range is -10 to +10.

[0034] Furthermore, the step S2 includes:

[0035] Use a coaxial cable to connect the data acquisition end of the photoelectric conversion module and the oscilloscope, and use the oscilloscope to collect the electrical signal data output by the photoelectric conversion module;

[0036] The collected electrical signal data is input into the PC for analysis, and the minimum entropy value is used to judge the randomness of the electrical signal data. The formula for calculating the minimum entropy value is as follows:

[0037]

[0038] Where: H min Indicates the minimum entropy value;

[0039] X∈{0, 1} nRepresents a random sequence of length n;

[0040] Continuously collect minimum entropy values ​​and perform statistical distribution tests to verify whether they meet the normal distribution;

[0041] If the normal distribution is satisfied, the electrical signal output by the photoelectric conversion module is random and the photoelectric conversion module works normally;

[0042] If the normal distribution is not satisfied, the electrical signal output by the photoelectric conversion module is not random and the photoelectric conversion module operates abnormally.

[0043] Furthermore, step S3 includes:

[0044] The analog-to-digital conversion module converts the electrical signal output by the photoelectric conversion module into the output of random number raw data, and connects the oscilloscope and the data acquisition point of the analog-to-digital conversion module through a coaxial cable;

[0045] The oscilloscope collects the original random number data output by the analog-to-digital conversion module and performs statistical distribution verification to verify whether it satisfies the normal distribution;

[0046] If the normal distribution is satisfied, the random number raw data output by the photoelectric conversion module is random, and the analog-to-digital conversion module works normally;

[0047] If the normal distribution is not satisfied, the random number raw data output by the photoelectric conversion module is not random, and the analog-to-digital conversion module does not work properly.

[0048] Furthermore, the step S4 includes:

[0049] Input the same set of random number raw data into the post-processing module and the post-processing simulation software respectively;

[0050] Obtain post-processing data output by the post-processing module and standard data output by the post-processing simulation software;

[0051] Compare post-processed data with standard data;

[0052] If each set of post-processing data is consistent with the standard data, the post-processing module works normally;

[0053] If any set of post-processed data is different from the standard data, the test is terminated.

[0054] Step S4 also includes: restarting the quantum random number generator, collecting post-processing data output by post-processing, performing random number quality testing on the post-processing data, and recording the test results of each test item;

[0055] If the number of test results that meet the requirements is not less than the preset number, the post-processed data passes the random number quality test;

[0056] Otherwise, the random number quality test of the post-processed data does not meet the standards.

[0057] Furthermore, the step S5 includes:

[0058] Set the low temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally;

[0059] If it can be started normally, the random number sequence generated by the quantum random number generator is collected;

[0060] Check whether the random number sequence meets the preset standards,

[0061] If it meets the requirements, the output is low temperature qualified;

[0062] If it does not meet the requirements, the output low temperature is unreliable;

[0063] Set the normal temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally;

[0064] If it can be started normally, the random number sequence generated by the quantum random number generator is collected;

[0065] Check whether the random number sequence meets the preset standards,

[0066] If it meets the requirements, the output is normal temperature qualified;

[0067] If it does not meet the requirements, the output of normal temperature is unreliable;

[0068] Set the high temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally;

[0069] If it can be started normally, the random number sequence generated by the quantum random number generator is collected;

[0070] Check whether the random number sequence meets the preset standards,

[0071] If it meets the requirements, the output high temperature is qualified;

[0072] If it does not meet the requirements, the output high temperature is unreliable.

[0073] Furthermore, the step S8 includes:

[0074] Perform power-on, periodic, and single-shot tests on the quantum random number generator. During these tests, power off the device and disconnect the light source module to check for alarms or abnormal outputs. If alarms occur during these tests, the safety mechanism is effective.

[0075] The present invention also provides a detection system for a quantum random number generator, comprising: a light source detection module, a photoelectric conversion detection module, an analog-to-digital conversion detection module, a post-processing detection module, an environment detection module, and a security mechanism detection module;

[0076] The light source detection module is used to obtain the light intensity of the light signal generated by the light source module, calculate the average value of the light intensity and thus determine whether the light source module is working normally;

[0077] The photoelectric conversion detection module is used to obtain and record the electrical signal output by the photoelectric conversion module, perform randomness detection on the electrical signal, and determine whether the photoelectric conversion module is working normally based on the randomness detection result;

[0078] The analog-to-digital conversion detection module is used to obtain the original random number data generated by the analog-to-digital conversion module and detect whether the original random number data satisfies the normal distribution to determine whether the analog-to-digital conversion module is working properly;

[0079] The post-processing detection module is used to obtain the post-processing data output by the post-processing module and detect whether the post-processing data is a true random number to determine whether the post-processing algorithm is effective;

[0080] The environmental detection module is used to construct different temperature environments, place the quantum random number generator to be measured in three environments: low temperature, normal temperature, and high temperature, and detect whether the quantum random number generator can output a random number sequence that meets the preset requirements, thereby obtaining the environmental adaptability reliability result of the quantum random number generator;

[0081] The safety mechanism detection module is used to perform power-on detection, periodic detection and single detection on the quantum random number generator to be detected to check whether there is an alarm or output abnormality. If an alarm occurs, the safety mechanism protection is effective.

[0082] The present invention has the following advantages:

[0083] The present invention determines the number source generation of the quantum random number generator. After confirming three methods, it can be applied to two methods of generating the number source as continuous or discrete, which increases the universality of the present application.

[0084] The present invention uses light source module detection, photoelectric conversion module detection, analog-to-digital conversion module detection and post-processing module detection to solve the detection of the entire process of the quantum random number generator from generation to output of high-quality random numbers, effectively solving the problem of quantum random number quality detection;

[0085] In the security mechanism module detection, the present invention performs power-on detection, periodic detection, and single detection on the quantum random number generator to analyze the security mechanism. By adopting multiple cyclic detections in different ways, the security mechanism of the quantum random number generator is effectively detected, ensuring that the generator is in a normal working state when working. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 A diagram showing the steps of the method of the present invention. DETAILED DESCRIPTION

[0087] The present invention will be further described below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following description.

[0088] It should be noted that the directions or positional relationships indicated by “left”, “right”, etc. are based on the directions or positional relationships shown in the accompanying drawings, or are the directions or positional relationships in which the invented product is usually placed when in use, or are the directions or positional relationships commonly understood by those skilled in the art. Such terms are only used to facilitate the description of the present invention and simplify the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as a limitation on the present invention.

[0089] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features and technical solutions therein may be combined with each other.

[0090] Example 1

[0091] like Figure 1 As shown, the present invention proposes a detection method for a quantum random number generator.

[0092] Before testing, disassemble the quantum random number generator to determine the location of each module and the method by which the quantum random number generator generates the number source;

[0093] First, the detection point of each module is determined. According to the data transmission direction of the random number generator bit data, each transmission node is determined as the detection point of each module;

[0094] By disassembling the hardware structure of the quantum random number generator and recording the hardware parameters, the hardware parameters are compared with the theoretical models of three implementation methods: a number source generation method based on phase fluctuations, a number source generation method based on vacuum fluctuation quanta, and a number source generation method based on branch paths, to determine the number source generation method of the quantum random number generator to be tested;

[0095] After confirming the three modes, it can be determined whether the number source of the quantum random number generator to be tested is continuous or discrete, which increases the universality of the present application.

[0096] S1. Use a digital optical power meter to test the light intensity of the optical signal generated by the light source module, record the light intensity test results, and determine whether the current light source module is working properly based on the light intensity;

[0097] Keep the quantum random generator running stably for 24 hours, and use a digital optical power meter to test the light intensity of the optical signal generated by the light source module every eight hours;

[0098] Record the light intensity three times and calculate the average light intensity based on the three light intensity values;

[0099] Get the average light intensity multiple times;

[0100] If the fluctuation of the average value does not exceed the preset fluctuation range, the light source module is normal;

[0101] If the fluctuation of any pair of average values ​​exceeds the preset fluctuation range, the detection is terminated and the light source is output as abnormal;

[0102] Preferably, the fluctuation range is -10 to +10.

[0103] Testing the light source module can detect the stability of the light source. The light source is the source of random numbers. If the light source module is unstable, the quantum random number generator will work unstably and easily output false random numbers. In addition, if the light source module is overloaded, it is easy for the quantum random number generator to burn out. Therefore, whether the light source module is working properly is very important for the detection of the quantum random number generator. In addition, abnormal operation of the light source module causes certain fluctuations in its light intensity distribution. If this intensity fluctuation is ignored in the calculation of the minimum entropy, the calculated minimum entropy value will be too large, affecting safety.

[0104] S2. The photoelectric conversion module receives the optical signal generated by the light source module and converts it into an electrical signal; obtains the output electrical signal through an oscilloscope and performs a randomness test on the electrical signal; and determines whether the photoelectric conversion module is working properly based on the randomness test result;

[0105] S201: Connecting a data acquisition terminal of the photoelectric conversion module and an oscilloscope using a coaxial cable, and collecting electrical signal data output by the photoelectric conversion module through the oscilloscope;

[0106] S202: Input the collected electrical signal data into the PC for analysis, and use the minimum entropy value to determine the randomness of the electrical signal data; the formula for calculating the minimum entropy value is as follows:

[0107]

[0108] Where: H min Indicates the minimum entropy value;

[0109] X∈{0, 1} nRepresents a random sequence of length n;

[0110] S203: continuously collecting minimum entropy values ​​and performing statistical distribution tests to verify whether they satisfy normal distribution;

[0111] If the normal distribution is satisfied, the electrical signal output by the photoelectric conversion module is random and the photoelectric conversion module works normally;

[0112] If the normal distribution is not satisfied, the electrical signal output by the photoelectric conversion module is not random and the photoelectric conversion module operates abnormally.

[0113] Quantum random numbers, due to their unpredictability and true randomness, are playing an increasingly important role in information security. Existing random number generation protocols mostly assume that light sources follow a known distribution probability. They then estimate the minimum entropy required to extract a random number from a measured value. Whether the minimum entropy satisfies a normal distribution is then used to determine whether the random number is truly random.

[0114] S3. The electrical signal is converted into random number raw data by the analog-to-digital conversion module, and the random number raw data is collected and tested to determine whether the raw data satisfies a normal distribution;

[0115] S301: The analog-to-digital conversion module converts the electrical signal output by the photoelectric conversion module into the output of random number raw data, and connects the oscilloscope and the data acquisition point of the analog-to-digital conversion module via a coaxial cable;

[0116] S302: The oscilloscope collects the original random number data output by the analog-to-digital conversion module and performs statistical distribution verification to verify whether it satisfies the normal distribution;

[0117] If the normal distribution is satisfied, the random number raw data output by the photoelectric conversion module is random, and the analog-to-digital conversion module works normally;

[0118] If the normal distribution is not satisfied, the random number raw data output by the photoelectric conversion module is not random, and the analog-to-digital conversion module does not work properly.

[0119] S4. Input the original random number data into the post-processing module to obtain post-processed data. At the same time, input the original random number data into the post-processing simulation software to obtain standard data. Compare the post-processed data with the standard data:

[0120] S401: inputting the same set of random number raw data into the post-processing module and the post-processing simulation software respectively;

[0121] S402: Acquire post-processing data output by the post-processing module and standard data output by the post-processing simulation software;

[0122] S403: Comparing the post-processing data with the standard data;

[0123] Repeat the collection of at least 1000 sets of data and record the output data each time;

[0124] If each set of data is consistent, the post-processing module works properly;

[0125] If any set of data is different, the test ends;

[0126] S404: Restart the quantum random number generator, collect post-processed data output by post-processing, perform random number quality testing on the post-processed data, and record the test results of each test item;

[0127] If the number of test results that meet the requirements is not less than the preset number, the post-processed data passes the random number quality test;

[0128] Otherwise, the random number quality test of the post-processed data does not meet the standards.

[0129] Collect 1,000 sets of post-processing data output, each with 1,000,000 bits, perform random number quality testing on the post-processing data, and record the test results of each test item;

[0130] If no less than 981 sets of data meet the test requirements, the post-processed data passes the random number quality test;

[0131] If fewer than 981 sets of data meet the test requirements, the random number quality test of the post-processed data fails to meet the standards.

[0132] S5: Turn off the quantum random number generator, place the quantum random number generator under different temperature conditions, and then restart the quantum random number generator to perform environmental reliability testing on the quantum random number generator;

[0133] Determine whether the quantum random number generator can start normally at different temperatures and whether the random number sequence generated by the quantum random number generator meets the preset standards; the preset standards are the 15 test standards for randomness detection principles in GB / T 32915. If the random number sequence passes all 15 tests, it meets the preset standards;

[0134] S501: Set the low temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally;

[0135] If it can be started normally, the random number sequence generated by the quantum random number generator is collected;

[0136] Check whether the random number sequence meets the preset standards,

[0137] If it meets the requirements, the output is low temperature qualified;

[0138] If it does not meet the requirements, the output low temperature is unreliable;

[0139] S502: Setting a normal temperature threshold, starting the quantum random number generator, and observing whether the quantum random number generator can start normally;

[0140] If it can be started normally, the random number sequence generated by the quantum random number generator is collected;

[0141] Check whether the random number sequence meets the preset standards,

[0142] If it meets the requirements, the output is normal temperature qualified;

[0143] If it does not meet the requirements, the output of normal temperature is unreliable;

[0144] S703: Setting a high temperature threshold, starting the quantum random number generator, and observing whether the quantum random number generator can start normally;

[0145] If it can be started normally, the random number sequence generated by the quantum random number generator is collected;

[0146] Check whether the random number sequence meets the preset standards,

[0147] If it meets the requirements, the output high temperature is qualified;

[0148] If it does not meet the requirements, the output high temperature is unreliable.

[0149] S6: Verify the security mechanism of the quantum random number generator;

[0150] Perform power-on detection, periodic detection, and single-shot detection on the quantum random number generator; during the power-on detection, periodic detection, and single-shot detection, cut off the power and disconnect the light source module to check whether there are alarms or abnormal outputs; if alarms occur during the power-on detection, periodic detection, and single-shot detection, the safety mechanism protection is effective.

[0151] Example 2

[0152] A detection system for a quantum random number generator, comprising: a light source detection module, a photoelectric conversion detection module, an analog-to-digital conversion detection module, a post-processing detection module, an environment detection module, and a security mechanism detection module;

[0153] The light source detection module is used to obtain the light intensity of the light signal generated by the light source module, calculate the average value of the light intensity and thus determine whether the light source module is working normally;

[0154] The photoelectric conversion detection module is used to obtain and record the electrical signal output by the photoelectric conversion module, perform randomness detection on the electrical signal, and determine whether the photoelectric conversion module is working normally based on the randomness detection result;

[0155] The analog-to-digital conversion detection module is used to obtain the original random number data generated by the analog-to-digital conversion module and detect whether the original random number data satisfies the normal distribution to determine whether the analog-to-digital conversion module is working properly;

[0156] The post-processing detection module is used to obtain the post-processing data output by the post-processing module and detect whether the post-processing data is a true random number to determine whether the post-processing algorithm is effective;

[0157] The environmental detection module is used to create different temperature environments, placing the quantum random number generator to be measured in three environments: low temperature, normal temperature, and high temperature, to determine whether the quantum random number generator can start normally under different temperatures and whether the random number sequence generated by the quantum random number generator meets the preset standards; thereby obtaining the environmental adaptability reliability result of the generator;

[0158] The safety mechanism detection module is used to perform power-on detection, periodic detection and single detection on the quantum random number generator to be detected to check whether there is an alarm or output abnormality. If an alarm occurs, the safety mechanism protection is effective.

[0159] The above embodiments merely represent preferred implementations, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of the present invention. It should be noted that those skilled in the art will be able to make various modifications and improvements without departing from the scope of the present invention, and these modifications and improvements are all within the scope of protection of the present invention.

Claims

1. A detection method for a quantum random number generator, the quantum random number generator includes a light source module, a photoelectric conversion module, an analog-to-digital conversion module, a post-processing module and a safety alarm module; Characteristically, the detection method comprises the following steps: S1. Use a digital optical power meter to test the light intensity of the optical signal generated by the light source module, record the light intensity test result, and determine whether the current light source module is working normally according to the light intensity; If the light source module works normally, jump to step S2; If the light source module works abnormally, the detection ends and the output light source is abnormal; S2, the photoelectric conversion module receives the light signal generated by the light source module and converts it into an electrical signal; obtains the output electrical signal through an oscilloscope, and performs a randomness test on the electrical signal; determines whether the photoelectric conversion module is working normally according to the randomness test result; If the photoelectric conversion module works normally, jump to step S3; If the photoelectric conversion module works abnormally, the detection ends and the photoelectric abnormality is output; S3, the electrical signal is converted into random number raw data by an analog-to-digital conversion module, and the random number raw data is collected and tested to determine whether the raw data satisfies a normal distribution; If the original data satisfies the normal distribution, it indicates that the analog-to-digital conversion module works normally, and then jump to step S4; If the original data does not satisfy the normal distribution, it indicates that the analog-to-digital conversion module is working abnormally, and the detection is terminated, and the analog-to-digital conversion abnormality is output; S4. The random number raw data is input into the post-processing module to obtain the post-processed data. Meanwhile, the random number raw data is input into the post-processing simulation software to obtain the standard data. The post-processed data and the standard data are compared: If the post-processing data is consistent with the standard data, it indicates that the post-processing algorithm is effective, and then jump to step S5; If the post-processing data is inconsistent with the standard data, it indicates that the post-processing algorithm is invalid, and the test is terminated and the post-processing exception is output; S5: Turn off the quantum random number generator, place the quantum random number generator under different temperature conditions, and then restart the quantum random number generator to perform environmental reliability testing on the quantum random number generator; If the quantum random number generator can be started normally at different temperatures and the random number sequence generated by the quantum random number generator meets the preset standard, jump to step S6; If not, the output environment test is abnormal; S6: Verify the security mechanism of the quantum random number generator; If the safety mechanism sounds an alarm, the test is passed; If the safety mechanism does not issue an alarm, the output safety mechanism is abnormal.

2. A detection method for a quantum random number generator according to claim 1, characterized in that: The detection method also includes: before performing step S1, disassembling the quantum random number generator, determining the position of each module and the way in which the quantum random number generator generates a number source; the way in which the quantum random number generator generates a number source includes: a number source generation method based on phase fluctuations, a number source generation method based on vacuum fluctuation quanta, and a number source generation method based on branch paths.

3. A detection method for a quantum random number generator according to claim 1, characterized in that: The step S1 comprises: Power on and start the quantum random number generator to make sure the light source module is working properly; Keep the quantum random generator running stably for 24 hours, and use a digital optical power meter to test the light intensity of the optical signal generated by the light source module every eight hours; Record the light intensity three times, and calculate the average value of the light intensity based on the three light intensity values; Get the average light intensity multiple times; If the fluctuation of the average value does not exceed the preset fluctuation range, the light source module is normal; If the fluctuation of any pair of average values ​​exceeds the preset fluctuation range, the detection is terminated and the output light source is abnormal.

4. A detection method for a quantum random number generator according to claim 1, characterized in that: The step S2 comprises: Use a coaxial cable to connect the data acquisition end of the photoelectric conversion module and the oscilloscope, and use the oscilloscope to collect the electrical signal data output by the photoelectric conversion module; The collected electrical signal data is input into the PC for analysis, and the minimum entropy value is used to judge the randomness of the electrical signal data; the formula for calculating the minimum entropy value is as follows: Where: H min Represents the minimum entropy value; X∈{0,1} n Represents a random sequence of length n; Continuously collect minimum entropy values ​​and perform statistical distribution tests to verify whether they meet normal distribution; If the normal distribution is satisfied, the electrical signal output by the photoelectric conversion module is random and the photoelectric conversion module works normally; If the normal distribution is not satisfied, the electrical signal output by the photoelectric conversion module is not random and the photoelectric conversion module works abnormally.

5. A detection method for a quantum random number generator according to claim 1, characterized in that: The step S3 comprises: The analog-to-digital conversion module converts the electrical signal output by the photoelectric conversion module into the output of random number raw data, and connects the oscilloscope and the data acquisition point of the analog-to-digital conversion module through a coaxial cable; The oscilloscope collects the original random number data output by the analog-to-digital conversion module and performs statistical distribution verification to verify whether it satisfies the normal distribution; If the normal distribution is satisfied, the random number raw data output by the photoelectric conversion module is random, and the analog-to-digital conversion module works normally; If the normal distribution is not satisfied, the random number raw data output by the photoelectric conversion module is not random, and the analog-to-digital conversion module does not work properly.

6. A detection method for a quantum random number generator according to claim 1, characterized in that: The step S4 comprises: Input the same set of random number raw data into the post-processing module and the post-processing simulation software respectively; Obtain post-processing data output by the post-processing module and standard data output by the post-processing simulation software; Compare post-processed data with standard data; If each set of post-processing data is consistent with the standard data, the post-processing module works normally; If any set of post-processing data is different from the standard data, the test is terminated.

7. A detection method for a quantum random number generator according to claim 6, characterized in that: The step S4 further comprises: Restart the quantum random number generator, collect the post-processing data output by the post-processing, perform random number quality detection on the post-processing data, and record the detection results of each detection item; If the number of test results that meet the test is not less than the preset number, the post-processed data passes the random number quality test; Otherwise, the random number quality detection of the post-processing data does not meet the standards.

8. A detection method for a quantum random number generator according to claim 1, characterized in that: The step S5 comprises: Set the low temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally; If it can be started normally, the random number sequence generated by the quantum random number generator is collected; Check whether the random number sequence meets the preset standards, If it meets the requirements, the output is low temperature qualified; If it does not meet the requirements, the output low temperature is unreliable; Set the normal temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally; If it can be started normally, the random number sequence generated by the quantum random number generator is collected; Check whether the random number sequence meets the preset standards, If it meets the requirements, the output is qualified at normal temperature; If it does not meet the requirements, the output of normal temperature is unreliable; Set the high temperature threshold, start the quantum random number generator, and observe whether the quantum random number generator can start normally; If it can be started normally, the random number sequence generated by the quantum random number generator is collected; Check whether the random number sequence meets the preset standards, If it meets the requirements, the output high temperature is qualified; If it does not meet the requirements, the output high temperature is unreliable.

9. A detection method for a quantum random number generator according to claim 1, characterized in that: The step S6 comprises: Perform power-on detection, periodic detection and single-shot detection on the quantum random number generator; during the power-on detection, periodic detection and single-shot detection, power off and disconnect the light source module to check whether there is an alarm or abnormal output; if an alarm occurs during the power-on detection, periodic detection and single-shot detection, the safety mechanism protection is effective.

10. A detection system for a quantum random number generator, characterized in that: include: Light source detection module, photoelectric conversion detection module, analog-to-digital conversion detection module, post-processing detection module, environment detection module and safety mechanism detection module; The light source detection module is used to obtain the light intensity of the light signal generated by the light source module, calculate the average value of the light intensity, and thus determine whether the light source module is working normally; The photoelectric conversion detection module is used to obtain and record the electrical signal output by the photoelectric conversion module, perform randomness detection on the electrical signal, and determine whether the photoelectric conversion module is working normally according to the randomness detection result; The analog-to-digital conversion detection module is used to obtain the original random number data generated by the analog-to-digital conversion module, and detect whether the original random number data satisfies the normal distribution to determine whether the analog-to-digital conversion module works normally; The post-processing detection module is used to obtain the post-processing data output by the post-processing module, and detect whether the post-processing data is a true random number to determine whether the post-processing algorithm is effective; The environmental detection module is used to construct different temperature environments, place the quantum random number generator to be measured in three environments: low temperature, normal temperature and high temperature, and detect whether the quantum random number generator can output a random number sequence that meets the preset requirements, so as to obtain the environmental adaptability reliability result of the quantum random number generator; The safety mechanism detection module is used to perform power-on detection, periodic detection and single detection on the quantum random number generator to be detected to check whether there is an alarm or output abnormality. If an alarm occurs, the safety mechanism protection is effective.

Citation Information

Patent Citations

  • Ultra-high-speed quantum random number generator and generation method based on laser phase fluctuation

    CN105022606A

  • Quantum random number generator based on CMOS image sensor

    CN110750236A

  • Quantum random number generator detection method and system

    CN114356281A

  • Quantum random number generator

    CN115048077A

  • Quantum random number generator with online detection function

    CN211506459U