paddle_quantum.data_analysis.rand_num
- paddle_quantum.data_analysis.rand_num.random_number_generation(bit_len, backend='local_baidu_sim2', token=None, extract=False, security=1e-08, min_entr_1=0.9, min_entr_2=0.9, log_path=None)
- An encapsuled method of the random number generation,
referring to the paper https://arxiv.org/abs/1311.5322.
- Parameters:
bit_len (int) – the count of numbers you needed
backend (str) – the physical processor, including ‘local_baidu_sim2’, ‘cloud_baidu_sim2_water’, ‘cloud_baidu_sim2_earth’, ‘cloud_baidu_sim2_thunder’, ‘cloud_baidu_sim2_heaven’, ‘cloud_baidu_sim2_wind’, ‘cloud_baidu_sim2_lake’, ‘cloud_aer_at_bd’, ‘cloud_baidu_qpu_qian’, ‘cloud_iopcas’, ‘cloud_ionapm’, ‘service_ubqc’.
token (str | None) – user’s token for cloud service
extract (bool) – whether to use extractor for post-process
security (float) – security parameters
min_entr_1 (float) – the min-entropy of hardware 1
min_entr_2 (float) – the min-entropy of hardware 2
log_path (str | None) – the save path of log file