Random number generator, method for detecting random number generator and medium

By setting an optical isolator between the light source and the avalanche single-photon detection module, the photons generated by the avalanche single-photon detector are prevented from entering other optical paths, which solves the problem of non-randomness of random sequences caused by secondary photon emission and achieves random number generation with higher randomness.

CN120610683APending Publication Date: 2025-09-09CHINA GREATWALL TECH GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510605723.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-12
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

In existing quantum random number generators, the generated random sequences are not random due to the secondary photon emission of avalanche single photon detectors.

Method used

An optical isolator is set between the light source and the avalanche single-photon detection module to prevent the photons generated by the avalanche single-photon detection module from passing through other optical paths, and a random sequence is generated through the signal post-processing module.

Benefits of technology

The randomness of the generated random sequence is improved and the influence of secondary photon emission is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120610683A_ABST
    Figure CN120610683A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a random number generator, a method for detecting the random number generator and a medium. The random number generator comprises a signal generator used for generating a clock signal; a light source at one end of the plurality of light paths; the light source emits photons according to clock signals; the photon obtaining probabilities of all the light paths are the same; the plurality of light paths are connected with the plurality of avalanche single-photon detection modules in a one-to-one correspondence manner; each avalanche single photon detection module is electrically connected with the signal post-processing module; the avalanche single photon detection module is used for detecting passing photons according to the clock signal, generating a detection signal and sending the detection signal to the signal post-processing module; each optical path is provided with an optical isolator for preventing photons generated by each avalanche single photon detection module from passing through the optical isolator; and the signal post-processing module is used for generating a random sequence according to the clock signal and the detection signal. Therefore, the randomness of the generated random sequence is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of random number generation, and in particular to a random number generator and a method and medium for detecting the random number generator. Background Art

[0002] Random numbers are currently indispensable in a variety of fields, including cryptography, lottery, numerical simulation, big data, and fundamental physics research, particularly in applications requiring high security. A quantum random number generator (QNRG) is a device that generates unpredictable random numbers. A classic QNR architecture consists of three components: an entropy source, measurement, and post-processing. The entropy source outputs a quantum state, which is the source of quantum randomness. The measurement process measures the entropy source, generating initial random numbers. This initial data is affected by factors such as environmental noise, non-idealities in the entropy source, and measurement noise, resulting in bias and correlation. Therefore, entropy estimation is required for the raw data, and post-processing algorithms are used to extract randomness to ultimately obtain complete quantum random numbers. For QNRs with optical path uncertainty, the path of photons is uncertain. Therefore, QNRGs can exploit this uncertainty to generate random numbers.

[0003] In the prior art, quantum random number generators use beam splitters to achieve random selection of photon paths. When a photon reaches the beam splitter, the probability of its reflection is the same as the probability of its transmission, that is, the transmission and reflection of the photon are random. The photons are detected at the output port of the beam splitter by an avalanche single-photon detector. When an avalanche occurs inside the avalanche single-photon detector, the output of the avalanche single-photon detector will change, and the generated random number can be determined based on the detection result. For example: it can be agreed that the response of one avalanche single-photon detector represents the generation of a random number "0", and the response of another avalanche single-photon detector represents the generation of a random number "1". Through the detection responses of multiple photons, a random sequence can be generated.

[0004] However, when an avalanche occurs in an avalanche single-photon detector, there's a certain probability that secondary photons will be emitted. These secondary photons can enter the optical channel or, through scattering and reflection within the optical cavity, be detected by another avalanche single-photon detector. A number is then generated based on the response of this other avalanche single-photon detector. Because the numbers generated by secondary photon emission are non-random, the resulting random sequence is also non-random. Summary of the Invention

[0005] To solve the above technical problems, embodiments of the present application provide a random number generator and a method and medium for detecting the random number generator, so as to improve the randomness of the generated random sequence.

[0006] According to one aspect of an embodiment of the present application, a random number generator is provided, including: a signal generator, electrically connected to a light source, multiple avalanche single-photon detection modules and a post-processing module, respectively; the signal generator is used to generate a clock signal; the light source is at one end of multiple optical paths; the light source is used to emit photons according to the clock signal; each optical path has the same probability of acquiring the photons; multiple optical paths are connected to multiple avalanche single-photon detection modules in a one-to-one correspondence; each of the avalanche single-photon detection modules is electrically connected to the signal post-processing module; the avalanche single-photon detection module is used to detect the passing photons according to the clock signal, generate a detection signal, and send the detection signal to the signal post-processing module; each optical path is respectively provided with an optical isolator, used to prevent the photons generated by each avalanche single-photon detection module from passing through the optical isolator; the signal post-processing module is used to generate a random sequence according to the clock signal and the detection signal.

[0007] In some embodiments, the central wavelength of each of the optical isolators is the same as the wavelength of the photons emitted by the light source.

[0008] In some embodiments, the avalanche single-photon detection module includes an avalanche diode and a quenching circuit; the cathode of the avalanche diode is electrically connected to a preset bias voltage and the quenching circuit, respectively; the quenching circuit is used to reset the avalanche diode according to the clock signal after the avalanche diode avalanches; the avalanche diode's anode is electrically connected to the signal post-processing module; when the photons emitted by the light source are detected, the avalanche diode avalanches to generate the detection signal.

[0009] In some embodiments, the clock signal is a square wave signal; the signal post-processing module generates a random sequence based on the clock signal and the detection signal through the following steps: when the received clock signal is at a rising edge, receiving the detection signal; determining the avalanche single-photon detection module that sends the detection signal; obtaining the random number corresponding to the avalanche single-photon detection module that sends the detection signal; placing the random number after the generated alternative random sequence to obtain the random sequence.

[0010] According to another aspect of an embodiment of the present application, a method for detecting a random number generator is provided, which is applied to the above-mentioned random number generator. The method includes: responding to a preset detection instruction, sequentially detecting whether each avalanche single-photon detection module has secondary emission of photons; if each avalanche single-photon detection module does not have secondary emission of photons, determining that the detection of the random number generator is qualified.

[0011] In some embodiments, the method detects whether secondary emission of photons occurs in the avalanche single-photon detection module in the following manner: turning off the avalanche single-photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single-photon detection modules to obtain a first statistical histogram; turning on the avalanche single-photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single-photon detection modules to obtain a second statistical histogram; determining whether secondary emission of photons occurs in the avalanche single-photon detection module to be detected based on the first statistical histogram and the second statistical histogram.

[0012] In some embodiments, the use of the signal post-processing module to count the time it takes for the photon to reach other avalanche single-photon detection modules includes: using the signal post-processing module to obtain the emission time of the photon and the arrival time of the photon at other avalanche single-photon detection modules; obtaining the time difference between the arrival time and the emission time; determining the time difference as the time it takes for the photon to reach other avalanche single-photon detection modules; and counting the number of time durations within a preset time.

[0013] In some embodiments, the use of a signal post-processing module to obtain the emission time of a photon and the arrival time of the photon at the avalanche single-photon detection module includes: using the signal post-processing module to record the first time of the detection signal sent by each avalanche single-photon detection module and the second time of the rising edge of the clock signal sent by the signal generator; determining each first time as the arrival time; and determining the first time that is before the first time and closest to the first time as the emission time.

[0014] In some embodiments, determining whether the avalanche single-photon detection module to be detected has secondary emission of photons based on the first statistical histogram and the second statistical histogram includes: obtaining the time difference between the first peak corresponding to the first statistical histogram and the first peak; obtaining the time difference between the second peak corresponding to the second statistical histogram and the second peak; when the time difference corresponding to the second peak is later than the time difference corresponding to the first peak, and the second peak is larger than the first peak, determining that the avalanche single-photon detection module to be detected has secondary emission of photons; otherwise, determining that the avalanche single-photon detection module to be detected has not secondary emission of photons.

[0015] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the above-mentioned method for detecting a random number generator.

[0016] In the technical solution provided in the embodiment of the present application, a clock signal is provided to the light source, multiple avalanche single-photon detection modules and the post-processing module through a signal generator, so that the photons emitted by the light source can randomly enter any optical path, and can pass through the optical isolator used to prevent the photons generated by each avalanche single-photon detection module from passing through, and be detected by the avalanche single-photon detection module at the other end of the optical path. The signal post-processing module generates a random sequence based on the clock signal and the detection signal generated after each avalanche single-photon detection module detects the photon. Since the present application sets an optical isolator used to prevent the photons generated by each avalanche single-photon detection module from passing through between the light source and the avalanche single-photon detection module, so that the avalanche single-photon detector detects the photons, when an avalanche occurs, the photons generated by it will not pass through the optical isolator to enter other optical paths and be detected by other avalanche single-photon detectors, so that the generation of the random sequence will not be affected by the secondary emission of photons, thereby improving the randomness of the generated random sequence.

[0017] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings are incorporated into and constitute a part of the specification, illustrating embodiments consistent with the present application and, together with the specification, serving to explain the principles of the present application. It is obvious that the drawings described below are merely some embodiments of the present application, and a person of ordinary skill in the art can derive other drawings based on these drawings without inventive effort. In the drawings:

[0019] Figure 1 is a circuit diagram of a random number generator shown in an exemplary embodiment of the present application;

[0020] Figure 2 is a circuit schematic diagram of a random number generator shown in another exemplary embodiment of the present application;

[0021] Figure 3 is a flow chart of a method for detecting a random number generator shown in an exemplary embodiment of the present application;

[0022] Figure 4 This is a flow chart of a method for detecting whether a secondary emission of a photon occurs in an avalanche single-photon detection module, shown in an exemplary embodiment of the present application;

[0023] Figure 5 is a flowchart illustrating a method for detecting a random number generator according to another exemplary embodiment of the present application;

[0024] Figure 6is a block diagram of an apparatus for detecting a random number generator, shown in an exemplary embodiment of the present application;

[0025] Figure 7 A schematic structural diagram of an electronic device suitable for implementing the embodiments of the present application is shown. DETAILED DESCRIPTION

[0026] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0027] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0028] The flowcharts shown in the accompanying drawings are for illustrative purposes only and do not necessarily include all contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may be decomposed, while others may be combined or partially combined. Therefore, the actual execution order may vary depending on the actual situation.

[0029] In this application, "plurality" refers to two or more. "And / or" describes the relationship between related objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally indicates that the related objects are in an "or" relationship.

[0030] See also Figure 1 , Figure 1 This is a circuit diagram of a random number generator shown in an exemplary embodiment of the present application.

[0031] It should be noted that the random number generator shown in this application is a quantum random number generator based on the uncertainty of the optical path. Figure 1 As shown, in an exemplary embodiment, the random number generator 10 includes a signal generator 11 , a light source 12 , a plurality of avalanche single photon detection modules, a plurality of optical isolators and a signal post-processing module 13 .

[0032] Specifically, the number of avalanche single-photon detection modules and optical isolators is the same, and the number is a positive integer greater than 1, for example, 2, 4, 8, etc.

[0033] Exemplarily, the plurality of avalanche single-photon detection modules may include: a first avalanche single-photon detection module 14-1, a second avalanche single-photon detection module 14-2, ..., and an nth avalanche single-photon detection module 14-n. The plurality of optical isolators may include: a first optical isolator 15-1, a second optical isolator 15-2, ..., and an nth optical isolator 15-n.

[0034] It should be noted that the signal generator is electrically connected to the light source, multiple avalanche single photon detection modules and the post-processing module, and each avalanche single photon detection module is electrically connected to the signal post-processing module. Figure 1 The multiple optical isolators are connected to the light source and the multiple avalanche single photon detection modules through optical paths. Figure 1 Indicated by double horizontal lines.

[0035] The signal generator 11 is used to generate a clock signal.

[0036] It should be noted that the clock signal is used to synchronize the light source, multiple avalanche single-photon detection modules and the post-processing module, so as to facilitate the generation of random sequences.

[0037] The clock signal may be a pulse signal, for example, a square wave signal, a sharp pulse signal, or a triangular wave pulse signal.

[0038] The light source 12 is located at one end of the multiple light paths.

[0039] The light source 12 is used to emit photons according to the clock signal. The probability of each light path acquiring a photon is the same.

[0040] It should be noted that the light source 12 can emit photons in response to the pulses of the clock signal. For example, the light source can emit photons when the clock signal is in a pulsed state; or the light source can emit photons every one or more pulses. For another example, if the clock signal is a square wave signal, the light source emits photons when the clock signal received by the light source is on a rising edge.

[0041] It should be noted that the light source can be connected to a beam splitter to distribute photons using the beam splitter so that the probability of each light path acquiring a photon is the same.

[0042] In some embodiments, the number of optical paths connected to the light source is two. A beam splitter is placed between the light source and the two optical paths, so that the photons output by the light source are distributed to the two paths in a 50:50 ratio. That is, after a photon is emitted from the light source, 50% of the photon enters each of the two optical paths. The random number generator utilizes this characteristic to generate random number sequences.

[0043] The multiple optical paths are connected to the multiple avalanche single-photon detection modules in a one-to-one correspondence.

[0044] For example: the first optical path is connected to the first avalanche single-photon detection module 14-1; the second optical path is connected to the second avalanche single-photon detection module 14-2; ...; the nth optical path is connected to the nth avalanche single-photon detection module 14-n.

[0045] The avalanche single-photon detection module is used to detect the passing photons according to the clock signal, generate a detection signal, and send the detection signal to the signal post-processing module.

[0046] The avalanche single photon detection module detects photons based on the avalanche of an avalanche diode.

[0047] Specifically, the avalanche single-photon detection module may include an avalanche diode and a quenching circuit; the cathode of the avalanche diode is electrically connected to a preset bias voltage and a quenching circuit, respectively; the quenching circuit is used to reset the avalanche diode according to a clock signal after the avalanche diode avalanches; the avalanche diode's anode is electrically connected to the signal post-processing module; when a photon emitted by a light source is detected, an avalanche occurs to generate a detection signal. In this way, when the photon emitted by the light source reaches the avalanche diode, the avalanche diode can avalanche, generating a detection signal, thereby realizing the detection of the photon. At the same time, it is convenient for the signal post-processing module to use the detection signal to generate a random number sequence.

[0048] It should be noted that an avalanche diode is a special type of photodiode. Its core is to use the avalanche multiplication effect of carriers to significantly amplify the photoelectric signal, thereby improving the detection sensitivity. When the avalanche diode is operating, a reverse bias voltage needs to be applied to switch the avalanche diode from linear mode to Geiger mode, which is sensitive to single photons. This means that the avalanche diode is in a state above the avalanche breakdown voltage. When a photon is absorbed by the avalanche diode, electron-hole pairs are generated in the depletion layer. These electron-hole pairs gain energy under the action of the strong electric field and collide with lattice atoms, generating more electron-hole pairs, forming an avalanche multiplication effect. This chain reaction causes the carriers and reverse photogenerated current to grow rapidly, thereby generating a measurable current pulse, which is the detection signal.

[0049] The avalanche diode then enters its dead time. During this dead time, the detector will not respond to photons. To detect the next photon and suppress the avalanche effect, preventing damage to the avalanche diode due to continued avalanche, a quenching circuit reduces the voltage across the avalanche diode to below its breakdown voltage after the avalanche diode detects a photon and triggers the avalanche effect, thereby stopping the avalanche effect. After the quenching process is complete, the avalanche diode is charged and reset, restoring the voltage across it to above its breakdown voltage, ready for the next photon detection, thereby resetting the avalanche diode.

[0050] It should be noted that the quenching circuit can directly quench and charge the avalanche diode through the clock signal.

[0051] Alternatively, the quenching circuit can detect the circuit of the avalanche diode and quench it when the current pulse is measured. Then, the time point of charging reset is determined by the clock signal to control the dead time of the avalanche diode, thereby achieving precise resetting of the avalanche diode so as not to affect the detection of the next photon and improve the accuracy of photon detection.

[0052] Each optical path is respectively provided with an optical isolator for preventing the photons generated by each avalanche single photon detection module from passing through the optical isolator.

[0053] It should be noted that each optical path is provided with an optical isolator, which is an optical device that allows photons to pass in one direction.

[0054] Specifically, the optical isolator allows photons to pass from the light source to the avalanche diode. That is, photons emitted by the light source can pass through the optical isolator and enter the avalanche diode, while photons generated by the avalanche diode cannot pass through the optical isolator and enter the optical path where other avalanche diodes are located.

[0055] It should be noted that the central wavelength of each optical isolator is the same as the wavelength of the photons emitted by the light source. This allows the photons emitted by the light source to pass through the optical isolator, while the photons generated by the avalanche single-photon detector cannot pass through the optical isolator and enter other optical paths to be detected by other avalanche single-photon detectors. This ensures that the generation of the random sequence is not affected by the secondary emission of photons, thereby improving the randomness of the generated random sequence.

[0056] The signal post-processing module 13 is configured to generate a random sequence based on the clock signal and the detection signal.

[0057] In this embodiment, a clock signal is provided to the light source, multiple avalanche single-photon detection modules and the post-processing module through a signal generator, so that the photons emitted by the light source can randomly enter any optical path, and can pass through the optical isolator used to prevent the photons generated by each avalanche single-photon detection module from passing through, and be detected by the avalanche single-photon detection module at the other end of the optical path. The signal post-processing module generates a random sequence based on the clock signal and the detection signal generated after each avalanche single-photon detection module detects the photon. Since the present application sets an optical isolator used to prevent the photons generated by each avalanche single-photon detection module from passing through between the light source and the avalanche single-photon detection module, so that the avalanche single-photon detector detects the photons, when an avalanche occurs, the photons generated by it will not pass through the optical isolator to enter other optical paths and be detected by other avalanche single-photon detectors, so that the generation of the random sequence will not be affected by the secondary emission of photons, thereby improving the randomness of the generated random sequence.

[0058] Furthermore, the signal post-processing module generates a random sequence based on the clock signal and the detection signal through the following steps: receiving the detection signal when the received clock signal is at a rising edge; determining the avalanche single-photon detection module that sends the detection signal; obtaining the random number corresponding to the avalanche single-photon detection module that sends the detection signal; placing the random number after the generated alternative random sequence to obtain a random sequence. In this way, the signal post-processing module receives the detection signal when the received clock signal is at a rising edge, determines the avalanche single-photon detection module that sends the detection signal, and then obtains the random number corresponding to the avalanche single-photon detection module that sends the detection signal, and places the random number after the generated alternative random sequence to obtain a random sequence. Since the detection signal generated by the avalanche single-photon detection module will not be affected by the secondary emission of photons, the randomness of the generated random sequence is improved.

[0059] It should be noted that the signal post-processing module has one start channel and multiple stop channels.

[0060] The start channel is triggered by the clock signal generated by the signal generator, and the stop channel is triggered by the detection signal output by the avalanche single photon detection module.

[0061] For example, when the clock signal emitted by the signal generator is a square wave and the clock signal is on the rising edge, the start channel of the signal post-processing module is triggered, and it begins waiting for the detection signal sent by the avalanche single-photon detection module. Upon receiving the detection signal, the avalanche single-photon detection module that sent the detection signal is determined; a random number corresponding to the avalanche single-photon detection module that sent the detection signal is obtained; this random number is placed after the generated alternative random sequence to obtain a random sequence. The module then waits for the rising edge of the next clock signal to trigger the start channel.

[0062] It should be noted that each avalanche single-photon detection module corresponds to a random number. In some embodiments, the random number generator includes two avalanche single-photon detection modules. The random numbers corresponding to the two avalanche single-photon detection modules are respectively "0" bits and "1" bits. The avalanche single-photon detection module that sends the detection signal can then determine whether the generated random number is 0 or 1.

[0063] It should be noted that the alternative random sequence is the random sequence obtained previously.

[0064] For example, a random number generator includes two avalanche single photon detection modules, and the random sequence obtained by the random number generator for the mth time is sequence a.

[0065] For the m+1th photon, the photon is detected by the first avalanche single-photon detection module, and the signal post-processing module generates a detection signal sent by the first avalanche single-photon detection module. Then, the avalanche single-photon detection module that sends the detection signal is determined to be the first avalanche single-photon detection module. The random number corresponding to the first avalanche single-photon detection module is obtained as 0. The signal post-processing module places 0 after the alternative random sequence, that is, the random sequence a obtained for the mth time, to obtain sequence b. Sequence b is then used as an alternative random sequence for the random sequence obtained for the m+2th time, until a random sequence with a preset number of random numbers is generated.

[0066] See also Figure 2 , Figure 2 FIG. 4 is a circuit diagram of a random number generator shown in another exemplary embodiment of the present application.

[0067] like Figure 2 As shown, in an exemplary embodiment, the random number generator 10 includes a signal generator 11, a light source 12, a signal post-processing module 13, a first optical isolator 15-1, a second optical isolator 15-2, a first avalanche diode 16-1, a second avalanche diode 16-2, a first quenching circuit 17-1 and a second quenching circuit 17-2.

[0068] like Figure 2 As shown, the signal generator 11 is electrically connected to the light source 12, the first quenching circuit 17-1, the second quenching circuit 17-2 and the post-processing module 13 respectively; the signal generator is used to generate a clock signal to facilitate clock synchronization of the light source, the first quenching circuit, the second quenching circuit and the post-processing module.

[0069] The light source is connected to the first avalanche diode 16-1 via an optical path provided with a first optical isolator 15-1, and is connected to the second avalanche diode 16-2 via an optical path provided with a second optical isolator 15-2.

[0070] One end of the first avalanche diode 16-1 is electrically connected to a preset first bias voltage and a first quenching circuit 17-1. The other end of the first avalanche diode 16-1 is electrically connected to the signal post-processing module 13. The first avalanche diode 16-1 and the first quenching circuit 17-1 constitute a first avalanche single-photon detection module, which is used to detect photons reaching the first avalanche diode.

[0071] One end of the second avalanche diode 16-2 is electrically connected to a preset second bias voltage and a second quenching circuit 17-2. The other end of the second avalanche diode 16-2 is electrically connected to the signal post-processing module 13. The second avalanche diode 16-2 and the second quenching circuit 17-2 constitute a second avalanche single-photon detection module, which is used to detect photons reaching the second avalanche diode.

[0072] In this way, a clock signal is provided to the light source, multiple quenching circuits and post-processing modules through a signal generator, so that the photons emitted by the light source can randomly enter any optical path, and can pass through an optical isolator for preventing the photons generated by each avalanche single-photon detection module from passing through, and be detected by an avalanche diode electrically connected to the bias voltage and the quenching circuit at the other end of the optical path. Then, a random sequence is generated by the signal post-processing module based on the clock signal and the detection signal generated after each avalanche single-photon detection module detects the photon. Since the present application sets an optical isolator for preventing the photons generated by each avalanche single-photon detection module from passing through between the light source and the avalanche single-photon detection module, when the avalanche diode avalanches, the photons it generates will not pass through the optical isolator to enter other optical paths and be detected by other avalanche diodes, thereby making the generation of the random sequence not affected by the secondary emission of photons, thereby improving the randomness of the generated random sequence.

[0073] In some embodiments, see Figure 3 . Figure 3 FIG. 4 is a flowchart of a method for detecting a random number generator shown in an exemplary embodiment of the present application.

[0074] like Figure 3 As shown, in an exemplary embodiment, the method for detecting a random number generator includes at least steps S310 to S320, which are described in detail as follows:

[0075] Step S310 , in response to a preset detection instruction, detecting in sequence whether each avalanche single-photon detection module has secondary emission of photons.

[0076] It should be noted that the preset detection instruction is a control module that controls the random number generator to start detection.

[0077] In some embodiments, each avalanche single-photon detection module is detected in sequence to see whether it has generated secondary emission of photons, that is, each avalanche single-photon detection module is detected in sequence in a preset order to see whether it has generated secondary emission of photons.

[0078] Specifically, one of the avalanche single-photon detection modules can be first determined as the avalanche single-photon detection module to be detected, and then the avalanche single-photon detection module to be detected is detected to see whether secondary emission of photons occurs. It is then determined whether all avalanche single-photon detection modules have been detected. If not, another avalanche single-photon detection module is determined as the avalanche single-photon detection module to be detected, and secondary emission of photons is also checked for it, until all avalanche single-photon detection modules have been detected.

[0079] Furthermore, the method for detecting a random number generator detects whether a secondary emission of photons occurs in an avalanche single-photon detection module in the following manner: turning off the avalanche single-photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single-photon detection modules to obtain a first statistical histogram; turning on the avalanche single-photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single-photon detection modules to obtain a second statistical histogram; and determining whether a secondary emission of photons occurs in the avalanche single-photon detection module to be detected based on the first statistical histogram and the second statistical histogram. In this way, the first statistical histogram is obtained by counting the time it takes for photons to reach other avalanche single-photon detection modules when the avalanche single-photon detection module to be detected is turned off, and the second statistical histogram is obtained by counting the time it takes for photons to reach other avalanche single-photon detection modules when the avalanche single-photon detection module to be detected is turned on. Then, the first statistical histogram and the second statistical histogram are used to determine whether a secondary emission of photons occurs in the avalanche single-photon detection module to be detected. By comparing the first statistical histogram obtained when the avalanche single-photon detection module to be detected is turned off with the second statistical histogram obtained when the avalanche single-photon detection module to be detected is turned on, it is possible to determine whether the photons have changed when they reach other avalanche single-photon detection modules, and then accurately determine whether the avalanche single-photon detection module to be detected has secondary emission of photons, thereby realizing the detection of the avalanche single-photon detection module.

[0080] The avalanche single-photon detection module to be detected is turned off, that is, the avalanche single-photon detection module to be detected cannot detect photons. Other avalanche single-photon detection modules can detect photons normally. For example, the avalanche single-photon detection module to be detected can be turned off by cutting off the power supply of the bias voltage of the avalanche diode of the avalanche single-photon detection module to be detected.

[0081] It should be noted that the horizontal axis of the first statistical histogram is the time it takes for photons to reach the avalanche single photon detection module when the avalanche single photon detection module to be detected is turned off, and the vertical axis of the first statistical histogram is the number of times corresponding to this time.

[0082] The horizontal axis of the second statistical histogram is the time it takes for photons to reach the avalanche single photon detection module when the avalanche single photon detection module to be detected is turned on, and the vertical axis of the second statistical histogram is the number of times corresponding to the time.

[0083] Furthermore, the signal post-processing module is used to count the time it takes for the photon to reach other avalanche single-photon detection modules, including: using the signal post-processing module to obtain the emission time of the photon and the arrival time of the photon at other avalanche single-photon detection modules; obtaining the time difference between the arrival time and the emission time; determining the time difference as the time it takes for the photon to reach other avalanche single-photon detection modules; and counting the number of time durations within a preset time.

[0084] In this way, the time difference between the arrival time of the photon at other avalanche single-photon detection modules and the emission time of the photon is obtained through the signal post-processing module, and the time difference between the two is determined as the duration of the photon's arrival at other avalanche single-photon detection modules, and the number of durations within a preset time is counted. This achieves the statistics of the duration of the photon's arrival at other avalanche single-photon detection modules over a long period of time, so that the statistically obtained histogram can reflect the time characteristics of the duration of the photon's arrival at other avalanche single-photon detection modules, so that the statistically obtained histogram can be used to detect whether the avalanche single-photon detection module to be detected has secondary emission of photons, thereby improving the accuracy of detection.

[0085] Furthermore, the signal post-processing module is used to obtain the emission time of the photon and the arrival time of the photon at the avalanche single-photon detection module, including: recording the first time of the detection signal sent by each avalanche single-photon detection module and the second time of the rising edge of the clock signal sent by the signal generator; determining each first time as the arrival time; and determining the first time before the first time and closest to the first time as the emission time. In this way, the signal post-processing module can be used to determine the first time of the detection signal sent by each avalanche single-photon detection module as the arrival time, and determine the second time of the rising edge of the clock signal sent by the arrival time signal generator as the emission time, so as to determine the time length of the photon reaching other avalanche single-photon detection modules based on the arrival time and the emission time, thereby accurately obtaining the time length of the photon reaching other avalanche single-photon detection modules.

[0086] In some embodiments, the light source emits photons when the received clock signal is at a rising edge. However, some photons may be assigned to the optical path where the avalanche single-photon detection module to be detected is located and cannot be detected. The photons assigned to the optical path where other avalanche single-photon detection modules are located will be detected and corresponding detection signals will be generated. Therefore, the first time of the detection signal sent by each avalanche single-photon detection module is the arrival time of the corresponding photon at the corresponding avalanche single-photon detection module. The second time before the first time and closest to the first time is the emission time of the photon.

[0087] It should be noted that if the light source emits photons in pulses at intervals of one or more clock signals, the emission time of the photons can also be determined based on the same interval, and there is no limitation here.

[0088] Furthermore, determining whether the avalanche single-photon detection module to be detected has secondary emission of photons is performed based on the first statistical histogram and the second statistical histogram, including: obtaining the first peak value corresponding to the first statistical histogram and the time difference corresponding to the first peak value; obtaining the second peak value corresponding to the second statistical histogram and the time difference corresponding to the second peak value; when the time difference corresponding to the second peak value is later than the time difference corresponding to the first peak value, and the second peak value is greater than the first peak value, determining that the avalanche single-photon detection module to be detected has secondary emission of photons; otherwise, determining that the avalanche single-photon detection module to be detected has not secondary emission of photons. In this way, since the avalanche single-photon detection module will not generate secondary photon emission when it is turned off, and secondary photon emission will only be generated when the avalanche single-photon detection module is turned on. The duration for which the secondary emitted photons are detected is longer than the duration for which the photons emitted by the light source are detected. Therefore, when the time difference corresponding to the second peak is later than the time difference corresponding to the first peak, and the second peak is greater than the first peak, it can be determined that the avalanche single-photon detection module to be detected has undergone secondary emission of photons; otherwise, it is determined that no secondary emission of photons has occurred, thereby improving the accuracy of detection.

[0089] Furthermore, when the time difference corresponding to the second peak is no later than the time difference corresponding to the first peak, or the second peak is less than or equal to the first peak, it can be directly determined that the avalanche single-photon detection module to be detected has not emitted secondary photons.

[0090] In order to improve the accuracy of detection, a secondary judgment can be made when the time difference corresponding to the second peak is no later than the time difference corresponding to the first peak, or when the second peak is less than or equal to the first peak. For example, if the time difference corresponding to the second peak is the same as the time difference corresponding to the first peak, and the second peak is the same as the first peak, it is determined that the avalanche single-photon detection module to be detected has not emitted a secondary photon. Otherwise, it can be considered that the recording is wrong, and the time length of the photon reaching other avalanche single-photon detection modules is re-counted.

[0091] In some embodiments, see Figure 4 , Figure 4 This is a flow chart of a method for detecting whether secondary emission of photons occurs in an avalanche single-photon detection module, shown in an exemplary embodiment of the present application.

[0092] like Figure 4 As shown, in an exemplary embodiment, the method for detecting a random number generator includes at least steps S410 to S480, which are described in detail as follows:

[0093] Step S410: turn off the avalanche single photon detection module to be detected, and then use the signal post-processing module to count the time it takes for photons to reach other avalanche single photon detection modules to obtain a first statistical histogram.

[0094] Step S420 , turning on the avalanche single photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single photon detection modules to obtain a second statistical histogram.

[0095] Step S430: Obtain a first peak value corresponding to the first statistical histogram and a time difference value corresponding to the first peak value.

[0096] Step S440: Obtain a second peak value corresponding to the second statistical histogram and a time difference value corresponding to the second peak value.

[0097] Step S450: Determine whether the time difference corresponding to the second peak is later than the time difference corresponding to the first peak, and whether the second peak is greater than the first peak. If so, execute step S460; if not, execute step S470.

[0098] Step S460: determining whether the avalanche single-photon detection module to be detected has secondary emission of photons.

[0099] Step S470: Determine whether the time difference corresponding to the second peak is equal to the time difference corresponding to the first peak, and whether the second peak is equal to the first peak. If so, execute step S480; if not, return to step S410.

[0100] Step S480: Determine whether the avalanche single-photon detection module to be detected has not generated secondary emission of photons.

[0101] In this embodiment,

[0102] By counting the time it takes for the counted photons to reach other avalanche single-photon detection modules when the avalanche single-photon detection module to be detected is turned off, a first statistical histogram is obtained, and by counting the time it takes for the counted photons to reach other avalanche single-photon detection modules when the avalanche single-photon detection module to be detected is turned on, a second statistical histogram is obtained, and then, based on the first peak value corresponding to the first peak value and the time difference value corresponding to the first peak value and the time difference value corresponding to the second peak value of the second statistical histogram, it is determined whether the avalanche single-photon detection module to be detected has secondary emission of photons. By comparing the first peak value and the time difference value corresponding to the first peak value of the first statistical histogram obtained when the avalanche single-photon detection module to be detected is turned off with the time difference value corresponding to the second peak value and the second peak value of the second statistical histogram obtained when the avalanche single-photon detection module to be detected is turned on, it is possible to determine whether there is a change in the photons reaching other avalanche single-photon detection modules, and thus accurately determine whether the avalanche single-photon detection module to be detected has secondary emission of photons, thereby achieving accurate detection of the avalanche single-photon detection module.

[0103] In step S320 , if no secondary emission of photons occurs in each avalanche single-photon detection module, it is determined that the detection of the random number generator is qualified.

[0104] In this embodiment, by responding to a preset detection instruction, each avalanche single-photon detection module is detected in turn to see whether secondary emission of photons occurs. Then, when no secondary emission of photons occurs in each avalanche single-photon detection module, it is determined that the detection of the random number generator is qualified, so that any avalanche single-photon detection module of the random number generator that has passed the detection will not cause secondary emission of photons, that is, the secondary emission of photons will not be affected by the secondary emission of photons, thereby improving the randomness of the generated random sequence.

[0105] See also Figure 5 , Figure 5 is a flow chart of a method for detecting a random number generator shown in another exemplary embodiment of the present application. The random number generator is Figure 2 The random number generator shown.

[0106] Step S501 : In response to a preset detection instruction, determining an avalanche single-photon detection module to be detected among two avalanche single-photon detection modules.

[0107] Step S502 : Cut off the power supply of the bias voltage of the avalanche diode of the avalanche single-photon detection module to be detected, so as to shut down the avalanche single-photon detection module to be detected.

[0108] Step S503: Utilize the signal post-processing module to count the time it takes for a photon to reach another avalanche single-photon detection module to obtain a first statistical histogram.

[0109] Step S504 , turning on the avalanche single photon detection module to be detected, and then using the signal post-processing module to count the time length for the photon to reach another avalanche single photon detection module to obtain a second statistical histogram.

[0110] Step S505 , determining whether the avalanche single-photon detection module to be detected has secondary emission of photons based on the first statistical histogram and the second statistical histogram.

[0111] Step S506: Determine whether all avalanche single photon detection modules have completed detection. If so, execute step S508; if not, execute step S507.

[0112] In step S507 , another avalanche single-photon detection module is determined as the avalanche single-photon detection module to be detected, and then step S501 is executed.

[0113] Step S508: Determine whether each avalanche single photon detection module has not generated secondary emission of photons. If so, execute step S509; if not, execute step S510.

[0114] Step S509: Determine whether the random number generator has passed the test.

[0115] Step S510: Determine whether the random number generator fails the test.

[0116] In this embodiment, by responding to a preset detection instruction, the avalanche single-photon detection module to be detected is determined in the two avalanche single-photon detection modules, and by using the signal post-processing module to count the time it takes for the photon to reach the other avalanche single-photon detection module when the avalanche single-photon detection module to be detected is turned off, a first statistical histogram is obtained, and when the avalanche single-photon detection module to be detected is turned on, the time it takes for the photon to reach the other avalanche single-photon detection module is obtained, a second statistical histogram is obtained, and then the first statistical histogram and the second statistical histogram are used to determine whether the avalanche single-photon detection module to be detected is detected. Secondary emission of photons occurs, and then in the same way it is determined whether the other avalanche single-photon detection module has secondary emission of photons, thereby realizing the detection of each avalanche single-photon detection module of each avalanche single-photon detection module, so that when none of the avalanche single-photon detection modules has secondary emission of photons, it is determined that the detection of the random number generator is qualified, so that any avalanche single-photon detection module of the random number generator that has passed the detection will not have secondary emission of photons, that is, the secondary emission of photons will not be affected by the secondary emission of photons, thereby improving the randomness of the generated random sequence.

[0117] It should be noted that by testing the random number generator in this way, it is possible to determine whether the optical isolator is faulty by determining whether the avalanche single-photon detection module to be tested emits secondary photons, so that the optical isolator can be repaired in a timely manner, thereby improving the randomness of the generated random sequence.

[0118] In some embodiments, see Figure 6 , Figure 6 It is a block diagram of an apparatus for detecting a random number generator shown in an exemplary embodiment of the present application.

[0119] like Figure 6 As shown, the exemplary apparatus for detecting a random number generator includes:

[0120] The detection module 601 is configured to detect in sequence whether the avalanche single photon detection modules have secondary emission of photons in response to a preset detection instruction;

[0121] The determination module 602 is configured to determine that the detection of the random number generator is qualified if no secondary emission of photons occurs in each avalanche single photon detection module.

[0122] In an exemplary embodiment, the detection module 601 includes:

[0123] The first utilization submodule is configured to turn off the avalanche single photon detection module to be detected, and then use the signal post-processing module to count the time it takes for photons to reach other avalanche single photon detection modules to obtain a first statistical histogram.

[0124] The second utilization submodule is configured to turn on the avalanche single photon detection module to be detected, and then use the signal post-processing module to count the time it takes for photons to reach other avalanche single photon detection modules to obtain a second statistical histogram.

[0125] The first determining submodule is configured to determine whether the avalanche single-photon detection module to be detected has secondary emission of photons according to the first statistical histogram and the second statistical histogram.

[0126] In an exemplary embodiment, the first utilization submodule and the second utilization submodule include:

[0127] a time acquisition submodule, configured to acquire the emission time of the photon and the arrival time of the photon at other avalanche single photon detection modules using the signal post-processing module;

[0128] A first time difference acquisition submodule is configured to acquire a time difference between an arrival time and a transmission time;

[0129] The statistics submodule is configured to count the number of time differences within a preset time.

[0130] In an exemplary embodiment, the time acquisition submodule includes:

[0131] a recording submodule configured to record, by using the signal post-processing module, a first time of a detection signal sent by each avalanche single-photon detection module and a second time of a rising edge of a clock signal sent by a signal generator;

[0132] a transmission time determination submodule, configured to determine each first time as an arrival time;

[0133] The arrival transmission time determination submodule is configured to determine the first time that is before the first time and closest to the first time as the transmission time.

[0134] In an exemplary embodiment, the first determining submodule includes:

[0135] a second time difference acquisition submodule, configured to acquire a first peak value corresponding to the first statistical histogram and a time difference value corresponding to the first peak value;

[0136] a third time difference acquisition submodule, configured to acquire a second peak value corresponding to the second statistical histogram and a time difference value corresponding to the second peak value;

[0137] A second determination submodule is configured to determine that the avalanche single photon detection module to be detected has secondary emission of photons when the time difference corresponding to the second peak is later than the time difference corresponding to the first peak and the second peak is greater than the first peak;

[0138] The third determination submodule is configured to determine that the avalanche single-photon detection module to be detected has not emitted secondary photons when the time difference corresponding to the second peak is not later than the time difference corresponding to the first peak, or the second peak is not greater than the first peak.

[0139] It should be noted that the apparatus for detecting a random number generator provided in the above embodiment and the method for detecting a random number generator provided in the above embodiment are based on the same concept, wherein the specific manner in which each module and unit performs operations has been described in detail in the method embodiment and will not be repeated here. In actual applications, the apparatus for detecting a random number generator provided in the above embodiment can, as needed, allocate the above functions to different functional modules, i.e., divide the internal structure of the apparatus into different functional modules to complete all or part of the functions described above, and this is not limited here.

[0140] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the method for detecting a random number generator provided in the above-mentioned embodiments.

[0141] Figure 7 The following is a schematic diagram showing the structure of a computer system suitable for implementing an electronic device according to an embodiment of the present application. Figure 7 The computer system 700 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0142] like Figure 7 As shown, the computer system 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 702 or the program loaded from the storage part 708 into the random access memory (RAM) 703, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 703. The CPU 701, ROM 702 and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0143] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, and the like; an output section 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card or a modem. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. Removable media 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, is installed in the drive 710 as needed, so that computer programs read therefrom can be installed into the storage section 708 as needed.

[0144] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 709, and / or installed from a removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, the various functions defined in the system of the present application are executed.

[0145] It should be noted that the computer-readable medium shown in the embodiments of the present application can be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable computer program. This propagated data signal can take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0146] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0147] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. In some cases, the names of these units do not constitute limitations on the units themselves.

[0148] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon. When executed by a processor, the computer program implements the method for detecting a random number generator as described above. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently and not be incorporated into the electronic device.

[0149] Another aspect of the present application provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the method for detecting a random number generator provided in each of the above embodiments.

[0150] The above content is only a preferred exemplary embodiment of the present application and is not intended to limit the implementation scheme of the present application. Ordinary technicians in this field can easily make corresponding changes or modifications based on the main ideas and spirit of the present application. Therefore, the scope of protection of the present application shall be based on the scope of protection required by the claims.

Claims

1. A random number generator, characterized in that include: a signal generator electrically connected to the light source, the plurality of avalanche single photon detection modules and the post-processing module; The signal generator is used to generate a clock signal; The light source is located at one end of the plurality of light paths; the light source is used to emit photons according to the clock signal; and each light path has the same probability of acquiring the photons; Multiple optical paths are connected to multiple avalanche single-photon detection modules in a one-to-one correspondence; each of the avalanche single-photon detection modules is electrically connected to the signal post-processing module; the avalanche single-photon detection module is used to detect the passing photons according to the clock signal, generate a detection signal, and send the detection signal to the signal post-processing module; Each of the optical paths is respectively provided with an optical isolator for preventing the photons generated by each avalanche single photon detection module from passing through the optical isolator; The signal post-processing module is used to generate a random sequence according to the clock signal and the detection signal.

2. The random number generator according to claim 1, wherein The central wavelength of each optical isolator is the same as the wavelength of the photons emitted by the light source.

3. The random number generator according to claim 1, wherein The avalanche single photon detection module includes an avalanche diode and a quenching circuit; The cathode of the avalanche diode is electrically connected to a preset bias voltage and the quenching circuit respectively; the quenching circuit is used to reset the avalanche diode according to the clock signal after the avalanche diode avalanches; The anode of the avalanche diode is electrically connected to the signal post-processing module; When the photons emitted by the light source are detected, the avalanche diode avalanches to generate the detection signal.

4. The random number generator according to claim 1, wherein: The clock signal is a square wave signal; the signal post-processing module generates a random sequence according to the clock signal and the detection signal through the following steps: When the received clock signal is at a rising edge, receiving the detection signal; determining an avalanche single-photon detection module that sends the detection signal; Obtaining a random number corresponding to the avalanche single photon detection module that sends the detection signal; The random number is placed after the generated alternative random sequence to obtain the random sequence.

5. A method for detecting a random number generator, characterized in that: Applied to the random number generator according to any one of claims 1 to 4, the method comprises: In response to a preset detection instruction, each avalanche single-photon detection module is sequentially detected to determine whether secondary emission of photons occurs; If no secondary emission of photons occurs in each avalanche single-photon detection module, it is determined that the detection of the random number generator is qualified.

6. The method according to claim 5, characterized in that The following methods are used to detect whether the avalanche single photon detection module has secondary emission of photons: Turning off the avalanche single-photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single-photon detection modules to obtain a first statistical histogram; Turning on the avalanche single-photon detection module to be detected, and then using the signal post-processing module to count the time it takes for photons to reach other avalanche single-photon detection modules to obtain a second statistical histogram; It is determined whether the avalanche single-photon detection module to be detected has secondary emission of photons according to the first statistical histogram and the second statistical histogram.

7. The method according to claim 6, characterized in that The signal post-processing module is used to count the time it takes for photons to reach other avalanche single-photon detection modules, including: Using a signal post-processing module to obtain the emission time of the photon and the arrival time of the photon at other avalanche single photon detection modules; Obtaining a time difference between the arrival time and the transmission time; Determine the time difference as the time length for the photon to reach other avalanche single photon detection modules; Count the number of durations within the preset time.

8. The method according to claim 7, characterized in that The method of using a signal post-processing module to obtain the emission time of a photon and the arrival time of the photon at the avalanche single photon detection module includes: Using the signal post-processing module to record a first time of the detection signal sent by each of the avalanche single-photon detection modules and a second time of the rising edge of the clock signal sent by the signal generator; determining each first time as the arrival time; The first time that is before the first time and closest to the first time is determined as the emission time.

9. The method according to claim 6, characterized in that The determining, based on the first statistical histogram and the second statistical histogram, whether the avalanche single-photon detection module to be detected has secondary emission of photons includes: Obtaining a first peak value corresponding to the first statistical histogram and a time difference value corresponding to the first peak value; Obtaining a second peak value corresponding to the second statistical histogram and a time difference corresponding to the second peak value; When the time difference corresponding to the second peak is later than the time difference corresponding to the first peak, and the second peak is greater than the first peak, it is determined that the avalanche single-photon detection module to be detected has secondary emission of photons; Otherwise, it is determined that the avalanche single-photon detection module to be detected does not generate secondary emission of photons.

10. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the method for detecting a random number generator according to any one of claims 5 to 9.

Citation Information

Patent Citations

  • Optical random number generator and method for generating a random number

    CN104915178A

  • Quantum key distribution information leakage due to backflashes in single photon avalanche photodiodes

    US20190190706A1