A quantum random number generator and control method thereof

By introducing feedback and automatic adjustment mechanisms into the quantum random number generator and adjusting the SLED module and programmable operational amplifier, the problem of reduced quality of random number sequences caused by device aging is solved, extending the life of the device and improving the quality of the random number output.

CN110727415BActive Publication Date: 2024-10-25HENGTONG QASKY QUANTUM INFORMATION RES INST CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911142934.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-20
Publication Date
2024-10-25
Estimated Expiration
2039-11-20

AI Technical Summary

Technical Problem

Existing quantum random number generators cannot effectively adjust the optical power drop after the device ages, resulting in a decrease in the quality of the random number sequence, and users cannot understand the status of the device in a timely manner, which affects the life of the device.

Method used

Feedback and automatic adjustment mechanisms are introduced, and the SLED module and programmable operational amplifier are adjusted through the FPGA data processing circuit and processor to adjust the drive current and gain to ensure the quality of the random number output.

Benefits of technology

It extends the effective life of the quantum random number generator and improves the quality of the random number sequence. Users can understand the status of the equipment and perform maintenance in a timely manner, extending the service life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110727415B_ABST
    Figure CN110727415B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a quantum random number generator and a control method thereof. The quantum random number generator includes: a SLED module, a photodiode, a programmable operational amplifier, an analog-to-digital conversion circuit, an FPGA data processing circuit and a processor; the SLED module is used to provide an ultra-wideband light source; the photodiode is used to convert the optical signal into an electrical signal and output the converted signal; the input end of the programmable operational amplifier is connected to the photodiode, and the output end is connected to the input end of the analog-to-digital conversion circuit; the FPGA data processing circuit is connected to the output end of the analog-to-digital conversion circuit; the processor is connected to the FPGA data processing circuit, the gain control end of the programmable operational amplifier and the current adjustment end of the SLED module. The technical solution of the present invention solves the problem of the quality reduction of the random number sequence generated by the quantum random number generator due to device aging, and achieves the effect of increasing the effective life of the quantum random number generator device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to a light source signal processing technology, and more particularly to a quantum random number generator and a control method thereof. Background Art

[0002] Super-Luminescent Emitting Diode (SLED) has developed rapidly in recent years. It is a semiconductor optoelectronic device between laser (Laser Diode, LD) and light-emitting diode (Light-Emitting Diode, LED). SLED is an excellent high-power broadband light source with the characteristics of wide spectrum, high output power, good reliability and stability, which makes SLED widely used in quantum random number generators.

[0003] Currently, products based on feedback to stabilize the SLED luminous power mainly integrate photodiodes in SLED modules, feed back the output signals of the photodiodes to the SLED drive circuit, adjust the drive current, and stabilize the SLED output light power.

[0004] Commonly used feedback schemes can only stabilize the optical power fluctuation of the SLED output in real time, but cannot regulate the optical power reduction caused by SLED aging. Summary of the invention

[0005] The present invention provides a quantum random number generator and a control method thereof, so as to improve the effective life of the quantum random number generator device.

[0006] In a first aspect, an embodiment of the present invention provides a quantum random number generator, including: a SLED module, a photodiode, a programmable operational amplifier, an analog-to-digital conversion circuit, an FPGA data processing circuit, and a processor;

[0007] The SLED module is used to provide an ultra-wideband light source;

[0008] The photodiode is used to convert the optical signal into an electrical signal and output the converted signal;

[0009] The input end of the programmable operational amplifier is connected to the photodiode, and the output end is connected to the input end of the analog-to-digital conversion circuit;

[0010] The FPGA data processing circuit is connected to the output end of the analog-to-digital conversion circuit;

[0011] The processor is connected to the FPGA data processing circuit, the gain control terminal of the programmable operational amplifier and the current regulating terminal of the SLED module.

[0012] In a second aspect, an embodiment of the present invention further provides a control method applied to a quantum random number generator, the control method comprising:

[0013] After receiving the data from the analog-to-digital conversion circuit, the FPGA data processing circuit processes the data, obtains the maximum value of the data, and outputs it to the processor;

[0014] When the value output by the FPGA data processing circuit is less than or equal to the reference value, the processor adjusts at least one of the control signal output to the gain control terminal of the programmable operational amplifier and the control signal output to the current regulation terminal of the SLED module.

[0015] The embodiment of the present invention adds a feedback and automatic adjustment mechanism to the original design. The processor receives feedback from the FPGA data circuit and adjusts the SLED module and the programmable operational amplifier, thereby solving the problem of reduced quality of the random number sequence generated by the quantum random number generator due to device aging, and achieving the effect of increasing the effective life of the quantum random number generator device. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 is a schematic diagram of the structure of the quantum random number generator in the first embodiment of the present invention;

[0017] Figure 2 is a flow chart of a control method applied to a quantum random number generator in Embodiment 2 of the present invention;

[0018] Figure 3 This is a flow chart of a control method applied to a quantum random number generator in Embodiment 3 of the present invention. DETAILED DESCRIPTION

[0019] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0020] After the quantum random number generator has been working for a certain period of time, aging will occur. For example, after the SLED has been working continuously for about a year, even at the same working current, the output light intensity will gradually decrease due to aging; after the photodiode has been working continuously for about 1 to 2 years, even at the same input light intensity, the output current will decrease due to aging, that is, the responsivity of the photodiode decreases.

[0021] When the quantum random number generator leaves the factory, the initial value is set so that the peak-to-peak value of the input voltage of the analog-to-digital conversion circuit is maintained between 1 / 2 and 1 times the reference voltage of the analog-to-digital conversion circuit. After the device ages, the peak-to-peak value of the voltage signal input to the analog-to-digital conversion circuit will decrease. If the peak-to-peak value of the input voltage of the analog-to-digital conversion circuit decreases to less than 1 / 2 of the reference voltage of the digital-to-analog conversion circuit, the highest bit of the digital signal output by the digital-to-analog conversion circuit will always be 0, which will cause the distribution of "1" and "0" in the digital signal output by the digital-to-analog conversion circuit to be uneven; if the peak-to-peak value of the input voltage of the analog-to-digital conversion circuit decreases to less than 1 / 4 of the reference voltage of the digital-to-analog conversion circuit, the highest two bits of the digital signal output by the digital-to-analog conversion circuit will always be 0, which will cause too many "0"s in the digital signal output by the digital-to-analog conversion circuit, and they will appear regularly in certain positions, thereby reducing the quality of the random number sequence generated by the quantum random number generator.

[0022] If there is no feedback and automatic adjustment mechanism, when the aging of the device affects the quality of the random number sequence generated by the quantum random number generator, the user cannot timely understand the working status of the quantum random number generator, and thus cannot timely repair and replace the device. In response to this technical problem, an embodiment of the present invention provides a quantum random number generator, which introduces feedback and automatic adjustment mechanisms to ensure the quality of the random number output by the device.

[0023] Embodiment 1

[0024] Figure 1 is a schematic diagram of the structure of the quantum random number generator in the first embodiment of the present invention, such as Figure 1 As shown, a quantum random number generator includes: a SLED module 10, a photodiode 20, a programmable operational amplifier 30, an analog-to-digital conversion circuit 40, an FPGA data processing circuit 50 and a processor 60;

[0025] The SLED module 10 is used to provide an ultra-broadband light source;

[0026] The photodiode 20 is used to convert the optical signal into an electrical signal and output the converted signal;

[0027] The input end of the programmable operational amplifier 30 is connected to the photodiode 20 , and the output end is connected to the input end of the analog-to-digital conversion circuit 40 ;

[0028] The FPGA data processing circuit 50 is connected to the output end of the analog-to-digital conversion circuit 40;

[0029] The processor 60 is connected to the FPGA data processing circuit 50 , the gain control terminal of the programmable operational amplifier 40 , and the current regulation terminal of the SLED module 10 .

[0030] Among them, the SLED module 10 has the characteristics of high output power and wide spectral coverage compared to general broadband light sources. The radiation characteristics of the SLED light source are between semiconductor lasers and semiconductor light-emitting diodes. The size of the driving current of the SLED module 10 determines the size of the optical power output by the SLED. In this embodiment, the controller of the driving current of the SLED module 10 is preferably an online controllable controller. The online controllable controller can adjust the driving current of the SLED module through programming without disassembling the machine.

[0031] Among them, the photodiode 20 works under the action of reverse voltage. When there is no light, the reverse current is extremely weak, which is called dark current; when there is light, the reverse current rapidly increases to tens of microamperes, which is called photocurrent; the greater the light intensity, the greater the reverse current of the photodiode 20; the photodiode 20 receives the light source emitted by the SLED module 10, generates a current signal, and the current signal is converted into a voltage signal through a high-bandwidth precision sampling resistor, and the voltage signal is input into the programmable operational amplifier 30; the preferred photodiode in this embodiment is an indium gallium arsenic photodiode.

[0032] The programmable operational amplifier 30 is a highly versatile amplifier, and its amplification factor can be controlled by a program as needed; the programmable operational amplifier 30 amplifies the input weak voltage signal and outputs it. The programmable operational amplifier 30 is preferred in this embodiment, and the amplification gain of the amplifier can be modified online by programming as needed. When the input remains unchanged, the higher the amplification gain, the higher the peak-to-peak value of the voltage signal output to the analog-to-digital conversion circuit.

[0033] Among them, since the input signal of the analog-to-digital conversion circuit 40 cannot be automatically adjusted through voltage signal feedback, it is necessary to convert the signal input to the analog-to-digital conversion circuit 40 into a digital signal, collect and count the generated digital signal, and then feed back the statistics to the system. The analog-to-digital conversion circuit 40 converts the input voltage signal, outputs the generated digital signal to the FPGA data processing circuit 50, and the output digital signal value corresponds to the input voltage signal value one by one. For example, the analog-to-digital conversion circuit 40 of this embodiment can select a 12-bit analog-to-digital conversion chip. When the analog-to-digital conversion circuit 40 performs A / D conversion on the input analog signal, it is necessary to refer to a reference voltage value, compare and convert the input analog signal with the reference voltage value, and the reference voltage of the analog-to-digital conversion circuit 40 is 2.2V.

[0034] Among them, the FPGA data processing circuit 50 receives the data output by the analog-to-digital conversion circuit 40, processes the data, and simultaneously counts the maximum value in the data. The refresh frequency is once per minute, and the FPGA data processing circuit 50 feeds back the statistical situation to the processor 60.

[0035] Among them, the processor 60 collects the maximum value of the data counted by the FPGA data processing circuit 50 and transmitted by the FPGA data processing circuit 50. The processor 60 adjusts the working current of the SLED module 10 and the gain of the programmable operational amplifier 30 through a set of algorithm processes based on the results transmitted by the FPGA data processing circuit 50.

[0036] The processor determines whether the value output by the FPGA data processing circuit is less than or equal to the reference value. If it is greater than the reference value, it means that the quantum random number generator is in good working condition at this time and does not need to be adjusted. If the value output by the FPGA data processing circuit is less than or equal to the reference value, it is determined whether the gain of the programmable operational amplifier has reached the maximum. If the gain of the programmable operational amplifier has not reached the maximum value, the processor 60 adjusts the control signal output to the gain control end of the programmable operational amplifier to increase the gain of the programmable operational amplifier. For example, the gain of the programmable operational amplifier can be increased step by step until the value output by the FPGA data processing circuit is greater than the reference value. If the gain of the programmable operational amplifier has reached the maximum, it is determined whether the working current of the SLED module has reached the maximum value. If the working current of the SLED module has not reached the maximum value, the control signal output to the current adjustment end of the SLED module is adjusted to increase the working current of the SLED module. If the working current of the SLED module has reached the maximum, it means that the quantum random number generator can no longer be adjusted at this time, and an alarm signal is output. In the embodiment of the present invention, the processor 60 preferentially increases the gain of the programmable operational amplifier 30. Since the gain adjustment of the programmable operational amplifier has little effect on the power consumption of the quantum random number generator, the power consumption can be reduced.

[0037] The embodiment of the present invention adds a feedback and automatic adjustment mechanism to the original design. The processor receives feedback from the FPGA data circuit and adjusts the SLED module and the programmable operational amplifier, thereby solving the problem of reduced quality of random number sequences generated by the quantum random number generator due to device aging, thereby achieving the effect of ensuring the quality of random numbers output by the device and increasing the effective life of the quantum random number generator device. For example, the life of the random number generator can be increased from 1 to 2 years to more than 5 years.

[0038] Embodiment 2

[0039] On the basis of the above embodiment, optionally, the processor 60 includes a comparison circuit, the first input end of the comparison circuit inputs the maximum data value output by the FPGA data processing circuit, and the second input end of the comparison circuit inputs the reference value. The processor compares the maximum value of the data counted by the FPGA data processing circuit 50 with the reference value through the comparison circuit to determine the working state of the quantum random number generator. If the maximum value of the data counted by the FPGA data processing circuit 50 is lower than the reference value, it means that the quality of the random number sequence generated by the quantum random number generator is reduced due to device aging. If the maximum value of the data counted by the FPGA data processing circuit 50 is greater than or equal to the reference value, then the quantum random number generator is in good working condition at this time, and the quality of the generated random number sequence has not changed significantly. Optionally, in this embodiment, the processor 60 is a single-chip microcomputer.

[0040] Optionally, the reference value is 0X0FFF*3 / 5, where 0X0FFF is the maximum output digital signal of the analog-to-digital conversion circuit 40. The reference value is selected as 0X0FFF*3 / 5 because firstly, 3 / 5 is greater than 1 / 2, leaving a certain safety redundancy, and will not be discovered until the quality of the random number generated by the quantum random number generator decreases; secondly, through experiments and calculations, the reference value is 0X0FFF*3 / 5, which can ensure that after adjusting the SLED module 10 and the programmable operational amplifier 30, the input voltage signal of the analog-to-digital conversion circuit 40 will not exceed the reference voltage. The output of the analog-to-digital conversion circuit 40 is a hexadecimal digital signal, and the maximum output value is 0X0FFF.

[0041] Optionally, the value input to the first input terminal of the comparison circuit is less than the value input to the second input terminal, the comparison circuit outputs a first comparison signal, and the gain of the programmable operational amplifier has not reached the maximum, and the processor adjusts the control signal output to the gain control terminal of the programmable operational amplifier to increase the gain of the programmable operational amplifier. When the value input to the first input terminal of the comparison circuit is less than the value input to the second input terminal, the quality of the random number sequence generated by the quantum random number generator is reduced due to device aging, and the quantum random number generator needs to be adjusted to output a first comparison signal, i.e., an adjustment signal; because the gain adjustment of the programmable operational amplifier 30 has little effect on the power consumption of the quantum random number generator, when the gain of the programmable operational amplifier 30 has not reached the maximum, the processor 60 gives priority to increasing the gain of the programmable operational amplifier 30.

[0042] Optionally, the comparison circuit outputs a first comparison signal, the gain of the programmable operational amplifier reaches a maximum, and the operating current of the SLED module does not reach a maximum value, and the processor adjusts the control signal output to the current adjustment terminal of the SLED module to increase the operating current of the SLED module. Because the operating current of the SLED module 10 has a greater impact on the power consumption of the quantum random number generator, when the quantum random number generator needs to be adjusted and the gain of the programmable operational amplifier 30 has reached a maximum, the operating current of the SLED module 10 is judged. If the operating current of the SLED module 10 does not reach a maximum value, the processor 60 increases the operating current of the SLED module 10.

[0043] Optionally, the maximum operating current of the SLED module 10 is 500 mA; the adjustable gain range of the programmable operational amplifier 30 is from -6 dB to 26 dB.

[0044] Embodiment 3

[0045] Figure 2 : is a flow chart of a control method applied to a quantum random number generator in Embodiment 3 of the present invention, which can be applied to the quantum random number generator in the embodiment of the present invention, and specifically includes the following steps:

[0046] Step S201: After receiving the data from the analog-to-digital conversion circuit, the FPGA data processing circuit processes the data, obtains the maximum value of the data, and outputs it to the processor.

[0047] When the quantum random number generator is working, the SLED module acts as a light source to provide an ultra-wideband light source. The photodiode generates a corresponding current signal under the action of the light source output by the SLED module. The current signal is converted into a voltage signal through a high-bandwidth precision sampling resistor. The programmable operational amplifier amplifies the input weak voltage signal and outputs the amplified voltage signal. The analog-to-digital conversion circuit converts the input voltage signal and outputs a hexadecimal digital signal. The FPGA data processing circuit receives the digital signal output by the digital-to-analog conversion circuit and processes the signal. At the same time, it counts the signal and sends the maximum value of the data to the processor.

[0048] Step S202, determine whether the value output by the processor in the FPGA data processing circuit is less than or equal to the reference value; if so, execute step S203; if not, return and execute step S201 to cycle again.

[0049] The processor includes a comparison circuit, which compares the value output by the FPGA data processing circuit with a reference value; if the value output by the FPGA data processing circuit is less than or equal to the reference value, step S203 is executed; if the value output by the FPGA data processing circuit is greater than the reference value, it returns and executes step S201 to cycle again.

[0050] Step S203, adjusting at least one of the control signal output to the gain control terminal of the programmable operational amplifier and the control signal output to the current adjustment terminal of the SLED module.

[0051] According to the comparison result of the processor comparison circuit, the control signal output to the gain control end of the programmable operational amplifier is adjusted to increase the amplification factor of the electrical signal passing through the programmable operational amplifier, increase the input value of the digital-to-analog conversion circuit, thereby making the digital signal generated by the digital-to-analog conversion circuit evenly distributed, and improving the quality of the random number sequence generated by the quantum random number generator; or the control signal at the current regulation end of the SLED module is adjusted to increase the operating voltage of the SLED module, thereby generating a stronger light source and improving the quality of the random number sequence generated by the quantum random number generator.

[0052] The embodiment of the present invention adds a feedback and automatic adjustment mechanism to the original design. The processor receives feedback from the FPGA data circuit, and adjusts the SLED module and the programmable operational amplifier according to the comparison between the data fed back by the FPGA data circuit and the reference value by the comparison circuit, thereby solving the problem of reduced quality of the random number sequence generated by the quantum random number generator due to device aging, and achieving the effect of increasing the effective life of the quantum random number generator device.

[0053] Embodiment 3

[0054] Figure 3 1 is a flow chart of a control method applied to a quantum random number generator in Embodiment 3 of the present invention. The method is applied to a quantum random number generator and specifically includes the following steps:

[0055] Step S301: Initialization settings.

[0056] The devices of the quantum random number generator are initialized and set. The maximum operating current of the SLED module is 500mA, and the initial operating current is set to 300mA. The gain adjustment range of the programmable operational amplifier is -6dB to 26dB, and the initial gain is set to 15dB.

[0057] Step S302: After receiving the data from the analog-to-digital conversion circuit, the FPGA data processing circuit processes the data, obtains the maximum value of the data, and outputs it to the processor.

[0058] Step S303: determine whether the value output by the processor in the FPGA data processing circuit is less than or equal to the reference value.

[0059] If yes, execute step S304; if no, return and execute step S302 to cycle again.

[0060] If the judgment result is yes, the quality of the random number sequence generated by the quantum random number generator has decreased and needs to be adjusted; if the judgment result is no, the quantum random number generator is in good working condition, the quality of the generated random number sequence has not changed significantly, and the quantum random number generator continues to work without adjustment.

[0061] Step S304: determine whether the gain of the programmable operational amplifier reaches a maximum.

[0062] If yes, execute step S306; if no, execute step S305.

[0063] The working state of the quantum random number generator is further judged. Since the gain adjustment of the programmable operational amplifier has little effect on the power consumption of the quantum random number generator, the gain of the programmable operational amplifier is adjusted first.

[0064] If the judgment result is yes, the gain of the programmable operational amplifier has reached the maximum and the gain of the programmable operational amplifier can no longer be adjusted; if the judgment result is no, the processor adjusts the control signal output to the gain control terminal of the programmable operational amplifier to increase the gain of the programmable operational amplifier.

[0065] Step S305 : The gain of the programmable operational amplifier is increased by 1 dB.

[0066] The processor adjusts the control signal output to the gain control terminal of the programmable operational amplifier to increase the gain of the programmable operational amplifier. The exemplary processor controls the gain of the programmable operational amplifier to increase by 1 dB. The minimum gain order of the programmable operational amplifier is 1 dB, so each adjustment increases the gain by 1 dB.

[0067] Step S306: determine whether the operating current of the SLED module reaches a maximum value.

[0068] If yes, execute step S308; if no, execute step S307.

[0069] The operating current of the SLED module has a great influence on the power consumption of the quantum random number generator. When the gain of the amplifier reaches the maximum and cannot be adjusted again, the operating current of the SLED module is adjusted.

[0070] If the judgment result is yes, the operating current of the SLED module has reached the maximum, and the quantum random number generator can no longer be adjusted at this time; if the judgment result is no, the processor adjusts the control signal output to the current adjustment end of the SLED module to increase the operating current of the SLED module.

[0071] Step S307: the operating current of the SLED module is increased by 10 mA.

[0072] The processor adjusts the control signal output to the current adjustment terminal of the SLED module to increase the working current of the SLED module. The exemplary processor controls the working current of the SLED module to increase by 10mA. The current is continuous data. In order to improve the adjustment effect and reduce the number of adjustments, this embodiment preferably increases the working current of the SLED module by 10mA each time.

[0073] Step S308: Alarm action.

[0074] When the value output by the processor in the FPGA data processing circuit is less than or equal to the reference value, the gain of the programmable operational amplifier reaches the maximum and the working current of the SLED module reaches the maximum, then the alarm action is executed. When the working current of the SLED module and the gain of the programmable operational amplifier are adjusted to the maximum, and the maximum value of the FPGA data processing circuit statistics is still less than the reference value, it means that the quantum random number generator can no longer guarantee the quality of the generated random number sequence. At this time, an alarm is issued in time to notify the user to detect or replace the device; the alarm action includes flashing indicator lights and prompts on the user interface.

[0075] The embodiment of the present invention adds a feedback and automatic adjustment mechanism to the original design. The processor receives feedback from the FPGA data circuit. Based on the comparison between the data fed back by the FPGA data circuit and the reference value by the comparison circuit, and in combination with whether the programmable operational amplifier reaches the maximum gain and whether the operating current of the SLED module reaches the maximum value, the processor adjusts the SLED module and the programmable operational amplifier, thereby solving the problem of reduced quality of the random number sequence generated by the quantum random number generator due to device aging, and achieving the effect of increasing the effective life of the quantum random number generator device.

[0076] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A quantum random number generator, characterized in that: include: SLED module, photodiode, programmable operational amplifier, analog-to-digital conversion circuit, FPGA data processing circuit and processor; The SLED module is used to provide an ultra-wideband light source; The photodiode is used to convert the optical signal into an electrical signal and output the converted signal; The input end of the programmable operational amplifier is connected to the photodiode, and the output end is connected to the input end of the analog-to-digital conversion circuit; wherein the programmable operational amplifier amplifies the input weak voltage signal and outputs it; The FPGA data processing circuit is connected to the output end of the analog-to-digital conversion circuit; The processor is connected to the FPGA data processing circuit, the gain control terminal of the programmable operational amplifier and the current regulation terminal of the SLED module; The processor includes a comparison circuit, a first input terminal of the comparison circuit inputs a maximum data value output by the FPGA data processing circuit, and a second input terminal of the comparison circuit inputs a reference value; The value input to the first input terminal of the comparison circuit is smaller than the value input to the second input terminal thereof, the comparison circuit outputs a first comparison signal, and the gain of the programmable operational amplifier has not reached a maximum, and the comparison circuit adjusts the control signal output to the gain control terminal of the programmable operational amplifier to increase the gain of the programmable operational amplifier.

2. The quantum random number generator according to claim 1, characterized in that: The reference value is 0X0FFF*3 / 5, and 0X0FFF is the maximum output digital signal of the analog-to-digital conversion circuit.

3. The quantum random number generator according to claim 1, characterized in that: The comparison circuit outputs a first comparison signal, the gain of the programmable operational amplifier reaches a maximum, and the operating current of the SLED module does not reach a maximum value, and the processor adjusts the control signal output to the current regulation end of the SLED module to increase the operating current of the SLED module.

4. The quantum random number generator according to claim 1, characterized in that: The maximum operating current of the SLED module is 500mA; The adjustable range of the amplification gain of the programmable operational amplifier is from -6dB to 26dB.

5. A control method for the quantum random number generator according to claim 1, characterized in that: After receiving the data from the analog-to-digital conversion circuit, the FPGA data processing circuit processes the data, obtains the maximum value of the data, and outputs it to the processor; When the value output by the FPGA data processing circuit is less than or equal to the reference value, the processor adjusts at least one of the control signal output to the gain control terminal of the programmable operational amplifier and the control signal output to the current regulation terminal of the SLED module.

6. The control method of the quantum random number generator according to claim 5, characterized in that: When the value output by the processor of the FPGA data processing circuit is less than or equal to the reference value, the processor adjusts at least one of the signal output to the gain control terminal of the programmable operational amplifier and the control signal output to the current regulation terminal of the SLED module, including: When the value output by the FPGA data processing circuit is less than or equal to a reference value, the processor determines whether the gain of the programmable operational amplifier has reached a maximum; if not, the processor adjusts the control signal output to the gain control terminal of the programmable operational amplifier to increase the gain of the programmable operational amplifier.

7. The control method of the quantum random number generator according to claim 6, characterized in that: When the value output by the processor of the FPGA data processing circuit is less than or equal to the reference value, adjusting at least one of the signal output to the gain control terminal of the programmable operational amplifier and the control signal output to the current regulating terminal of the SLED module further includes: If the gain of the programmable operational amplifier reaches the maximum and the operating current of the SLED module does not reach the maximum value, the processor adjusts the control signal output to the current regulating end of the SLED module to increase the operating current of the SLED module.

8. The control method of the quantum random number generator according to claim 6, characterized in that: Also includes: When the value output by the FPGA data processing circuit is less than or equal to the reference value, the gain of the programmable operational amplifier reaches a maximum and the operating current of the SLED module reaches a maximum, the processor executes an alarm action.