This paper explores a novel randomness evaluation method for data produced by quantum random number generators (QRNGs), leveraging quantum mechanics to achieve highly random data. We employ neural networks and machine learning techniques to analyze the operational principles of QRNGs, enabling the test suites to assess the generators based on their predictability scores. Our findings demonstrate that our model’s ability to predict outcomes surpasses that of comparable approaches. Additionally, we discuss the optimal timing for conducting these tests—specifically, analyzing the raw output from QRNGs before processing through an extractor yields the best performance.
This paper explores a novel randomness evaluation method for data produced by quantum random number generators (QRNGs), leveraging quantum mechanics to achieve highly random data. We employ neural networks and machine learning techniques to analyze the operational principles of QRNGs, enabling the test suites to assess the generators based on their predictability scores. Our findings demonstrate that our model’s ability to predict outcomes surpasses that of comparable approaches. Additionally, we discuss the optimal timing for conducting these tests—specifically, analyzing the raw output from QRNGs before processing through an extractor yields the best performance.
The random number generator (RNG) plays an essential role in lots of applications such as cryptographic. Unlike classical random number generators, quantum random number generators (QRNG) can in principle generate true random numbers because it is based on the inherent uncertainty of the quantum property. However, the presence of the environmental noise or the imperfect characteristics of the device can compromise the integrity of QRNG. To judge the quality of QRNG, we propose to apply the transformer based machine learning (ML) model to quantify the randomness of quantum random numbers. Through proper training, our transformer based ML model is able to predict randomness of given quantum random number sequence very closely to the maximum guess probability of its theoretical limit. Moreover, we also do comparisons between our present transformer based model with other ML model, such as the long short term memory network (LSTM) based model. Simulation results show that our present model can not only present a higher prediction accuracy, but also cost much less time and exhibit excellent performance in work efficiency. Furthermore, we also compare our present transformer based machine learning model with the traditional randomness detection standard, NIST-test-suite, and show advantages of our method.
Randomness is crucial for our understanding of nature and indispensable in information processing tasks. In practical applications, assessing the quality of random numbers is crucial—particularly in cryptographic applications, where random numbers must exhibit statistical uniformity. Various statistical estimation methods have been developed to test the statistical characteristics of generated random numbers, enabling comprehensive evaluation of their statistical uniformity from multiple perspectives. Despite recent advances in quantum information providing physically well-characterized models for randomness quantification, distinction between different types of random numbers (including quantum random numbers) remains a challenging task, and statistical uniformity is rarely directly applicable to such discrimination scenarios. With the development of artificial intelligence technologies, the problem of random number discrimination is expected to draw on the paradigm of image classification in computer vision. This research proposes a machine learning-based randomness discrimination method, specifically addressing the challenge of quantum random number identification. Specifically, we design an image-based convolutional neural network (CNN) approach: one-dimensional random number sequences are converted into two-dimensional grayscale images, and binary classification of these images is achieved by capturing high-dimensional latent features that are undetectable via traditional statistical tests, thereby enabling effective random number discrimination. Experimental results demonstrate that, for the selected quantum random numbers, the proposed discrimination method successfully achieves two key distinctions: (1) between raw quantum random numbers and classical random numbers; and (2) between raw quantum random numbers and post-processed quantum random numbers—additionally revealing the role of statistical uniformity in these discrimination tasks. This achievement provides significant support for the design of randomness extraction protocols and the security assessment of quantum random number generators.
Quantum random number generators (QRNGs) offer a fundamentally different approach to random number generation compared to classical methods, leveraging the inherent unpredictability of quantum mechanical processes. However, the widespread adoption of QRNGs is currently hindered by a lack of standardized verification procedures and effective multi-model fusion strategies. This paper addresses these challenges by proposing a comprehensive framework for the multi-model validation and fusion of QRNGs. The framework integrates multiple quantum physical and information-theoretic randomness sources, employing statistical modeling for rigorous security assessments. Specifically, we introduce a novel approach to quantifying the entropy and bias of QRNG outputs across various models. The core contribution lies in establishing a systematic methodology for evaluating QRNG security and presenting a viable strategy for combining the strengths of different QRNG technologies. Our analysis highlights the importance of diverse validation techniques and the potential for improved QRNG performance through model fusion. The proposed framework provides a foundation for more reliable and trustworthy QRNG implementations, crucial for applications demanding high-quality randomness, such as cryptography and simulation.
The quantum random number generator (QRNG) is theoretically capable of generating unpredictable random numbers based on the inherent uncertainty of quantum mechanics, which is of paramount importance for information security. However, the security of practical QRNG is susceptible to the influence of unknown classical noise introduced by imperfect measurement devices, leading to potential security threats. In this paper, we propose a deep learning-based prediction model for analyzing the bidirectional security of QRNG where the quantum source is contaminated by classical noise. Firstly, we train a deep learning model capable of evaluating the randomness of mixed entropy source composed of quantum source and classical source, which exhibits excellent performance and effectively avoids the limitations of Statistical tests in evaluating the randomness of the mixture of quantum and classical source results. Secondly, systematically analyzes the impact of non-ideal measurement devices on the practical security of the continuous variable QRNG, which provides an explicit basis for compensating the discrepancy between theory and experiment. Finally, we perform correlation detection on QRNG output sequences with a deep learning model and focus on both the forward and backward security of random numbers. Through bidirectional security detection, random number sequences that may be biased or manipulated can be more accurately and comprehensively evaluated, further preventing potential correlations from opening security holes for eavesdroppers.
Random numbers are incredibly important in a variety of fields, and the need for their validation remains important for safety. A Quantum Random Number Generator (QRNG) can theoretically generate truly random numbers, however their quality still needs to be thoroughly validated. Generally, the task of validating random numbers has been delegated to different statistical tests such as the tests from the NIST Statistical Test Suite (STS), which are often slow and only perform one test at a time. Our work presents a deep learning model utilizing the Transformer architecture that 1) performs multiple NIST STS tests at once, and 2) runs much faster. This model outputs multilabel classification results on passing these statistical tests. We performed a thorough hyper-parameter optimization to converge on the best possible model and as a result, achieved a high degree of accuracy with a Macro F1-score of above 0.96. We also compared this model to a conventional deep learning method (Long Short Term Memory Recurrent Neural Networks) to quantify randomness and showed our model achieved similar performances while being much more efficient and scalable. The high performance and efficiency of this Transformer-based deep learning model showed that it can be a viable replacement for the NIST STS for validating random numbers.
Random prime number generation is crucial for the implementation of several encryption and signature protocols in cryptographic applications. Recently, Quantum Random Number Generators (QRNGs) have emerged as a solution to obtain information-theoretically secure randomness, setting them apart from algorithmic generators. Nonetheless, their output is still prone to deterioration under a flawed implementation and thus requires continuous statistical validation. This process is uniquely challenging for prime number generators since they cannot be submitted to the traditional testing suites, which are primarily designed to test uniform pseudorandom sources. Here, we enable direct statistical testing of prime Random Number Generators (RNGs) by extending a validation framework based on an equiprobable binning of the prime distribution with a predictive machine learning model, which can independently learn correlations in the prime output. The validity of this framework is then verified through extensive cryptanalysis of a prime QRNG based on quadrature measurements of the vacuum state. The developed model successfully identifies flawed configurations of the prime QRNG for output lengths up to 128 bits. This assessment was additionally extended to a purely classical scheme derived from electronic noise measurements. Although no increase in the model’s predictive capacity is seen, our testing framework can nonetheless demonstrate that this classical source produces a conclusively biased prime distribution. In turn, the implemented QRNG remains resilient against this type of cryptanalysis.