Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Log inSign up
Challenges
Datasets
Workspaces
Papers
Discussions
Leaderboard
Blog
Job Board
Q3AS

© 2026 Aqora Quantum S.A.S.

TermsPrivacyLegal Notice

International Conference on Intelligent Power and Systems (ICIPS)

Quantify Randomness of Quantum Random Number with Transformer Network

Zhenwei Li, Feng Bao, Liangjie Cui, Hui Wang, Yuxiang Bian, Gen-Le Piao, Xingyu Zhou

Published Oct 20, 2023• 3 citations
Publisher

Abstract

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.

DOI
10.1109/icips59254.2023.10405286

Related papers

Machine Learning-Based Randomness Analysis For a Auantum Random Number Generator

Wanlin Du, Ling Wang, Yuanzhe Zhu +1 more

Abstract Random numbers are critical to information security. Quantum random numbers are theoretically truly random and unpredictable. However, the measurement process of a quantum random number generator (QRNG) can be affected by environmental disturbances that compromise the integrity of the generated random numbers. A machine learning model is proposed to assess the stochasticity of the continuous variable QRNG under the influence of vacuum noise. The model is designed to detect the correlation between the randomness of the QRNG being corrupted under the influence of classical noise (electrical noise). In addition, our model detects a decrease in the randomness of the QRNG random numbers when the electrical noise intensity increases to a certain correlation. The results show that machine learning (ML) can be used as a measure of the quality of QRNG.

Journal of Physics Conference Series•Sep 1, 2024•0 citations

Machine Learning Cryptanalysis of a Quantum Random Number Generator

Nhan Duy Truong, Jing Yan Haw, Syed M. Assad +2 more

Random number generators (RNGs) that are crucial for cryptographic applications have been the subject of adversarial attacks. These attacks exploit environmental information to predict generated random numbers that are supposed to be truly random and unpredictable. Though quantum random number generators (QRNGs) are based on the intrinsic indeterministic nature of quantum properties, the presence of classical noise in the measurement process compromises the integrity of a QRNG. In this paper, we develop a predictive machine learning (ML) analysis to investigate the impact of deterministic classical noise in different stages of an optical continuous variable QRNG. Our ML model successfully detects inherent correlations when the deterministic noise sources are prominent. After appropriate filtering and randomness extraction processes are introduced, our QRNG system, in turn, demonstrates its robustness against ML. We further demonstrate the robustness of our ML approach by applying it to uniformly distributed random numbers from the QRNG and a congruential RNG. Hence, our result shows that ML has potentials in benchmarking the quality of RNG devices.

arXiv:1905.02342•IEEE Transactions on Information Forensics and Security•Jun 26, 2018•66 citations

Transformer Models as an Efficient Replacement for Statistical Test Suites to Evaluate the Quality of Random Numbers

Rishabh Goel, YiZi Xiao, Ramin Ramezani

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.

arXiv:2405.03904•International Symposium on Networks, Computers and Communications (ISNCC)•Oct 22, 2024•3 citations

Deep Learning-based Randomness Assessment of Quantum Random Number Generators

Hamid Tebyanian

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.

•Jan 6, 2025•0 citations

Machine Learning Validation of a Physical Prime Random Number Generator

Maurício Jonas Ferreira, Nuno A. Silva, Armando N. Pinto +1 more

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.

IEEE Transactions on Information Forensics and Security•Jan 1, 2026•0 citations

Deep Learning-Based Security Analysis of Quantum Random Numbers Generated by Imperfect Devices

Jian Cao, Minghui Zhang, Weiqi Liu +2 more

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.

IEEE Transactions on Information Forensics and Security•Jan 1, 2024•4 citations
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.
Abstract Random numbers are critical to information security. Quantum random numbers are theoretically truly random and unpredictable. However, the measurement process of a quantum random number generator (QRNG) can be affected by environmental disturbances that compromise the integrity of the generated random numbers. A machine learning model is proposed to assess the stochasticity of the continuous variable QRNG under the influence of vacuum noise. The model is designed to detect the correlation between the randomness of the QRNG being corrupted under the influence of classical noise (electrical noise). In addition, our model detects a decrease in the randomness of the QRNG random numbers when the electrical noise intensity increases to a certain correlation. The results show that machine learning (ML) can be used as a measure of the quality of QRNG.
Random number generators (RNGs) that are crucial for cryptographic applications have been the subject of adversarial attacks. These attacks exploit environmental information to predict generated random numbers that are supposed to be truly random and unpredictable. Though quantum random number generators (QRNGs) are based on the intrinsic indeterministic nature of quantum properties, the presence of classical noise in the measurement process compromises the integrity of a QRNG. In this paper, we develop a predictive machine learning (ML) analysis to investigate the impact of deterministic classical noise in different stages of an optical continuous variable QRNG. Our ML model successfully detects inherent correlations when the deterministic noise sources are prominent. After appropriate filtering and randomness extraction processes are introduced, our QRNG system, in turn, demonstrates its robustness against ML. We further demonstrate the robustness of our ML approach by applying it to uniformly distributed random numbers from the QRNG and a congruential RNG. Hence, our result shows that ML has potentials in benchmarking the quality of RNG devices.
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.
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.
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.
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.