Quantum random number generator and key generation method based on physical particle spin state
Through a quantum random number generator based on the spin state of physical particles, using trapped ion system and laser technology, the problem of transmission loss and noise of the photon quantum random number generator is solved, and random number generation with low loss, high noise and controllability is achieved. , suitable for high security applications.
Patent Information
- Application Number
- CN202410778615.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-17
AI Technical Summary
Existing photon-based quantum random number generators have loss and noise problems during the transmission process, which limits their application scope, and the random numbers generated are not suitable for high security requirements.
A quantum random number generator based on the spin state of physical particles is used, and the trapped ion system and lasers of different frequency bands are used for cooling, encoding and measurement. The quantum state of 40Ca+ ions is realized through ion traps and permanent magnets in the vacuum chamber. Manipulate and measure to generate completely random quantum random numbers and use them for key generation.
It achieves random number generation with low loss and high noise controllability, ensuring the performance and security of random numbers, and is suitable for high-security application scenarios.
Smart Images

Figure CN118363564B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data security technology and quantum technology, and in particular to a quantum random number generator based on the spin state of physical particles, and also to a method for generating keys based on random numbers generated by the quantum random number generator. Background Art
[0002] Random numbers are widely used in cryptography, simulation and modeling, games and entertainment, data encryption and secure communications, finance and market analysis, artificial intelligence and machine learning. Although pseudo-random numbers generated based on deterministic algorithms or classical physical processes appear random, they are actually predictable, so they are not suitable for application scenarios that require high security. Quantum random number generators use quantum phenomena, such as the random collapse of quantum states, quantum entanglement, and the Heisenberg uncertainty principle, to generate truly random sequences whose randomness is inherent and unpredictable.
[0003] For the currently widely used photon-based quantum random number generator, due to the error in single photon generation and the noise in the laser and circuit it uses, a certain amount of classical noise will inevitably be generated after the original random sequence is detected and sampled. Therefore, it is necessary to post-process the original data to remove classical noise and system deviations. The photon-based quantum random number generator will also have considerable losses during the transmission process and will be limited by the transmission distance.
[0004] In the present invention, the quantum random number is generated based on the spin state of the real particle. Taking the trapped ion system as an example, 40 Ca + The ions are stably trapped in a linear ion trap, and lasers of different frequency bands are used to cool, encode, manipulate, and measure the ions. Based on the unique properties of quantum measurement, completely random measurement results, namely quantum random numbers, are obtained, and key distribution is achieved. Summary of the invention
[0005] The purpose of the present invention is to address some problems in the prior art, provide a quantum random number generator based on the spin state of real particles, and also provide a method for generating keys using random numbers generated by the quantum random number generator based on the spin state of real particles, so as to facilitate application in real life.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] A quantum random number generator based on the spin state of real particles includes a vacuum chamber, an ion trap installed in the vacuum chamber, a first permanent magnet and a second permanent magnet placed on both sides of the vacuum chamber, and a photon number detector.
[0008] The ionization laser enters the ion trap from the first CF63 window of the vacuum chamber, the cooling light enters the ion trap from the first CF35 window of the vacuum chamber, the state preparation light enters the ion trap from the second CF35 window of the vacuum chamber, and the state manipulation light enters the ion trap from the third CF35 window of the vacuum chamber. Photons pass through the second CF63 window of the vacuum chamber to reach the photosensitive area of the photon number detector.
[0009] As described above, the first permanent magnet and the second permanent magnet each include a plurality of columnar samarium-cobalt magnets, which are arranged in a circle and evenly placed in a copper frame for fixing the samarium-cobalt magnets.
[0010] The method for generating a key based on a random number generated by a quantum random number generator comprises the following steps:
[0011] Step 1: Load a calcium metal source below the ion trap in a vacuum chamber, heat the calcium metal source, and pass an ionization laser into the ion trap from the first CF63 window of the vacuum chamber to generate 40 Ca + Ions are loaded into the ion trap;
[0012] Step 2: Cooling light is introduced from the first CF35 window of the vacuum chamber into the ion trap, so that 40 Ca + The ions are cooled to their vibrational ground state;
[0013] Step 3: Put the quantum bit into the state and Encode to and , where m f is the magnetic quantum number;
[0014] Step 4: Pass the state preparation light into the ion trap from the second CF35 window of the vacuum chamber, and pass the state control light into the ion trap from the second CF35 window G of the vacuum chamber, so that 40 Ca + Ions prepared to the maximum superposition state ;
[0015] Step 5: Pass the detection light from the first CF35 window of the vacuum chamber into the ion trap and use the photon number detector to detect 40 Ca + Ions in Still in superior;
[0016] Step 6 and Corresponding to 0 and 1 respectively, repeat steps 2-5 to obtain the original measurement results consisting of 0 and 1;
[0017] Step 7: User A generates an initial key based on the original measurement result of step 6. User A and user B determine the final key based on the initial key. User A compiles the ciphertext corresponding to the message based on the final key and sends it to user B. User B opens the ciphertext based on the final key.
[0018] In step 1, the ionization laser is introduced into the ion trap from the first CF63 window of the vacuum chamber, which includes the following steps:
[0019] The first ionization light is incident from the first CF63 window to the center of the ion trap placed in the vacuum chamber, 40 The Ca atom is excited to the 4P energy level, and the second ionization light is incident from the first CF63 window to the center of the ion trap placed in the vacuum chamber, so that 40 The Ca atom loses an electron and becomes 40 Ca + ion.
[0020] In step 2, the cooling light is introduced from the first CF35 window of the vacuum chamber to the ion trap, which includes the following steps:
[0021] The first Doppler cooling light is introduced into the ion trap from the first CF35 window of the vacuum chamber, driving 40 Ca + Ions from 4S 1 / 2 To 4P 1 / 2 transitions between energy levels;
[0022] The second Doppler cooling light is introduced into the ion trap from the first CF35 window of the vacuum chamber, 3 / 2 Energy Level 40 Ca + Ion back pump;
[0023] The second sideband cooling light is introduced from the first CF35 window of the vacuum chamber to the ion trap, driving 40 Ca + ion arrive The transition between
[0024] The first sideband cooling light is introduced from the first CF35 window of the vacuum chamber to the ion trap, driving the ions To 4P 3 / 2 Energy level transition, 40 Ca + Ions spontaneously radiate , 40 Ca + The ions cool to their vibrational ground state.
[0025] Step 4 as described above includes the following steps:
[0026] The first initial state preparation light is introduced into the ion trap from the second CF35 window of the vacuum chamber. 40 Ca + The initial state of the ion is prepared ;
[0027] The first state control light is introduced into the ion trap from the third CF35 window of the vacuum chamber. 40 Ca + Ions are prepared to the maximum superposition state .
[0028] In step 4 as described above, the first state control light is used as the pump light, and the first state control light action time is ,in, is the coupling strength.
[0029] Step 7 as described above includes the following steps:
[0030] Step 7.1: User A randomly selects each value of the initial key to correspond to the first group of orthogonal bases or the second group of orthogonal bases to generate a first orthogonal base sequence;
[0031] Step 7.2: User A converts the initial key into a corresponding quantum state according to the first orthogonal basis sequence, and sends the converted quantum state to user B;
[0032] Step 7.3: User B randomly selects each quantum state of the initial key to correspond to the first orthogonal basis or the second orthogonal basis, generates a second orthogonal basis sequence, and measures the quantum state of the received initial key according to the second orthogonal basis sequence to obtain the restored key obtained for the first time;
[0033] Step 7.4: User B sends the second orthogonal base sequence to user A. User A compares the first orthogonal base sequence with the second orthogonal base sequence. For each value of the initial key and the restored key, if the first orthogonal base sequence and the second orthogonal base sequence use the same orthogonal base, then the values are the same y; if the first orthogonal base sequence and the second orthogonal base sequence use different orthogonal bases, then the values are different n. A corresponding orthogonal base judgment sequence is generated and the orthogonal base judgment sequence is sent back to user B.
[0034] Step 7.5: User A sends the value of the initial key of the same orthogonal basis as the quantum state corresponding to the secondary transmission key to user B, so that user B can identify whether the transmission process of the secondary transmission key is eavesdropped by someone;
[0035] Step 7.6: If user B confirms that no one is eavesdropping, the remaining initial key values selected by user B with the same orthogonal basis are used as the final key. If user B confirms that someone is eavesdropping, the final key determination process is invalidated;
[0036] Step 7.7: User A compiles the ciphertext corresponding to the message based on the final key and sends it to user B, and user B opens the ciphertext based on the final key.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] 1. Realized the generation of good random numbers based on the spin of physical particles;
[0039] 2. The transmission process loss is extremely low;
[0040] 3. Noise is controllable and random number performance is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a front view of the structure of the device of the present invention;
[0042] Figure 2 It is a top view of the structure of the device of the present invention;
[0043] Figure 3 Imprisoned for the present invention 40 Ca + Schematic diagram of the energy level structure of ions;
[0044] Figure 4 For the present invention 40 Ca + Schematic diagram of the energy level structure manipulated during ion Doppler cooling;
[0045] Figure 5 For the present invention 40 Ca + Schematic diagram of the energy level structure manipulated during ion sideband cooling.
[0046] In the figure: 1-vacuum chamber; 2-first CF35 window; 3-second CF35 window; 4-photon number detector; 5-first permanent magnet; 6-second permanent magnet; 7-third CF35 window; 8-first CF63 window; 9-fourth CF35 window; 10-fifth CF35 window; 11-second CF63 window; 12-sixth CF35 window; 13-third CF63 window; 14-seventh CF35 window; 15-eighth CF35 window; 16-fourth CF63 window; 17-ion trap; 18-quantum random number storage computer. DETAILED DESCRIPTION
[0047] In order to facilitate those skilled in the art to understand and implement the present invention, the present invention is further described in detail below with reference to examples. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention and are not used to limit the present invention.
[0048] Embodiment 1:
[0049] The quantum random number generator based on the spin state of real particles includes a vacuum chamber 1, an ion trap installed in the vacuum chamber 1, a first permanent magnet 5 and a second permanent magnet 6 placed on both sides of the vacuum chamber 1, a photon number detector 4 and a quantum random number storage computer 18.
[0050] The vacuum chamber 1 includes 4 CF63 windows and 8 CF35 windows, which are respectively a first CF63 window 8, a second CF63 window 11, a third CF63 window 13, a fourth CF63 window 16, a first CF35 window 2, a second CF35 window 3, a third CF35 window 7, a fourth CF35 window 9, a fifth CF35 window 10, a sixth CF35 window 12, a seventh CF35 window 14, and an eighth CF35 window 15.
[0051] The first CF63 window 8 is used to pass ionization laser into the ion trap to load physical particles into the ion trap.
[0052] The first CF35 window 2 is used to pass cooling light into the ion trap to cool the physical particles to the vibration ground state.
[0053] The second CF35 window 3 is used to pass the state preparation light into the ion trap to encode the quantum state of the physical particle into the ground state.
[0054] The third CF35 window 7 is used to pass state manipulation light into the ion trap to prepare the quantum state of the physical particle to the maximum superposition state.
[0055] The second CF63 window 11 is used to collect the number of photons. Ions spontaneously radiate from the P energy level to the S energy level, generating photons, which pass through the second CF63 window 11 and reach the photosensitive area of the photon number detector 4. The photon number detector 4 converts the received light signal into an electrical signal to obtain the number of photons.
[0056] In this embodiment, the first permanent magnet 5 and the second permanent magnet 6 each include 100 samarium cobalt magnets with a diameter of 6 mm and a length of 10 mm. These magnets are arranged in a circle and evenly placed in a copper frame for fixing the magnets. The magnets are arranged around the circumference of the copper frame. The first permanent magnet 5 and the second permanent magnet 6 are used to generate a stable and uniform static magnetic field around the center of the ion trap.
[0057] The photon number detector 4 is used to measure the number of photons emitted by physical particles within a certain period of time.
[0058] The quantum random number storage computer 18 is used to measure the number of photons emitted by the physical particles within a certain period of time according to the photon number detector 4, determine the state of the physical particles, generate quantum random numbers, and store the generated quantum random numbers.
[0059] Embodiment 2:
[0060] The method for generating a key based on a random number generated by a quantum random number generator, using the quantum random number generator described in Example 1, comprises the following steps:
[0061] Step 1: When assembling the vacuum chamber 1 and the ion trap, a high-purity calcium metal source is loaded directly below the ion trap in the vacuum chamber 1, and the calcium metal source is connected to a DC regulated current source. The current value of the DC regulated current source is set to 5.8A, and the switch of the DC regulated current source is turned on to heat the calcium metal. At the same time, a commercial semiconductor laser (Toptica) is turned on, and the wavelength is adjusted to around 422.79nm to generate the first ionizing light, which is incident from the first CF63 window 8 to the center of the ion trap placed in the vacuum chamber 1, and the calcium metal in the ion trap is heated. 40 The Ca atom is excited to the 4P energy level, and then the laser with a wavelength of 375nm is turned on to generate the second ionization light, which is incident from the first CF63 window 8 to the center of the ion trap placed in the vacuum chamber 1, 40 The Ca atom is excited to a higher virtual energy level, causing it to lose an electron and become 40 Ca + Ions. 40 Ca + When ions are loaded into the ion trap, the trapped potential field applied around the ion trap will 40 Ca + The ions are stably bound in the central region of the ion trap. 40 Ca + After ionization, the first ionization light, the second ionization light and the DC regulated current source are immediately turned off.
[0062] Step 2: If the temperature of the ions is too high, it will affect the control of the quantum state, so first 40 Ca + The ions are cooled. In the present invention, the ions are cooled to the vibration ground state by Doppler cooling and sideband cooling. Among them, a laser with a wavelength of 397nm is used as the first Doppler cooling light, and the first Doppler cooling light is incident on the ion trap through the first CF35 window 2, and a laser with a wavelength of 866nm is used as the second Doppler cooling light, and the second Doppler cooling light is incident on the ion trap from the first CF35 window 2 to achieve Doppler cooling.
[0063] The first Doppler cooling light at 397nm is used for driving 40 Ca + Ions from 4S 1 / 2 To 4P 1 / 2 The transition between energy levels 40 Ca + Ions from 4P 1 / 2 When the energy level radiates spontaneously, there is a chance to return to 3D3 / 2 energy level, so a second Doppler cooling light of 866nm is needed for 3D 3 / 2 Energy Level 40 Ca + Ion back pump. The lowest temperature that can be achieved by Doppler cooling is the Doppler limit temperature. is defined as: , where h = 6.626 × 10-34 J·s is Planck's constant, is the line width of the transition level, is the Boltzmann constant. 40 Ca + The temperature of the ion after Doppler cooling can be obtained from its average phonon number. The relationship between the average phonon number and temperature is: ,in yes 40 Ca + The frequency of the ion's simple harmonic oscillation. After Doppler cooling, 40 Ca + The ion temperature reaches 0.5 mK.
[0064] Define the ion state after Doppler cooling: , where n is the number of phonons of the ion, is the number of phonons after the ion completes Doppler cooling. To further cool the ion, a commercial laser with a wavelength of 854 nm (Toptica) can be used to generate the first sideband cooling light, which is incident on the ion trap from the first CF35 window 2, and an ultra-narrow linewidth titanium sapphire laser with a wavelength of 729 nm (MSquare) can be used to generate the second sideband cooling light, which is incident on the ion trap from the first CF35 window 2 to achieve sideband cooling. and The relationship between The smaller the value, the lower the ion temperature. In each sideband cycle, the frequency of the second sideband cooling light of the 729nm laser is set to red detuning, and the detuning amount ,drive 40 Ca + ion arrive The transition between the two, and then turn on the 854nm laser to generate the first sideband cooling light, driving the ion To 4P 3 / 2 Energy level transition, 4P 3 / 2 The energy level lifetime is extremely short (~6.9ns), 40 Ca + The ions will spontaneously radiate rapidly to The sideband cooling will make each cycle Reduce one phonon until it approaches 0, that is 40Ca + The ions cool to their vibrational ground state.
[0065] Step 3: Combine the energy level structure of the ion and put the quantum bit into the lower state and Encode to and , where m f is the magnetic quantum number.
[0066] Step 4: Use polarization (right-hand circular polarization), a laser with a wavelength of 397nm, as the first initial state preparation light, is incident on the ion trap from the second CF35 window 3, 40 Ca + The initial state of the ion is prepared The first state control light is used, with a wavelength of 729nm laser, which can also be used as pump light, to be incident on the ion trap from the third CF35 window 7 to control the quantum state and set its frequency to arrive The carrier transition frequency, with the initial phase being 0, can be calculated to be Population number The relationship between the pump light action time t is: ,in, yes and The coupling strength of the carrier transition is related to the power of the 729nm laser, t is the time, and can be experimentally measured by scanning arrive The coupling strength of the Rabi line is When the pump light (i.e., the first-state control light) is fixed for a certain duration , the quantum state changes from the initial state Evolved into: , i is an imaginary unit, that is 40 Ca + Ions are prepared to the maximum superposition state .
[0067] Step 5: In order to obtain the exact state of the ion at a certain moment, it is necessary to When making a measurement, each measurement will cause the quantum state to collapse to a certain state of the eigenstate, that is, the measurement result is or Quantum measurement will destroy the original state of the ions, so they must be re-prepared after each measurement. To make the next measurement. In mathematical form, the detection Probability , detected Probability , that is, the result obtained from each measurement or It's a completely random result.
[0068] In the present invention, the first Doppler cooling light is turned on, and the laser with a wavelength of 397nm is used as the first detection light, which is incident on the ion trap from the first CF35 window 2. The second Doppler cooling light is turned on, and the laser with a wavelength of 866nm is used as the second detection light, which is incident on the ion trap from the first CF35 window 2. The photon number detector 4 is used to collect the number of 397nm photons within 6ms (compared to The energy level lifetime is 1s, and the detection time can be ignored, that is, it is assumed that the detection process will not affect status). If 40 Ca + Ions in On the surface, 397nm laser will 40 Ca + Ion excitation to 4P 1 / 2 energy level, 40 Ca + The ions emit spontaneous radiation rapidly and over many cycles, a large number of photons (greater than 20) will be detected. 40 Ca + Ions in The 397nm laser will not excite ions. Considering the existence of stray light in the environment, a small number of photons (less than 4) will be detected. Each random number measurement includes cooling, state preparation, state manipulation, and state detection. The whole process takes 20ms and the measurement result is or , the probability is 0.5.
[0069] Step 6: Repeat steps 2-5 for multiple measurements to obtain a completely random set of or , and store it in the quantum random number storage computer 18. For the convenience of description, 0 and 1 are referred to in the following. Taking a set of original measurement results as an example, the generation of random numbers is introduced, with a total of 128 0s or 1s, which takes about 2s.
[0070] In this embodiment, the original measurement results are: 0111 1101 0111 0010 1101 0111 1101 0101 0100 0100 1001 1000 1101 00011010 0000 1010 1000 1010 0111 1010 0110 1000 0010 0010 0101 0101 1110 01101101 1110 1000
[0072] Generating random binary sequences of 0 and 1 is the most basic and important. With the above original measurement results, other random sequences can be generated on this basis, such as octal random numbers, decimal random numbers, hexadecimal random numbers, Ascii code random numbers, etc. Taking the original measurement results in step 6 as an example, convert four adjacent (8 Ascii codes) binary values:
[0073] Octal random number: 7 15 7 2 15 7 15 5 4 4 11 10 15 1 12 0 12 10 12 7 12 6 10 2 2 5 5 166 15 6 15 16 10
[0075] Decimal random number: 7 13 7 2 13 7 15 5 4 4 9 8 13 1 10 0 10 8 10 7 10 6 8 2 2 5 5 14 6 136 13 14 8
[0077] Hexadecimal random number:
[0078] 7 d 7 2 d 7 d 5 4 4 9 8 d 1 a 0 a 8 a 7 a 6 8 2 2 5 5 e 6 d 6 de 8
[0079] Ascll code random number:
[0080]
[0081] In the experiment, the probability of measuring 0 or 1 is 0.5, so the probability of getting "01" or "10" ("00" or "11") for two adjacent measurement results is also 0.5. In the original measurement result, if it is the former case, 0 is obtained, and if it is the latter case, 1 is obtained. Repeat the operation to get a new binary random sequence.
[0082] New random number sequence: 01 10 01 10 10 01 10 00 01 01 00 01 10 10 00 11 00 01 00 01 00 00 0110 10 00 00 10 00 10 10 01
[0084] The performance evaluation of quantum random numbers requires testing with some random number test items. Two million 0s or 1s were measured experimentally. The DIEHARD randomness test package proposed by G. Marsaglia was used here, which includes a total of 18 statistical tests. The test results are as follows:
[0085]
[0086] Step 7: User A generates an initial key based on the original measurement result of step 6. User A and user B determine the final key based on the initial key. User A compiles the ciphertext corresponding to the message based on the final key and sends it to user B. User B opens the ciphertext based on the final key.
[0087] The security of the key determines whether the ciphertext is leaked during transmission. The quantum key uses important quantum properties such as quantum superposition principle and quantum collapse. It is an encryption method that cannot be cracked, eavesdropped, and is absolutely secure. This article takes the BB84 protocol as an example to introduce how to achieve key distribution based on the random number generated by the ion trap system.
[0088] Choose any two sets of orthogonal bases on the Bloch sphere, namely: the first set of orthogonal bases Z and the second set of orthogonal bases X. The two quantum states of the first set of orthogonal bases Z are defined as: , the two quantum states of the second orthogonal basis X are defined as: The two sets of orthogonal bases correspond to four different quantum states on the Bloch sphere. Each time a projection measurement is performed on these four quantum states, or For the quantum random number obtained in step 6, if the first set of orthogonal basis Z is used for measurement, the quantum state is , the measurement result is , abbreviated as 0, the quantum state is , the measurement result is recorded as , abbreviated as 1, if the second set of orthogonal basis X is used for measurement, the quantum state is , the measurement result is recorded as , abbreviated as 0, the quantum state is , the measurement result is recorded as , abbreviated as 1.
[0089] Consider a set of measurements as the initial key (20):
[0090] Initial key: 0 1 1 1 1 1 0 1 0 1 0 1 0 1 0 0 0 1 0 0
[0091] Currently, user A compiles a message into ciphertext according to a certain encryption algorithm and sends the ciphertext to user B. User B needs to obtain the above key to open the ciphertext, and user A needs to securely transmit the key to user B. The specific steps are as follows:
[0092] Step 7.1: User A randomly selects each value of the initial key to correspond to the first group of orthogonal bases or the second group of orthogonal bases to generate a first orthogonal base sequence;
[0093] The first orthogonal basis sequence: ZXX ZXZZXXZ ZXX ZXZZXXZ
[0094] Step 7.2: User A converts the initial key into a corresponding quantum state according to the first orthogonal basis sequence, and sends the converted quantum state to user B;
[0095] Sending quantum states:
[0096]
[0097] Step 7.3: User B randomly selects each quantum state of the initial key to correspond to the first orthogonal basis or the second orthogonal basis, generates a second orthogonal basis sequence, and measures the quantum state of the received initial key according to the second orthogonal basis sequence to obtain the restored key obtained for the first time;
[0098] For quantum states If the first set of orthogonal basis Z is selected for measurement, the measurement result is 0; if the second set of orthogonal basis X is selected for measurement, the measurement result is 0 or 1. Since quantum measurement will cause the quantum state to collapse to the eigenstate, the final measurement result is either 0 or 1, so there is a 1 / 2 chance of error.
[0099] For quantum states If the first set of orthogonal basis Z is selected for measurement, the measurement result is 1. If the second set of orthogonal basis X is selected for measurement, the measurement result is 0 or 1.
[0100] For quantum states If the first set of orthogonal basis Z is selected for measurement, the measurement result is 0 or 1. If the second set of orthogonal basis X is selected for measurement, the measurement result is 0.
[0101] For quantum states If the first set of orthogonal basis Z is selected for measurement, the measurement result is 0 or 1. If the second set of orthogonal basis X is selected for measurement, the measurement result is 1.
[0102] In this embodiment, user B randomly selects an orthogonal basis: XXZZXXZZZXXXZZXXZZZX
[0103] The first restoration key obtained by user B: 0101100000 01010000000
[0104] Step 7.4: User B sends the second orthogonal basis sequence to user A. User A compares the first orthogonal basis sequence with the second orthogonal basis sequence. For each value of the initial key and the restored key, if the first orthogonal basis sequence and the second orthogonal basis sequence use the same orthogonal basis, then they are the same y. If the first orthogonal basis sequence and the second orthogonal basis sequence use different orthogonal basis, then they are different n. The corresponding orthogonal basis judgment sequence is generated and sent back to user B to tell user B which quantum states the two have selected the same basis (n: different y: the same)
[0105] Orthogonal basis judgment sequence: nynyynynnnnynyynynnn
[0106] For positions 2, 4, 5, 7, 12, 14, 15, and 17 of the initial key and the restored key, user A and user B select the same orthogonal basis. In this case, the restored key value obtained by user B is the same as the value of the initial key sent by user A. If the orthogonal basis is selected differently, the restored key obtained by user B may be different (with a 0.5 probability of error).
[0107] Step 7.5: User A sends the values of the initial keys of the same orthogonal basis as the quantum states corresponding to the secondary transmission keys (e.g., the 2nd, 4th, 5th, and 7th) to user B, so that user B can determine whether there is anyone eavesdropping on the secondary transmission key transmission process. Since the orthogonal basis is the same, the corresponding secondary transmission key should also be the same. If someone eavesdrops, then when user B is measuring, even if user B chooses the same orthogonal basis as user A, the probability that the orthogonal basis chosen by the eavesdropper is exactly the same as the orthogonal basis chosen by user A decreases exponentially as the number of random numbers increases (in this example, 20 random numbers are selected, corresponding to the probability: ), resulting in the quantum state after eavesdropping being different from the quantum state sent by user A, so user B’s measurement results will also be different, and the final key determination process will be invalidated.
[0108] Step 7.6: If user B confirms that no one is eavesdropping, the remaining initial key values (12th, 14th, 15th, and 17th bits) selected by user B with the same orthogonal basis are used as the final key.
[0109] B gets the final key (bold part): 0101100000 01010000000
[0110] Finally, user B obtains the final key 1100 that can decrypt the ciphertext.
[0111] Step 7.7: User A compiles the ciphertext corresponding to the message based on the final key and sends it to user B, and user B opens the ciphertext based on the final key.
[0112] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A method for generating a key based on a random number generated by a quantum random number generator, using a quantum random number generator based on the spin state of a physical particle, wherein the quantum random number generator comprises a vacuum chamber (1), an ion trap installed in the vacuum chamber (1), a first permanent magnet (5) and a second permanent magnet (6) placed on both sides of the vacuum chamber (1), and a photon number detector (4). The ionization laser is introduced into the ion trap through the first CF63 window (8) of the vacuum chamber (1), the cooling light is introduced into the ion trap through the first CF35 window (2) of the vacuum chamber (1), the state preparation light is introduced into the ion trap through the second CF35 window (3) of the vacuum chamber (1), the state control light is introduced into the ion trap through the third CF35 window (7) of the vacuum chamber (1), and the photons pass through the second CF63 window (11) of the vacuum chamber (1) to reach the photosensitive area of the photon number detector (4). It is characterized in that The above method comprises the following steps: Step 1: A calcium metal source is loaded below the ion trap in the vacuum chamber (1), the calcium metal source is heated, and an ionization laser is introduced into the ion trap from the first CF63 window (8) of the vacuum chamber (1), to generate 40 Ca + Ions are loaded into the ion trap; Step 2: Cooling light is introduced from the first CF35 window (2) of the vacuum chamber (1) into the ion trap, so that 40 Ca + The ions are cooled to their vibrational ground state; Step 3: Put the quantum bit into the state and Encode to and , where m f is the magnetic quantum number; Step 4: Pass the state preparation light into the ion trap from the second CF35 window (3) of the vacuum chamber (1), and pass the state control light into the ion trap from the second CF35 window G of the vacuum chamber (1), so that 40 Ca + Ions prepared to the maximum superposition state ; Step 5: Pass detection light from the first CF35 window (2) of the vacuum chamber (1) into the ion trap, and use the photon number detector (4) to detect 40 Ca + Ions in Still in superior; Step 6 and Corresponding to 0 and 1 respectively, repeat steps 2-5 to obtain the original measurement results consisting of 0 and 1; Step 7: User A generates an initial key based on the original measurement result of step 6. User A and user B determine the final key based on the initial key. User A compiles the ciphertext corresponding to the message based on the final key and sends it to user B. User B opens the ciphertext based on the final key.
2. The method for generating a key based on a random number generated by a quantum random number generator according to claim 1, characterized in that: The first permanent magnet (5) and the second permanent magnet (6) both comprise a plurality of columnar samarium-cobalt magnets, which are arranged in a circle and evenly placed in a copper frame for fixing the samarium-cobalt magnets.
3. The method for generating a key based on a random number generated by a quantum random number generator according to claim 1, characterized in that: In step 1, the step of introducing ionization laser into the ion trap from the first CF63 window (8) of the vacuum chamber (1) comprises the following steps: The first ionization light is incident from the first CF63 window (8) to the center of the ion trap placed in the vacuum chamber (1), 40 The Ca atom is excited to the 4P energy level, and the second ionization light is incident from the first CF63 window (8) to the center of the ion trap placed in the vacuum chamber (1), so that 40 The Ca atom loses an electron and becomes 40 Ca + ion.
4. The method for generating a key based on a random number generated by a quantum random number generator according to claim 3, characterized in that: In step 2, the cooling light is introduced into the ion trap from the first CF35 window (2) of the vacuum chamber (1), comprising the following steps: The first Doppler cooling light is introduced into the ion trap from the first CF35 window (2) of the vacuum chamber (1), driving 40 Ca + Ions from 4S 1 / 2 To 4P 1 / 2 transitions between energy levels; The first CF35 window (2) of the vacuum chamber (1) allows the second Doppler cooling light to enter the ion trap, 3 / 2 Energy Level 40 Ca + Ion back pump; The second sideband cooling light is introduced into the ion trap from the first CF35 window (2) of the vacuum chamber (1), driving 40 Ca + ion arrive The transition between The first sideband cooling light is introduced into the ion trap from the first CF35 window (2) of the vacuum chamber (1) to drive the ions. To 4P 3 / 2 Energy level transition, 40 Ca + Ions spontaneously radiate , 40 Ca + The ions cool to their vibrational ground state.
5. The method for generating a key based on a random number generated by a quantum random number generator according to claim 4, characterized in that: The step 4 comprises the following steps: The first initial state preparation light is introduced into the ion trap from the second CF35 window (3) of the vacuum chamber (1). 40 Ca + The initial state of the ion is prepared ; The first state control light is introduced into the ion trap from the third CF35 window (7) of the vacuum chamber (1). 40 Ca + Ions are prepared to the maximum superposition state .
6. The method for generating a key based on a random number generated by a quantum random number generator according to claim 5, characterized in that: In step 4, the first state manipulation light is used as the pump light, and the first state manipulation light action time ,in, is the coupling strength.
7. The method for generating a key based on a random number generated by a quantum random number generator according to claim 3, characterized in that: The step 7 comprises the following steps: Step 7.1: User A randomly selects each value of the initial key to correspond to the first group of orthogonal bases or the second group of orthogonal bases to generate a first orthogonal base sequence; Step 7.2: User A converts the initial key into a corresponding quantum state according to the first orthogonal basis sequence, and sends the converted quantum state to user B; Step 7.3: User B randomly selects each quantum state of the initial key to correspond to the first orthogonal basis or the second orthogonal basis, generates a second orthogonal basis sequence, and measures the quantum state of the received initial key according to the second orthogonal basis sequence to obtain the restored key obtained for the first time; Step 7.4: User B sends the second orthogonal base sequence to user A. User A compares the first orthogonal base sequence with the second orthogonal base sequence. For each value of the initial key and the restored key, if the first orthogonal base sequence and the second orthogonal base sequence use the same orthogonal base, then the values are the same y; if the first orthogonal base sequence and the second orthogonal base sequence use different orthogonal bases, then the values are different n. A corresponding orthogonal base judgment sequence is generated and the orthogonal base judgment sequence is sent back to user B. Step 7.5: User A sends the value of the initial key of the same orthogonal basis as the quantum state corresponding to the secondary transmission key to user B, so that user B can identify whether the transmission process of the secondary transmission key is eavesdropped by someone; Step 7.6: If user B confirms that no one is eavesdropping, the remaining initial key values selected by user B with the same orthogonal basis are used as the final key. If user B confirms that someone is eavesdropping, the final key determination process is invalidated; Step 7.7: User A compiles the ciphertext corresponding to the message based on the final key and sends it to user B, and user B opens the ciphertext based on the final key.
