Generation of quantum-certified random numbers using on-chip path-entangled single photons from an LED
Entanglement is one of the most striking features of quantum physics. The non-classical correlations that entanglement induces in quantum states have been debated since 1935, when Einstein, Podolski, and Rosen pointed out what would have been named the EPR paradox after them . It was only several years later that a way out of the impasse was proposed by John Bell. Its famous inequality  provides indeed a quantitative solution to effectively demonstrate that correlations induced by entanglement cannot be explained classically using any realistic local-hidden variable. Today entanglement represents a resource in many quantum applications, especially in quantum computing and communications [3–8]. However, its exploitation is mainly limited to research laboratories only, still far from being used in real-life devices. This is mainly due to technological complexities related to its generation and management.
In photonics, entangled photons pairs are typically obtained exploiting non-linear optical processes such as spontaneous parametric downconversion  or four-wave mixing , using suitable laser sources. On the contrary, single-photon entanglement (SPE)  can be more easily generated using only linear optical components and cheap light sources, such as LEDs . SPE corresponds to quantum correlations between two or more degrees of freedom (DoFs) of a single photon. Examples of the possible DoFs used are momentum and polarization [12–15]. From the mathematical point of view, SPE is totally analogous to the entanglement of two photons, or inter-photon entanglement. In both cases, the Hilbert space is determined by the tensor product of two independent Hilbert spaces: in the case of SPE, these are the spaces associated with the two independent DoFs chosen, while, in the case of the inter-photon entanglement, the two spaces are each one associated with one of the two photons. Here, it is important to stress that there is a whole literature on the non-locality of a single photon [16,17] and on single-photon entanglement where the qubit is the occupation state of an optical mode [18,19]. This is a form of inter-photon entanglement. Therefore, it is physically different from what we name here as SPE [13,14]. In SPE, the qubit is not the state of a mode of the electromagnetic field (i.e., no use of photon number or Fock states) but a degree of freedom (i.e., momentum, polarization, path, or others) of a single photon . And indeed, it is from the physical point of view that the differences are more remarkable. Inter-photon entanglement exhibits a non-local phenomenology, while SPE concerns contextual, but local, observations. The meaning of the violation of the Bell inequality is also different in the two scenarios. In the case of inter-photon entanglement, it means that no realistic local hidden variable theory is able to explain the experiment’s results, while, in the case of SPE, it means that no realistic non-contextual hidden variable theory is capable of predicting the results . The fact that SPE is a local phenomenon implies that it cannot be used as a substitute for inter-photon entanglement in many quantum applications. However, there can be specific cases in which, thanks to the easier generation and management aspects, it can be exploited for developing entanglement-based applications with potentially larger diffusion. One of them concerns random number generation.
Random numbers are fundamental resources in many different applications, such as gambling and gaming, lotteries, computer simulation, and cryptography. In cryptography, in particular, the unpredictability of the random sequence ensures the reliability of the encryption protocols. To generate random numbers, random number generators (RNGs) are usually exploited. Among all RNGs, quantum random number generators (QRNGs) [20,21] are the only ones that can generate truly random numbers. Indeed, pseudo-random number generators  and true-random number generators [23,24] exploit algorithms and noisy/chaotic processes, respectively, to generate random sequences. While the first ones are not truly random by definition, the second ones involve complex physical processes making randomness certification quite hard to obtain. On the contrary, for QRNGs such a certification is usually easier and can be done even considering malicious and error-prone implementation or an eavesdropper that is attacking the generator. Considering the level of security, QRNGs can be divided into three categories: device-dependent QRNGs (DD-QRNGs), device-independent QRNGs (DI-QRNGs) , and semi-device-independent QRNGs (SDI-QRNGs) . DD-QRNGs are less secure, as their randomness certification scheme is based on the perfect characterization of their physical implementation. In perfect conditions, these QRNGs work quite well, but they are unable to cope with any change in their performances, which can possibly alter the produced randomness. DI-QRNGs are instead the most secure QRNGs, since their
In this work we propose a photonic integrated circuit (PIC) able to generate and manipulate single-photon path-entangled states by using typical integrated photonic devices such as multi-mode interferometers (MMIs), thermal phase shifters (PSs), Mach–Zehnder interferometers (MZIs), and crossings (CRs) . The qubit encoding is done using four waveguides: depending on which waveguide the photon is injected, a certain state is codified [26,27]. The presence of entanglement is validated by performing a Bell test . SPE and Bell inequality violation are used to lower-bound the conditional min-entropy of the generated sequence of measurement outcomes. The min-entropy represents the figure of merit to quantify true quantum randomness , and its correct estimation is fundamental for each RNG to obtain, from the raw sequence of generated bits, a sequence of uniform random digits using the randomness extraction procedure . In particular, conditional min-entropy can quantify the level of unpredictability, i.e., the security, of the produced sequence of raw bits independently of classical noise sources and of any information potentially accessible to an eavesdropper. In this context, statistical tests such as NIST or Diehard are of secondary importance since they can only check particular statistical properties of the produced random sequence but cannot assess its level of security. The reported PIC implements an SDI-QRNG. The necessary assumptions on which it is based are the use of trusted and characterized detectors and the not-maliciousness of the experimental setup used, which can be, however, considered error-prone. With respect to a previous work from a few of us , the SDI-QRNG here proposed is a PIC exploiting an external commercial red LED as a light source and achieving a high value of min-entropy in the most general and secure scenario one can envision, thus making a significant step toward real-world applications.
The paper is organized as follows. In Section 2, we introduce SPE in the case of path entanglement and we detail the structure of the PIC. Then, in Section 3, all the non-idealities of the experiment are considered and their effect on the Bell inequality is taken into account. In Section 5, we present the experimental data that certify the generation of path-entangled states. In Section 6, we present the experimental data demonstrating our SDI-QRNG based on SPE states of path. Finally, in Section 7 we draw the conclusion, and in Section 4 we report the experimental methods.
2. SINGLE-PHOTON PATH-ENTANGLED STATES ON A PIC
Single-photon entangled states are those states in which at least two DoFs of a single photon are quantum correlated. Here we generate single-photon path-entangled states by considering four waveguides and two effective DoFs, namely the absolute () and the relative () positions of each waveguide with respect to the symmetry axis of the system (dashed white line in Fig. 1). According to the scheme of Fig. 1, such a Hilbert space can be seen as .
Fig. 1. Qubit encoding. Two qubits describe the system and are encoded according to the absolute and relative positions of the waveguide in which the photon is injected with respect to the dashed white line. The values of the two qubits are fixed using the following bases: absolute position (up
and down ) and relative position (far and near ).
The four states of the Bell basis in such qubit encoding are
In this work, we focus on the state . To generate such state, we have designed and fabricated a PIC (a scheme is reported in Fig. 2) based on silicon oxynitride () material, a low-index contrast photonic platform . The structure of the PIC is simple and composed only of linear integrated optical elements: MMIs, PSs, MZIs, and CRs [32,33]. The first part of the PIC (yellow box in Fig. 2) is responsible for generating the SPE state by exploiting a 50:50 MMI and two PSs setting the relative phase of the entangled state, that, apart from a global non-influent phase, can be written as
Fig. 2. Schematic representation of the PIC used for random number generation based on SPE. In cyan, the optical waveguides; in blue, the oxide cladding. A red LED is used as a light source. Light coupling in and out of the PIC is performed using tapered optical fibers (transparent cones in the drawing). The PIC can be divided into three parts: generation, relative-position rotation, and absolute-position rotation. The generation stage is enclosed by the yellow rectangle on the left side. Here, the entangled state is created. The relative-position rotation corresponds to the first green rectangle from the left: here two MZIs rotate the qubit of relative position by an angle
. The absolute-position rotation stage is found in the large green rectangle on the right side: here two MZIs rotate the qubit of absolute position by an angle . At the output, the rotated state is projected onto one of the four states composing the basis of the four-dimensional Hilbert space: , and . List of abbreviations: MMI, multi-mode interferometer; PS, phase shifter; MZI, Mach–Zehnder interferometer; CR, crossing; SPADs, single-photon avalanche diodes.
To demonstrate the presence of entanglement, a Bell test  in the Clauser, Horne, Shimony, and Holt (CHSH) form  is operated. Its aim is to quantify the presence of correlations between suitable measurements performed on the two qubits considered. To run a Bell test, it is necessary to define four measurement operations to be performed on the entangled state and connected to two observables, and , each one dependent on a binary variable, and , respectively. Such measurements must have binary outputs, and , which can then assume values . In particular, is an observable that has to be measured only on one qubit, while only on the other. By defining the correlation coefficient as
If , then we are dealing with an entangled state. More precisely, entanglement is a necessary but non-sufficient condition for a state to satisfy such an inequality, while separable states always result in . In the PIC, the Bell test is performed by using the other two stages. The two measurement operations and are implemented by a combination of four MZIs with the help of two CRs and four single-photon avalanche diodes (SPADs) that are off-chip. In particular, two MZIs work in parallel to rotate the relative-position qubit by an angle (green box at the center of Fig. 2), while two cascaded MZIs, separated by a pair of CRs, rotate the absolute-position qubit by an angle (green box on the right side of Fig. 2), where and correspond to and in Eq. (4), respectively. A fair implementation of such rotations requires that the same rotation angle is set for both the MZIs relative to the same qubit. Then, the rotated SPE state is projected over the four states , and composing the Hilbert space, by means of four waveguides coupled to four off-chip SPADs. According to this, the observable can be constructed in the following way:
The theoretical form of the correlation coefficient and correlation function can be calculated introducing the matrix representation of the MZIs. In particular, an MZI is composed of two 50:50 beam splitters, implemented on-chip using MMI devices, separated by two optical waveguides, each one having a PS. In the ideal case, the 50:50 MMI and the PS matrix representations are
Consequently, according to standard transfer matrix formalism, the matrix representation of the MZI is
Essentially, each MZI implements a rotation of an angle , with a global phase shift of , with . Considering the four MZIs represented in Fig. 2, for the two MZIs that rotate the relative-position qubit (first green box from the left in Fig. 2), while for the two MZIs that rotate the absolute-position qubit (second green box from the left in Fig. 2). By implementing two rotations of angles and , respectively, for the relative- and absolute-position qubits, the theoretical form of the correlation coefficient becomes
By introducing the parameter , such that , the correlation function can be rewritten as
As shown in Fig. 2, to generate SPE states we use an LED. As explained in detail in Ref. , the statistics of the photon source does not affect the estimate of the correlation function and the corresponding verification of Bell inequality violation since
3. NON-IDEALITIES IN THE EXPERIMENTAL ESTIMATION OF
Our experimental implementation is affected by a few non-idealities, that in principle could result in a wrong estimation of . A first aspect to be considered is the broadband spectrum of emission of the LED. Indeed, the PIC has been designed for , so that its performances are optimized at that wavelength. However, the used LED source has a broadband spectrum (), so that the wavelength-dependent behavior of the integrated optical elements has to be taken into account. For example, the matrix representation of the MMIs becomes
A second aspect concerns losses. Waveguide propagation losses have to be considered. Moreover, MMIs can have insertion losses, meaning that . Finally, a third non-negligible aspect is represented by current instabilities of the electronics controlling the PSs of the PIC. Indeed, a key feature that must be ensured when a Bell test is performed is that each qubit must be rotated independently by the other . More formally, the observables that are considered in a Bell test must be written in product form . This is ensured by imposing the same rotation angle on the two MZIs rotating each qubit. To justify the above requirement, let us consider the situation in which all the MZIs are set with different rotation phases (see Fig. 3):
Fig. 3. Schematic representation of the different phases (green) associated with each MZI with the relative phase errors (white). Each green rectangle highlights the rotation operation performed by the considered MZI according to its phases.
The and matrices consider that each MZI rotates a particular part of the SPE state that is generated: considering the upper MZI in the first green box of Fig. 2, it rotates the far and near components of the up part of the state. Consequently, in order to have the equalities
3.5 A. Broadband Light Source
Here, we consider the wavelength dependence of the transmission and reflection coefficients of the MMIs (, ), as well as of the rotation angles set via the MZIs. Without any loss of generality, we can represent the state of the incoming photons as a convex superposition of the following form:
The corresponding quantum probabilities are a convex superposition of the following form:
This is equivalent to saying that each monochromatic component of the generic state Eq. (22) is subject to the measurement of a different pair of observables, , associated with specific projection-valued measures (PVMs) :
Analogously, the Bell parameter is given by the convex superposition
This means that using a broadband light source results in a correlation function which is a spectrally weighted average. It is important to point out that this fact does not affect the entropy certification protocol (see Section 6 and Appendix C).
Moreover, we want to stress that here the fact that our light source is non-monochromatic does not require the use of a narrowband optical filter for the actual integrated setup as it is the case for the bulk one reported in Ref. . Indeed, thanks to the fact that the phase delay of MZIs is varied by slightly changing the refractive index of the waveguides all the rotation operations naturally occur within the coherence time.
3.6 B. Losses
We can consider two types of losses affecting the PIC:
Thanks to the homogeneity of the discrete components and to the symmetry of the PIC, in particular to the nominally equal lengths of the paths corresponding to the four different outputs (detection channels), the overall impact of losses can be modeled by a diagonal operator of the form , with , hence commuting with any operator acting on the 2-qubits Hilbert space. Therefore, the probability of photon detection per channel is given by
3.7 C. Current Instabilities
In all cases in which electrical currents applied to PSs do not precisely correspond to the desired nominal values, an error is introduced for each PS. As a general consequence, the matrices representing the rotation operators implemented by the MZIs are no longer in product form, but they have to be written as follows:
Note that, with respect to Fig. 3, we have already introduced the conditions , and , . The terms are all different and appear both in the rotation angles and , as well as in the global phase terms imposed by the MZIs and . and are defined in Eq. (19). In this situation the matrix is influenced by the experimental error as
In general, due to these current instabilities, the effective angle of rotation is different for each PS of each MZI. For clarity, we focus our discussion on the rotation angle , for which . Then, the same arguments can be applied to current-related non-idealities affecting the other rotation angle . We start by representing the real operator describing the rotation of the related qubit in the following form:
This problem is addressed by using the same techniques reported in [15,36]: we look for an ideal operator that can be written as whose distance from is the smallest possible, i.e., an operator minimizing the distance from according to the Hilbert–Schmidt norm. Without loss of generality, we can represent as the product , for a suitable unitary operator . In the general case, the real operator describing the rotation of one qubit by an angle can be represented as
Similarly, we can rewrite the factorized unitary operator , which minimizes the Hilbert–Schmidt distance from , as
Consequently, it is necessary to evaluate
3.8 D. Other Sources of Non-Idealities
Other non-idealities in our experimental setup come from the detectors (dead-time, after-pulsing, and dark counts), especially because no randomization of the input sequence of measurement operations necessary to estimate the probabilities is performed. In this particular implementation we neglect such non-idealities because in Ref.  it has been observed that, for a photon flux of , the corrections to the probabilities are negligible. As a lower flux of photons is here used (mainly because of LED-to-fiber low coupling efficiency), we can safely neglect such a correction factor.
The PIC has been fabricated in the cleanroom of Fondazione Bruno Kessler. The waveguide core (300 nm thick and 700 nm wide) is made of silicon oxynitride () and the bottom and top claddings are made, respectively, of thermally grown silicon oxide () and borophosphosilicate glass. The design wavelength of the integrated components is 730 nm and the mode polarization is transverse electric (TE). The linear characterization of the building-blocks of the PIC, namely MMIs and CRs, has been carried out using a spectrally filtered supercontinuum laser emitting from 300 to 2000 nm, and details about their performances can be found in Appendix A. The measured insertion loss of a 1 cm long straight waveguide is 27 dB for TE polarization.
Our experiment is performed using an attenuated commercial LED at . The light coming from the LED is collimated using an objective and polarized using a Glan–Thompson polarizer. A fiber port is used to couple light inside an optical fiber, where light is attenuated by means of a variable optical attenuator and polarization is controlled and set to be TE at the output. The input–output coupling is performed using a standard fiber array. A power supply is used to control the different phase shifters present on the PIC.
Prior to our measurements, a mandatory calibration of integrated MZIs has been performed using a Ti:sapphire laser tuned at 730 nm. In particular, the phase-power relation of the different MZIs is retrieved by fitting operations of the transmitted optical power using the following equations:
The phase of the generation stage is obtained by another fitting operation, applying the correct calibration to each MZI. Here an issue is due to the absence of additional compensation phase shifters after the MZIs rotating the relative-position qubit. In this situation, the value of to fix the phase difference between the components of the state basis is different with respect to the one for the components. For this reason, the following strategy is introduced. First, we set the value of necessary to have the expected phase relation between the components, and only counts from channels and are acquired. Second, the experiment is repeated acquiring only counts from channels and , by changing to the value that adjusts the phase relation of the components too.
Finally, the measurements to demonstrate our certified QRNG integrated device are performed using four SPADs (Excelitas), whose efficiencies have been equalized using fiber-coupled variable optical attenuators, and whose electrical outputs are sent to a time-tagging electronics (Swabian Instruments) connected to a PC in order to count single-photon detection events for each channel over time. The following procedure has been followed. First, an angle of rotation of the absolute-position qubit is fixed and a sweep over angles of relative position is performed. For each pair of angles, a 1 s time window is acquired with a time bin set at 1 μs for the time tagger. Then, the angle is changed and a sweep of the other angle is again performed. Time bins with no detection events are discarded, while whenever multiple photon detection events are registered at different SPADs within the same time bin, one single event is randomly assigned to one of the four two-qubit states by means of a pseudo-random number generator.
5. EXPERIMENTAL DEMONSTRATION OF THE PRESENCE OF ENTANGLEMENT
The experimental demonstration of the presence of entanglement is performed by fixing the angle and performing a sweep of the rotation angle . An acquisition 1 s long with a time bin of 1 μs is performed for each . The average photons flux is . In this way, we estimate the conditional probabilities as the empirical frequencies of the counts:
Fig. 4. Experimental correlation coefficients
) (blue dots) with the related fit (colored surface), according to Eq. ( 45). is the rotation angle of the relative-position qubit, while is the rotation angle of the absolute-position qubit. Color bar refers to the value of .
Using these correlation coefficients, it is possible to construct the correlation function . By making the choice , the correlation function can be plotted as a function of the parameter . The resulting function is reported in Fig. 5 as a blue curve [obtained starting from Eq. (45) with the fitted value of ], while measured data are plotted as red dots. A good agreement can be observed. It can also be noticed that the theoretical form of the correlation function does not reach the maximum attainable value of : this is caused by the non-ideal transmission and reflection coefficients of the MMIs. However, a clear violation of the CHSH inequality can be observed, reaching a maximum value and a minimum , meaning that single-photon entangled states have been generated. Moreover, it is important to underline that the choice gives the maximum achievable Bell inequality violation only if the considered entangled state is exactly . However, due to the fact that the MMI-based beam splitters do not have a 50:50 branching ratio, in our experimental implementation the generated state is actually different. For this reason, it is a better strategy to consider every possible combination of between the measured to look for a better violation of the inequality. Using this approach, we obtain respectively for and for . Error bars on data points are obtained by dividing each 1 s time sequence in intervals of 0.2 s. For each interval, the correlation function is evaluated, and the final uncertainty is obtained as the standard error related to the number of intervals. Lastly, it is necessary to correct the values with the terms [Eq. (41)]. Using the values of current instabilities-related errors reported in Table 1, we obtain for and for . As a result, the corrected values of the correlation functions are and . Experimental demonstration of the violation of the Bell inequality. Data points (red dots) with their error bars (smaller than the size of the data points) and the theoretical curve (blue line) of the Errors on the Rotation Angles The standard error for each value is
0.000 0.011 −0.004 −0.006 0.068 0.216 0.036 0.215 0.002 0.004 0.007 −0.006 0.068 0.187 0.036 0.180
Experimental demonstration of the violation of the Bell inequality. Data points (red dots) with their error bars (smaller than the size of the data points) and the theoretical curve (blue line) of the
Errors on the Rotation Angles
The standard error for each value is
6. FROM ENTANGLEMENT TO QUANTUM-CERTIFIED RANDOM NUMBERS
Recently, a few of us demonstrated that it is possible to obtain a semi-device-independent randomness certification scheme starting from SPE states of momentum and polarization using a bulky experimental implementation [15,36]. Therefore, here we use the PIC reported in Fig. 2 as an SDI-QRNG, certified by the evaluation of the correlation function .
Using SPE states, the methods of generating quantum-certified random numbers can be schematized in the following way [Fig. 6(a)]: first, a set of angles is selected to evaluate the Bell correlation function . Then, the actual protocol starts. A single-photon path-entangled state is generated. The two qubits that compose the state are rotated by the operation . The rotated state is projected over the four states , and Depending on the outcome of the measurement operation, or equivalently, on the collapsed state, a random digit is obtained according to the following encoding: . Then, the raw random sequence is generated by repeating this procedure many times for each pair of angles. An example of the raw sequence obtained is reported in Fig. 6(b). Note that the pair of angles can be kept fixed during a long acquisition of detection events. Then the angles could be changed, and a new acquisition would start. This methodology does not require any input randomness and enables the application of an entropy certification protocol similar to the one reported in Refs. [15,36].
Fig. 6. (a) Method to generate a random number: (1) an SPE state is generated (yellow box); (2) the relative- and absolute-position qubits of the SPE state are rotated respectively by the angles
(first green box) and (second green box) by the different MZIs; (3) the rotated SPE state is measured by state projection on one of the four basis states ( ) and the clicking SPAD determines the raw number. These steps are repeated many times to generate a raw sequence of random numbers. (b) Example of the random number sequence obtained using the encoding given a certain pair ( , ). The outcome of multiple detection events is randomized (slots with in the figure), while time bins with no detection are discarded.
First of all, we recall the hypotheses over which our certification scheme is based:
Hypothesis 1 means that the used SPADs are trustworthy and not controlled by an adversary. Moreover, their non-idealities, such as the limited efficiency, the probability of after-pulsing, and the dead time, are known. Such a hypothesis is necessary to fairly reconstruct the probabilities . Indeed, as soon as the pair of angles is not randomized for every round of the experiment, an adversary could induce detector clicks in a deterministic way to mimic the violation of a Bell inequality. Hypotheses 2 and 3, instead, are necessary to set the same angles and on the different MZIs pairs. In particular, hypothesis 2 is required to take into account the fact that the starting phase of each MZI is not exactly 0, while hypothesis 3 is necessary to set the correct currents at the phase shifters. These hypotheses mean that for each MZI in the PIC, the relation between the rotation angle and the applied power , is known. Moreover, the power supply used is trustworthy and not maliciously controlled by an adversary. However, it can be error-prone, so it can set a power , slightly different from the selected one, . Hypothesis 4 is necessary to rule out any possible measurement basis-dependent change of the input state . In practice, this means that when the pair of angles is fixed and the measurement is performed, the entangled state and the rotations do not change with time, i.e., the phases set by the different PSs do not change. Such a requirement is ensured by selecting a total measurement time short enough that no instabilities are observed and by letting the PIC thermalize between different measurements to eliminate any thermal cross talk. Our certification protocol is independent of the particular form of the input state . In particular, for the four sequences of detection events corresponding to the angles , the related conditional guessing probability can be bounded by using [15,36]
To experimentally demonstrate the generation of certified random numbers we select the time trace of the detection events giving the maximum and minimum violations of the Bell inequality, as reported in Section 5. These are for and for . The time traces of the estimated probabilities used for computing the correlation functions and are reported in Figs. 7(a) and 8(a). These are obtained as 50 ms long averages. As can be observed, the probabilities are quite stable during the entire acquisition time. The values of corresponding to these time intervals are then reported in Fig. 7(b) for and Fig. 8(b) for , together with their mean value and related 99% confidence interval (blue shaded region).
Fig. 7. (a) Probabilities of each measurement outcome as a function of time (blue
, red , yellow , and purple ) for the four pairs of angles , , , of . The estimates have been done considering time intervals of 50 ms. (b) Dots: corresponding values of as a function of time. Solid line: mean value of . Dashed region: 99% confidence interval.
Fig. 8. (a) Probabilities of each measurement outcome as a function of time (blue
, red , yellow , and purple ) for the four pairs of angles , , , of . The estimates have been done considering time intervals of 50 ms. (b) Dots: corresponding values of as a function of time. Solid line: mean value of . Dashed region: 99% confidence interval.
Considering these values of violation of Bell inequality and the corresponding values of [ and ], we obtain the following guessing probabilities:
Note that the upper bound to given by Eq. (46) represents the best estimate for the marginal guessing probability, e.g., , where the marginal refers to a single qubit. Therefore, from an operative point of view, in order to refer to a single qubit, we write as bit 0 each photon detected as state independently of its absolute position, and as bit 1 each photon detected as state independently of its absolute position (i.e., ; ). By applying the formula 
Having used an average rate of 120 kHz for each acquisition, the final rate of our quantum-certified SDI-QRNG is given by kHz which, in the best case (namely ), gives a generation rate of . This rate does not consider the randomness extraction procedure . We remind the reader that, in this work, we focus on the estimation of and the extraction procedure is not performed. However, by applying a quantum-safe randomness extractor, e.g., Toeplitz-hashing extractor  or Trevisan’s extractor [38,39], it is mathematically proven that it is possible to obtain a final sequence of independent and uniformly distributed bits up to a given level of accuracy.
Single-photon path entanglement has been demonstrated in a PIC by measuring the Bell inequality violation in the CHSH formulation. Photons are generated in an off-chip LED, are manipulated in a PIC fabricated in a silicon foundry, and are detected by using off-chip silicon SPADs. The PIC is based on simple and well-known optical components, i.e., MMIs, PSs based on the thermo-optic effect, MZIs, and CRs. Experimental data are well fitted by a theoretical model which considers the non-idealities of our setup, mainly related to unbalanced beam splitters (MMIs). A large violation of the CHSH inequality is reported () by recursively trying each possible combination of the acquired correlation coefficients.
These SPE states are used to demonstrate a certified QRNG working accordingly to a semi-device-independent certification protocol similar to the one in Refs. [15,36]. Since in Refs. [15,36] discrete optical components and different degrees of freedom were used, a few assumptions are here different. Specifically, our present approach is based on the knowledge of the single-photon detectors as well as of the integrated MZIs. In addition, the power supply controlling the heaters in the MZIs must be trusted, even if error-prone, as well as the set phase delays must be stable during the acquisition time. No hypothesis is needed on the input state. Under these assumptions, we are able to certify a maximum value of the quantum min-entropy , which is 1 order of magnitude larger than that obtained with a bulk setup . This large improvement is due to the smaller correction terms and of the integrated QRNG because of the smaller non-idealities in the integrated photonic components with respect to the discrete optical components. To compare the proposed SDI-QRNG to the existing literature, three parameters will be discussed: security, speed, and integration. Concerning security, the proposed QRNG can be compared to source-independent QRNGs, in which the source is left uncharacterized while the measurement operations are fully characterized. Our system is more secure because the performed measurements are only partially characterized. The only requirements are that the measured observables must be in product form, i.e., the measurement performed on one qubit does not influence the other, and they do not change during the experiment. Apart from these assumptions, the particular form of the chosen operator is unimportant. Concerning speed, the achieved generation rate is low compared to the ones reported in the literature. However, this work has focused on demonstrating the generation of certified quantum random numbers using an integrated PIC without optimizing the generation rate. The measured QRNG generation rate () is strongly limited by the actual coupling efficiency of the LED to the optical fiber and to the PIC, decreasing the photon flux in the PIC. In future experiments, a better coupling scheme based on, e.g., optimized grating couplers or direct LED bonding could significantly improve the coupling efficiency. Then, the saturation rate of the SPAD detectors will give the other limit. Considering working at the linearity limit of SPADs, i.e., 1 MHz rate, the achievable certified random bit rate is of the order of 330 kHz. To further increase such a value, it is necessary to use engineered detectors, e.g., multiplexing more SPADs in a single detector. The use of silicon photomultipliers (SiPMs), which are arrays of SPADs, could be a viable solution. For example, having four SiPMs composed by 16 SPADs with a linearity limit of 1 MHz, as the one reported in Ref. , it is possible to reach a generation rate of . By using SiPMs with bigger arrays of SPADs, it is possible to increase the rate further. Another solution relies on the multiplexing of N circuits in the same PIC, using the same light source and dividing it by using an initial MMI. Such a solution will require less attenuation of the LED. Moreover, all the circuits act as independent SDI-QRNGs, improving the rate by a factor of . Last but not least, integration. The proposed QRNG is particularly interesting concerning potential applications. Many works in the literature are based on laser sources which can be fully integrated as well. However, our QRNG uses an LED, which is potentially cheaper to integrate than a laser. This, together with the possibility of co-integration of the SPADs [41,42], enables its use for applications that necessitate low production costs, such as Internet of Things devices.
To conclude, a PIC able to generate quantum certified random numbers using single-photon path-entangled states represents a further step to move semi-device-independent QRNGs from the lab to real-world applications.
Acknowledgment. This project has been supported by PAT via Q@TN, the joint lab between University of Trento, FBK-Fondazione Bruno Kessler, INFN-National Institute for Nuclear Physics and CNR-National Research Council.
 S. Pironio, A. Acn, S. Massar, A. B. de la Giroday, D. N. Matsukevich, P. Maunz, S. Olmschenk, D. Hayes, L. Luo, T. A. Manning, C. Monroe. Random numbers certified by Bell’s theorem. Nature, 2010, 464: 1021-1024.
 M. Pasini, N. Leone, S. Mazzucchi, V. Moretti, D. Pastorello, L. Pavesi. Bell-inequality violation by entangled single-photon states generated from a laser, an LED, or a halogen lamp. Phys. Rev. A, 2020, 102: 063708.
 P. Caspar, E. Oudot, P. Sekatski, N. Maring, A. Martin, N. Sangouard, H. Zbinden, R. Thew. Local and scalable detection of genuine multipartite single-photon path entanglement. Quantum, 2022, 6: 671.
 J. W. Silverstone, D. Bonneau, K. Ohira, N. Suzuki, H. Yoshida, N. Iizuka, M. Ezaki, C. M. Natarajan, M. G. Tanner, R. H. Hadfield, V. Zwiller, G. D. Marshall, J. G. Rarity, J. L. O’Brien, M. G. Thompson. On-chip quantum interference between silicon photon-pair sources. Nat. Photonics, 2014, 8: 104-108.
 J. Wang, S. Paesani, Y. Ding, R. Santagati, P. Skrzypczyk, A. Salavrakos, J. Tura, R. Augusiak, L. Mančinska, D. Bacco, D. Bonneau, J. W. Silverstone, Q. Gong, A. Acn, K. Rottwitt, L. K. Oxenløwe, J. L. O’Brien, A. Laing, M. G. Thompson. Multidimensional quantum entanglement with large-scale integrated optics. Science, 2018, 360: 285-291.
 S. Mazzucchi, N. Leone, S. Azzini, L. Pavesi, V. Moretti. Entropy certification of a realistic quantum random-number generator based on single-particle entanglement. Phys. Rev. A, 2021, 104: 022416.
 A. Uchida, K. Amano, M. Inoue, K. Hirano, S. Naito, H. Someya, I. Oowada, T. Kurashige, M. Shiki, S. Yoshimori, K. Yoshimura, P. Davis. Fast physical random bit generation with chaotic semiconductor lasers. Nat. Photonics, 2008, 2: 728-732.
 N. Leone, D. Rusca, S. Azzini, G. Fontana, F. Acerbi, A. Gola, A. Tontini, N. Massari, H. Zbinden, L. Pavesi. An optical chip for self-testing quantum random number generation. APL Photonics, 2020, 5: 101301.
 N. J. Martinez, M. Gehl, C. T. Derose, A. L. Starbuck, A. T. Pomerene, A. L. Lentine, D. C. Trotter, P. S. Davids. Single photon detection in a waveguide-coupled Ge-on-Si lateral avalanche photodiode. Opt. Express, 2017, 25: 16130-16139.
 M. Bernard, F. Acerbi, G. Paternoster, G. Piccoli, L. Gemma, D. Brunelli, A. Gola, G. Pucker, L. Pancheri, M. Ghulinyan. Top-down convergence of near-infrared photonics with silicon substrate-integrated electronics. Optica, 2021, 8: 1363-1364.
Nicolò Leone, Stefano Azzini, Sonia Mazzucchi, Valter Moretti, Matteo Sanna, Massimo Borghi, Gioele Piccoli, Martino Bernard, Mher Ghulinyan, Lorenzo Pavesi. Generation of quantum-certified random numbers using on-chip path-entangled single photons from an LED[J]. Photonics Research, 2023, 11(9): 1484.