<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://pc5214.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zhang+Munan</id>
	<title>PC5214 wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://pc5214.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Zhang+Munan"/>
	<link rel="alternate" type="text/html" href="https://pc5214.org/index.php/Special:Contributions/Zhang_Munan"/>
	<updated>2026-04-20T11:47:52Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2851</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2851"/>
		<updated>2022-04-29T16:43:11Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Extraction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded in binary form by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24. Distribution of row data and fitted with Gaussian distribution.&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
Equation above shows how it works. Since our raw data is recorded in binary form, it is an N-row column vector &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt;  with all elements 0 or 1. And the &amp;lt;math&amp;gt;M \times N&amp;lt;/math&amp;gt; binary matrix is an algorithmically generated pseudo-random matrix. Then the raw data and the random matrix are multiplied (binary OR and XOR) to produce a column vector &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; of M rows. As long as the size of the random matrix is large enough, 0 and 1 in the output &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; will be almost uniformly distributed. Here M can take any integer not greater than N. The reason is that, the voltage at AC port fluctuates around 0 V and the first few bits in each binary number are typically unused (all 0). Therefore the entropy in the raw data is smaller than the size of the data (e.g.6 bits of entropy per 8 bits sample). The standard approach would be to first estimate the entropy in the raw data and then choose the value of N to extract the randomness. Since in our project, we didn&#039;t do that, here we choose N = M.&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25, Distribution of random data after the random matrix multiplication.&#039;&#039;&#039;]]&lt;br /&gt;
Figure 25 shows the distribution of the data after randomness extraction. As we can see, all data fall within the &amp;lt;math&amp;gt;\pm3\sigma&amp;lt;/math&amp;gt; bounds, so we have reason to believe that extracted data is almost uniformly distributed.&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26. Distribution of random numbers before (blue) and after (red) the randomness extraction, shown in time domain (left) and histogram (right)&#039;&#039;&#039;]]&lt;br /&gt;
Figure 26 shows the comparison between random numbers before and after the randomness extraction.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2850</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2850"/>
		<updated>2022-04-29T16:41:18Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Extraction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded in binary form by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24. Distribution of row data and fitted with Gaussian distribution.&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
Equation above shows how it works. Since our raw data is recorded in binary form, it is an N-row column vector &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt;  with all elements 0 or 1. And the &amp;lt;math&amp;gt;M \times N&amp;lt;/math&amp;gt; binary matrix is an algorithmically generated pseudo-random matrix. Then the raw data and the random matrix are multiplied （binary OR and XOR） to produce a column vector &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; of M rows. As long as the size of the random matrix is large enough, 0 and 1 in the output &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; will be almost uniformly distributed. Here M can take any integer not greater than N. The reason is that, the voltage at AC port fluctuates around 0 V and the first few bits in each binary number are typically unused (all 0). Therefore the entropy in the raw data is smaller than the size of the data (e.g.6 bits of entropy per 8 bits sample). The standard approach would be to first estimate the entropy in the raw data and then choose the value of N to extract the randomness. Since in our project, we didn&#039;t do that, here we choose N = M.&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25, Distribution of random data after the random matrix multiplication.&#039;&#039;&#039;]]&lt;br /&gt;
Figure 25 shows the distribution of the data after randomness extraction. As we can see, all data fall within the &amp;lt;math&amp;gt;\pm3\sigma&amp;lt;/math&amp;gt; bounds, so we have reason to believe that extracted data is almost uniformly distributed.&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26. Distribution of random numbers before (blue) and after (red) the randomness extraction, shown in time domain (left) and histogram (right)&#039;&#039;&#039;]]&lt;br /&gt;
Figure 26 shows the comparison between random numbers before and after the randomness extraction.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2849</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2849"/>
		<updated>2022-04-29T16:39:12Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Test */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24. Distribution of row data and fitted with Gaussian distribution.&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
Equation above shows how it works. Since our raw data is recorded in binary form, it is an N-row column vector &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt;  with all elements 0 or 1. And the &amp;lt;math&amp;gt;M \times N&amp;lt;/math&amp;gt; binary matrix is an algorithmically generated pseudo-random matrix. Then the raw data and the random matrix are multiplied （binary OR and XOR） to produce a column vector &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; of M rows. As long as the size of the random matrix is large enough, 0 and 1 in the output &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; will be almost uniformly distributed. Here M can take any integer not greater than N. The reason is that, the voltage at AC port fluctuates around 0 V and the first few bits in each binary number are typically unused (all 0). Therefore the entropy in the raw data is smaller than the size of the data (e.g.6 bits of entropy per 8 bits sample). The standard approach would be to first estimate the entropy in the raw data and then choose the value of N to extract the randomness. Since in our project, we didn&#039;t do that, here we choose N = M.&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25, Distribution of random data after the random matrix multiplication.&#039;&#039;&#039;]]&lt;br /&gt;
Figure 25 shows the distribution of the data after randomness extraction. As we can see, all data fall within the &amp;lt;math&amp;gt;\pm3\sigma&amp;lt;/math&amp;gt; bounds, so we have reason to believe that extracted data is almost uniformly distributed.&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26. Distribution of random numbers before (blue) and after (red) the randomness extraction, shown in time domain (left) and histogram (right)&#039;&#039;&#039;]]&lt;br /&gt;
Figure 26 shows the comparison between random numbers before and after the randomness extraction.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2848</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2848"/>
		<updated>2022-04-29T16:36:52Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Extraction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24. Distribution of row data and fitted with Gaussian distribution.&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
Equation above shows how it works. Since our raw data is recorded in binary form, it is an N-row column vector &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt;  with all elements 0 or 1. And the &amp;lt;math&amp;gt;M \times N&amp;lt;/math&amp;gt; binary matrix is an algorithmically generated pseudo-random matrix. Then the raw data and the random matrix are multiplied （binary OR and XOR） to produce a column vector &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; of M rows. As long as the size of the random matrix is large enough, 0 and 1 in the output &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; will be almost uniformly distributed. Here M can take any integer not greater than N. The reason is that, the voltage at AC port fluctuates around 0 V and the first few bits in each binary number are typically unused (all 0). Therefore the entropy in the raw data is smaller than the size of the data (e.g.6 bits of entropy per 8 bits sample). The standard approach would be to first estimate the entropy in the raw data and then choose the value of N to extract the randomness. Since in our project, we didn&#039;t do that, here we choose N = M.&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25, Distribution of random data after the random matrix multiplication.&#039;&#039;&#039;]]&lt;br /&gt;
Figure 25 shows the distribution of the data after randomness extraction. As we can see, all data fall within the &amp;lt;math&amp;gt;\pm3\sigma&amp;lt;/math&amp;gt; bounds, so we have reason to believe that extracted data is almost uniformly distributed.&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26. Distribution of random numbers before (blue) and after (red) the randomness extraction, shown in time domain (left) and histogram (right)&#039;&#039;&#039;]]&lt;br /&gt;
Figure 26 shows the comparison between random numbers before and after the randomness extraction.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
*:To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2840</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2840"/>
		<updated>2022-04-29T16:17:42Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Extraction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24 765876486&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
Equation above shows how it works. Since our raw data is recorded in binary form, it is an N-row column vector &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt;  with all elements 0 or 1. And the &amp;lt;math&amp;gt;M \times N&amp;lt;/math&amp;gt; binary matrix is an algorithmically generated pseudo-random matrix. Then the raw data and the random matrix are multiplied （binary OR and XOR） to produce a column vector &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; of M rows. As long as the size of the random matrix is large enough, 0 and 1 in the output &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; will be almost uniformly distributed. Here M can take any integer not greater than N. The reason is that, the voltage at AC port fluctuates around 0 V and the first few bits in each binary number are typically unused (all 0). Therefore the entropy in the raw data is smaller than the size of the data (e.g.6 bits of entropy per 8 bits sample). The standard approach would be to first estimate the entropy in the raw data and then choose the value of N to extract the randomness. Since in our project, we didn&#039;t do that, here we choose N = M.&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25&#039;&#039;&#039;]]&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
*:To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2837</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2837"/>
		<updated>2022-04-29T16:01:03Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Extraction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24 765876486&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
Equation above shows how it works. Since our raw data is recorded in binary form, it is an N-row column vector &amp;lt;math&amp;gt;r_i&amp;lt;/math&amp;gt;  with all elements 0 or 1. And the &amp;lt;math&amp;gt;M \times N&amp;lt;/math&amp;gt; binary matrix is an algorithmically generated pseudo-random matrix. Then the raw data and the random matrix are multiplied （binary OR and XOR） to produce a column vector &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; of M rows. As long as the size of the random matrix is large enough, 0 and 1 in the output &amp;lt;math&amp;gt;s_i&amp;lt;/math&amp;gt; will be almost uniformly distributed.&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25&#039;&#039;&#039;]]&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
*:To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2824</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2824"/>
		<updated>2022-04-29T15:01:59Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Randomness Extraction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
The amplified total noise is digitized into 16-bit words at a sampling rate of 10 MHz (because we get the best atuocorrelation result at this sampling rate) and recorded by an oscilloscope. All data are discrete values between &amp;lt;math&amp;gt;-2^{15}&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;2^{15}-1&amp;lt;/math&amp;gt;. Figure 24 below shows the distribution of our raw data, which fits to a Gaussian distribution with a standard deviation &amp;lt;math&amp;gt;\sigma = 5240&amp;lt;/math&amp;gt;.&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24 765876486&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
In many applications, however, random numbers are required to be not only unpredictable but also uniformly distributed. Therefore the raw data collected by the oscilloscope cannot be used directly. Various randomness extractors, such as Trevisan&#039;s extractor and Linear Feedback Shift Register, have been used to convert non-uniformly distributed raw data in to a uniformly distributed binary stream. For simplicity, here we used random matrix multiplications to extract uniformly distributed random numbers. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25&#039;&#039;&#039;]]&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
*:To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2822</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2822"/>
		<updated>2022-04-29T14:40:06Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup (shown in Figure 3) was built with as few components as possible to create a baseline performance that we can compare.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal lens, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧ Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
⑩ Gain block&lt;br /&gt;
:A ready-made 60 dB gain Block from quantum optic lab.&lt;br /&gt;
⑪ High pass filter&lt;br /&gt;
:Designed cutoff frequency = 60 MHz.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt; are amplified by a 60 dB ready-made Gain block. And after that, a high pass filter (HPF) with a cutoff frequency of 60 MHz is used to filter out low frequency noise.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope: Used to monitor the AC port and collect data.&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer: Used to analyze the spectrum of total noise.&lt;br /&gt;
&lt;br /&gt;
③ Multimeter&lt;br /&gt;
:Used to monitor the DC port and balance two photodiodes.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
123125125125&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24 765876486&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25&#039;&#039;&#039;]]&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
*:To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2803</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2803"/>
		<updated>2022-04-29T14:19:22Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the y add up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of the setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
123125125125&lt;br /&gt;
[[File:Raw_data.png|thumb|600px|center|&#039;&#039;&#039;Figure 24 765876486&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
[[File:Extracted.png|thumb|600px|center|&#039;&#039;&#039;Figure 25&#039;&#039;&#039;]]&lt;br /&gt;
[[File:Contrast.png||thumb|600px|center|&#039;&#039;&#039;Figure 26&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
*:To verify the randomness of the experimental results we obtained, we used two compression protocols(rar and zip) to compress the random numbers we generated. The compressed file size does not change significantly compared with the original file(from 58k to 55k), which, to some extent, illustrates the randomness of our results.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2696</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2696"/>
		<updated>2022-04-29T09:24:54Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Process */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of the setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We used an S5972 high-speed Si PIN photodiode to detect the light, which is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We soldered all the components on the circuit chip as Figure 11 shows. After that, we tested its performance using a laser, it was approved that the optical signal was converted into the electrical signal and was measured by the oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Extraction&#039;&#039;&#039;===&lt;br /&gt;
:&amp;lt;gallery widths=350px heights=200px&amp;gt;&lt;br /&gt;
File:Raw_data.png|&#039;&#039;&#039;Figure 24. &#039;&#039;&#039;&lt;br /&gt;
File:Contrast.png|&#039;&#039;&#039;Figure 25. &#039;&#039;&#039;&lt;br /&gt;
File:Extracted.png|&#039;&#039;&#039;Figure 26. &#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Randomness Test&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2690</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=2690"/>
		<updated>2022-04-29T09:18:42Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Process */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator ===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
The practical setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of the setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse-biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 4. Basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 5. Schematic of basic characterization of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:To understand the frequency response of the circuit shown in figure 5, we use a function generator to generate a sinusoidal signal to drive the LED, and use this circuit to measure the light output. When the frequency of the signal is low, we can see a relatively complete sine waveform on the oscilloscope. But when the frequency exceeds 1GHz, we could not observe a regular and stable waveform.&lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Frequency of PD.png|&#039;&#039;&#039;Figure 6. Graph of the frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that the higher the resistance of the resistor, the larger the output voltage but less sensitive to the high frequency. That is because a reverse-biased photodiode has a certain capacitance and forms an RC series circuit with the resistor. The larger the resistor, the larger the time constant &amp;lt;math&amp;gt;\tau=RC&amp;lt;/math&amp;gt; of the RC circuit, and the slower the charge and discharge, which leads to a worse response to high frequency signals.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 7. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 8. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 9. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used an HL6501MG laser diode, which is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consists of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photodiodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 10. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 11. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 12. Schematic photodiode driving circuit block&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 11 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 13. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
 * Characterize varaiation by varying optical power&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 14. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
File:The detector noise power by varying the incident optical power.jpg|&#039;&#039;&#039;Figure 15. The plot of the detector noise power by varying the incident optical power&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the laser output power in front of the polarizer was about 20 mW, but the power detected by each photodiode was only 0.4 mW. That is because the spot size of the laser was relatively large compared with the detection area of the photodiode. Therefore we needed to focus the lens in the laser block to maximize the detected laser power. To do this, we blocked one photodiode and used a multimeter to monitor the light power detected by another photodiode. After trials, we got a maximum value of voltage drop of 9.17 V, which corresponds to an optical power of 2.08 mW on each photodiode.&lt;br /&gt;
&lt;br /&gt;
:Then, we characterized the change of noise level while rising incident optical power. And then we plotted a graph as shown in Figure 15, it is easy to find when the optical power is in a relatively low range, the noise level is flat which corresponds to the horizontal red line. While the optical power rises, the noise level increases with the optical power in a proportional manner. Therefore, we have enough reasons to believe that the overall noise is dominated by electronic noise in the low optical power range, while the noise level is dominated by shot noise in the high optical power range.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Frequency of HPF.png|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a lot of low-frequency noise and is relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
: In order to verify that the signals we obtained were quantum random numbers, we recorded the data at different sampling rates and performed autocorrelation calculations. These can be found in the &amp;quot;Result&amp;quot;-&amp;quot;Autocorrelation&amp;quot; part.&lt;br /&gt;
&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results&#039;&#039;&#039; ==&lt;br /&gt;
===&#039;&#039;&#039;Quantum noise&#039;&#039;&#039;===&lt;br /&gt;
*To ensure that the fluctuations at the amplifier output are dominated by quantum noise, the spectral power density is measured (in Figure 21. ).&lt;br /&gt;
&lt;br /&gt;
[[File:Ampliﬁed noise levels measured into a resolution bandwidth B = 3 MHz..jpg|thumb|600px|center|&#039;&#039;&#039;Figure 21. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
:Amplified noise levels measured into a resolution bandwidth B = 3 MHz. The total noise is measured from the photocurrent difference &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt; with equal optical power impinging on both photodiodes. The current  &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; of a single photodiode reveals colored classical noise. The electronic noise is measured without any optical input. &lt;br /&gt;
:In an alternative view, the laser beam can be seen as generating photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a shot noise power proportional to the average optical power. The shot noise currents from the diodes add up as they are uncorrelated, while amplitude fluctuations in the laser intensity (referred to as classical noise) do not affect the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Autocorrelation&#039;&#039;&#039;===&lt;br /&gt;
*:Autocorrelation, sometimes known as serial correlation in the discrete-time case, is the correlation of a signal with a delayed copy of itself as a function of delay. Informally, it is the similarity between observations as a function of the time lag between them. In our experiment, if we obtain an ideal &#039;&#039;&#039;quantum random number generator&#039;&#039;&#039;, the autocorrelation will be 1 when the time lag is 0, while the autocorrelation will be close to 0 when the time lag is not 0.&lt;br /&gt;
&lt;br /&gt;
*:Given a signal &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;, the continuous autocorrelation &amp;lt;math&amp;gt;R_{ff}(\tau)&amp;lt;/math&amp;gt; is most often defined as the continuous cross-correlation integral of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt; with itself, at lag &amp;lt;math&amp;gt;\tau&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
::::::::::::::::&amp;lt;math&amp;gt;R_{ff}(\tau) = \int_{-\infty}^\infty f(t+\tau)\overline{f(t)}\, {\rm d}t = \int_{-\infty}^\infty f(t) \overline{f(t-\tau)}\, {\rm d}t&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
::where &amp;lt;math&amp;gt;\overline{f(t)}&amp;lt;/math&amp;gt; represents the complex conjugate of &amp;lt;math&amp;gt;f(t)&amp;lt;/math&amp;gt;. Note that the parameter &amp;lt;math&amp;gt;t&amp;lt;/math&amp;gt; in the integral is a dummy variable and is only necessary to calculate the integral. It has no specific meaning.&lt;br /&gt;
&lt;br /&gt;
*:&#039;&#039;&#039;Experimental result&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;gallery widths=500px heights=300px&amp;gt;&lt;br /&gt;
File:2.5 GHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:500 kHz (-20,20) After Highpass1.png|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 KHz&#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We recorded several sets of data with different sampling frequencies ( 2.5 GHz to 500 kHz) and obtained autocorrelation for each group. A very high correlation between any two adjacent points was observed when we use a 2.5 GHz sampling rate. This is simply because of an extremely high sampling rate which results in every two adjacent points being almost at the same position. We can get a better correlation by reducing the sampling frequency to such as 10 MHz or even lower.&lt;br /&gt;
&lt;br /&gt;
:But the autocorrelation with a 500 kHz sampling rate is still not ideal. This is limited by our experimental setup. We caught up with too much electronic interference. A well-designed experimental setup with integrated photodiodes, amplifier, and high pass filter will stimulate a better result.&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Histogram&#039;&#039;&#039;===&lt;br /&gt;
:&amp;lt;gallery widths=350px heights=200px&amp;gt;&lt;br /&gt;
File:Raw_data.png|&#039;&#039;&#039;Figure 24. &#039;&#039;&#039;&lt;br /&gt;
File:Contrast.png|&#039;&#039;&#039;Figure 25. &#039;&#039;&#039;&lt;br /&gt;
File:Extracted.png|&#039;&#039;&#039;Figure 26. &#039;&#039;&#039;&lt;br /&gt;
:&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1704</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1704"/>
		<updated>2022-04-27T05:33:46Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (45°), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_{DC}&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 12 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 14. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 15. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the Laser power output in front of the RP is 20 mW. But the power detected by the photodiodes was only 0.4 mW. So, we needed to change the focal length of the focal lens to maximize the laser power output. We blocked one photodiode and the used the output voltage to calculate the output laser power.After lots of test, we get the maximum value of out put voltage, 9.17 V, which means 8.85 mW. Almost half of that detected before the RP.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 2.5 GHz.jpeg|&#039;&#039;&#039;Figure 21. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 1.25 GHz 2.jpeg|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 1.25 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 500 MHz.jpeg|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 250 MHz.jpeg|&#039;&#039;&#039;Figure 24. Autocorrelation of the total noise signal sampled at 250 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 100 MHz.jpeg|&#039;&#039;&#039;Figure 25. Autocorrelation of the total noise signal sampled at 100 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 50 MHz.jpeg|&#039;&#039;&#039;Figure 26. Autocorrelation of the total noise signal sampled at 50 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 25 MHz.jpeg|&#039;&#039;&#039;Figure 27. Autocorrelation of the total noise signal sampled at 25 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 10 MHz.jpeg|&#039;&#039;&#039;Figure 28. Autocorrelation of the total noise signal sampled at 10 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 5 MHz.jpeg|&#039;&#039;&#039;Figure 29. Autocorrelation of the total noise signal sampled at 5 MHz&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;Codes:&#039;&#039;&#039;(Example of autocorrelation graph at 2.5 GHz)&lt;br /&gt;
 &lt;br /&gt;
 VarName2 = TrigTime;&lt;br /&gt;
 [ACF,lags] = xcorr(VarName2);&lt;br /&gt;
 plot(lags,ACF./max(ACF),&#039;LineWidth&#039;,1);&lt;br /&gt;
 xlim([-100,100]);&lt;br /&gt;
 xlabel(&#039;Delay \itd&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 ylabel(&#039;Autocorrelation |\itA(d)|&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 title(&#039;Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 set(gca,&#039;FontSize&#039;,25);&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1702</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1702"/>
		<updated>2022-04-27T05:30:39Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRN.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (&amp;lt;math&amp;gt;45/degree&amp;lt;/math&amp;gt;), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_DC&amp;lt;/math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;&amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 12 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 14. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 15. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the Laser power output in front of the RP is 20 mW. But the power detected by the photodiodes was only 0.4 mW. So, we needed to change the focal length of the focal lens to maximize the laser power output. We blocked one photodiode and the used the output voltage to calculate the output laser power.After lots of test, we get the maximum value of out put voltage, 9.17 V, which means 8.85 mW. Almost half of that detected before the RP.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 2.5 GHz.jpeg|&#039;&#039;&#039;Figure 21. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 1.25 GHz 2.jpeg|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 1.25 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 500 MHz.jpeg|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 250 MHz.jpeg|&#039;&#039;&#039;Figure 24. Autocorrelation of the total noise signal sampled at 250 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 100 MHz.jpeg|&#039;&#039;&#039;Figure 25. Autocorrelation of the total noise signal sampled at 100 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 50 MHz.jpeg|&#039;&#039;&#039;Figure 26. Autocorrelation of the total noise signal sampled at 50 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 25 MHz.jpeg|&#039;&#039;&#039;Figure 27. Autocorrelation of the total noise signal sampled at 25 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 10 MHz.jpeg|&#039;&#039;&#039;Figure 28. Autocorrelation of the total noise signal sampled at 10 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 5 MHz.jpeg|&#039;&#039;&#039;Figure 29. Autocorrelation of the total noise signal sampled at 5 MHz&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;Codes:&#039;&#039;&#039;(Example of autocorrelation graph at 2.5 GHz)&lt;br /&gt;
 &lt;br /&gt;
 VarName2 = TrigTime;&lt;br /&gt;
 [ACF,lags] = xcorr(VarName2);&lt;br /&gt;
 plot(lags,ACF./max(ACF),&#039;LineWidth&#039;,1);&lt;br /&gt;
 xlim([-100,100]);&lt;br /&gt;
 xlabel(&#039;Delay \itd&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 ylabel(&#039;Autocorrelation |\itA(d)|&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 title(&#039;Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 set(gca,&#039;FontSize&#039;,25);&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1700</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1700"/>
		<updated>2022-04-27T05:28:14Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Laser Diode is powered by a laser driving unit. The light intensity can be changed by changing the laser current.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The polarization state of the light is adjusted by rotating the polarizer.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the position of transmitted and reflected light spots hitting on PD1 and PD2 can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizing Beam Splitter&lt;br /&gt;
: The laser beam incident on the PBS can pass through or be reflected depending on the polarization state. If the incident beam is diagonal polarized (&amp;lt;math&amp;gt;45\degree&amp;lt;math&amp;gt;), the intensity of reflected and transmitted light is equal.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 2, the position of transmitted light spots hitting on PD2 can be tuned.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The total light power is changed by changing the laser current and adjusting the focal lens, while the power of the two output ports of the PBS is balanced by rotating the polarizer in front of the laser diode. Light leaving the PBS is detected by a pair of reverse biased photodiodes connected in series to perform the current subtraction. By adjusting the orientation of M1 and M2, the light intensity incident on PD1 and PD2 can be adjusted and balanced. The balancing of the photocurrents is monitored by observing the voltage drop across a resister &amp;lt;math&amp;gt;R_DC&amp;lt;math&amp;gt; (DC port). Here we use a multimeter to measure the voltage. The fluctuations &amp;lt;math&amp;gt;\Delta(i_1-i_2)&amp;lt;math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characterization list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 12 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 14. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 15. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the Laser power output in front of the RP is 20 mW. But the power detected by the photodiodes was only 0.4 mW. So, we needed to change the focal length of the focal lens to maximize the laser power output. We blocked one photodiode and the used the output voltage to calculate the output laser power.After lots of test, we get the maximum value of out put voltage, 9.17 V, which means 8.85 mW. Almost half of that detected before the RP.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 2.5 GHz.jpeg|&#039;&#039;&#039;Figure 21. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 1.25 GHz 2.jpeg|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 1.25 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 500 MHz.jpeg|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 250 MHz.jpeg|&#039;&#039;&#039;Figure 24. Autocorrelation of the total noise signal sampled at 250 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 100 MHz.jpeg|&#039;&#039;&#039;Figure 25. Autocorrelation of the total noise signal sampled at 100 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 50 MHz.jpeg|&#039;&#039;&#039;Figure 26. Autocorrelation of the total noise signal sampled at 50 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 25 MHz.jpeg|&#039;&#039;&#039;Figure 27. Autocorrelation of the total noise signal sampled at 25 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 10 MHz.jpeg|&#039;&#039;&#039;Figure 28. Autocorrelation of the total noise signal sampled at 10 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 5 MHz.jpeg|&#039;&#039;&#039;Figure 29. Autocorrelation of the total noise signal sampled at 5 MHz&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;Codes:&#039;&#039;&#039;(Example of autocorrelation graph at 2.5 GHz)&lt;br /&gt;
 &lt;br /&gt;
 VarName2 = TrigTime;&lt;br /&gt;
 [ACF,lags] = xcorr(VarName2);&lt;br /&gt;
 plot(lags,ACF./max(ACF),&#039;LineWidth&#039;,1);&lt;br /&gt;
 xlim([-100,100]);&lt;br /&gt;
 xlabel(&#039;Delay \itd&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 ylabel(&#039;Autocorrelation |\itA(d)|&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 title(&#039;Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 set(gca,&#039;FontSize&#039;,25);&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1689</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1689"/>
		<updated>2022-04-27T04:30:10Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Setup */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was built with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizer Beam Splitter&lt;br /&gt;
: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 12 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 14. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 15. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the Laser power output in front of the RP is 20 mW. But the power detected by the photodiodes was only 0.4 mW. So, we needed to change the focal length of the focal lens to maximize the laser power output. We blocked one photodiode and the used the output voltage to calculate the output laser power.After lots of test, we get the maximum value of out put voltage,9.17 V, which means 8.85 mW. Almost half of that detected before the RP.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 2.5 GHz.jpeg|&#039;&#039;&#039;Figure 21. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 1.25 GHz 2.jpeg|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 1.25 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 500 MHz.jpeg|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 250 MHz.jpeg|&#039;&#039;&#039;Figure 24. Autocorrelation of the total noise signal sampled at 250 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 100 MHz.jpeg|&#039;&#039;&#039;Figure 25. Autocorrelation of the total noise signal sampled at 100 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 50 MHz.jpeg|&#039;&#039;&#039;Figure 26. Autocorrelation of the total noise signal sampled at 50 MHz&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;Codes:&#039;&#039;&#039;(Example of autocorrelation graph at 2.5 GHz)&lt;br /&gt;
 &lt;br /&gt;
 VarName2 = TrigTime;&lt;br /&gt;
 [ACF,lags] = xcorr(VarName2);&lt;br /&gt;
 plot(lags,ACF./max(ACF),&#039;LineWidth&#039;,1);&lt;br /&gt;
 xlim([-100,100]);&lt;br /&gt;
 xlabel(&#039;Delay \itd&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 ylabel(&#039;Autocorrelation |\itA(d)|&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 title(&#039;Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 set(gca,&#039;FontSize&#039;,25);&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1684</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1684"/>
		<updated>2022-04-27T04:25:34Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
* The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
* Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
* All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
* Securing data at rest in data centres&lt;br /&gt;
* Securing any kind of sensitive data&lt;br /&gt;
* Securing data in the cloud&lt;br /&gt;
* One-time pad for authentication in banking and other transactions&lt;br /&gt;
* Gaming applications and lottery&lt;br /&gt;
* Block-chain network&lt;br /&gt;
* Numerical simulations, statistical research&lt;br /&gt;
* IoT devices&lt;br /&gt;
* E-commerce and banking applications&lt;br /&gt;
* Cryptographic applications&lt;br /&gt;
* Telecom and 5G&lt;br /&gt;
* Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
Alternatively, the randomness can be seen as coming from the shot noise of the photocurrents &amp;lt;math&amp;gt;i_1&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;i_2&amp;lt;/math&amp;gt; with a power proportional to the average optical power. Since the shot noise currents from the diodes are uncorrelated, the noise adds up. And the amplitude fluctuations in the laser intensity (referred to as classical noise) can be eliminated by measuring the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup 2.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
① Laser Diode&lt;br /&gt;
: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
② Focal Lens&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
③ RP: Rotatable Polarizer&lt;br /&gt;
: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
④ Mirror 1&lt;br /&gt;
: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
⑤ PBS: Polarizer Beam Splitter&lt;br /&gt;
: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
⑥ Mirror 2&lt;br /&gt;
: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
⑦&amp;amp;⑧: Photodiodes&lt;br /&gt;
: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;===&lt;br /&gt;
① Oscilloscope&lt;br /&gt;
&lt;br /&gt;
② Spectrum Analyzer&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 12 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;Figure 14. The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Figure 15. Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the Laser power output in front of the RP is 20 mW. But the power detected by the photodiodes was only 0.4 mW. So, we needed to change the focal length of the focal lens to maximize the laser power output. We blocked one photodiode and the used the output voltage to calculate the output laser power.After lots of test, we get the maximum value of out put voltage,9.17 V, which means 8.85 mW. Almost half of that detected before the RP.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 16. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 17. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 18. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 19. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 20. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit and test&lt;br /&gt;
 * Record data and draw some graphs analysis&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 2.5 GHz.jpeg|&#039;&#039;&#039;Figure 21. Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 1.25 GHz 2.jpeg|&#039;&#039;&#039;Figure 22. Autocorrelation of the total noise signal sampled at 1.25 GHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 500 MHz.jpeg|&#039;&#039;&#039;Figure 23. Autocorrelation of the total noise signal sampled at 500 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 250 MHz.jpeg|&#039;&#039;&#039;Figure 24. Autocorrelation of the total noise signal sampled at 250 MHz&#039;&#039;&#039;&lt;br /&gt;
File:Autocorrelation of the total noise signal sampled at 250 MHz.jpeg|&#039;&#039;&#039;Figure 25. Autocorrelation of the total noise signal sampled at 100 MHz&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
 &#039;&#039;&#039;Codes:&#039;&#039;&#039;(Example of autocorrelation graph at 2.5 GHz)&lt;br /&gt;
 &lt;br /&gt;
 VarName2 = TrigTime;&lt;br /&gt;
 [ACF,lags] = xcorr(VarName2);&lt;br /&gt;
 plot(lags,ACF./max(ACF),&#039;LineWidth&#039;,1);&lt;br /&gt;
 xlim([-100,100]);&lt;br /&gt;
 xlabel(&#039;Delay \itd&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 ylabel(&#039;Autocorrelation |\itA(d)|&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 title(&#039;Autocorrelation of the total noise signal sampled at 2.5 GHz&#039;,&#039;FontSize&#039;,25);&lt;br /&gt;
 set(gca,&#039;FontSize&#039;,25);&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Quantum random number generators, Rev. Mod. Phys, 89, 015004.&lt;br /&gt;
&lt;br /&gt;
[2] Shi, Yicheng, Brenda Chng, and Christian Kurtsiefer, Random numbers from vacuum fluctuations, Applied Physics Letters, 109.4 (2016): 041101.&lt;br /&gt;
&lt;br /&gt;
[3] https://www.digchip.com/datasheets/parts/datasheet/625/HL6501MG-pdf.php&lt;br /&gt;
&lt;br /&gt;
[4] https://www.farnell.com/datasheets/3171163.pdf&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1223</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1223"/>
		<updated>2022-04-23T11:39:17Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode entering the polarizing beam-splitter (PBS) by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the PBS and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The randomness source in our setup is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
====① Laser Diode====&lt;br /&gt;
: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
====② Focal Lens====&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
====③ RP: Rotatable Polarizer====&lt;br /&gt;
: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
====④ Mirror 1====&lt;br /&gt;
: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
====⑤ PBS: Polarizer Beam Splitter====&lt;br /&gt;
: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
====⑥ Mirror 2====&lt;br /&gt;
: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
====⑦&amp;amp;⑧: Photodiodes====&lt;br /&gt;
: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;===&lt;br /&gt;
====Oscilloscope====&lt;br /&gt;
====Spectrum Analyzer====&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1 kΩ to 11 kΩ and then 20 kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set the temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance posts.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:We applied an S5972 high-speed Si PIN photodiode for detecting the light, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
&lt;br /&gt;
:We combined two photodiodes in the circuit and soldered them in the circuit chip as Figure 12 shows. After that, we tested its performance by the laser source, it was approved that the optical signal was converted into the electrical signal and was observed by oscilloscope.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of the laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage around 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Maximize the laser power output.jpeg|&#039;&#039;&#039;Maximize the laser power output&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We found that the Laser power output in front of the RP is 20 mW. But the power detected by the photodiodes was only 0.4 mW. So, we needed to change the focal length of the focal lens to maximize the laser power output. We blocked one photodiode and the used the output voltage to calculate the output laser power.After lots of test, we get the maximum value of out put voltage,9.17v, which means 8.85mw. Almost half of that detected before the RP.&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 14. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 15. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 16. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 17. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 18. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1217</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1217"/>
		<updated>2022-04-23T11:29:27Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== &#039;&#039;&#039;Team Members&#039;&#039;&#039; ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Idea&#039;&#039;&#039; ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Benefits of having a quantum random number generator:​ ===&lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Application of quantum random number generator:===&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Principles&#039;&#039;&#039; ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
Figure 2 schematically shows our setup. Such a setup is known as balanced homodyne detection and can extract the information of the electrical field in the second mode by measuring the photocurrent difference  &amp;lt;math&amp;gt;i_1-i_2&amp;lt;/math&amp;gt;. A continuous wave laser (wavelength 658 nm) is incident on one input port of the polarizing beam-splitter (PBS) and used as the local oscillator (LO), while another input port is empty. So the homodyne detection is trying to measure the vacuum state of the electromagnetic field. The source of randomness is the fluctuations of the vacuum field. Here we tried to balance the optical power impinging on the two photodiodes, therefore any power fluctuation coming from the laser diode will be detected simultaneously and canceled in the photocurrent difference.&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Figure 3. Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare. A schematic of setup is shown in Figure 3.&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Figure 4. Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
====① Laser Diode====&lt;br /&gt;
: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
====② Focal Lens====&lt;br /&gt;
: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
====③ RP: Rotatable Polarizer====&lt;br /&gt;
: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
====④ Mirror 1====&lt;br /&gt;
: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
====⑤ PBS: Polarizer Beam Splitter====&lt;br /&gt;
: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
====⑥ Mirror 2====&lt;br /&gt;
: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
====⑦&amp;amp;⑧: Photodiodes====&lt;br /&gt;
: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;===&lt;br /&gt;
====Oscilloscope====&lt;br /&gt;
====Spectrum Analyzer====&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Process&#039;&#039;&#039; ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Figure 5. Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Figure 6. Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Figure 7. Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in Figure 6, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;Figure 8. HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Figure 9. Schematic of electronics laser connector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Figure 10. Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|&#039;&#039;&#039;Figure 11. S5972 Si PIN photodiode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Figure 12. Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Figure 13. Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We used an S5972 high-speed Si PIN photodiode, it is designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Whole setup.jpeg|&#039;&#039;&#039;The whole system setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We built up the whole setup on the optical platform. Then we tuned the bias of two photodiodes to make sure that the intensity of laser hitting on both photodiodes is the same by adjusting the multimeter&#039;s voltage to 0.&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Figure 14. Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Figure 15. Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Figure 16. Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Figure 17. Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Figure 18. Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Results and analysis&#039;&#039;&#039; ==&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Results&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
=== &#039;&#039;&#039;Analysis&#039;&#039;&#039;===&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;References&#039;&#039;&#039; ==&lt;br /&gt;
[1] Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1194</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1194"/>
		<updated>2022-04-23T10:51:24Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Figure 1. Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BENEFITS OF HAVING A QUANTUM RANDOM NUMBER GENERATOR:​ &lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* APPLICATIONS OF QUANTUM RANDOM NUMBER GENERATOR​:&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Figure 2. Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
== &#039;&#039;&#039;Setup&#039;&#039;&#039; ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare to. A schematic and a Experimental setup of the setup is shown in the image &#039;&#039;&#039;on the right.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
====:① Laser Diode====&lt;br /&gt;
: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
:② Focal Lens: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
:③ RP: rotatable Polarizer: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
:④ Mirror 1: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
:⑤ PBS: Polarizer Beam Splitter: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
:⑥ Mirror 2: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
:⑦&amp;amp;⑧: Photodiodes: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;===&lt;br /&gt;
:Oscilloscope&lt;br /&gt;
:Frequency spectrograph&lt;br /&gt;
&lt;br /&gt;
== Process ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in the Schematic of basic characterization of photodiode test, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Schematic of electronics laserconnector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|The S5972 is high-speed Si PIN photodiodes designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== Results and analysis ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1189</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1189"/>
		<updated>2022-04-23T10:48:34Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Principles */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BENEFITS OF HAVING A QUANTUM RANDOM NUMBER GENERATOR:​ &lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* APPLICATIONS OF QUANTUM RANDOM NUMBER GENERATOR​:&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Schematic of quantum random number generator based on measuring vacuum fluctuations&#039;&#039;&#039;]] &lt;br /&gt;
In cybersecurity, a perfect random number is the root of trust. A QRNG does not rely on mathematical algorithms but on laws of quantum physics to ‘naturally’ generate random numbers. A QRNG can produce unpredictable outcomes in a robust and well-controlled way. It includes the power of complex deep-tech technologies such as semiconductors, optoelectronics, high precision electronics, and quantum physics that work together to create the highest level of randomness possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
QRNGs use random properties of quantum physics to generate a true source of entropy. This improves the quality of seed for key generation. Since the entropy sources are derived from fundamental models, all the properties and behaviors are understandable and provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A laser-based quantum source generates the randomness in Tropos quantum random number generator. A laser produces a stream of the elementary particle, photons. The photons generated from the laser are used to generate the random numbers. These photons unlike classical objects are unpredictable under certain situations. When incidenting on a semi-transparent mirror, the photon has a 50/50 chance of being reflected or transmitted. The photon is then in a superposition of both the states (reflected and transmitted), i.e. the photon exists in both the states simultaneously. Upon measurement, it collapses to one of these states, which is intrinsically random and there is no way to predict which state the photon will collapse. This gives the inherent randomness from the photons, which cannot be influenced by any external parameters. &#039;&#039;&#039;This process is illustrated in the right figure.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare to. A schematic and a Experimental setup of the setup is shown in the image &#039;&#039;&#039;on the right.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Tool list&#039;&#039;&#039;===&lt;br /&gt;
:① Laser Diode: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
:② Focal Lens: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
:③ RP: rotatable Polarizer: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
:④ Mirror 1: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
:⑤ PBS: Polarizer Beam Splitter: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
:⑥ Mirror 2: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
:⑦&amp;amp;⑧: Photodiodes: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Description&#039;&#039;&#039;===&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;===&lt;br /&gt;
:Oscilloscope&lt;br /&gt;
:Frequency spectrograph&lt;br /&gt;
&lt;br /&gt;
== Process ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in the Schematic of basic characterization of photodiode test, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Schematic of electronics laserconnector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|The S5972 is high-speed Si PIN photodiodes designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== Results and analysis ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1186</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1186"/>
		<updated>2022-04-23T10:45:26Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BENEFITS OF HAVING A QUANTUM RANDOM NUMBER GENERATOR:​ &lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* APPLICATIONS OF QUANTUM RANDOM NUMBER GENERATOR​:&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;]] &lt;br /&gt;
In cybersecurity, a perfect random number is the root of trust. A QRNG does not rely on mathematical algorithms but on laws of quantum physics to ‘naturally’ generate random numbers. A QRNG can produce unpredictable outcomes in a robust and well-controlled way. It includes the power of complex deep-tech technologies such as semiconductors, optoelectronics, high precision electronics, and quantum physics that work together to create the highest level of randomness possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
QRNGs use random properties of quantum physics to generate a true source of entropy. This improves the quality of seed for key generation. Since the entropy sources are derived from fundamental models, all the properties and behaviors are understandable and provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A laser-based quantum source generates the randomness in Tropos quantum random number generator. A laser produces a stream of the elementary particle, photons. The photons generated from the laser are used to generate the random numbers. These photons unlike classical objects are unpredictable under certain situations. When incidenting on a semi-transparent mirror, the photon has a 50/50 chance of being reflected or transmitted. The photon is then in a superposition of both the states (reflected and transmitted), i.e. the photon exists in both the states simultaneously. Upon measurement, it collapses to one of these states, which is intrinsically random and there is no way to predict which state the photon will collapse. This gives the inherent randomness from the photons, which cannot be influenced by any external parameters. &#039;&#039;&#039;This process is illustrated in the right figure.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare to. A schematic and a Experimental setup of the setup is shown in the image &#039;&#039;&#039;on the right.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tool list&#039;&#039;&#039;&lt;br /&gt;
:① Laser Diode: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
:② Focal Lens: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
:③ RP: rotatable Polarizer: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
:④ Mirror 1: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
:⑤ PBS: Polarizer Beam Splitter: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
:⑥ Mirror 2: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
:⑦&amp;amp;⑧: Photodiodes: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;&lt;br /&gt;
:Oscilloscope&lt;br /&gt;
:Frequency spectrograph&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in the Schematic of basic characterization of photodiode test, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Schematic of electronics laserconnector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|The S5972 is high-speed Si PIN photodiodes designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== Results and analysis ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1185</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1185"/>
		<updated>2022-04-23T10:44:47Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BENEFITS OF HAVING A QUANTUM RANDOM NUMBER GENERATOR:​ &lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
The above factors indicate that our QRNG is provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* APPLICATIONS OF QUANTUM RANDOM NUMBER GENERATOR​:&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In today’s Y2Q world, developers have to rely on the source of entropy as quantum-enabled security keys are set to become the new normal. Organisations should, therefore, implement QRNG to protect their customers’ data.&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;]] &lt;br /&gt;
In cybersecurity, a perfect random number is the root of trust. A QRNG does not rely on mathematical algorithms but on laws of quantum physics to ‘naturally’ generate random numbers. A QRNG can produce unpredictable outcomes in a robust and well-controlled way. It includes the power of complex deep-tech technologies such as semiconductors, optoelectronics, high precision electronics, and quantum physics that work together to create the highest level of randomness possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
QRNGs use random properties of quantum physics to generate a true source of entropy. This improves the quality of seed for key generation. Since the entropy sources are derived from fundamental models, all the properties and behaviors are understandable and provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A laser-based quantum source generates the randomness in Tropos quantum random number generator. A laser produces a stream of the elementary particle, photons. The photons generated from the laser are used to generate the random numbers. These photons unlike classical objects are unpredictable under certain situations. When incidenting on a semi-transparent mirror, the photon has a 50/50 chance of being reflected or transmitted. The photon is then in a superposition of both the states (reflected and transmitted), i.e. the photon exists in both the states simultaneously. Upon measurement, it collapses to one of these states, which is intrinsically random and there is no way to predict which state the photon will collapse. This gives the inherent randomness from the photons, which cannot be influenced by any external parameters. &#039;&#039;&#039;This process is illustrated in the right figure.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare to. A schematic and a Experimental setup of the setup is shown in the image &#039;&#039;&#039;on the right.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tool list&#039;&#039;&#039;&lt;br /&gt;
:① Laser Diode: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
:② Focal Lens: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
:③ RP: rotatable Polarizer: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
:④ Mirror 1: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
:⑤ PBS: Polarizer Beam Splitter: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
:⑥ Mirror 2: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
:⑦&amp;amp;⑧: Photodiodes: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;&lt;br /&gt;
:Oscilloscope&lt;br /&gt;
:Frequency spectrograph&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in the Schematic of basic characterization of photodiode test, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Schematic of electronics laserconnector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|The S5972 is high-speed Si PIN photodiodes designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== Results and analysis ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1184</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1184"/>
		<updated>2022-04-23T10:44:31Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG are deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on Poisson statistics of photons have been developed. The core idea is shown in the figure below. Single photons generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated with ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs a reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in the principle part.&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Schematic of branching path quantum random number generators&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BENEFITS OF HAVING A QUANTUM RANDOM NUMBER GENERATOR:​ &lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** Live/real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
** The above factors indicate that our QRNG is provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* APPLICATIONS OF QUANTUM RANDOM NUMBER GENERATOR​:&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
** Monte Carlo Simulation&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In today’s Y2Q world, developers have to rely on the source of entropy as quantum-enabled security keys are set to become the new normal. Organisations should, therefore, implement QRNG to protect their customers’ data.&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;]] &lt;br /&gt;
In cybersecurity, a perfect random number is the root of trust. A QRNG does not rely on mathematical algorithms but on laws of quantum physics to ‘naturally’ generate random numbers. A QRNG can produce unpredictable outcomes in a robust and well-controlled way. It includes the power of complex deep-tech technologies such as semiconductors, optoelectronics, high precision electronics, and quantum physics that work together to create the highest level of randomness possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
QRNGs use random properties of quantum physics to generate a true source of entropy. This improves the quality of seed for key generation. Since the entropy sources are derived from fundamental models, all the properties and behaviors are understandable and provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A laser-based quantum source generates the randomness in Tropos quantum random number generator. A laser produces a stream of the elementary particle, photons. The photons generated from the laser are used to generate the random numbers. These photons unlike classical objects are unpredictable under certain situations. When incidenting on a semi-transparent mirror, the photon has a 50/50 chance of being reflected or transmitted. The photon is then in a superposition of both the states (reflected and transmitted), i.e. the photon exists in both the states simultaneously. Upon measurement, it collapses to one of these states, which is intrinsically random and there is no way to predict which state the photon will collapse. This gives the inherent randomness from the photons, which cannot be influenced by any external parameters. &#039;&#039;&#039;This process is illustrated in the right figure.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare to. A schematic and a Experimental setup of the setup is shown in the image &#039;&#039;&#039;on the right.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tool list&#039;&#039;&#039;&lt;br /&gt;
:① Laser Diode: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
:② Focal Lens: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
:③ RP: rotatable Polarizer: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
:④ Mirror 1: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
:⑤ PBS: Polarizer Beam Splitter: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
:⑥ Mirror 2: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
:⑦&amp;amp;⑧: Photodiodes: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;&lt;br /&gt;
:Oscilloscope&lt;br /&gt;
:Frequency spectrograph&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in the Schematic of basic characterization of photodiode test, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Schematic of electronics laserconnector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|The S5972 is high-speed Si PIN photodiodes designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== Results and analysis ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1178</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=1178"/>
		<updated>2022-04-23T10:37:33Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Idea */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang A0228753X&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan A0236278W&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
We live in an increasingly connected world, where a superior source of entropy is the key to data security. The effectiveness of any cryptographic system is determined by the strength of the keys it used. In turn, the strength of the key is determined by the degree of randomness used in its generation. Besides, large amount of random numbers are at the core of Monte Carlo simulations, which are widely used in scientific research. Methods produce random numbers from any algorithm are called pseudo-random number generator(PRNG). And random numbers generated by PRNG is deterministic by definition and therefore unsuitable for cryptographic purposes. &lt;br /&gt;
In order to generate unpredictable random numbers, hardware random number generators have been widely used. These physically generated random numbers are considered &amp;quot;truly&amp;quot; random because it is either practically or fundamentally impossible to predict the outcome of such a device. Quantum Random Number Generators (QRNGs) belong to a class of hardware random number generators and leverage the random properties of quantum physics to generate a true source of entropy, improving the quality of seed content for key generation. &lt;br /&gt;
Early QRNGs were based on radioactive decay. And more recently, QRNGs based on poisson statistics of photons have been developed. The core idea is shown in figure below. Single photon generated by a laser source are incident on a semi-transparent mirror and the mutually exclusive events (reflection/transmission) are detected and associated to ‘0’ or ‘1’ bit values respectively. The unpredictability of generated numbers is ensured by the quantum nature of the process. However, such a scheme needs reliable single photon source as well as single photon detectors and it&#039;s not possible for our project. Here, we decided to build a QRNG based on measuring vacuum fluctuations of a light field as a random source. More details will be discussed in principle part.&lt;br /&gt;
[[File:WeChat7f083c000c217b276a91e43dbb2e62cf.png|thumb|300px|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;]] &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* BENEFITS OF HAVING A QUANTUM RANDOM NUMBER GENERATOR:​ &lt;br /&gt;
** The source of randomness is unpredictable and controlled by quantum process.&lt;br /&gt;
** The entropy source tends to produce true random output.&lt;br /&gt;
** Live/ real-time monitoring of entropy source is possible and highly effective as well.&lt;br /&gt;
** All attacks on the entropy source are detectable.&lt;br /&gt;
** The above factors indicate that our QRNG is provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* APPLICATIONS OF QUANTUM RANDOM NUMBER GENERATOR​:&lt;br /&gt;
** Securing data at rest in data centres&lt;br /&gt;
** Securing any kind of sensitive data&lt;br /&gt;
** Securing data in the cloud&lt;br /&gt;
** One-time pad for authentication in banking and other transactions&lt;br /&gt;
** Gaming applications and lottery&lt;br /&gt;
** Block-chain network&lt;br /&gt;
** Numerical simulations, statistical research&lt;br /&gt;
** IoT devices&lt;br /&gt;
** E-commerce and banking applications&lt;br /&gt;
** Cryptographic applications&lt;br /&gt;
** Telecom and 5G&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In today’s Y2Q world, developers have to rely on the source of entropy as quantum-enabled security keys are set to become the new normal. Organisations should, therefore, implement QRNG to protect their customers’ data.&lt;br /&gt;
&lt;br /&gt;
== Principles ==&lt;br /&gt;
[[File:Principle schematic of QRNG.png|thumb|300px|&#039;&#039;&#039;Principle schematic of QRNG&#039;&#039;&#039;]]&lt;br /&gt;
In cybersecurity, a perfect random number is the root of trust. A QRNG does not rely on mathematical algorithms but on laws of quantum physics to ‘naturally’ generate random numbers. A QRNG can produce unpredictable outcomes in a robust and well-controlled way. It includes the power of complex deep-tech technologies such as semiconductors, optoelectronics, high precision electronics, and quantum physics that work together to create the highest level of randomness possible.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
QRNGs use random properties of quantum physics to generate a true source of entropy. This improves the quality of seed for key generation. Since the entropy sources are derived from fundamental models, all the properties and behaviors are understandable and provably secure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A laser-based quantum source generates the randomness in Tropos quantum random number generator. A laser produces a stream of the elementary particle, photons. The photons generated from the laser are used to generate the random numbers. These photons unlike classical objects are unpredictable under certain situations. When incidenting on a semi-transparent mirror, the photon has a 50/50 chance of being reflected or transmitted. The photon is then in a superposition of both the states (reflected and transmitted), i.e. the photon exists in both the states simultaneously. Upon measurement, it collapses to one of these states, which is intrinsically random and there is no way to predict which state the photon will collapse. This gives the inherent randomness from the photons, which cannot be influenced by any external parameters. &#039;&#039;&#039;This process is illustrated in the right figure.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
[[File:Schematic of setup.png|thumb|300px|&#039;&#039;&#039;Schematic of setup&#039;&#039;&#039;]]&lt;br /&gt;
The original setup was created with as few components as possible to create a baseline performance that we can compare to. A schematic and a Experimental setup of the setup is shown in the image &#039;&#039;&#039;on the right.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[[File:Experimental setup.png|thumb|300px|&#039;&#039;&#039;Experimental setup&#039;&#039;&#039;]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Tool list&#039;&#039;&#039;&lt;br /&gt;
:① Laser Diode: Provide a light source, by changing the laser current can change the light intensity of the light source.&lt;br /&gt;
:② Focal Lens: By adjusting the focal length, the intensity of light that finally hits the photodiodes is adjusted.&lt;br /&gt;
:③ RP: rotatable Polarizer: The proportion of light intensity passing through PBS and reflected by PBS is controlled by adjusting RP.&lt;br /&gt;
:④ Mirror 1: By adjusting mirror 1, the falling points of the two Laser beams after passing through PBS and reflected by PBS can be adjusted simultaneously.  &lt;br /&gt;
:⑤ PBS: Polarizer Beam Splitter: The laser beam incident to the PBS can pass through it or be reflected by it.&lt;br /&gt;
:⑥ Mirror 2: By adjusting mirror 1, the falling points of the laser beam after passing through PBS can be adjusted.  &lt;br /&gt;
:⑦&amp;amp;⑧: Photodiodes: Detect the intensity of incident light&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Description&#039;&#039;&#039;&lt;br /&gt;
:The laser beam comes from the laser diode. After passing through the focal lens and the rotatable Polarizer the laser beam incident to the mirror 1.Then the reflected laser beam incident to the Polarizer Beam splitter. The laser beam reflected by the PBS will incident to the PD1. The laser beam passing through the PBS will incident to the PD2.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Characteristic list&#039;&#039;&#039;&lt;br /&gt;
:Oscilloscope&lt;br /&gt;
:Frequency spectrograph&lt;br /&gt;
&lt;br /&gt;
== Gallery ==&lt;br /&gt;
* &#039;&#039;&#039;26 February 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Did a basic characterization of photodiode&lt;br /&gt;
 * Inputted a sine wave signal and a laser pointer light, observed the waveform of the photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Basic characterization of photodiode test.jpeg|&#039;&#039;&#039;Basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of basic characterization of photodiode test.png|&#039;&#039;&#039;Schematic of basic characterization of photodiode test&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:To understand the optical response of the photodiode, we used a laser pointer to test its output waveform, because the laser is not periodic, so the waveform is not regular, but there are signals from the oscilloscope.&lt;br /&gt;
&lt;br /&gt;
:Then we inputted a periodic sine signal to excite the laser diode to output laser incidents on the photodiode, and it showed a periodic sine signal with a very regular sine waveform. When the frequency increased over 1 GHz, we could not observe a regular and stable waveform. &lt;br /&gt;
* &#039;&#039;&#039;5  March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Used different resistors to test the frequency response of photodiode&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Graph of frequency response of photodiode.jpg|&#039;&#039;&#039;Graph of frequency response of photodiode&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We changed the resistors in the Schematic of basic characterization of photodiode test, from 1kΩ to 11kΩ and then 20kΩ. We found that higher the resistance of the resistor higher the output voltage but less sensitive to the high frequency.&lt;br /&gt;
* &#039;&#039;&#039;12 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the laser system and ensured the laser output&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Laser diode.png|&#039;&#039;&#039;HL6501MG laser diode and schematic of internal circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of electronics laserconnector circuit.jpeg|&#039;&#039;&#039;Schematic of electronics laserconnector circuit&#039;&#039;&#039;&lt;br /&gt;
File:Laser source setup.png|&#039;&#039;&#039;Laser source setup&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:We used a HL6501MG laser diode, it is a 0.65 μm band AlGaInP laser diode (LD) with a multi-quantum well (MQW) structure. It is suitable as a light source for large-capacity optical disc memories and various other types of optical equipment. Hermetic sealing of the small package (φ=5.6 mm) assures high reliability.&lt;br /&gt;
&lt;br /&gt;
:The Laser source consist of ① Laser diode; ② Thermostat; ③ Supply circuit for Laser diode and Thermostat; ④ Shell; ⑤ Focal lens; ⑥ Radiator. The Laser Diode is in the thermostat which is connected to the Radiator. We can set temperature on the Laser power supply. The Thermostat and Radiator will keep the temperature of the laser diode as same as that set on the laser power supply. There is a focal lens in front of the laser diode. We can use it to change the focal length the enlarge the laser intensity hitting on the photo diodes. And a shell made of acrylic sheet and 4 balance post.&lt;br /&gt;
* &#039;&#039;&#039;19 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered photodiode driving circuit&lt;br /&gt;
 * Test the feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Photo diode outlines.png|The S5972 is high-speed Si PIN photodiodes designed for visible to near-infrared light detection. These photodiodes provide wideband characteristics at a low bias, making them suitable for optical communications and other high-speed photometry.&lt;br /&gt;
File:Principle of photodiode driving circuit.png|&#039;&#039;&#039;Principle of photodiode driving circuit&#039;&#039;&#039;&lt;br /&gt;
File:Schematic photodiode driving circuit bolck.jpeg|&#039;&#039;&#039;Schematic photodiode driving circuit bolck&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;26 March 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Build up the whole system&lt;br /&gt;
 * Tune the bias of two photodiodes&lt;br /&gt;
* &#039;&#039;&#039;2 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Focus the laser output&lt;br /&gt;
 * Maximize the laser power output&lt;br /&gt;
* &#039;&#039;&#039;9 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Soldered high pass filter&lt;br /&gt;
 * Test its feasibility&lt;br /&gt;
&amp;lt;gallery widths=300px heights=200px&amp;gt;&lt;br /&gt;
File:Highpass filter principle circuit.png|&#039;&#039;&#039;Schematic of high pass filter circuit&#039;&#039;&#039;&lt;br /&gt;
File:Graph of theoretical high pass filter frequency response.jpg.png|&#039;&#039;&#039;Graph of theoretical high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Graph of measured high pass filter frequency response.jpg|&#039;&#039;&#039;Graph of measured high pass filter frequency response&#039;&#039;&#039;&lt;br /&gt;
File:Schematic of high pass filter.jpeg|&#039;&#039;&#039;Setup of high pass filter&#039;&#039;&#039;&lt;br /&gt;
File:Setup of gain block and high pass filter.jpeg|&#039;&#039;&#039;Setup of gain block and high pass filter&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
:The measured total noise has a relatively flat power density in the range of 60-200 MHz. With a low pass filter of 200 MHz in the oscilloscope, we just needed a high pass filter of 60 MHz which compresses the low-frequency fluctuations. So we designed a high pass filter of 60 MHz and soldered the high pass filter.&lt;br /&gt;
&lt;br /&gt;
:After that, we tested its performance. By comparing with the theoretical high pass filter graph, the measured high pass filter frequency response showed a high correspondence with it, which means it is feasible to apply it to the whole system to suppress the low-frequency fluctuations.&lt;br /&gt;
* &#039;&#039;&#039;16 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Apply the high pass filter to the circuit&lt;br /&gt;
 * Record data and draw some graphs&lt;br /&gt;
* &#039;&#039;&#039;23 April 2022:&#039;&#039;&#039;&lt;br /&gt;
 * Processing experimental data&lt;br /&gt;
 * Draw autocorrelation images&lt;br /&gt;
 * Summarize and upload the experimental results&lt;br /&gt;
&lt;br /&gt;
== Results and analysis ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Main_Page&amp;diff=1154</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Main_Page&amp;diff=1154"/>
		<updated>2022-04-23T09:22:32Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Quantum Random Number Generator */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
Welcome to the main page for the PC5214 graduate module AY2122, Sem2&amp;lt;/strong&amp;gt;.&lt;br /&gt;
Here, we leave project descriptions, literature references, and other collateral information. You will need to create an account in class to obtain write access.&lt;br /&gt;
&lt;br /&gt;
Actual lecture locations will be placed here until we have reached a stable state. If you are interested and have not been able to register, please send me an email (if you have not done so already) to [mailto:phyck@nus.edu.sg phyck@nus.edu.sg].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt;Deadline for all the wiki entries will be 30 April 2022, 23:59! Please ensure that you hare happy with your entries by that time!&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Cheers, Christian&lt;br /&gt;
&lt;br /&gt;
This page is currently set up.&lt;br /&gt;
&lt;br /&gt;
==Lab spaces==&lt;br /&gt;
* &#039;&#039;&#039;S11-02-04&#039;&#039;&#039; (next to physics dept resource room). This is where most optics-related projects should go.&lt;br /&gt;
* &#039;&#039;&#039;S12 level 4&#039;&#039;&#039;, &amp;quot;year 1 teaching lab&amp;quot;, back room, &amp;quot;vanderGraff lab&amp;quot;. This is perhaps were non-optics related projects would fit.&lt;br /&gt;
* &#039;&#039;&#039;S13-01-??&#039;&#039;&#039; (blue door: former accoustics lab). Not sure yet who could go there, but it is a really really quiet place!&lt;br /&gt;
* anything else you have access to&lt;br /&gt;
&lt;br /&gt;
==Projects==&lt;br /&gt;
Please leave a a link to your project page (or pages) here, and leave a short description what this is about. Write the &#039;&#039;&#039;stuff you need&#039;&#039;&#039; under the description too.&lt;br /&gt;
&lt;br /&gt;
===[[Project 1 (example)]]===&lt;br /&gt;
Keep a very brief description of a project or even a suggestion here, and perhaps the names of the team members, or who to contact if there is interest to join.&lt;br /&gt;
&lt;br /&gt;
===[[Confocal Microscopy]]===&lt;br /&gt;
Team Members: Wang Tingyu, Xue Rui, Yang Hengxing&lt;br /&gt;
&lt;br /&gt;
A Confocal Microscopy or Confocal Laser Scanning Microscopy (CLSM) uses pinhole to block out all out of focus light to enhance optical resolution, very different from traditional wide-field fluorescence microscopes. To offset the block of out of focus lights, the light intensity is detected by a photomultiplier tube or avalanche photodiode, which transforms the light signal into an electrical one. We will try to build a Setup like this to enhance optical resolution and maybe get profile information about the sample.&lt;br /&gt;
&lt;br /&gt;
===[[An interferometric method for measuring the resonance frequency of a vibrating system]]===&lt;br /&gt;
&lt;br /&gt;
Members: [[User:Nakarin|Nakarin Jayjong]], [[User:Aucca|Joel Auccapuclla]], [[User:Xiaoyu|Xiaoyu Nie]], [[User:Haotian|Haotian Song]].&lt;br /&gt;
&lt;br /&gt;
In this project, the resonance frequency of the vibrating system namely the vibration transducer is measured using a Michelson interferometer.&lt;br /&gt;
&lt;br /&gt;
===[[Homodyne detection]]===&lt;br /&gt;
Proposed By: [[User:Johnkhootf|John Khoo]]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Homodyne_detection &#039;&#039;Optical&#039;&#039; homodyne detection] is a method for detecting messages transmitted in optical signals, where a frequency or phase modulated signal is compared to what is misleadingly called the &amp;quot;local oscillator&amp;quot; (LO) signal, which is generated from the same source but not modulated with the message. In order to probe quantum effects, it is important to bring the noise of the detector down to the [https://en.wikipedia.org/wiki/Shot_noise &#039;&#039;shot-noise limit&#039;&#039;], where the only fluctuations observed arise from the discrete nature of photons, which can be theoretically modelled as the vacuum-state fluctuations of the quantised electromagnetic field. This project&#039;s first objective is to build a homodyne detector from scratch.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stuff we need&#039;&#039;&#039;: Acousto-optical modulator, electro-optical modulator, transformer to control EOM, photodiodes, current-to-voltage converter (I&#039;m not sure what this is - can we just use a resistor connected to the ground and measure the voltage?), Raspberry Pi (I hope the ADC is good enough for this), mirrors and beamsplitters&lt;br /&gt;
&lt;br /&gt;
===[[Laser Microphone]]===&lt;br /&gt;
Team Members: [[User:Nicholas cjl|Nicholas Chong Jia Le]], [[User:Marcuslow|Marcus Low Zuo Wu]]&lt;br /&gt;
&lt;br /&gt;
A laser spot illuminating a vibrating surface should move along with it, and tracking the motion of the spot should theoretically allow us to retrieve some of the information regarding the vibrations of the surface. If a loud enough sound causes the surface to vibrate, this should theoretically be enough for the transmission of audio information through visual means. The signal obtained will then be put through a few different digital signal processing techniques in an attempt to retrieve a (good enough) copy of the original audio.&lt;br /&gt;
&lt;br /&gt;
===[[Plasma emission spectroscopy]]===&lt;br /&gt;
Proposed By: Park Kun Hee&lt;br /&gt;
&lt;br /&gt;
Pulsed plasma in partial vacuum is characterised, by analysing [https://en.wikipedia.org/wiki/Spectral_line_ratios line intensity ratios] to determine its temperature and density.&lt;br /&gt;
&lt;br /&gt;
===[[Characterization of Single Photon Counters]]===&lt;br /&gt;
Proposed By: Yeo Zhen Yuan&lt;br /&gt;
&lt;br /&gt;
The project is to characterize an Avalanche PhotoDiode (APD) and compare its efficiency with commercial counterparts like [https://www.digikey.com/en/products/detail/excelitas-technologies/SPCM-AQRH-10-FC/6235280 this device]. It works based on the photoelectric effect to turn incident photon into photoelectron. This photoelectron is then accelerated in an electric field to produce cascading electrons and this &amp;quot;electron avalanche&amp;quot; is detected as a spike in the current. Analog signals will need to be processed via custom electronics and ultimately provide a digital readout. Current commercial detectors boast 50% Photon Detector Efficiency (PDE) at room temperature and that will be our goal. They typically cost $2000-$5000 which seems over-priced and ready for disruption. Liquid nitrogen temperatures may be needed to see how large a PDE we can get.&lt;br /&gt;
&lt;br /&gt;
What is SPCM good for? Copied from the datasheet/brochure: LIDAR, Quantum Cryptography, Photon correlation spectroscopy, Astronomical observation, Optical range finding, Adaptive optics, Ultra-sensitive fluorescence, Particle sizing, Microscopy. So maybe this would become a toy/tool for next year&#039;s students.&lt;br /&gt;
&lt;br /&gt;
[NEW CAPABILITY]&lt;br /&gt;
&lt;br /&gt;
High throughput Oscilloscope data collection. ~700 &amp;quot;screenshots&amp;quot; per minute. Demonstration on APD, 10K screenshots of 2 Channel Digital Oscilloscope [https://github.com/zhenyuan992/OpenWave-1KB/raw/88a85a7f18741b370563b03d87a53f913b714a4c/src/results03_01_apdvoltage.png].&lt;br /&gt;
&lt;br /&gt;
Semi-seamless data collection [https://www.tek.com/en/support/faqs/can-i-use-my-oscilloscope-do-data-logging].&lt;br /&gt;
&lt;br /&gt;
===[[Kerr Microscope]]===&lt;br /&gt;
Proposed By: Sim May Inn (write up by Joel Yeo)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Team members: Gan Jun Herng, Joel Yeo, Sim May Inn&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Project Location: S11-02-04&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Imaging a sample can be done in many ways, depending on the light-matter interaction we are interested in observing. The magneto-optic Kerr effect describes the change in polarization and intensity of incident light when it impinges on the surface of a magnetic material. The resultant reflected light can then form an image through focusing optics which provides high contrast between areas of different magnetization.&lt;br /&gt;
&lt;br /&gt;
In this project, we will be aiming to build a basic Kerr microscope using off-the-shelf polarizers, objectives, detectors and laser source. An example of a magnetic sample is the magnetic tape from an old school cassette tape. To increase the field of view, we also plan to incorporate automatic raster scanning of the sample through means of an Arduino-controlled sample stage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Items needed (as of 28 Feb 2022):&#039;&#039;&#039;&lt;br /&gt;
* Light source (visibile wavelength): &amp;lt;s&amp;gt; Laser, LED &amp;lt;/s&amp;gt;, laser diode&lt;br /&gt;
* &amp;lt;s&amp;gt; Linear polarizer (sheet) x 2Camera (CCD/CMOS) &amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt; Non-polarizing beam splitter &amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt; Camera (CCD/CMOS) &amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt; Pinhole/aperture &amp;lt;/s&amp;gt;&lt;br /&gt;
* &amp;lt;s&amp;gt; Magnetic samples for Kerr microscopy (eg. Magnetic film, magnets, ferromagnetic materials) &amp;lt;/s&amp;gt;&lt;br /&gt;
* Arduino&lt;br /&gt;
* Microscope stage&lt;br /&gt;
* Piezoelectrics (?) for moving stage&lt;br /&gt;
&lt;br /&gt;
===[[Electron Gun]]===&lt;br /&gt;
Team Members: Aliki Sofia Rotelli, Lai Tian Hao, Lim En Liang Irvin, Tan Chuan Jie &lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to design and build an electron gun from the initial concept in order to create a detectable electron beam through the use of a phosphor-coated screen. Additionally, the beam current will be examined in order to better define the devices&#039; capabilities. Mass spectrometry, x-ray production for linear accelerators, and electron-beam lithography are just a few of the applications for electron gun technology.&lt;br /&gt;
&lt;br /&gt;
===[[Smoke detection in air]]===&lt;br /&gt;
Team Members: Cheng De Hao, Huang Hai Tao, Wang Zheng Yu &lt;br /&gt;
&lt;br /&gt;
Using detector to detect the scattering light and amplify the signal by using the lock-in amplifier.&lt;br /&gt;
&lt;br /&gt;
===[[Anti-glare LCD]]===&lt;br /&gt;
Team members: Zhang Yuanyuan, Ming Xiaohan, Han Shixin&lt;br /&gt;
&lt;br /&gt;
As s bad lighting phenomenon, glare phonomenon brings inconvenience to all aspects of human life, especially people&#039;s access to information on instruments. In order to suppress glare effectively, anti-glare film is put into research. The common anti-glare film in the market is an optical film using the principle of optical scattering, but it can not adapt to the change of light environment in time, which has some limitations in practical application. In this study, a two-dimensional barcode micro-region orientation structure, based on the characteristics of liquid crystal, namely a random grating structure, was designed by simulation in the lab and using MATLAB software, and its optional parameters were searched.&lt;br /&gt;
&lt;br /&gt;
===[[Custom atomic beam source]]===&lt;br /&gt;
Team Members: Lu Tiangao, Li Putian&lt;br /&gt;
&lt;br /&gt;
===[[Schlieren imaging]]===&lt;br /&gt;
Team members: Zhang Xingjian, Du Jinyi&lt;br /&gt;
&lt;br /&gt;
===[[Contactless Conductivity Measurement]]===&lt;br /&gt;
&lt;br /&gt;
Team members: Chen Guohao, Jiang Luwen&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to measure the conductivity of materials without having to make electrical contact with them. Specifically, we make use of the eddy-current induced in the materials to calculate the conductivity.&lt;br /&gt;
&lt;br /&gt;
===[[Quantum Random Number Generator]]===&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Proposed by: Zhang Munan&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Team members: Wang Yang, Xiao Yucan, Zhang Munan&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Venue: S11-02-04&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Random numbers are a fundamental resource in science and engineering with important applications in simulation and cryptography. The inherent randomness at the core of quantum mechanics makes quantum systems a perfect source of entropy. Quantum random number generation is one of the most mature quantum technologies with many alternative generation methods. The purpose of our project is to build a simple optics-based QRNG. We will also collect the random number generated by our device and use some methods to check the randomness.&lt;br /&gt;
&lt;br /&gt;
===[[Orbits of the Galilean Moons]]===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Team Members: [[User:Matthew|Matthew Wee]]&lt;br /&gt;
&lt;br /&gt;
Galileo Galilei’s discovery of celestial bodies that orbit something other than the Earth marked the beginning of the end of the geocentric model of the universe. In this project, we will perform the same observations on those moons as Galileo did 400 years ago.&lt;br /&gt;
&lt;br /&gt;
===[[Capacitor array based ADC]]===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Team Members: Zhang Chengyue, Yang Ningli, Guo Diandian, Chen Jiayu&lt;br /&gt;
&lt;br /&gt;
In this project, we are going to make an ADC.&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
===[[Recorded sessions]]===&lt;br /&gt;
Some of the sessions will be recorded and uploaded to youtube. Find a description on the [[Recorded sessions]] page.&lt;br /&gt;
&lt;br /&gt;
===Devices and material===&lt;br /&gt;
Apart form all the stuff in the teaching lab, we have a few resources you may want to consider for your project&lt;br /&gt;
*...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Books:&#039;&#039;&#039;&lt;br /&gt;
* P.R. Bevington, D.K. Robinson: Data Reduction and Error Analysis for the Physical Sciences, 3rd edition. McGrawHill, ISBN0-07-119926-8. A very good book containing all the questions you never allowed yourself to ask about error treatment, statistics, fitting of data to models etc.&lt;br /&gt;
* Horrowitz/Hill: The Art of Electronics&lt;br /&gt;
* C.H. Moore, C.C. Davis, M.A. Coplan: Building Scientific Apparatus. 2nd or higher edition. Perseus Books, ISBN0-201-13189-7. A very comprehensive book about many dirty details in experimental physics, and ways to get simple problems solved. Appears a bit dated, but is a good start for many experimental projects up to this day!&lt;br /&gt;
* Christopher C. Davis: Laser and Electro-optics. Useful as a general introduction to many contemporary aspects you come across when working with lasers, with a reasonable introduction of the theory. Very practical for optics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Software:&#039;&#039;&#039;&lt;br /&gt;
Some of the more common data processing tools used in experimental physics:&lt;br /&gt;
* [http://www.gnuplot.info/ &#039;&#039;&#039;Gnuplot&#039;&#039;&#039;]: A free and very mature data display tool that works on just about any platform used that produces excellent publication-grade eps and pdf figures. Can be also used in scripts. Open source and completely free.&lt;br /&gt;
* Various &#039;&#039;&#039;Python&#039;&#039;&#039; extensions. [http://www.python.org/ Python] is a very powerful free programming language that runs on just about any computer platform. It is open source and completely free.&lt;br /&gt;
* &#039;&#039;&#039;Matlab&#039;&#039;&#039;: Very common, good toolset also for formal mathematics, good graphics. Expensive. We may have a site license, but I am not sure how painful it is for us to get a license for this course. Ask me if interested.&lt;br /&gt;
* &#039;&#039;&#039;Mathematica&#039;&#039;&#039;: More common among theroetical physicists, very good in formal maths, now with better numerics. Graphs are ok but can be a pain to make looking good. As with Matlab, we do have a campus license but an increasingly painful licensing ritual. Ask me if interested or follow the instruction to install the software in your desktop.&lt;br /&gt;
* &#039;&#039;&#039;Origin&#039;&#039;&#039;: Very widespread data processing software with a complete graphical user interface, integrates well into a Windows environment. Most likely available in your research labs, not sure if NUS has a site license.&lt;br /&gt;
* &#039;&#039;&#039;Labview&#039;&#039;&#039;: Many of you may have seen this in your labs, but I am not too familiar with it, and chances are it is too resource-hungry to run on the machines we have there. It keeps its promise of a fast learning curve if you want to do simple things but it can get a REAL pain if you want to do subtle things, or want to do things fast, or want to debug code. Expensive and resource-hungry, but comes with good integration of also expensive hardware. May not be worth it if you know any programming language.&lt;br /&gt;
* [https://www.circuitlab.com/ &#039;&#039;&#039;Circuit Lab&#039;&#039;&#039;]: a convenient software to design and simulate electrical circuits directly at your browser. I think Flash is required. It works well in Chrome.&lt;br /&gt;
&lt;br /&gt;
===[[Acronym database]]===&lt;br /&gt;
This is an attempt to clarify the countless acronyms we use in our sub-communities (follow headline link)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[Gnuplot tricks]]===&lt;br /&gt;
Follow the headline link for some of the random questions that came up with gnuplot.&lt;br /&gt;
&lt;br /&gt;
== Previous PC5214 wikis ==&lt;br /&gt;
* [http://pc5214.org/AY1819S2 AY2018/19 Sem2]&lt;br /&gt;
* [http://pc5214.org/AY1415S1 AY2014/15 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1314S1 AY2013/14 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1213S1 AY2012/13 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1112S1 AY2011/12 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1011S1 AY2010/11 Sem1]&lt;br /&gt;
&lt;br /&gt;
== Some wiki reference materials==&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User&#039;s Guide] for information on using the wiki software. Other sources:&lt;br /&gt;
&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [[Writing mathematical expressions]]&lt;br /&gt;
* [[Uploading images]]&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=300</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=300"/>
		<updated>2022-02-23T04:24:53Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Background reading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;br /&gt;
[1]Quantum random number generators, Miguel Herrero-Collantes and Juan Carlos Garcia-Escartin, Rev. Mod. Phys. 89, 015004.&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=299</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=299"/>
		<updated>2022-02-23T02:28:23Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Team Members */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang&lt;br /&gt;
&lt;br /&gt;
Xiao Yucan&lt;br /&gt;
&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=298</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=298"/>
		<updated>2022-02-23T02:26:27Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Team Members */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
Wang Yang&lt;br /&gt;
Xiao Yucan&lt;br /&gt;
Zhang Munan A0236273E&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=297</id>
		<title>Quantum Random Number Generator</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Quantum_Random_Number_Generator&amp;diff=297"/>
		<updated>2022-02-23T02:25:52Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: Created page with &amp;quot;== Team Members ==  == Idea ==  == Setup ==  == Background reading ==&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Team Members ==&lt;br /&gt;
&lt;br /&gt;
== Idea ==&lt;br /&gt;
&lt;br /&gt;
== Setup ==&lt;br /&gt;
&lt;br /&gt;
== Background reading ==&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
	<entry>
		<id>https://pc5214.org/index.php?title=Main_Page&amp;diff=296</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://pc5214.org/index.php?title=Main_Page&amp;diff=296"/>
		<updated>2022-02-23T02:20:39Z</updated>

		<summary type="html">&lt;p&gt;Zhang Munan: /* Projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;MediaWiki has been installed.&amp;lt;/strong&amp;gt;&lt;br /&gt;
Welcome to the main page for the PC5214 graduate module AY2122, Sem2&amp;lt;/strong&amp;gt;.&lt;br /&gt;
Here, we leave project descriptions, literature references, and other collateral information. You will need to create an account in class to obtain write access.&lt;br /&gt;
&lt;br /&gt;
Actual lecture locations will be placed here until we have reached a stable state. If you are interested and have not been able to register, please send me an email (if you have not done so already) to [mailto:phyck@nus.edu.sg phyck@nus.edu.sg].&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;lt;span style=&amp;quot;color:#ff0000&amp;quot;&amp;gt;For the session on 14 Jan and some following sessions, we were given LT29.&amp;lt;/span&amp;gt;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Cheers, Christian&lt;br /&gt;
&lt;br /&gt;
This page is currently set up.&lt;br /&gt;
&lt;br /&gt;
==Lab spaces==&lt;br /&gt;
* &#039;&#039;&#039;S11-02-04&#039;&#039;&#039; (next to physics dept resource room). This is where most optics-related projects should go.&lt;br /&gt;
* &#039;&#039;&#039;S12 level 4&#039;&#039;&#039;, &amp;quot;year 1 teaching lab&amp;quot;, back room, &amp;quot;vanderGraff lab&amp;quot;. This is perhaps were non-optics related projects would fit.&lt;br /&gt;
* &#039;&#039;&#039;S13-01-??&#039;&#039;&#039; (blue door: former accoustics lab). Not sure yet who could go there, but it is a really really quiet place!&lt;br /&gt;
* anything else you have access to&lt;br /&gt;
&lt;br /&gt;
==Projects==&lt;br /&gt;
Please leave a a link to your project page (or pages) here, and leave a short description what this is about. Write the &#039;&#039;&#039;stuff you need&#039;&#039;&#039; under the description too.&lt;br /&gt;
&lt;br /&gt;
===[[Project 1 (example)]]===&lt;br /&gt;
Keep a very brief description of a project or even a suggestion here, and perhaps the names of the team members, or who to contact if there is interest to join.&lt;br /&gt;
&lt;br /&gt;
===[[Confocal Microscopy]]===&lt;br /&gt;
Team Members: Wang Tingyu, Xue Rui, Yang Hengxing&lt;br /&gt;
&lt;br /&gt;
A Confocal Microscopy or Confocal Laser Scanning Microscopy (CLSM) uses pinhole to block out all out of focus light to enhance optical resolution, very different from traditional wide-field fluorescence microscopes. To offset the block of out of focus lights, the light intensity is detected by a photomultiplier tube or avalanche photodiode, which transforms the light signal into an electrical one. We will try to build a Setup like this to enhance optical resolution and maybe get profile information about the sample.&lt;br /&gt;
&lt;br /&gt;
===[[Measure index of refraction]]===&lt;br /&gt;
&lt;br /&gt;
Members: Joel Auccapuclla, Xiaoyu Nie, Haotian Song, Nakarin Jayjong.&lt;br /&gt;
Use an interferometer to obtain the index of refraction of different materials, for instance air.&lt;br /&gt;
&lt;br /&gt;
===[[Homodyne detection]]===&lt;br /&gt;
Proposed By: [[User:Johnkhootf|John Khoo]]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Homodyne_detection &#039;&#039;Optical&#039;&#039; homodyne detection] is a method for detecting messages transmitted in optical signals, where a frequency or phase modulated signal is compared to what is misleadingly called the &amp;quot;local oscillator&amp;quot; (LO) signal, which is generated from the same source but not modulated with the message. In order to probe quantum effects, it is important to bring the noise of the detector down to the [https://en.wikipedia.org/wiki/Shot_noise &#039;&#039;shot-noise limit&#039;&#039;], where the only fluctuations observed arise from the discrete nature of photons, which can be theoretically modelled as the vacuum-state fluctuations of the quantised electromagnetic field. This project&#039;s first objective is to build a homodyne detector from scratch.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Stuff we need&#039;&#039;&#039;: Acousto-optical modulator, electro-optical modulator, transformer to control EOM, photodiodes, current-to-voltage converter (I&#039;m not sure what this is - can we just use a resistor connected to the ground and measure the voltage?), Raspberry Pi (I hope the ADC is good enough for this), mirrors and beamsplitters&lt;br /&gt;
&lt;br /&gt;
===[[Laser Microphone]]===&lt;br /&gt;
Team Members: Nicholas Chong Jia Le, Marcus Low Zuo Wu&lt;br /&gt;
&lt;br /&gt;
A laser spot illuminating a vibrating surface should move along with it, and tracking the motion of the spot should theoretically allow us to retrieve some of the information regarding the vibrations of the surface. If a loud enough sound causes the surface to vibrate, this should theoretically be enough for the transmission of audio information through visual means. We have a few different methods through which we will attempt to realise this.&lt;br /&gt;
&lt;br /&gt;
===[[Plasma emission spectroscopy]]===&lt;br /&gt;
Proposed By: Park Kun Hee&lt;br /&gt;
&lt;br /&gt;
Pulsed plasma in partial vacuum is characterised, by analysing [https://en.wikipedia.org/wiki/Spectral_line_ratios line intensity ratios] to determine its temperature and density.&lt;br /&gt;
&lt;br /&gt;
===[[Characterization of Single Photon Counters]]===&lt;br /&gt;
Proposed By: Yeo Zhen Yuan (Looking for Teammates!)&lt;br /&gt;
&lt;br /&gt;
The project is to characterize an Avalanche PhotoDiode (APD) and compare its efficiency with commercial counterparts like [https://www.digikey.com/en/products/detail/excelitas-technologies/SPCM-AQRH-10-FC/6235280 this device]. It works based on the photoelectric effect to turn incident photon into photoelectron. This photoelectron is then accelerated in an electric field to produce cascading electrons and this &amp;quot;electron avalanche&amp;quot; is detected as a spike in the current. Analog signals will need to be processed via custom electronics and ultimately provide a digital readout. Current commercial detectors boast 50% Photon Detector Efficiency (PDE) at room temperature and that will be our goal. They typically cost $2000-$5000 which seems over-priced and ready for disruption. Liquid nitrogen temperatures may be needed to see how large a PDE we can get.&lt;br /&gt;
&lt;br /&gt;
What is SPCM good for? Copied from the datasheet/brochure: LIDAR, Quantum Cryptography, Photon correlation spectroscopy, Astronomical observation, Optical range finding, Adaptive optics, Ultra-sensitive fluorescence, Particle sizing, Microscopy. So maybe this would become a toy/tool for next year&#039;s students.&lt;br /&gt;
&lt;br /&gt;
===[[Kerr Microscope]]===&lt;br /&gt;
Proposed By: Sim May Inn (write up by Joel Yeo)&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Team members: Gan Jun Herng, Joel Yeo&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Project Location: S11-02-04&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Imaging a sample can be done in many ways, depending on the light-matter interaction we are interested in observing. The magneto-optic Kerr effect describes the change in polarization and intensity of incident light when it impinges on the surface of a magnetic material. The resultant reflected light can then form an image through focusing optics which provides high contrast between areas of different magnetization.&lt;br /&gt;
&lt;br /&gt;
In this project, we will be aiming to build a basic Kerr microscope using off-the-shelf polarizers, objectives, detectors and laser source. An example of a magnetic sample is the magnetic tape from an old school cassette tape. To increase the field of view, we also plan to incorporate automatic raster scanning of the sample through means of an Arduino-controlled sample stage.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Items needed (as of 08 Feb 2022):&#039;&#039;&#039;&lt;br /&gt;
* Light source: Laser, LED (visibile wavelength)&lt;br /&gt;
* Linear polarizer (sheet) x 2&lt;br /&gt;
* Non-polarizing beam splitter&lt;br /&gt;
* Camera (CCD/CMOS)&lt;br /&gt;
* Pinhole/aperture&lt;br /&gt;
* Magnetic samples for Kerr microscopy (eg. Magnetic film, magnets, ferromagnetic materials)&lt;br /&gt;
* Arduino&lt;br /&gt;
* Microscope stage&lt;br /&gt;
* Piezoelectrics (?) for moving stage&lt;br /&gt;
&lt;br /&gt;
===[[Electron Gun]]===&lt;br /&gt;
Team Members: Aliki Sofia Rotelli, Lai Tian Hao, Lim En Liang Irvin, Tan Chuan Jie &lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to design and build an electron gun from the initial concept in order to create a detectable electron beam through the use of a phosphor-coated screen. Additionally, the beam current will be examined in order to better define the devices&#039; capabilities. Mass spectrometry, x-ray production for linear accelerators, and electron-beam lithography are just a few of the applications for electron gun technology.&lt;br /&gt;
&lt;br /&gt;
===[[Air biased coherent detection ]]===&lt;br /&gt;
Team Members: Cheng De Hao, Huang Hai Tao, Wang Zhenyu&lt;br /&gt;
&lt;br /&gt;
===[[In-situ magnetic imaging and Hall detection]]===&lt;br /&gt;
Proposed by Sim May Inn&lt;br /&gt;
&lt;br /&gt;
In computing and memory device architectures, propagation of magnetic domains play an essential role in the encoding and transport of information. Magnetic domain imaging is often employed to unveil such propagation dynamics. Additionally, other than observation and studies of their dynamics, means of detection are also of interest, and this can be achieved through the read-outs of Hall effect signals. As such, this project aims to design and modify an existing low temperature setup to be able to concurrently perform both magnetic domain imaging and Hall signal detection.&lt;br /&gt;
&lt;br /&gt;
===[[Anti-glare LCD]]===&lt;br /&gt;
Team members: Zhang Yuanyuan, Ming Xiaohan, Han Shixin&lt;br /&gt;
&lt;br /&gt;
As s bad lighting phenomenon, glare phonomenon brings inconvenience to all aspects of human life, especially people&#039;s access to information on instruments. In order to suppress glare effectively, anti-glare film is put into research. The common anti-glare film in the market is an optical film using the principle of optical scattering, but it can not adapt to the change of light environment in time, which has some limitations in practical application. In this study, a two-dimensional barcode micro-region orientation structure, based on the characteristics of liquid crystal, namely a random grating structure, was designed by simulation in the lab and using MATLAB software, and its optional parameters were searched.&lt;br /&gt;
&lt;br /&gt;
===[[Custom atomic beam source]]===&lt;br /&gt;
Team Members: Lu Tiangao, Li Putian&lt;br /&gt;
&lt;br /&gt;
===[[Schlieren imaging]]===&lt;br /&gt;
Team members: Zhang Xingjian, Du Jinyi&lt;br /&gt;
&lt;br /&gt;
===[[Contactless Conductivity Measurement]]===&lt;br /&gt;
&lt;br /&gt;
Team members: Chen Guohao, Jiang Luwen&lt;br /&gt;
&lt;br /&gt;
The purpose of this project is to measure the conductivity of materials without having to make electrical contact with them. Specifically, we make use of the eddy-current induced in the materials to calculate the conductivity.&lt;br /&gt;
&lt;br /&gt;
===[[Quantum Random Number Generator]]===&lt;br /&gt;
&lt;br /&gt;
Team members: Wang Yang, Xiao Yucan, Zhang Munan&lt;br /&gt;
&lt;br /&gt;
Random numbers are a fundamental resource in science and engineering with important applications in simulation and cryptography. The inherent randomness at the core of quantum mechanics makes quantum systems a perfect source of entropy. Quantum random number generation is one of the most mature quantum technologies with many alternative generation methods. The purpose of our project is to build a simple optics-based QRNG. We will also collect the random number generated by our device and use some methods to check the randomness.&lt;br /&gt;
&lt;br /&gt;
==Resources==&lt;br /&gt;
===[[Recorded sessions]]===&lt;br /&gt;
Some of the sessions will be recorded and uploaded to youtube. Find a description on the [[Recorded sessions]] page.&lt;br /&gt;
&lt;br /&gt;
===Devices and material===&lt;br /&gt;
Apart form all the stuff in the teaching lab, we have a few resources you may want to consider for your project&lt;br /&gt;
*...&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Books:&#039;&#039;&#039;&lt;br /&gt;
* P.R. Bevington, D.K. Robinson: Data Reduction and Error Analysis for the Physical Sciences, 3rd edition. McGrawHill, ISBN0-07-119926-8. A very good book containing all the questions you never allowed yourself to ask about error treatment, statistics, fitting of data to models etc.&lt;br /&gt;
* Horrowitz/Hill: The Art of Electronics&lt;br /&gt;
* C.H. Moore, C.C. Davis, M.A. Coplan: Building Scientific Apparatus. 2nd or higher edition. Perseus Books, ISBN0-201-13189-7. A very comprehensive book about many dirty details in experimental physics, and ways to get simple problems solved. Appears a bit dated, but is a good start for many experimental projects up to this day!&lt;br /&gt;
* Christopher C. Davis: Laser and Electro-optics. Useful as a general introduction to many contemporary aspects you come across when working with lasers, with a reasonable introduction of the theory. Very practical for optics.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Software:&#039;&#039;&#039;&lt;br /&gt;
Some of the more common data processing tools used in experimental physics:&lt;br /&gt;
* [http://www.gnuplot.info/ &#039;&#039;&#039;Gnuplot&#039;&#039;&#039;]: A free and very mature data display tool that works on just about any platform used that produces excellent publication-grade eps and pdf figures. Can be also used in scripts. Open source and completely free.&lt;br /&gt;
* Various &#039;&#039;&#039;Python&#039;&#039;&#039; extensions. [http://www.python.org/ Python] is a very powerful free programming language that runs on just about any computer platform. It is open source and completely free.&lt;br /&gt;
* &#039;&#039;&#039;Matlab&#039;&#039;&#039;: Very common, good toolset also for formal mathematics, good graphics. Expensive. We may have a site license, but I am not sure how painful it is for us to get a license for this course. Ask me if interested.&lt;br /&gt;
* &#039;&#039;&#039;Mathematica&#039;&#039;&#039;: More common among theroetical physicists, very good in formal maths, now with better numerics. Graphs are ok but can be a pain to make looking good. As with Matlab, we do have a campus license but an increasingly painful licensing ritual. Ask me if interested or follow the instruction to install the software in your desktop.&lt;br /&gt;
* &#039;&#039;&#039;Origin&#039;&#039;&#039;: Very widespread data processing software with a complete graphical user interface, integrates well into a Windows environment. Most likely available in your research labs, not sure if NUS has a site license.&lt;br /&gt;
* &#039;&#039;&#039;Labview&#039;&#039;&#039;: Many of you may have seen this in your labs, but I am not too familiar with it, and chances are it is too resource-hungry to run on the machines we have there. It keeps its promise of a fast learning curve if you want to do simple things but it can get a REAL pain if you want to do subtle things, or want to do things fast, or want to debug code. Expensive and resource-hungry, but comes with good integration of also expensive hardware. May not be worth it if you know any programming language.&lt;br /&gt;
* [https://www.circuitlab.com/ &#039;&#039;&#039;Circuit Lab&#039;&#039;&#039;]: a convenient software to design and simulate electrical circuits directly at your browser. I think Flash is required. It works well in Chrome.&lt;br /&gt;
&lt;br /&gt;
===[[Acronym database]]===&lt;br /&gt;
This is an attempt to clarify the countless acronyms we use in our sub-communities (follow headline link)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[Gnuplot tricks]]===&lt;br /&gt;
Follow the headline link for some of the random questions that came up with gnuplot.&lt;br /&gt;
&lt;br /&gt;
== Previous PC5214 wikis ==&lt;br /&gt;
* [http://pc5214.org/AY1819S2 AY2018/19 Sem2]&lt;br /&gt;
* [http://pc5214.org/AY1415S1 AY2014/15 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1314S1 AY2013/14 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1213S1 AY2012/13 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1112S1 AY2011/12 Sem1]&lt;br /&gt;
* [http://pc5214.org/AY1011S1 AY2010/11 Sem1]&lt;br /&gt;
&lt;br /&gt;
== Some wiki reference materials==&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User&#039;s Guide] for information on using the wiki software. Other sources:&lt;br /&gt;
&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [[Writing mathematical expressions]]&lt;br /&gt;
* [[Uploading images]]&lt;/div&gt;</summary>
		<author><name>Zhang Munan</name></author>
	</entry>
</feed>