Random number generator based on simple measurement device and security quantification method
By using phase-insensitive detectors and analog-to-digital converters, the random number generator structure is simplified, the problems of random number generation rates and conditions in the prior art are solved, and efficient and safe random number generation is achieved.
Patent Information
- Application Number
- CN202411283844.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-01
AI Technical Summary
Existing source-independent quantum random number generators have problems with limited random number generation rates and strict operating conditions. Discrete variable schemes are limited by the dead time of single-photon detectors. Continuous variable schemes have high requirements for local resonant light phase control and are susceptible to the environment. Factors influence.
Phase-insensitive detectors, such as photodetectors, detect the instantaneous light intensity of unknown quantum states, and convert the voltage analog signal into a random number string through an analog-to-digital converter to simplify the random number generator structure and improve the generation rate. Security is ensured by calculating the randomness of finite-dimensional quantum states upper and lower bounds.
It effectively improves the random number generation rate, simplifies the random number generator structure, strictly gives the security in infinite-dimensional quantum states, avoids the photon number truncation assumption, and reduces the dependence on environmental factors.
Smart Images

Figure CN118885153A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of quantum information, in particular to the field of quantum cryptography, and more particularly to a random number generator based on a simple measuring device and a security quantification method. Background Art
[0002] Source-independent quantum random number generator is a semi-device-independent quantum random number generator that can generate secure random numbers when the source is untrusted. Semi-device-independent quantum random number generator is a solution between fully trusted device quantum random number generator and device-independent quantum random number generator, which achieves a balance between device security level and random number generation rate. At present, the implementation of source-independent quantum random number generator is mainly divided into two schemes: discrete variable and continuous variable. In the discrete variable scheme, quantum state information is encoded in the phase or polarization degree of freedom of single photon or weak coherent light. The measurement device adopts single photon detection and randomly selects a pair of conjugated measurement basis vectors for observation, such as Pauli X and Z measurement. At this time, the randomness of the measurement result under a certain measurement basis vector can be obtained through the uncertainty relationship of entropy. Another scheme is the continuous variable scheme, in which the measurement device adopts balanced homodyne detection or conjugate balanced homodyne detection. In the balanced homodyne detection scheme, the measurement of the two orthogonal components Q and P is randomly switched, and the lower bound of randomness is also given by the uncertainty of entropy.
[0003] The main disadvantage of existing discrete variable source-independent quantum random number generators is that the sampling rate is limited by the dead time of the single-photon detector, so the random number generation rate is also limited by the sampling rate. Dead time refers to the period of time after a single-photon detector responds and will not respond again. Existing continuous variable source-independent quantum random number generators use balanced homodyne detection or conjugate balanced homodyne detection schemes. Although the detectors used in the two detection schemes are photoelectric detectors without dead time restrictions, they require precise control of the phase of the local resonant light, which makes the experiment more difficult. Phase modulation itself is also easily affected by environmental factors such as temperature and magnetic field. Even the conjugate balanced homodyne detection scheme requires two balanced homodyne detectors to be connected, which is equivalent to performing two balanced homodyne detections at the same time, and the equipment is more complicated.
[0004] In summary, the problems of existing source-independent quantum random number generators include: 1. The random number generation rate is limited. The single-photon detectors used in current discrete variable source-independent quantum random number generators have an inherent dead time problem. This feature limits the response speed of the detector, which directly affects the random number generation rate. 2. Harsh operating conditions. Current continuous variable source-independent quantum random number generators have high requirements for the phase control of local resonant light, but the phase modulation itself is also easily affected by environmental factors such as temperature and magnetic field.
[0005] It should be noted that this background technology is only used to introduce the relevant information of the present invention to help understand the technical solution of the present invention, but it does not mean that the relevant information is necessarily the prior art. If there is no evidence that the relevant information has been disclosed before the application date of the present invention, the relevant information shall not be regarded as the prior art. Summary of the invention
[0006] Therefore, the object of the present invention is to overcome the defects of the prior art and provide a random number generator based on a simple measurement device and a security quantification method.
[0007] The objective of the present invention is achieved through the following technical solutions:
[0008] According to a first aspect of the present invention, a random number generator based on a simple measuring device is proposed to generate random numbers, and the random number generator includes: an untrusted light source, used to generate an unknown quantum state; a detection module, used to detect the quantum state generated by the untrusted light source using a phase-insensitive detector to obtain the instantaneous light intensity of the quantum state and convert it into a corresponding voltage analog signal; an analog-to-digital conversion module, used to convert the voltage analog signal into a corresponding voltage using an analog-to-digital converter with a preset resolution and confirm the voltage interval to which the voltage belongs, wherein each preset voltage interval is configured with a random number string; a random number generation module, used to obtain the random number string configured on the voltage interval to which the voltage converted from the instantaneous light intensity of the quantum state generated by the untrusted light source belongs to generate a random number.
[0009] Preferably, the phase-insensitive detector is a photodetector or a single-photon detector.
[0010] Preferably, the detection module is configured to: detect the quantum state generated by the untrusted light source multiple times in advance to determine the range of the voltage analog signal corresponding to the instantaneous light intensity range of the quantum state; the analog-to-digital conversion module is configured to: convert the range of the voltage analog signal determined by the detection module into a voltage range and divide the voltage range into multiple discrete voltage intervals based on the preset resolution of the analog-to-digital converter, and configure a unique random number string in a preset random number string set for each voltage interval, wherein the number of voltage intervals is 2m and m is the preset resolution of the analog-to-digital conversion module.
[0011] According to a second aspect of the present invention, the present invention proposes a method for quantifying the security of a random number generator as described in any one of the first aspects of the present invention, for obtaining an upper bound and a lower bound of randomness of a random number generated by the random number generator to quantify the security of the random number generator, the method comprising: step S1, using the random number generator to generate a plurality of random numbers, statistically generating a probability of each random number, and using this probability as a test hit probability of a voltage interval corresponding to the random number; step S2, configuring a guess probability upper bound calculation function based on a cutoff number, the guess probability upper bound calculation function comprising an independent variable, the independent variable being a function of a plurality of density moments. A density matrix group is formed by an array, wherein the number of density matrices contained in the density matrix group is consistent with the number of voltage intervals in the random number generator, and the dimension of each density matrix is consistent with the numerical value of the truncation number; step S3, under the condition of satisfying all preset constraints, adjusting the numerical values of all elements in each density matrix in the density matrix group to obtain multiple density matrix groups containing different density matrices, using the guess probability upper bound calculation function to determine the guess probability upper bound corresponding to each density matrix group and taking the maximum value thereof as the randomness upper bound; step S4, determining the randomness lower bound according to the preset method based on the obtained randomness upper bound.
[0012] Preferably, the upper bound calculation function of the guess probability is:
[0013]
[0014] Where N is the cutoff number, j is the number of photons, n is the number of voltage intervals, and ρ k,N is an N-order matrix, which represents the k-th density matrix in the density matrix group, S N represents the projection of the original feasible domain of the quantum state on the subspace with a photon number not greater than N, M (k) The infinite-dimensional matrix representation of the generalized measurement element corresponding to the k-th voltage interval in the photon number representation, M (k),N Indicates M (k) The result of N-dimensional truncation is: It indicates the theoretical hit probability that the voltage converted by the detected instantaneous light intensity belongs to the kth voltage interval when the input photon number state is |j>, It represents the upper bound of the guess probability in the part of the subspace where the number of photons is greater than N.
[0015] Preferably, the cutoff number is determined by: using a phase-insensitive detector to repeatedly detect the quantum state generated by the unreliable light source in the random number generator to obtain multiple instantaneous light intensities, calculating the average value of these instantaneous light intensities, and selecting a value that is at least one order of magnitude higher than the average value as the cutoff number.
[0016] Preferably, in step S3, the preset constraint conditions include: a first constraint condition, which is that the theoretical hit probability of each voltage interval in the random number generator calculated based on the density matrix and the test hit probability of the voltage interval satisfy the following relationship:
[0017]
[0018] Where k is the number of the voltage interval, N is the cutoff number, n is the number of voltage intervals, and p is the k represents the test hit probability of the kth voltage interval in the random number generator, j represents the number of photons, and ρ l,N is an N-order matrix, which represents the l-th density matrix in the density matrix group, Indicates M (k),N The jth element on the diagonal of represents the theoretical hit probability of the kth voltage interval in the subspace with photon number greater than N, It represents the theoretical hit probability of the kth voltage interval in the subspace where the number of photons is less than or equal to N; the second constraint condition is that any density matrix is a semi-positive definite matrix; the third constraint condition is that the trace of the matrix obtained by summing all density matrices in the density matrix group is less than or equal to 1.
[0019] Preferably, in step S4, the preset method is configured as follows:
[0020] H min = -log2P *
[0021] Among them, H min represents the lower bound of randomness, p * Represents an upper bound on randomness.
[0022] According to a third aspect of the present invention, the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program can be executed by a processor to implement the steps of any one of the methods described in the second aspect of the present invention.
[0023] According to a fourth aspect of the present invention, the present invention proposes an electronic device, comprising: one or more processors; and a memory, wherein the memory is used to store executable instructions; the one or more processors are configured to implement the steps of any one of the methods described in the second aspect by executing the executable instructions.
[0024] Compared with the prior art, the advantages of the present invention are:
[0025] The present invention adopts a phase-insensitive detector (photodetector, linear mode single photon detector, etc.) to detect the instantaneous light intensity of an unknown quantum state and uses it as a random source. Compared with other schemes, the random number generator is simplified and the random number generation rate is effectively improved. On the other hand, when analyzing the security of the random number generator, the properties of the diagonal matrix are used to calculate the upper bound and lower bound of the randomness of the finite-dimensional quantum state to estimate the upper bound and lower bound of the randomness of the infinite-dimensional quantum state. The security of the random number generator in the infinite-dimensional quantum state can be strictly given, avoiding the photon number truncation hypothesis. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The embodiments of the present invention are further described below with reference to the accompanying drawings, in which:
[0027] Figure 1 is a structural diagram of a random number generator based on a simple measuring device according to an embodiment of the present invention;
[0028] Figure 2 4 is a flow chart of a randomness quantization method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail by specific embodiments below. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0030] As mentioned in the background technology section, the existing problems of source-independent quantum random number generators include: 1. The random number generation rate is limited. The single-photon detector used in the current discrete variable source-independent quantum random number generator has an inherent dead time problem. This feature limits the response speed of the detector, which directly affects the random number generation rate. 2. Harsh operating conditions. The current continuous variable source-independent quantum random number generator has high requirements for the phase control of the local resonant light, but the phase modulation itself is also easily affected by environmental factors such as temperature and magnetic field.
[0031] In order to solve the above problems, the present invention proposes a new random number generator to generate random numbers. The random number generator adopts a phase-insensitive detector (including a photodetector and a linear mode single photon detector) to detect the instantaneous light intensity of an unknown quantum state and uses it as a random source. Compared with other schemes, the random number generator is simplified and the efficiency of random number generation is effectively improved. When analyzing the security of the random number generator, the properties of the diagonal matrix are used to calculate the upper bound and lower bound of the randomness of the finite-dimensional quantum state to estimate the upper bound and lower bound of the randomness of the infinite-dimensional quantum state. The security of the random number generator in the infinite-dimensional quantum state can be strictly given, avoiding the photon number truncation assumption.
[0032] In summary, the present invention proposes a random number generator based on a simple measuring device for generating random numbers, such as Figure 1 As shown, the random number generator of the present invention includes an untrusted light source, a detection module, an analog-to-digital conversion module, and a random number generation module, wherein the untrusted light source is used to generate an unknown quantum state; the detection module is used to use a phase-insensitive detector to detect the quantum state generated by the untrusted light source to obtain the instantaneous light intensity of the quantum state and convert it into a corresponding voltage analog signal; the analog-to-digital conversion module is used to use an analog-to-digital converter with a preset resolution to convert the voltage analog signal into a corresponding voltage and confirm the voltage interval to which the voltage belongs, wherein each preset voltage interval is configured with a random number string; the random number generation module is used to obtain the random number string configured on the voltage interval to which the voltage converted from the instantaneous light intensity of the quantum state generated by the untrusted light source belongs to generate a random number.
[0033] In view of the problem that the existing random number generator has a complex structure and the detection speed is limited by the detection device, the present invention uses a phase-insensitive detector to detect the light intensity information of the unknown quantum and uses it as a random source, which simplifies the structure of the random number generator and effectively improves the random number generation rate. In view of the problem that the existing security quantification method of the random number generator needs to find a pair of conjugate measurement basis vectors for measurement, and then use the uncertainty relationship of entropy to give the lower bound of randomness, the present invention uses the properties of the diagonal matrix to calculate the upper bound and lower bound of randomness of the finite-dimensional quantum state to estimate the upper bound and lower bound of randomness of the infinite-dimensional quantum state, which can strictly give the security of the random number generator in the infinite-dimensional quantum state and avoid the photon number truncation hypothesis.
[0034] In order to better understand the present invention, each module is described in detail below in conjunction with specific embodiments.
[0035] 1. Unreliable light source
[0036] According to one embodiment of the present invention, the unknown quantum state generated by the untrusted light source is a superposition state of multiple quanta. This quantum superposition effect significantly increases the uncertainty of the measurement process, thereby providing a rich source for random number generation. The quantum state will not change during the operation of the random number generator, but due to the unpredictability and randomness of the quantum state, the light intensity generated at each moment is random.
[0037] 2. Detection module
[0038] According to one embodiment of the present invention, the detector used in the detection module is a phase-insensitive detector, which is a simple photodetector or a linear mode single photon detector or other phase-insensitive detector. The phase-insensitive detector can only capture the intensity information (light intensity information) of the quantum signal, and any change in the global phase information of the quantum state will not affect the detection result of the detector. If a simple photodetector is used in the detection module, the problem of the inherent time characteristics of the photon detector limiting the random number generation rate can be avoided, and the efficiency of the random number generator can be effectively improved.
[0039] According to one embodiment of the present invention, in the detection module, the unknown quantum state generated by the unreliable light source is continuously detected by the detector to continuously obtain the voltage analog signal value corresponding to the instantaneous light intensity of the quantum state, and the randomness of the instantaneous light intensity generated by the quantum state is used as the random source of the random number generator, so that the converted voltage analog signal value also has the same randomness.
[0040] According to one embodiment of the present invention, the detection module is also used to predetermine the range of the voltage analog signal quantity in the following manner: pre-detect the unknown quantum state generated by the unreliable light source multiple times, obtain the light intensity range that can be generated by the quantum state, and convert the light intensity range into a corresponding voltage analog signal quantity range to determine the voltage analog signal quantity range output by the detection module after detecting the quantum state.
[0041] 3. Analog-to-digital conversion module
[0042] According to one embodiment of the present invention, an analog-to-digital converter with a resolution of m is provided in the analog-to-digital conversion module. The resolution refers to the ability of the analog-to-digital converter to distinguish the minimum analog signal change, which is usually expressed in bits. For example, a 12-bit analog-to-digital converter can provide 2 12 (i.e. 4096) different output levels. Higher resolution means higher signal differentiation capability.
[0043] According to an embodiment of the present invention, the analog-to-digital conversion module is used to convert the analog voltage signal quantity converted by the detection module into a voltage value, and the voltage value is a digital quantity. The analog-to-digital conversion module is configured to: convert the range of the voltage analog signal quantity determined by the detection module into a voltage range and divide the voltage range into multiple discrete voltage intervals based on the preset resolution of the analog-to-digital converter, and configure a unique random number string in a preset random number string set for each voltage interval, wherein the number of voltage intervals is 2 m and m is the preset resolution of the analog-to-digital conversion module.
[0044] According to one embodiment of the present invention, the resolution m of the digital-to-analog converter needs to be determined according to the number of random number strings in the random number string set, which satisfies 2 m It should be understood that the digital-to-analog converter in the present invention can be a digital-to-analog converter with adjustable resolution or a digital-to-analog converter with non-adjustable resolution. When a digital-to-analog converter with adjustable resolution is selected, the resolution of the digital-to-analog converter is set according to the number of random number strings. When a digital-to-analog converter with non-adjustable resolution is selected, a digital-to-analog converter with a corresponding resolution is selected according to the number of random number strings.
[0045] According to an embodiment of the present invention, the random number string set is a set including multiple different random number strings, and the random number string can be an m-bit binary number or other types of data. The random number string configured for each voltage interval in the present invention is unique, and the form of the data is not limited. In order to more clearly explain how to select the resolution of the analog-to-digital converter and how to configure the random number string corresponding to each voltage interval, the following will be described in detail with examples.
[0046] Example 1
[0047] If the random number string set contains 2 in the range of 000 to 111 3 binary number strings, then the resolution of the analog-to-digital converter is configured to be 3, the random number string corresponding to each voltage interval is a binary number string in the random number string set, and the binary number string corresponding to each voltage interval is different.
[0048] Example 2
[0049] If the random number string set contains 2 in the range of 1 to 16 4 integers, then the resolution of the analog-to-digital converter is configured to be 4, the random number string corresponding to each voltage interval is an integer in the random number string set, and the integer corresponding to each voltage interval is different.
[0050] It should be understood that the random number strings configured in the voltage intervals in Example 1 and Example 2 are only two of the data types of the random number strings. The present invention does not limit the data type of the random number string, which may be an integer, a binary number, a floating point number or other data types.
[0051] 4. Random number generation module
[0052] According to one embodiment of the present invention, in the random number generation module, a random number string configured for a voltage interval to which a voltage corresponding to an instantaneous light intensity of a quantum state generated by an untrusted light source determined in an analog-to-digital conversion module belongs is output to generate a random number.
[0053] According to one embodiment of the present invention, a method for quantifying the security of the random number generator proposed by the present invention is proposed, which is used to obtain the upper bound and the lower bound of randomness of the random number generated by the random number generator to quantify the security of the random number generator. The process of the method is as follows: Figure 2 As shown, the steps shown in the figure include: step S1, using the random number generator to generate multiple random number strings, statistically generating the probability of each random number string, and using this probability as the test hit probability of the voltage interval corresponding to the random number string; step S2, obtaining a truncation number and configuring a guessing probability upper bound calculation function based on it, the guessing probability upper bound calculation function includes an independent variable, which is a density matrix group composed of multiple density matrices, wherein the number of density matrices contained in the density matrix group is consistent with the number of voltage intervals in the random number generator, and the dimension of each density matrix is consistent with the numerical value of the truncation number; step S3, under the condition of satisfying all preset constraints, adjusting the values of all elements in each density matrix in the density matrix group to obtain multiple density matrix groups containing different density matrices, using the guessing probability upper bound calculation function to determine the guessing probability upper bound corresponding to each density matrix group and taking the maximum value thereof as the randomness upper bound; step S4, determining the randomness lower bound according to the preset method based on the obtained randomness upper bound.
[0054] According to an embodiment of the present invention, the higher the probability that the random number generated by the random number generator can be predicted, the lower the security of the random number generator. The security of a random number generator is generally measured by the upper bound and lower bound of randomness of the random number generated by the random number generator, wherein the upper bound of randomness is the maximum limit of randomness that a random number generator can provide, and the lower bound of randomness is the minimum limit of randomness that a random number generator can provide. The existing method for obtaining the upper bound and the lower bound of randomness is limited to finding a pair of conjugate measurement basis vectors for measurement, and then using the uncertainty relationship of entropy to give the lower bound and the upper bound of randomness. The present invention determines the upper bound and the lower bound of randomness of the random number generator by calculating the maximum guessing probability of the quantum state generated by the unreliable light source. However, the calculation of the maximum guessing probability involves the parameters of the quantum state in infinite dimensional space. Since the prior art cannot measure the parameters in infinite dimensional space, the present invention estimates the upper bound of the guessing probability by calculating the guessing probability in finite dimensions, and obtains the upper bound and the lower bound of randomness of the random number generated by the random number generator based on the upper bound of the guessing probability to quantify the security of the random number generator.
[0055] According to one embodiment of the present invention, in step S1, the random number generator is used to obtain multiple random number strings, the number of occurrences of each random number string is divided by the number of random number strings obtained to obtain the probability of the random number generator generating each random number string, and the probability of each random number string is used as the test hit probability of the voltage range corresponding to the random number string in the random number generator.
[0056] According to one embodiment of the present invention, in step S2, a phase-insensitive detector is used to repeatedly detect the quantum state generated by the unreliable light source in the random number generator to obtain multiple instantaneous light intensities, and the average value of these instantaneous light intensities is calculated, and any one of all values that are at least one order of magnitude higher than the average value is selected as a cutoff number.
[0057] In step S2, the present invention converts the problem of calculating the maximum guess probability of the quantum state into the problem of calculating the upper bound of the guess probability of the quantum state, wherein, when calculating the upper bound of the guess probability, the properties of the diagonal matrix are used to calculate the upper bound of the guess probability of the quantum state in the finite dimensional space to estimate the upper bound of the guess probability of the quantum state in the infinite dimensional space. The relationship between the maximum guess probability of the quantum state and the upper bound of the guess probability of the quantum state in the finite dimensional space is as follows:
[0058]
[0059] in, The calculation function that represents the maximum guess probability of an infinite-dimensional quantum state. The calculation result of this function is the maximum guess probability of the quantum state in infinite-dimensional space. The function is used to calculate the upper bound of the guess probability. The function estimates the upper bound of the guess probability through a finite-dimensional quantum state, where represents the upper bound of the guess probability in the subspace where the number of photons is greater than N, where N represents the cutoff number, j represents the number of photons, n represents the number of voltage intervals, and ρ k,N is an N-order matrix, which represents the k-th density matrix in the density matrix group, S N represents the projection of the original feasible domain of the quantum state on the subspace with a photon number not greater than N, M (k) The infinite-dimensional matrix representation of the generalized measurement element corresponding to the k-th voltage interval in the photon number representation, M (k),N Indicates M (k) The result of N-dimensional truncation is: It indicates the theoretical hit probability that the voltage converted from the detected instantaneous light intensity belongs to the kth voltage interval when the input photon number state is |j>.
[0060] According to one embodiment of the present invention, in step S3, the elements in each density matrix in the density matrix group are randomly changed under the conditions of satisfying all preset constraints to obtain multiple density matrix groups containing different density matrices to simulate all situations of the density matrix of the quantum state, and then the guess probability calculation function is used to determine the guess probability corresponding to each density matrix group and the maximum value thereof is used as the upper bound of randomness.
[0061] According to an embodiment of the present invention, the preset constraint conditions include:
[0062] First constraint condition: The theoretical hit probability of each voltage interval in the random number generator calculated based on the density matrix and the test hit probability of the voltage interval satisfy the following inequality constraint relationship, wherein the theoretical hit probability and the test hit probability of each voltage interval calculated based on the density matrix should actually be equal, but the theoretical hit probability is the result of the calculation after the N-dimensional truncation of the quantum state, then the theoretical hit probability and the test hit probability of each voltage interval satisfy the following inequality constraint:
[0063]
[0064] Where k is the number of the voltage interval, N is the cutoff number, n is the number of voltage intervals, and p is the k represents the test hit probability of the kth voltage interval in the random number generator, j represents the number of photons, and ρ l,N is an N-order matrix, which represents the l-th density matrix in the density matrix group, Indicates M (k),N The jth element on the diagonal of represents the theoretical hit probability of the kth voltage difference interval in the subspace with photon number greater than N, It represents the theoretical hit probability of the kth voltage difference interval in the subspace where the number of photons is less than or equal to N.
[0065] The second constraint condition is that the arbitrary density matrix is a semi-positive definite matrix, that is, the eigenvalue of the arbitrary density matrix is non-negative. The second preset condition is configured as follows:
[0066]
[0067] Among them, ρ k,N represents the N-dimensional density matrix corresponding to the k-th voltage interval in the random number generator, and λi represents the i-th eigenvalue of the matrix.
[0068] The third constraint condition is that the trace of the matrix obtained by summing all density matrices in the density matrix group is less than or equal to 1. The third preset condition is configured as:
[0069]
[0070] Where n represents the number of voltage intervals in the random number generator, ρ k,N is an N-order matrix, which represents the kth density matrix in the density matrix group.
[0071] According to one embodiment of the present invention, in step S3, an optimization algorithm is used to adjust the values of all elements in each density matrix in the density matrix group, wherein the optimization algorithm includes but is not limited to the interior point method and the Frank-Wolfe algorithm. The selection of such algorithms can solve convex optimization problems and is conducive to finding the global optimal solution.
[0072] According to one embodiment of the present invention, the elements in the density matrix are changed under preset constraints to obtain multiple density matrix groups containing different density matrices, and the upper bounds of the guess probabilities corresponding to these density matrix groups are calculated. The present invention selects the maximum value therein as the upper bound of the randomness of the random number generator. The maximum value is selected to conservatively estimate the security of the system, which can provide stronger security protection for the system.
[0073] According to one embodiment of the present invention, in step S4, the preset method is to obtain the lower bound of randomness by taking the negative logarithm of the upper bound of randomness, and the preset method is configured as follows:
[0074] H min = -log2p *
[0075] Among them, H min represents the lower bound of randomness, p * Represents an upper bound on randomness.
[0076] It should be understood that the solution process of step S3 and step S4 can be calculated by a toolbox in scientific computing software such as Matlab, and the present invention does not limit the computing tool used.
[0077] According to one embodiment of the present invention, the security quantification method of the above-mentioned random number generator quantifies the security of the random number generator by obtaining the upper bound and lower bound of the randomness of the random number generator, and can strictly give the upper bound of the maximum guessing probability of the infinite-dimensional quantum state (upper bound of randomness) and the lower bound of the randomness of the infinite-dimensional unreliable quantum source, avoiding the photon number truncation hypothesis. At the same time, it can avoid the uncertainty relationship of entropy, and there is no need to find a pair of conjugate measurements, thereby simplifying the random number generator.
[0078] It should be noted that although the above describes the various steps in a specific order, it does not mean that the various steps must be executed in the above specific order. In fact, some of these steps can be executed concurrently or even in a different order as long as the required functions can be achieved.
[0079] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0080] Computer readable storage medium can be a tangible device that holds and stores instructions used by an instruction execution device. Computer readable storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.
[0081] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A random number generator based on a simple measuring device for generating random numbers, characterized in that: The random number generator comprises: Untrusted light source, used to generate an unknown quantum state; A detection module, used to detect the quantum state generated by the untrusted light source using a phase-insensitive detector to obtain the instantaneous light intensity of the quantum state and convert it into a corresponding voltage analog signal; An analog-to-digital conversion module, used to convert the voltage analog signal into a corresponding voltage using an analog-to-digital converter with a preset resolution and confirm the voltage interval to which the voltage belongs, wherein each voltage interval is configured with a random number string; The random number generation module is used to obtain a random number string configured on a voltage interval to which a voltage converted from the instantaneous light intensity of the quantum state generated by the untrusted light source belongs to, so as to generate a random number.
2. The random number generator according to claim 1, characterized in that The phase-insensitive detector is a photodetector or a single-photon detector.
3. The random number generator according to claim 1, characterized in that The detection module is configured to: detect the quantum state generated by the untrustworthy light source multiple times in advance to determine the range of the voltage analog signal quantity corresponding to the instantaneous light intensity range of the quantum state; The analog-to-digital conversion module is configured to: convert the range of the voltage analog signal determined by the detection module into a voltage range and evenly divide the voltage range into a plurality of discrete voltage intervals based on the preset resolution of the analog-to-digital converter, and configure a unique random number string in a preset random number string set for each voltage interval, wherein the number of voltage intervals is 2 m and m is the preset resolution of the analog-to-digital conversion module.
4. A method for quantifying the security of a random number generator as claimed in any one of claims 1 to 3, for obtaining an upper bound and a lower bound of randomness of a random number generated by the random number generator to quantify the security of the random number generator, characterized in that: The method comprises: Step S1, using the random number generator to generate multiple random numbers, statistically generate the probability of each random number, and use the probability as the test hit probability of the voltage range corresponding to the random number; Step S2, configuring a guess probability upper bound calculation function based on the cutoff number, wherein the guess probability upper bound calculation function includes an independent variable, which is a density matrix group composed of a plurality of density matrices, wherein the number of density matrices included in the density matrix group is consistent with the number of voltage intervals in the random number generator, and the dimension of each density matrix is consistent with the numerical value of the cutoff number; Step S3, when all preset constraints are met, adjust the values of all elements in each density matrix in the density matrix group to obtain multiple density matrix groups containing different density matrices, use the guess probability upper bound calculation function to determine the guess probability upper bound corresponding to each density matrix group and obtain the maximum value therein as the randomness upper bound; Step S4: Determine the randomness lower bound according to a preset method based on the obtained randomness upper bound.
5. The method according to claim 4, characterized in that The upper bound calculation function of the guess probability is: Where N is the cutoff number, j is the number of photons, n is the number of voltage intervals, and ρ k,N is an N-order matrix, which represents the k-th density matrix in the density matrix group, S N represents the projection of the original feasible domain of the quantum state on the subspace with a photon number not greater than N, M (k) The infinite-dimensional matrix representation of the generalized measurement element corresponding to the k-th voltage interval in the photon number representation, M (k),N Indicates M (k) The result of N-dimensional truncation is: It indicates the theoretical hit probability that the voltage converted by the detected instantaneous light intensity belongs to the kth voltage interval when the input photon number state is |j>, It represents the upper bound of the guess probability in the part of the subspace where the number of photons is greater than N.
6. The method according to claim 4, characterized in that The cutoff number is obtained by: A phase-insensitive detector is used to repeatedly detect the quantum state generated by the unreliable light source in the random number generator to obtain multiple instantaneous light intensities, and the average value of these instantaneous light intensities is calculated, and any one of all values that are at least one order of magnitude higher than the average value is selected as the cutoff number.
7. The method according to claim 4, characterized in that In step S3, the preset constraint conditions include: The first constraint condition is that the theoretical hit probability of each voltage interval in the random number generator calculated based on the density matrix and the test hit probability of the voltage interval satisfy the following relationship: Where k is the number of the voltage interval, N is the cutoff number, n is the number of voltage intervals, and p is the k represents the test hit probability of the kth voltage interval in the random number generator, j represents the number of photons, and ρ l,N is an N-order matrix, which represents the l-th density matrix in the density matrix group, Indicates M (k),N The jth element on the diagonal of represents the theoretical hit probability of the kth voltage interval in the subspace with photon number greater than N, represents the theoretical hit probability of the kth voltage interval in the subspace with photon number less than or equal to N; The second constraint is that the arbitrary density matrix is a semi-positive definite matrix; The third constraint condition is that the trace of the matrix obtained by summing all density matrices in the density matrix group is less than or equal to 1.
8. The method according to claim 4, characterized in that In step S4, the preset method is configured as follows: H min =-log2p * Among them, H min represents the lower bound of randomness, p * Represents an upper bound on randomness.
9. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of the method according to any one of claims 4 to 8.
10. An electronic device, characterized in that: include: one or more processors; as well as A memory, wherein the memory is used to store executable instructions; The one or more processors are configured to implement the steps of the method of any one of claims 4 to 8 by executing the executable instructions.
Citation Information
Cited By
Shadow chromatography method for continuous variable optical system
CN121279473A
A shadow tomography method for continuous variable optical systems
CN121279473B
