The invention relates to a self-adaptive
quantum random number generation method based on real-time
entropy estimation, and belongs to the technical field of
quantum random number generation. According to an existing integrated
quantum random
number generator, due to the non-stationary characteristic of a physical entropy source, the
entropy rate dynamically drifts, and after-
processing parameters are fixed, randomness safety and generation efficiency are difficult to guarantee at the same time. According to the method, the
state transition probability of the original random bit
stream is counted in real time, the
confidence interval correction is introduced to calculate the
minimum entropy, the input bit width is dynamically adjusted accordingly, the
Toeplitz matrix is reconstructed for random extraction, and self-adaptive adjustment of the
compression ratio is achieved. According to the method, the
compression ratio is increased to ensure the security of the output random number when the entropy source quality is reduced, and the
compression ratio is reduced to improve the generation efficiency when the entropy source quality is improved, so that the
dynamic balance between the randomness security and the generation efficiency is realized on the premise of keeping integration and low cost.