Non-deterministic random number generators based on cryptographic and quantum systems

JP2023541251A5Pending Publication Date: 2024-09-18CAMBRIDGE QUANTUM COMPUTING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023515776
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2020-09-14
Filing Date
2021-09-09
Publication Date
2024-09-18

AI Technical Summary

Technical Problem

Existing cryptographic systems face challenges in generating and verifying the randomness of keys, especially in asymmetric encryption, where the reliance on deterministic methods makes them vulnerable to hacking, and verifying quantum random number generators is difficult without inspecting the internal workings.

Method used

A system that uses a quantum processing array to generate random bit strings, which are then tested for quantum behavior and amplified using a two-source randomness extractor to produce encryption keys with enhanced entropy, ensuring device independence and security.

Benefits of technology

The system generates provably unbiased, private, and quantum-grade encryption keys, providing robust security against adversaries without requiring knowledge of the internal device workings, suitable for commercial applications.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The present disclosure relates to protocols and systems for generating random bit strings by amplifying weak bit strings with proven quantum random bit strings generated by measuring the quantum states of entangled photons. Some disclosed systems include a quantum device comprising one or more quantum systems configured to generate entangled photons and measure their quantum states. Certain disclosed systems include one or more security tests, at least one of which evaluates the quantum nature of the measurements using Bell inequalities. A randomness extractor can amplify the randomness of the weak random string using the proven random string from the security test. The generated random bit string can be used as an encryption key.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] This disclosure relates to a non-deterministic random number generator based on a quantum system, and to an encryption system using such a non-deterministic random number generator. [Background technology]

[0002] Encryption is used to protect data during data processing (computation) in both temporary (storage) and spatial (communication) contexts. In the former, typically only a single party stores and retrieves the data later. In the latter, at least two parties are involved (sender and receiver). Data is encrypted before storage or transmission and typically decrypted upon retrieval or receipt. The format of the data before encryption and after decryption is sometimes called plaintext (this is not limited to the content of the data itself, which may be text, images, video, audio, or any other form of information or data).

[0003] Data encryption aims to prevent third parties, generally referred to as adversaries, from accessing (or extracting even partial information about) plaintext. In some cases, an adversary might be someone who deliberately attempts to access plaintext for potentially malicious purposes. In other cases, an adversary might be someone who mistakenly receives a communication (for example, due to an incorrect email address).

[0004] In most modern encryption systems, especially those used in commercial contexts, the algorithms used for encrypting and decrypting data are publicly known and subject to various standards. In such systems, the security of encryption generally depends on one or more keys, where a key represents a bit sequence of a predetermined length. Specifically, an encryption system receives plaintext and either receives or generates appropriate keys, which are then used to generate encrypted data. Conversely, a decryption system receives encrypted data and appropriate keys and uses them to retrieve the plaintext. Therefore, access to the plaintext is controlled by access to the appropriate keys.

[0005] Key-based encryption systems can be divided into two main types: symmetric and asymmetric. In a symmetric system, if plaintext is encrypted with a given key, the same key can be used to decrypt the data back into plaintext. In contrast, asymmetric encryption uses a key pair, where the first key of the pair is used for encryption and the second key is used for decryption. In a typical configuration, the key pair is associated with a first party, which makes the first key (called the public key) available for third parties to use for encryption. However, the second key (called the private key) is kept secret by the first party. Therefore, only the first party can decrypt data encrypted by a third party using the public key.

[0006] In a communication context, using symmetric encryption requires some way of providing both the sender and receiver with the same key (which must be kept secret to prevent adversaries from accessing the plaintext). This problem is avoided in asymmetric encryption systems because, since the private key, not the public key, is used for decryption, the intended receiver can provide the public key to the sender without needing to keep it secret.

[0007] As a result, many encrypted communication systems employ a two-stage approach, in which, in the first stage, a key is shared between the first and second parties using asymmetric encryption, and in the second stage, this shared key is used to perform encrypted data communication between the first and second parties for symmetric encryption.

[0008] Therefore, computer systems for encryption (and authentication closely related to encryption) provide random numbers using random bit generators. These random numbers are important for generating symmetric keys used in the encryption and authentication processes. Such random numbers may also be used to generate nonces. (A nonce, "number once," is a number that can be used only once in encrypted communication to prevent the reuse of old communications in replay attacks.)

[0009] Methods for generating random bit sequences are typically grouped into three distinct types: deterministic random bit generators that use software to generate pseudo-random bit sequences, deterministic random number generators based on complex (e.g., chaotic) conventional physics, and non-deterministic random number generators based on quantum systems.

[0010] The published PCT patent application WO2019125733A1, “Amplifying, Generating, or Certifying Randomness” (inventors: Brandao and Woral), whose entire contents are incorporated herein by reference, describes a security test logic system including a non-temporary memory configured to store measurements from a measuring device. The measurements output from the security test logic system indicate whether or not there is a match in which particles are detected substantially simultaneously by multiple detectors. The detectors are configured to be at the ends of corresponding, mutually distinct channels from a particle source, the channels having substantially the same length. The system includes a processor configured to calculate test statistics from the stored measurements. The test statistics represent, for example, the Bell inequality, and the system is configured to compare the test statistics to a threshold. If the value of the calculated test statistics exceeds the threshold, the processor is configured to generate and output a certificate certifying that the measurements are from a quantum system.

[0011] U.S. Patent No. 9,436,436 (Batelle) discloses a system and method for generating random numbers. The system may include a random number generator (RNG), such as a quantum random number generator (QRNG), configured to self-correct or adapt in order to substantially achieve randomness from the output of the RNG. By adapting, the RNG may generate random numbers that can be considered random, regardless of whether the random numbers themselves are tested in that manner. As an example, the RNG may include a component for monitoring one or more characteristics of the RNG during operation, and the monitored characteristics may be used as the basis for adaptation or self-correction to provide random numbers according to one or more performance criteria.

[0012] U.S. Patent No. 10,860,403 (Boeing) discloses a system and method for facilitating random bit generation. In one example, the method includes the step of receiving a first random bit stream in a first memory comprising a plurality of memory cells. Each of the plurality of memory cells stores one bit of the first random bit stream. The method further includes the step of generating each bit of a second random bit stream based on each pair of bits of the first random bit stream using a logic circuit. The method further includes the step of storing the second random bit stream in a second memory.

[0013] In practice, computer systems that support encryption may utilize a large number of keys, such as symmetric keys, for different visitors to a website, different subscribers to an online service, etc. Furthermore, for security reasons, such symmetric keys may only be retained (or remain valid) for a limited period, such as a session. This further increases the number of symmetric keys required. Therefore, random number generators used in such systems must provide not only reliable (proven) randomness but also an acceptable output rate. [Overview of the project] [Means for solving the problem]

[0014] A first system that provides a random bit sequence for use in one or more encryption applications is: A test system configured to receive a first random bit sequence having a first entropy, and to perform a test using the first random bit sequence in order to verify the quantum behavior in the generation of the first random bit sequence, A two-source randomness extractor is configured to receive a first input containing the first random bit sequence whose quantum behavior was confirmed in the test, receive a second input containing a second random bit sequence having a second entropy, and generate and output a third random bit sequence derived from the first and second random bit sequences. It is equipped with. The third random bit sequence has a third entropy that is amplified to be greater than both the first and second entropies.

[0015] Furthermore, it is an encryption software system as a service for providing encryption keys to multiple client users, A client interface configured to receive requests for encryption keys from the client, A service interface configured to request a first random bit sequence and receive the first random bit sequence from a quantum device, At least one processing component configured to perform a test on the first random bit sequence received from the quantum device to verify the quantum behavior of the quantum device when generating the received first random bit sequence, generate one or more encryption keys using the first random bit sequence, encrypt the one or more encryption keys, and transmit the encrypted one or more encryption keys to the client via the client interface in response to receiving the request from the client; We disclose a system that includes the following features.

[0016] Furthermore, it is an encryption system that provides a secure user environment, Each seed contains a first random bit sequence that has been proven to be generated by quantum behavior within a quantum device, or a store containing one or more seeds that are generated from the first random bit sequence, A first private source of randomness configured to generate and output a second random bit sequence, A seeded randomness extractor configured to receive a first input containing a seed from the store and a second input containing the second random bit sequence, Includes, The randomness extractor is further configured to generate and output a third random bit sequence in response to a user request. The third random bit sequence is available for forming an encryption key, and the third random bit sequence has amplified entropy compared to the second random bit sequence. We will disclose the encryption system.

[0017] Furthermore, various methods and apparatus for non-deterministic random number generation and randomness verification, such as for use in encryption systems and applications, are disclosed and defined in the claims of this patent specification.

[0018] The present invention will be better understood from the following detailed description with reference to the accompanying drawings. [Brief explanation of the drawing]

[0019] [Figure 1] This diagram shows an example of a device used to prove that numerical values ​​were generated by a quantum device, and an example of a random number extractor configured to generate random numbers for use in various downstream applications. [Figure 2A] Figure 1 is a schematic diagram of an example of a four-device quantum device that can be used in the apparatus shown. [Figure 2B] This is another schematic diagram of the four-device quantum apparatus shown in Figure 2A. [Figure 2C] Figure 2A or Figure 2B is a flowchart illustrating an exemplary operation method of a four-device quantum device. [Figure 3A] Figure 1 is a schematic diagram of an example of a two-device quantum device that can be used in the apparatus shown. [Figure 3B] Another schematic diagram of an example of a two-device quantum device that could be used in the apparatus shown in Figure 1. [Figure 3C] This is a flowchart illustrating the exemplary operation method of a two-device quantum device, as shown in Figure 3A or Figure 3B. [Figure 4] This is a flowchart of an example security test A for a 4-device setup. [Figure 5] This is a flowchart of an example security test B. [Figure 6]This is a flowchart of an example security test A for a two-device case. [Figure 7] This is a flowchart illustrating an exemplary operation method of a random sampler as shown in the configuration in Figure 1. [Figure 8] This is a perspective view of an example waveguide for an optical state expander. [Figure 9] Figure 8 is a perspective view of the waveguide, which is mounted in a housing and has its cover omitted. [Figure 10] Figure 8 is a schematic longitudinal cross-sectional view of the waveguide. [Figure 11A] Figure 8 is a schematic diagram illustrating the operation of the waveguide. [Figure 11B] This figure is based on Figure 8, but includes reference numbers indicating the voids. [Figure 12] This is a schematic diagram of an exemplary pair of measuring devices that may be used in the apparatus shown in Figure 1, Figure 2A, or Figure 3A. [Figure 13A] This is a schematic diagram of an exemplary two-device quantum device that may be used in the apparatus shown in Figure 1, Figure 2A, or Figure 3A. [Figure 13B] This is a schematic diagram of an exemplary quantum apparatus, including a Mach-Zehnder interferometer (MZI), which may be used in the apparatus shown in Figure 1, Figure 2A, or Figure 3A. [Figure 14] Figure 8 shows a plot of a calculated example of the Hong-Ou-Mandel (HOM) dip for a periodic polarized potassium titanyl phosphate (KTP) waveguide that can be used in an optical state expander. [Figure 15] This block diagram shows the construction blocks and operation of an example of a quantum random number generator and amplifier system based on a passive 2-qubit quantum device. [Figure 16] This is a flowchart illustrating an exemplary operation method of a bit sequence generation and storage system in a 2-qubit quantum random number generator system based on a passive quantum device. [Figure 17] Figure 15 is a flowchart of an exemplary security test A for evaluating the quantum properties of measurements generated by a passive two-qubit quantum device. [Figure 18]This is a flowchart illustrating the operation of an exemplary passive 2-qubit optical quantum device. [Figure 19] Figure 15 is a block diagram of an exemplary passive two-qubit optical quantum device for generating and measuring quantum states, which can be used in the two-qubit quantum random number generator architecture shown. [Figure 20] This block diagram shows an example implementation of a passive 2-qubit optical quantum device configuration, as shown in Figure 19, based on optical components that can be manufactured integrally on a chip. [Figure 21] This block diagram shows the construction blocks and operation of an example of a quantum random number generator and amplifier system based on an active 2-qubit quantum device. [Figure 22] This flowchart illustrates an exemplary operation method for a bit sequence generation and storage system in a 2-qubit quantum random number generator based on an active quantum device. [Figure 23] Figure 21 is a flowchart of an exemplary security test A for evaluating the quantum properties of measurements generated by an active two-qubit quantum device. [Figure 24] This flowchart shows an example of the procedure for security test B of a 2-qubit quantum random number generator based on an active quantum device. [Figure 25] Figure 21 is a schematic diagram of an example of an active two-qubit optical quantum device for generating and measuring quantum states usable with the two-qubit quantum random number generator architecture shown. [Figure 26] Figure 25 is a schematic diagram of an example implementation of an active two-qubit optical quantum device configuration based on optical components that can be manufactured integrally on a chip. [Figure 27] This is a schematic diagram of an example of a 3-qubit quantum random number generator system. [Figure 28] This is a schematic diagram of a system for generating and distributing quantum encryption keys. [Figure 29] Figure 28 is a schematic diagram of the implementation of a system configured to generate random bit sequences used for generating quantum encryption keys using a public quantum computer. [Figure 30]Figure 29 shows a diagram of a quantum circuit for use in a quantum computer. The quantum circuit is configured to collect statistical data to calculate whether or not a violation of Bell's inequality has occurred. [Figure 31] This is a diagram of a quantum circuit for use in the system shown in Figure 29. The quantum circuit is configured to collect statistical data to detect whether or not a Bell violation has occurred. [Figure 32] Figure 29 shows the optimization or customization of quantum circuits for use with a specific implementation of the quantum computer. [Figure 33] This figure shows an alternative implementation of the system in Figure 32. Most of the data processing required to generate the quantum encryption key can occur locally on the user device. [Figure 34] This diagram shows a configuration for device-independent random amplification and arbitrary selection privatization disclosed herein. [Figure 35] This is a schematic diagram illustrating the use of WSR output in the ARQ ("Applied Randomness using Quantum") protocol disclosed herein. [Figure 36] This is a schematic diagram of a user who verifies and quantifies quantum behavior using the quantum devices disclosed herein. [Figure 37] This is a schematic diagram of an implementation of a random processing flow performed by a conventional computer as disclosed herein. [Figure 38] This is a schematic diagram of an implementation of the random processing and privatization flow performed by a conventional computer as disclosed herein. [Figure 39] This plot shows the variation in protocol efficiency with respect to the number of measurement rounds in the quantum devices disclosed herein. [Figure 40] This plot shows the randomness per bit of the output of a quantum device as a function of the Bell (Mermin) value disclosed herein. [Figure 41] This plot shows the variation in protocol efficiency as a function of the Bell (Mermin) value disclosed herein. [Figure 42] This plot shows the minimum entropy that can be amplified using different two-source random extractors. [Figure 43] This plot shows the adjustment of the Bell value to explain the signaling effect disclosed herein. [Figure 44] This figure shows a quantum circuit implemented on the IBM quantum computer disclosed herein. [Figure 45] This plot, disclosed herein, shows the variation in protocol efficiency as a function of the Bell (Mermin) value. [Figure 46A] This is the bibliography table in Appendix A. [Figure 46B] This is the bibliography table in Appendix A. [Figure 46C] This is the bibliography table in Appendix A. [Modes for carrying out the invention]

[0020] In the accompanying drawings, the same reference numerals are used to indicate similar components. The drawings provided are not necessarily to a specific scale and are provided to illustrate exemplary embodiments described herein and are not intended to limit the scope of this disclosure.

[0021] The detailed description provided below in relation to the attached drawings is intended to describe this example and is not intended to represent the only form in which this example may be constructed or used. This description describes the function of the example and the sequence of operations required to construct and operate it. However, the same or equivalent functions and sequences may be achieved by different examples.

[0022] Random bits have countless applications, from cryptography and gambling to scientific computing. However, conventional random number generators are based on conventional physics, which is deterministic. Therefore, the randomness of the output cannot be trusted without further assumptions, as the apparent randomness is based on ignorance that may not be shared by adversaries. Numbers that appear random, generated by any kind of deterministic software and / or hardware, are, in principle, vulnerable to hacking for this reason. Quantum mechanics, being inherently probabilistic, can be used to generate randomness.

[0023] When considering a device that is supposed to generate random outputs based on quantum mechanics, the randomness of the output is only relied upon if we trust or assume that the quantum device is functioning correctly. When a system generates random numbers, there is usually no easy way to prove that those random numbers were generated by a quantum system. Determining whether a system supposedly being a quantum system is actually using quantum phenomena to generate an output usually requires not only a human operator who is an expert in the field, but also a visual inspection, test, and characterization of the internal structure of the system, including any mechanical components, and possibly even individual system testing.

[0024] The embodiments described below are not limited to implementations that solve some or all of the shortcomings of known techniques for amplifying, generating, or proving randomness. For example, different embodiments may address different shortcomings or challenges related to amplifying, generating, or proving randomness.

[0025] While commercially available quantum systems exist that are said to generate random bits, verifying that such devices are functioning as intended is a difficult task even for experts with access to the device's internal workings. In such cases, it would be desirable to be able to verify the authenticity of a device's output simply by considering its output, without needing any knowledge of its internal workings. This property is known as device independence.

[0026] The following detailed description includes various non-limiting examples of randomness amplification processes and various embodiments of actual systems that implement these process examples. These examples and embodiments are intended to illustrate, but not limit, the scope of this disclosure.

[0027] This disclosure provides, in particular, a complete implementation of a Beltest-based randomness and privacy amplification protocol. This enables the construction of a device-independent random number generator that outputs provable, unbiased, and private numbers, even when using adversarial and potentially uncharacterized quantum devices. The generation speed is linear to the execution time of the quantum device, and conventional randomness post-processing has quasi-linear complexity, making it efficient on a standard personal laptop. The statistical analysis is tailored to actual quantum devices and is therefore usable as a quantum technique today.

[0028] The use of this protocol has been implemented in quantum computers from the IBM-Q experience. Although not intentionally built for such tasks, such quantum computers can perform faithful Vere tests by adding minimal assumptions. This, at a high level, comes down to trusting that quantum devices are not intentionally built to deceive users and are otherwise largely uncharacterized. In this semi-device-independent way, the protocol generates private, unbiased random numbers that can be proven on existing quantum computers.

[0029] Referring to Figure 28, an overview of an encryption system generally represented by 3000 is provided. Optionally, system 3000 may be used to provide cloud-hosted software as a service (SaaS) for various forms of encryption. System 3000 is configured to generate one or more quantum-grade encryption keys and to securely distribute one or more quantum-grade encryption keys to one or more users 3010, e.g., a single user or a group of users. For the purposes of this discussion, a key is considered "quantum-grade" if it is shown (proven) that the key was generated using at least part a quantum process that is inherently random or non-deterministic. Similarly, quantum behavior describes the behavior of a physical system that cannot be explained by conventional physics and can only be explained based on quantum physics.

[0030] In this context, it should be noted that reference to user 3010 may represent or include computer systems such as client devices that are controlled by, or associated with, the respective human operators of the computing system. The user can, for example, use encryption and decryption functions built into (or otherwise accessible by) client 3010 to encrypt / decrypt data using keys provided by system 3000 for communication, storage, or other desired purposes.

[0031] System 3000 comprises a random number (bit string) generator 3020 (RNG) which sequentially includes a weak randomness source (WSR) 3100, a quantum processing array 3120, and a conventional processor system 3135. During operation, the quantum processing unit is configured to generate a first random bit string 3030. The conventional processor system 3135, for example, a conventional computer or other processing device, is used (in particular) to (i) verify (prove) that the random bit string 3030 was generated using a nondeterministic quantum process, and (ii) to measure the entropy of the random bit string 3030. This makes it possible to generate a second random bit string 3136 which is more random (has a larger entropy) than the first random bit string 3030.

[0032] The second random bit sequence 3136 is passed to a key generator 3040, which is configured to be used to convert the second random bit sequence 3136 into one or more quantum-grade encryption keys 3050. The encryption system further includes a key distributor 3060, which is configured to receive the encryption keys 3050 from the key generator 3040, encrypt one or more received encryption keys 3050 to generate one or more corresponding encrypted encryption keys 3070, and distribute the one or more corresponding encrypted encryption keys 3070 to one or more users 3010. The system 3000 can be configured to communicate the encrypted encryption keys 3070 to the users 3010 over a data communication network (not shown in Figure 28), such as the Internet.

[0033] Beneficial, one or more users 3010 provide one or more conventional encryption keys 3080 to a key distribution device 3060, which is configured to encrypt the encryption key 3050 using one or more conventional encryption keys 3080 in order to generate the corresponding encrypted encryption key 3070. Therefore, even if a third-party hacker or other adversary intercepts the distribution of the encrypted encryption key 3070 to the users 3010, these encryption keys 3050 are protected by the encryption applied to generate the corresponding encrypted encryption key 3070. Thus, the third-party hacker still cannot access the underlying (plaintext) quantum-grade encryption key 3050 itself.

[0034] In this context, it should be noted that the “conventional” encryption key 3080 can be generated using any suitable encryption scheme. Various examples are described in more detail below. This does not preclude future implementations from utilizing newly developed encryption schemes to encrypt the encryption key 3050, and therefore the term “conventional” should not be considered restrictive in this respect. Furthermore, random bit sequences 3136 can be provided to the user 3010 (in a potentially encrypted form, as described, for example, in relation to key distribution 3060), and the generation of the key 3050 from these bit sequences is intended to be performed on the user system 3010 (without further distribution) using, for example, key generation 3040.

[0035] There are various ways to provide the conventional encryption key 3080 to the system 3000 and mitigate or avoid the risk that a third-party adversary may gain access to the conventional encryption key 3080. For example, an asymmetric encryption system may be used in which the conventional encryption key 3080 is encrypted using the public key of the asymmetric encryption system before the user 3010 sends the conventional encryption key 3080 to the key distribution device 3060. Since the private key corresponding to the public key is generally known only to the key distribution device 3060, only the key distribution device 3060 can decrypt (and thus access) the conventional encryption key 3080 provided by the user 3010 in an encrypted form.

[0036] In other implementations, the conventional encryption key 3080 may be communicated from user 3010 to system 3000 via a different communication route than the one used for distributing the encrypted quantum-grade encryption key 3070 returned to the user from key distribution device 3060.

[0037] In some cases, one or more conventional encryption keys 3080 are derived from a transport key generated during the registration of a new user to system 3000. The transport key may be transmitted to the user in multiple XOR components via various different media, potentially including SMS messaging, email, and printing on paper. For example, each XOR component may be transmitted using a different medium. The user 3010 can then reconstruct the transport key by combining multiple different XOR components using an XOR operation. In this latter approach, it should be noted that the conventional encryption key 3080 is generated by the key distributor 3060 for the client to provide, rather than being generated by the user and transmitted to the key distributor 3060, as shown in Figure 28. Since both of these approaches end up with a conventional encryption key 3080 shared between user 3010 and the key distributor 3060, it will be understood that either of these approaches may be used appropriately.

[0038] In some cases, the communication connection used between a designated user 3010 and the encryption system 3000 is protected using a standard Transport Layer Security (TLS) connection (sometimes called Secure Sockets Layer, or SSL). TLS is the same security method used for HTTPS websites. Within a TLS connection, the conventional encryption key 3080 is encrypted using the open standard 256-bit AES( https: / / en.wikipedia.org / wiki / Advanced_Encryption_Standard It is further encrypted using (see reference). In some implementations, user 3010 may optionally be provided with customer integration software that includes the ability to perform encryption and decryption with 256-bit AES, for example to support TLS. However, this may not be provided in some implementations, for example, because the customer's (i.e., user 3010's) software already has or can access AES functionality, and / or because a given implementation may use an encryption scheme other than AES and / or TLS. Other suitable encryption schemes, including homomorphic encryption, hybrid encryption, and / or post-quantum encryption (the latter attempting to protect against attacks using quantum computers), may be used by the key distribution 3060.

[0039] Next, the random number generator 3020 will be described in more detail. As described above, the random number generator 3020 includes a weak randomness source (WSR) 3100. The WSR 3100 is configured, for example, to provide a deterministic string of random data. For further information regarding the WSR, see the aforementioned published patent application WO2019125733A1, as well as later sections of this specification. The weak randomness source 3100 is implemented using any suitable device or system, such as a digital random number generator, a laser operating near its lathing threshold, or a semiconductor thermal noise source.

[0040] Figure 28 shows the first random output 3115 from the WSR3100, which is passed directly to the conventional processor system 3135. The WSR3100 can also generate a second random output 3110, which is used to specify a measurement of the quantum processing array 3120 as part of a test to verify quantum behavior. However, other implementations may use a different approach to perform the measurement, in which case the second random output 3110 may be omitted or not used at all.

[0041] The quantum processing array 3120 is configured to generate quantum entanglement that can be used to demonstrate the quantum originality of the first bit sequence 3030. The conventional processor 3135 generates a second random bit sequence 3136 by significantly increasing (amplifying) the entropy of the first random bit sequence 3030. The conventional processor 3135 is also configured to apply a test to the first random bit sequence 3030 to prove that it originates from a quantum process occurring in the quantum processing array 3120. This test is usefully accompanied by checking for violations of the Bell inequality by applying, for example, the Mermin test, which is an example of the Bell inequality mentioned above. This test further quantifies the amount of entropy of the first random bit sequence 3030. The quantum processing array 3120 can be implemented in any suitable way, for example, as an optical photonic device as described in the above-mentioned published patent application WO2019125733A1 (see also later sections of this specification). As another example, the quantum processing array 3120 can be implemented by using a quantum computer as shown in Figure 29. This is configured to provide quantum entanglement. Note that the approach of this disclosure is not limited to any specific hardware or system used to provide quantum behavior (such as entanglement).

[0042] Here, we will describe the conventional processor system 3135 in more detail. The quantum processing array 3120 generates a first random bit sequence 3030 based on a quantum process, but the first random bit sequence 3120 is not entirely entropy and may contain some conventional (deterministic) noise, for example, due to activity in the quantum processing array 3120. The conventional processor system 3135 is configured to perform randomness extraction on the first random bit sequence 3030 as described below to generate a second random bit sequence 3136 having amplified randomness compared to the first random bit sequence 3030.

[0043] An example of the operation of the random number generator 3020 includes the following steps (see also Figure 29): (a) Run multiple 3-qubit circuits on the quantum computing system 3200 (or other form of quantum processing unit 3120), test the output from the quantum computer 3200 to obtain a Mermin's inequality, which indicates the amount of entropy that can be extracted from the output (result) generated by the 3-qubit circuits. This output test may be performed by a conventional processor system 3135. (b) The output from the quantum processing array 3120, i.e., the first random bit sequence 3030, is combined with the output 3115 from a local private source of randomness (such as WSR3100) and a two-source randomness extractor 3122 (located within the conventional processor system 3135) is used to generate the first extracted output result 3930 (which is also a random bit sequence). (c) The first extracted output result 3930 is combined with the output 3115 from a random local private source (such as WSR3100) using a seeded extractor 3140 (also located within the conventional processing system 3135) to obtain a second random bit sequence 3136 that the key generation system 3040 can use to generate a quantum-grade encryption key 3050.

[0044] In some implementations, system 3000 is configured to use the following protocol (called ARQ, short for "quantum-amplified randomness") which is sufficiently suitable for generating the quantum-grade encryption key 3050. The ARQ protocol involves using the public quantum computer 3200 (or other suitable quantum source device) to convert the output 3115 from the weakly random source 3100 into a (nearly) perfect random source.

[0045] Perfect entropy can be considered to represent a complete lack of correlation or predictability among bits in a string of a given length. In the context of cryptography, this can be expressed in such a way that a bit string appears random even to an adversary with unlimited computing power (conventional and quantum) and a complete description of the quantum device that generated the bit string.

[0046] In this context, the limitation "nearly" acknowledges that protocol errors can occur in any actual encryption scheme. In the context of a practical random sampler, such a protocol error may correspond to the probability that an adversary with unlimited computational power could distinguish the output of a practical random sampler from a perfectly uniform random bit sequence. For example, if the protocol error is 2 -128 In this case, this represents the probability that an adversary can distinguish between the output of an actual randomness extractor and a perfectly uniform random bit sequence.

[0047] At a high level, the ARQ protocol provides a method for generating a nearly perfect random bit sequence from a first random bit sequence 3030 from a quantum computer 3200 (or other quantum source) and an additional random bit sequence 3115 from a weakly random source (WSR). Examples of other quantum systems that can be used instead of, or in addition to, a quantum computer to generate the first random bit sequence 3030 include optical devices configured to provide quantum entanglement or ion trap devices. Given certain (minimal) assumptions about the device, the aforementioned ARQ protocol can prove the quantum processes occurring in a given device that generates the random bit sequence 3030. Thus, when implementing the cryptographic system 3000, the randomness generated by the quantum computer 3200 (for example) can be combined with the output 3115 from the weakly random source (WSR) to generate a random bit sequence output 3930, which is nearly perfect entropy and therefore suitable for use in generating quantum-grade cryptographic keys.

[0048] This approach allows for the implementation of a weakly random source 3100 using a "block minimum entropy source." In such a source, each block or fixed-length random bit sequence used to generate a random output 3115 has a constant amount of entropy called "minimum entropy," even assuming the adversary knows all previous blocks and has a complete model of the process the weakly random source (WSR) 3100 uses in operation. While minimum entropy can be expressed as equivalent to several truly (perfectly) random bits, minimum entropy can be distributed across several partially random bits. Therefore, in a random bit sequence 3115, there are no assumptions about how the entropy is distributed. For example, if we have a 100-bit bit sequence with a minimum entropy of 2: (i) The 12th bit of output 3115 can be completely random; (ii) Bits 8, 24, 45, and 76 of output 3115 may be 50% random; or, (iii) Since X bits of output 3115 may be somewhat random and Y bits are not random, the probability of guessing the entire bit sequence of output 3115 is (-log2(2 -2 )=2)2 -2 That is the case.

[0049] Some implementations may utilize more constrained models of weakly random sources (WSRs), such as the Santa-Vazirani (SV) source. Such a weakly random SV source 3100 can be considered a block source with a block length of 1, i.e., it has a constant amount of randomness per bit.

[0050] Next, with reference to Figure 29, another implementation of the encryption system 3000 will be described in more detail. Note that the implementation in Figure 29 shares many aspects with the implementation in Figure 28, and many components and procedures are interchangeable between these implementations.

[0051] Figure 29 shows an example implementation of the encryption system 3000, which includes a quantum computer 3200, a vertester 3124, and a two-source extractor 3122. The quantum computer 3200 can be considered to form the main component of the quantum processing array 3120 in Figure 29. Although only a single quantum computer 3200 is shown in Figure 29, it should be noted that this can represent one or more quantum computers operating in a cluster or independently of each other. (For example, inputs may be received from multiple different quantum computers, providing a form of redundancy and special protection with respect to the first random bit sequence).

[0052] The encryption system 3000 further includes a WSR 3100 that provides output 3115 to both a two-source extractor 3122 and a seeded extractor 3140. The seeded extractor receives output 3930 from the two-source extractor 3122. Output 3930 is commonly referred to as the seed and has (nearly) perfect entropy. The seeded extractor 3140 provides a second random bit sequence 3136 as output, which can be passed to a key generation unit 3040 to generate one or more keys 3050 for use in encryption and decryption of data, authentication, or any other desired application. In practice, the seeded extractor 3140 can be considered a single extractor that can be used multiple times to generate a relatively large number of keys 3050. Typically, the keys 3050 from the system 3000 can be provided to a user 3010 via a key distribution system 3060 as described above with respect to Figure 28.

[0053] It should be noted that components within System 3000 may be potentially interchangeable. For example, WSR 3100 can be replaced by one or more different implementations of WSR, and similarly, the two-source extractor and / or seeded extractor 3140 can be replaced by other implementations of these extractors. Such replacements may be desirable to configure components to suit the specific circumstances of any given implementation, such as the available hardware, the implementation of the private domain 3002 shown in Figure 29 and described below, the desired throughput of the entire system (with respect to the bit string output 3136), and the complexity of any given implementation related to the available processing power. (It will be understood that such considerations apply not only to the specific implementation shown in Figure 29 but also in general.)

[0054] In some cases, the seeded extractor 3140 can store a random bit sequence representing a key precursor in a database such as the database 3530 shown in Figure 33. The user 3010 can then request and retrieve from the database a quantum-grade encryption key 3050, if necessary (and converted from the precursor if necessary).

[0055] Therefore, the following steps (in particular) can be performed using the encryption system 3000 in Figure 29. 1. Start a certified session with the quantum computer (QC)3200 and request the output of a series of quantum circuits. 2. Once the output is received, it is determined whether the output passes the Vertest performed by Vertester 3124 to verify a violation of conventional physics. The test performed by Vertester 3124 is sometimes referred to as security test A below. Note that in some implementations, Vertester may be part of an entire test unit (not shown in Figure 29) that also interacts with the quantum computer to obtain the measurement results from step 1 above. 3. If the test is successful, the first random bit sequence 3030 from the quantum computer 3200 and the output 3115 from the (private) WSR3100 are fed to the two-source extractor 3122 to create another random bit sequence called the seed 3930 generated herein (if the test fails, return to step 1 above and request a new output from the QC3200). 4. The generated seed and the additional output 3115 from the WSR are fed to the seeded extractor 3140 to produce an output 3136 that can be used to generate a quantum-grade key 3050. 5. Repeat step 4 to generate more quantum-grade keys permitted by the protocol security parameters (and / or store the quantum-grade keys or key precursors in the database as described above for later retrieval).

[0056] Figure 29 shows two domains: a public domain 3001 containing the quantum computer 3200, and a private domain 3002 containing the remaining components, which generally corresponds to a conventional processor system 3135. In this context, the private domain 3002 can be considered as a set of one or more computers under the control of an operator that supplies quantum-grade encryption keys 3050 to clients 3010, for example, as shown in Figure 28 (these clients are typically located in the public domain 3001). Components within the private domain 3002 can be connected to each other by dedicated / private links and / or networks. In contrast, communication between the private domain 3002 and the quantum computer 3200 in the public domain 3001 can be performed over a standard network such as the Internet (the same applies to communication between the private domain 3002 and user 3010, which is not shown in Figure 29). Note that, as shown in Figure 29, communication between the quantum computer 3200 and the components of the private domain 3002 (and similarly between the components of the private domain and user 3010) may require some form of (mutual) authentication. Various protocols for such authentication are known to those skilled in the art and can be based on (for example) certificates and / or digital signatures.

[0057] In the context shown in Figure 29, the quantum computer 3200 is considered an open quantum device because it is not under the direct control of the operators in private domain 3002. As a result, the operators in private domain 3002 cannot closely inspect or monitor the operation of the quantum computer 3200. However, as described herein, the quantum operation of the quantum computer 3200 can be verified based on the quantum entanglement and Bel test described herein.

[0058] Private Domain 3002 can be configured so that everything that happens in this section remains secret, that is, hidden from external adversaries, and known only to the user (until used by some subsequent protocol that may not retain this secret). In some cases, such privacy may be implemented at the computational level where Private Domain 3002 corresponds to a trusted execution environment such as Intel Software Guard Extension (SGX). This Private Domain 3002 can also be physically implemented by shielding, for example, a Hardware Security Module (HSM).

[0059] The configuration of the encryption system 3000 shown in Figure 29 can be considered a three-layer architecture having a user or client 3010 (not shown) as the first (client) layer, components of the private domain 3002 as the second (server) layer, and the quantum computer 3200 as the third (backend) layer. During operation, user 3010 can request one or more keys from the server layer of the private domain 3002 and return the requested quantum-grade keys to user 3010. The private domain components generate the requested keys, whether in advance or in real time, by interacting with the quantum computer 3200 to obtain a qubit sequence 3030 capable of generating the requested keys.

[0060] The configuration shown in Figure 29 is provided for illustrative purposes only, and it should be understood that other configurations will be obvious to those skilled in the art. For example, in some implementations, some or all of the components of the private domain 3002 may be installed on a client device 3010 (rather than another server) in the form of, for example, an app or other software entity. In this case, the client device itself may then directly interact with the quantum computer 3200 to obtain a random bit sequence 3030. Other possible configurations (and combinations of configurations) will be obvious to those skilled in the art.

[0061] The operation of the encryption system 3000 shown in Figure 29 is described in more detail here as an example. (As will be described in more detail below), multiple (typically 8, especially 4) sets of local measurements can be performed on the GHz state of three qubits using the quantum computer (QC) 3200. The measurement settings can be changed for each round or fixed every quarter of the total number of rounds. (For an example of changing the measurement settings for each round according to a (weak) random number sequence, see Figure 2A, including the WSR-1 218 and driver 216, and the related explanation). In one implementation, a minimum of 10 is required to provide a trusted bell test. 6 The quantum computer round will be executed.

[0062] Some implementations make the following assumptions regarding the operation of the quantum computing device 3200 (other implementations may make different assumptions): Assumption 1: The device is not malicious but uncharacterized: The device may have some error that is unknown to the operator of encryption system 3000, but it is not maliciously controlled by an adversary. Assumption 2: This communication is public but authenticated, so an adversary can intercept (but not alter) messages from quantum computer 3200 to private space (domain) 3002.

[0063] The Vertester 3124 represents a conventional algorithm implemented in hardware / software to perform a Vertest (a test of "quantum nature") on the observed behavior of the quantum computer 3200. This can be achieved by performing an analysis on the input circuits executed by the quantum computer and the measurement results from each circuit (explained in more detail below). An observed probability distribution is created using the combination of inputs and outputs from the quantum computer. From this probability distribution, the Ver value can be calculated and an evaluation of the Mermin inequality can be performed. Using this Vertester, it is possible to provide an analytical limit on the amount of randomness (from "quantum nature") in the output from the quantum computer 3200. Other implementations can analyze the complete observed probability distribution to achieve a better limit on "quantum nature" and, accordingly, prove "quantum nature".

[0064] The randomness of data generated from both the weakly random source (WSR) 3100 and the public quantum computer 3200 is measured in terms of entropy. Entropy represents "the number of truly random bits in a bit string." The configuration shown in Figure 29 helps provide a quantitative lower bound measure of the entropy of the output data generated from the quantum computer 3200, and uses a two-source extractor 3122 to make it possible to convert the output from WSR 3100 into a source of (nearly) perfect randomness. The (nearly) perfect source of randomness is called the "generated seed" and typically corresponds to a random bit string 3930. This generated seed can then be used to enable the seeded extractor 3140 to generate random bit strings of multiple quantum grades. This can then be used to create the key 3050 as described above (for example, by using a key generation unit 3040, which is not shown in Figure 29).

[0065] The configuration in Figure 29, particularly the processing performed within the private domain 3002, uses the vertester 3124 to verify or prove the quantum randomness of the data (and the key generated therefrom) received from the (public) quantum computer, and to determine the amount of entropy of the first random bit sequence 3030. This knowledge of entropy is then used in combination with the estimate of the entropy of the minimum entropy input 3115 from the WSR 3100 by the two-source extractor 3122 to generate a (nearly) perfectly entropy output, i.e., seed 3930. (Roughly speaking, this is achieved by a two-source randomness extractor that reduces the number of bits in the output 3930 compared to the inputs 3030 and 3115 so that the entropy of seed 3930 approaches or reaches its theoretical maximum. Then, using the seeded generator, multiple output random bit sequences 3136 are generated. These all similarly possess complete randomness as seed 3930 and support the generation of a larger number of output keys 3050 (compared to the number of keys that can be generated by directly using the first random bit sequence 3030 or seed 3930 from the quantum computer 3200 to generate the encryption key 3050).

[0066] In the context of this explanation, “private data” refers to data that remains secret from external adversaries and is known only to a given user (until the data is used in some subsequent protocol that may not maintain this secret). Private data may be limited to local data (hardware and software). For example, it may be held at a single geographical site. However, in some cases, private data may be maintained across multiple sites if adequate protection is available (e.g., dedicated communications equipment for a single organization). Public data can be considered non-private data. Local can be considered analogous to a local area network in this specification, here again generally corresponding to a single site or possibly multiple adjacent sites. Remote can be considered any separation beyond the local.

[0067] The encryption system 3000, particularly the two-source extractor 3122, can be considered to provide not only entropy amplification but also privacy amplification. Specifically, the first random bit sequence 3030 from the quantum computer 3200 is considered public in many implementations (e.g., generated on a public computer and / or transmitted over a public network). However, when combined with the private WSR output 3115, the resulting output from the two-source extractor 3122, i.e., the seed 3930, also becomes private, thus transforming the quantum-grade public random bit sequence 3030 into a quantum-grade private random bit sequence 3930. (The same approach can be used to combine a public WSR string with a private quantum-grade string to similarly generate a private quantum-grade output).

[0068] In system 3000, private data is stored and processed within private domain 3002 and can be implemented using a trusted execution environment, such as Intel Software Guard Extensions (SGX). In other implementations, the security and privacy of private data within domain 3002 may be maintained by providing physical shielding, such as by a hardware security module (HSM).

[0069] The ARQ protocol can be implemented, for example, using the private domain components and quantum computer 3200 shown in Figure 29, and performing a method that includes the steps described below. As mentioned above, quantum computer 3200 (and user 3010 as well) can be considered public, i.e., outside the private domain 3002. Components within the private domain 3002 are typically provided with appropriate (public) networks and / or communication links to communicate with quantum computer 3200 and user 3010 as needed.

[0070] Some implementations of the ARQ protocol include the following steps: Step 1: Start an authenticated session with the Quantum Computer 3200 and request a series of quantum circuits as output; Step 2: Upon receiving a set of quantum circuits, determine whether the set of quantum circuits satisfies the Vertest using a Vertester; Step 3: If the series of quantum circuits pass the bell test, the output of quantum computer 3200 and the (private) weak randomness source (WSR) 3100 are supplied to the two-source extractor 3122 to generate seed 3930; if the series of quantum circuits fail the bell test, a new output from quantum computer 3200 may be requested (or processing may be terminated); Step 4: The generated seed 3930 and additional bits 3115 are fed to an extractor 3140 seeded from a weakly random source (WSR) 3100 to generate a quantum-grade random bit sequence (and optionally stored in a database as described above); and, Step 5: If permitted by the protocol security parameters, repeat Step 4.

[0071] When implementing the above method, the quantum computer 3200 may be configured in some implementations to perform four sets of local measurements in a Greenberger-Horn-Zeilinga (GHZ) state of three qubits. The measurement settings can be changed round by round or fixed every quarter of the total number of rounds. A Greenberger-Horn-Zeilinga (GHZ) state is a specific type of entangled quantum state that includes at least three subsystems, such as particle states or qubits. The actual system 3000 has a minimum of 10 6 Implement the quantum computer round.

[0072] When implementing the above method and the ARQ protocol, the bell tester 3124 used in step 2 of the aforementioned method may be provided as a conventional algorithm implemented in hardware, software, or a combination of both, to perform the bell test. That is, it is a test of entropy with respect to the observed behavior and the output of the quantum computer 3200. The bell test may be implemented by performing an analysis on the input circuits executed by the quantum computer 3200 and the measurement results from each circuit. An observed probability distribution is created using the combination of inputs and outputs from the quantum computer 3200. From this distribution, the bell value of the bell test can be calculated. In some implementations, the bell test is evaluated against the Mermin inequality. This bell test allows system 3000 to analytically delimit or limit the randomness, i.e., the amount of entropy, of the output from the quantum computer 3200.

[0073] In the configuration shown in Figure 29, the two-source extractor 3122 can be provided as a conventional algorithm implemented in hardware, software, or a combination of both. The two-source extractor 3122 obtains two weak (i.e., incomplete) random bit sequences that are conditionally independent of each other, and generates a short but (almost) complete random output string (which can be considered a form of entropy amplification).

[0074] In some implementations, the two-source extractor used in system 3000 is a Dodis extractor. Note that a strong two-source extractor means that its output is (almost) independent of one of the two input sources. As a result, one source can be exposed without compromising the secrecy of the output generated from the two-source extractor 3122. This operational characteristic of the strong two-source extractor supports the use of the public quantum computer 3200 to implement the cryptographic system 3000, namely, a quantum computer in a public domain 3001 separate from WSR3100 and the use of the two-source extractor 3122 in a private domain 3002.

[0075] The Dodis extractor is based on the technique described in the scientific publication, "Improved randomness extraction from two independent sources," by authors Y. Dodis, A. Elbaz, R. Oliveira, and R. Raz, Proceedings RANDOM, Vol. 3122, pp. 334–344, 2004; this scientific publication describing the 2-norm extractor is incorporated herein by reference in its entirety.

[0076] A Dodis extractor has two inputs, each yielding an incomplete source that in the current implementation provides data streams of equal length to each other (although other implementations may accept two inputs of different lengths). The Dodis extractor amplifies the two data streams to produce an output stream of nearly perfectly entropy data, but only if the sum of the minimum entropy rates of both sources is greater than 1, i.e., more than 50% of the total input bits across both sources are random. In fact, the Dodis extractor does not increase the overall entropy, but concentrates the initial entropy distributed across two independent input data streams into a single output data stream (bit sequence).

[0077] The Dodis extractor can be implemented using the convolution theorem and number arithmetic transformation (NTT) for cyclic matrices, resulting in a complexity of order O(n log n), where n is the input bit length of each source. Therefore, the Dodis extractor can actually be run efficiently for large data block sizes.

[0078] In some implementations, the core of the Dodis extractor can be implemented as a numerically accurate version of the Fast Fourier Transform (FFT), for example, using the number theory transformations described above. When implemented in software, the Dodis extractor can be written in C for use on a standard computer (for example). Alternatively, it can be implemented in the more modern Go+VHDL language for use on a field-programmable gate array (FPGA), for example. Thus, the Dodis extractor can be implemented in various ways on various platforms.

[0079] In some cases, system 3000 can be implemented primarily in software. This can help improve the complexity of the post-processing used to generate the aforementioned quantum-grade encryption key 3050, for example, by improved randomness sampling, even when the data block size of the quantum-grade encryption key is relatively large. Furthermore, such a software-based implementation of encryption system 3000 supports the use of quantum circuits in quantum computer 3200, which has a small or minimal depth and can run on noisy, medium-scale quantum (NISQ) computing devices. Moreover, the quantum circuits of quantum computer 3200 can be optimized to provide a specific configuration of backend native gate sets, enabling the achievement of smaller quantum circuits with shallower depths that are quantum noise-resistant.

[0080] Next, we will describe the weakly random source (WSR) 3100 in more detail. As mentioned above, the weakly random source (WSR) 3100 can be implemented as a block minimum entropy source. Here, "block minimum entropy source" means that the source generates bit sequences such that each string has the minimum set amount of entropy even given the previous bit sequence. The Santha-Vazirani source provides an example of such a block minimum entropy source, but it will be understood that the weakly random source (WSR) 3100 can be implemented in various other ways. For example, the Weak Random Source (WSR) 3100 can be implemented as a conventional chip-based random number generator (RNG), such as RDSEED, described in the scientific publication "Analysis of Intel's Ivy Bridge digital random number generator" by Hamburg, M., Kocher, P., and Marson, ME, 2012, which is accessible online: http: / / www.cryptography.com / public / pdf / Intel_TRNG_Report_20120312.Pdf (this scientific publication is incorporated herein by reference in its entirety). In other cases, the Weak Random Source (WSR) 3100 can be implemented as a commercially available quantum random number generator (QRNG), such as a commercially available IDQuantique device. https: / / www.idquantique.com / (See reference), or noise-based avalanche diodes, etc.

[0081] Here, the quantum computer 3200 is described in more detail. The quantum computer 3200 may be implemented as an ion-trap quantum computer (e.g., manufactured by Honeywell Inc.) or as a superconducting junction quantum computer (e.g., manufactured by IBM Inc.), but other implementations of the quantum computer 3200 (including dedicated devices) are also possible. A working quantum computer 3200 is used to execute one or more quantum circuits and may be configured, for example, to perform a Bel test to compute the Mermin inequality. The Mermin inequality is described in N.D. Mermin's scientific publication, "Extreme quantum entanglement in a superposition of macroscopically distinct states," Physical Review Letters, Vol. 65, No. 15, pp. 1838, 1990. This scientific publication is incorporated herein by reference in its entirety. The Mermin inequality can be expressed as follows:

number

[0082]

number

[0083] During operation, statistical calculations are performed to compute Equation A1 (Eq.A1), and statistical data are collected by running the circuit on the quantum computer 3200. The operation of each quantum circuit is based on a method that includes the following steps: Step 1: Prepare the quantum state and generate a 3-qubit GHz state as specified in equation A2 above; Step 2: Perform a measurement selection. For example, for the state specified by Equation A2, one of four different measurement selections is performed on the state (x, y, z = YXX, XYX, XXY, or YYY), and a Pauli-X or Pauli-Y measurement is performed on each of the three qubits. The Pauli-X measurement is implemented using a Hadamard gate (H), and the Pauli-Y measurement is implemented using an S-dagger or a phase gate (S†) and a Hadamard gate (H). Subsequently, a standard-based (computation-based) measurement is performed to provide detection; Step 3: Perform detection. Here, the state of the qubit is read from each quantum circuit as measurement results (a, b, c); and, Step 4: Collect the results.

[0084] Figure 30 shows one of four quantum circuits executed on quantum computer 3200 to collect statistical data and determine Bell inequality violations according to equation A1 above. Note that there are eight possible circuits that can be executed on quantum computer 3200 to compute the Mermin inequality for a selected GHz state. In one implementation (shown in Figure 29), only four of these circuits are used. However, in other implementations, eight circuits can be used in protocols to which the applicable protocols may use different permutations of the metrics. Figure 30 is shown as pre-compiled. This typically shows the circuit before compiler optimizations are applied.

[0085] Steps 1 through 4 described above will be explained in more detail below. Step 1: Preparing the state : The three qubits are initialized in the |0> state, and single-qubit gates (Hadamard H and phase gate S) and two-qubit gates (CNOT gate) are applied to them to generate the GHZ state according to equation A2 above.

[0086] Figure 30 shows the dotted line 3300 after the state has been prepared. This dotted line represents an instruction to the compiler to ensure that the state is fully prepared before the measurement is performed each time the quantum circuit is executed, and in particular, this line forces the preparation of the exact same state when implementing the (4 or 8) circuit. Therefore, if any optimizations are performed by the compiler for quantum computer 3200 on the gates used (as shown in Figure 30), the gates for measurement and the gates for state preparation are kept separate, and thus the gates do not get mixed up between state preparation and subsequent measurement.

[0087] Step 2: Measurement Selection In Figure 30, the gates beyond the dotted line 3300 in the quantum circuit are used to select measurement options and read the state of the qubit. In some implementations, the quantum circuit is used <a0b1c1>This provides statistical data (for example). Here, the subscript 0 is used for the Pauli-Y measurement of the qubit, and the subscript 1 is used for the Pauli-X measurement of the qubit. Thus, it will be understood that Figure 30 shows that a 011 measurement, i.e., a YXX measurement, is being performed. The other three quantum circuits are permutations of this configuration, namely 101, 110, and 000, corresponding to XYX, XXY, and YYY, respectively. This is S accordingly † This is achieved by rearranging the gates and H gates.

[0088] Step 3: detection : The state of the qubit is read out as measurement results (a, b, c) at the end of the quantum circuit. (This corresponds to a standard or computation-based measurement.)

[0089] Step 4: Collection of results : The quantum circuit is repeatedly transmitted to the quantum computer 3200, and the measurement results are collected along with measurement options (x, y, z) such as Eq.A1 (a, b, c). For example, in the implementation example of system 3000, a minimum of 10 in total 6 A quantum circuit can be used.

[0090] These are four of the eight possible circuits that can be executed on a quantum computer to compute the Mermin inequality for a given selected GHz state. In one implementation shown in Figure 29, only these four are required. However, other permutations of the metric are also usable. Some are used in protocols where all eight circuits are applicable.

[0091] In Figure 31, the four quantum circuits are generally denoted as 3400, 3410, 3420, and 3430, corresponding to YXX, XYX, XXY, and YYY, respectively (note that circuit 3400 is also shown in Figure 30). In quantum computer 3200, each of these four quantum circuits 3400-3430 is executed many times to collect the statistical data necessary for Eq.A1. By collecting such statistical data, system 3000 can determine whether Bell's inequality has been violated, and thus can provide a measure of the quantum randomness generated by quantum computer 3200.

[0092] In Figure 31, each of the four quantum circuits 3400, 3410, 3420, and 3430 includes a dotted line 3301, similar to the dotted line 3300 described above with respect to Figure 30 (also shown in Figure 31). Thus, the dotted line 3301 represents another compiler instruction that provides separation between the measurement selection (by the gate) and the subsequent detection element. In practice, for each quantum circuit, the compiler needs to ensure that all measurements are complete before performing the detection. This separation helps reduce measurement crosstalk (i.e., signaling). It should be noted that the dotted line 3301 between measurement and detection is generally also present in the implementation shown in Figure 30. However, such lines are omitted in Figure 30 for clarity. It will also be understood that dotted lines 3300 and 3301 can be considered optimizations. However, in some implementations, one or both of these optimizations can be omitted as desired.

[0093] Figure 32 shows further quantum circuit implementations 3460, 3470, and 3480 for use with the ARQ protocol described herein. However, it will be understood that portion 3450 of Figure 32 is not the circuit implementation itself, but rather a list of gates used in other implementations. Circuit 3460 in Figure 32 generally corresponds to circuit 3410 in Figure 31. The remaining two circuits in Figure 32 represent optimizations of circuits 3410 / 3460, which will be discussed in more detail below.

[0094] In some implementations, the degree of parallelization can be increased compared to the implementations shown in Figures 30 and 31. For example, some implementations of the quantum computer 3200 can use only three qubits to execute each quantum circuit individually, while other implementations of the quantum computer 3200 can have more than three qubits. In such cases, by dividing the qubits into groups of three qubits, multiple quantum circuits can be executed in parallel in time on a single quantum computer, thus enabling the simultaneous execution of multiple quantum circuits. This allows for the parallel creation of generated seeds.

[0095] Furthermore, some quantum computers allow for conditional resets, rather than executing one quantum circuit at a time and completely reinitializing the quantum computer 3200 between each subsequent quantum circuit. Such equipment allows for the sequential execution of many quantum circuits without having to invoke the time-consuming procedure of reinitialization and calibration between each execution.

[0096] In some implementations, quantum circuit optimization can be used when running quantum circuits on quantum computer 3200. Thus, Figure 31 provides diagrams of basic functional quantum circuits 3400, 3410 (see also 3460), 3420, and 3430 that can be run on quantum computer 3200 to execute the ARQ protocol in the cryptographic system 3000 described herein. Quantum circuit 3470 in Figure 32 is specifically adapted from circuit 3410 for execution on an IBM-type Josephson junction cryogenic quantum computer. In contrast, quantum circuit 3480 is specifically adapted from circuit 3410 for execution on a Honeywell-type ion-trap quantum computer. In practice, due to differences in quantum computing hardware, for example, the native gate set of a Honeywell-type ion-trap quantum computer differs from that of an IBM superconducting quantum computer. Therefore, the quantum circuits used to implement System 3000 can be customized (and / or optimized) for a specific platform used in the quantum computer 3200—for example, by implementing certain gates to reduce (e.g., minimize) the number of gates used in a given hardware configuration. To achieve such optimization, ZX computation can be used to achieve, for example, the optimal implementation of quantum circuits with respect to the number of gates for single-qubit and two-qubit configurations.

[0097] When implementing System 3000, it may be desirable to use an extractor 3140 seeded in different ways depending on the relevant circumstances. Therefore, the seeded extractor can execute algorithms implemented in hardware, software, or a combination of hardware and software. The seeded extractor may accept a nearly complete string of bits (called seed 3930) as its first input and a weak or incomplete random bit string (from WSR3100, for example) as its second input. The seeded extractor 3140 is then used to generate an output bit string of (nearly) complete bits from the two inputs. The length of the output approximately corresponds to the number of random bits (minimum entropy) in the second input from WSR3100.

[0098] If a strongly seeded extractor can provide an extractor output that is (almost) independent of the seed, then the same seed 3930 can be used repeatedly with new random strings 3115 from a weaker source (such as WSR3100) to generate much longer outputs. In practice, the cryptographic system 3000 can generate multiple output random bit sequences to be used as encryption keys within the system 3000.

[0099] In some implementations, it may be beneficial to use a two-source extractor as the seeded extractor 3140. One input to the seeded extractor 3140 can receive a generated seed 3930 with (nearly) perfect randomness. The other input to the seeded extractor may be provided by a second output 3115 from the WSR 3100.

[0100] In some embodiments, system 3000 may include two Dodis extractors, one functioning as a two-source extractor 3122 and the other as a seeded extractor 3140. As previously mentioned, the Dodis extractor is a powerful extractor, so that the extractor's output is independent of one of the two inputs. In particular, the output can be generated independently of the generated seed 3930, and in fact, multiple keys can be generated from a given seed 3930. In this approach, each key 3050 is generated using a different input from WSR3100. One advantage of this approach is that it is easier to generate such multiple inputs using WSR3100 (than with the quantum computer 3200).

[0101] Therefore, to generate a much longer quantum-grade random bit string output, which is used when generating quantum-grade encryption keys in System 3000, the Dodis extractor can be used repeatedly with the same seed (up to some predefined security parameter). As described above, a Dodis-seeded extractor generates an output quantum-grade random bit string with nearly perfect entropy using two strings, one (nearly) perfect and the other weak or incomplete. The Dodis extractor can be implemented using the convolution theorem of cyclic matrices, which yields a complexity of order O(n log n), where n is the input length of each source bit string. Such an implementation provides a considerable improvement over other published results. Such an implementation is a quantum proof of the Markov model and has a penalty on the length of the output (see "Quantum-proof multi-source randomness extractors in the Markov model" by Arnon-Friedman et al., available at https: / / arxiv.org / pdf / 1510.06743.pdf).

[0102] As mentioned above, one reason why the Dodis extractor is attractive to use as the seeded extractor 3140 when implementing system 3000 is that it is a powerful extractor. This supports the use of multiple extractors with a given seed 3930 to generate many quantum-grade encryption keys. Furthermore, the Dodis extractor generally offers a good trade-off between seed length and computational complexity.

[0103] The use of a Dodis-type extractor is described above for use with encryption system 3000, but alternative types of extractors can be used with system 3000, and examples are shown below. (a) The Hayashi-type extractor described in the scientific publication Hayashi, M. and Tsurumaru, T., 2016, "More efficient privacy amplification with less random seeds via dual universal hash function," IEEE Transactions on Information Theory, 62(4), pp. 2213-2232; (b) Toeplitz-type extractor described in the scientific publication Krawczyk, H., May 1995, "New hash functions for message authentication," at the International Conference on Theory and Applications of Cryptography (pp. 301-310). Springer, Berlin, Heidelberg; and, (c) Scientific publication Maurer, W., Portmann, C., and Scholz, VB, 2012. Trevisan-type extractor described in "A modular framework for randomness extraction based on Trevisan's construction," arXiv preprint arXiv:1212.0520; the acceleration of the Trevisan-type extractor is achieved by parallel processing in which each bit from the output block is extracted independently in a vectorized manner. The Trevisan-type extractor can be accelerated using a non-quantum computer's Graphical Processing Unit (GPU).

[0104] All of the above quotations (a) to (c) are incorporated herein by reference in their entirety. The above extractors generally require one input to have perfect entropy and are therefore generally suitable for use as seeded extractor 3140, but are not suitable as two-source extractor 3122 where both inputs have weak (imperfect) randomness.

[0105] Note that the above Hayashi, Toeplitz, and Trevisan extractors are also powerful extractors (like the Dodis extractor). Hayashi-type and Toeplitz-type extractors are based on universal hashing and derive security from the well-known Leftover Hash Lemma (see https: / / en.wikipedia.org / wiki / Leftover_hash_lemma). They are secure against quantum side information without penalty. Similarly, Trevisan-type extractors are secure even when quantum side information exists without penalty. Hayashi-type and Toeplitz-type extractors are implemented with a complexity of order O(nlogn), and Trevisan-type extractors are implemented with a complexity of order O(n 2 ). Here, n is the input length of each source bit string of the WSR input. The Trevisian extractor is more complex but is suitable for hardware parallel processing because each bit from the output block can be processed independently. This supports actual high-speed calculations.

[0106] In some implementations, the cores of Dodis-type, Hayashi-type, and Toeplitz-type extractors represent the number-theoretic transform (NTT), i.e., a numerically accurate version of the FFT (Fast Fourier Transform). For example, it is possible to implement the NTT in the C computer language for use in a non-quantum computer and in the Go+VHDL language for use in an FPGA (Field Programmable Gate Array). Using both NTT implementations, it is possible to implement the theoretically known algorithm optimal for the Dodis-type extractor.

[0107] Using multiple instances of a given powerful seeded extractor for a given extraction parameter will result in some configurable "error" associated with the output from the given powerful seeded extractor. While allowing multiple uses, it is desirable that the error be limited, i.e., kept within defined limits. To do this, the extractor parameters can be calculated. For example, 2 300 The seeded extraction is 2 -128 The final quantum-grade random bit string output (2) is indistinguishable from perfectly uniform random data up to a certain probability. 300 This can be done using the output length of the seeded extractor.

[0108] Referring to Figure 33, an example implementation of the cryptographic system 3000 having a two-tier implementation including a secure user environment 3500 and a server backend 3600 is shown. The secure user environment 3500 may be located within a client device 3010 (e.g., downloaded), or it may be located on a server accessible to the user (e.g., in a cloud computing configuration). The secure user environment includes a private source of randomness 3510, which can be implemented using the WSR 3100 as described above, and an original equipment manufacturer's (OEM) cryptographic library 3540. The latter includes one or more stored seeds held in a database or other suitable (and secure) storage facility 3530, and an extractor 3520, which can be implemented, for example, in the same way as the seeded extractor 3140 described above. Note that in some implementations, the private source of randomness 3510 may also be included in the OEM cryptographic library 3540.

[0109] The server backend 3600 comprises two main components: a proprietary backend 3610 and the quantum computer 3200 (as described above). The proprietary backend 3610 acts as an interface for sending requests to the quantum computer 3200 and receiving random bit sequences from the quantum computer 3200 in response to such requests. The proprietary backend 3610 may also include a Bell tester 3124 (not shown in Figure 33) which is responsible for verifying that the random bit sequences received from the quantum computer 3200 violate the Bell inequality, and is therefore relied upon to provide a source of quantum randomness. In some cases, the operator of the quantum computer 3200 may also provide the proprietary backend 3610 (and thus this can be considered an integrated backend), while in other cases, the operator of the quantum computer and the provider of the proprietary backend 3610 may be separate from each other.

[0110] The proprietary backend 3610 can also be used to provision components of the secure user environment 3500 to clients over the network (e.g., by downloading components or by downloading components). Such components may include the secure user environment 3500 itself (which may be provided individually by specific hardware configurations, etc.), the random private source 3510, the extractor 3520, and the seed database 3530. Depending on the specific configuration adopted, further components (not shown in Figure 33) may also be downloaded from or by the proprietary backend 3610, such as the two-source extractor 3122 and / or the vertesta 3124.

[0111] In the operation of the encryption system 3000 in Figure 33, the proprietary backend 3610 obtains a random bit sequence from the quantum computer 3200, which is combined with a source with weak randomness (such as 3100) using the two-source random extractor 3122 as described above to generate a seed 3930 with nearly perfect randomness (for example, as described above in relation to Figure 29). The proprietary backend 3610 then sends the generated seed 3930 to the user client 3010, in particular to the secure user environment 3500, for storage in the seed database 3530. The extractor 3520 then combines the random bit sequence from the seed database, i.e., the seed 3930, with the output from the private source of randomness 3510 to generate a quantum-grade random bit sequence as output 3136, which can (among other things) be used to generate the encryption key 3550. The encryption key can be distributed to the user 3010 using secure encryption techniques, for example, as disclosed above in relation to Figure 28.

[0112] In some implementations, the database 3530 can hold only a single seed 3930. As mentioned earlier, such a seed may have (almost) perfect randomness and could potentially be used to generate many random bit string outputs 3136 of the extractor 3520. However, in other implementations, the database 3530 may hold multiple seeds 3930, for example, when the extractor 3520 is not a powerful extractor (and therefore a given seed can generally only be used once).

[0113] It will be understood that the configuration shown in Figure 33 represents one of several different possible configurations that may be adopted. Examples of various configurations or implementations include the following: (i) All private (secure) processing (see Figure 29) is performed on the end-user side. Thus, user 3010 has or acquires (e.g., downloads) a secure private environment 3500 and a local minimum entropy source 3510 (such as WSR3100). During operation, queries may be sent from user 3010 to a remote proprietary quantum computer 3200 via an authenticated channel, and the output from the quantum computer 3200 is then received and returned to the secure private environment, where the subsequent processing steps described above with respect to Figure 29 are then completed privately within the secure private environment 3500 using software, hardware, tools (or any combination thereof) to obtain several (almost) complete and private quantum-grade random bit sequences to be used to generate quantum-grade encryption keys. (ii) In some implementations, interaction with the quantum computer 3200 may be performed alone or in part by a proprietary backend, which then provides a first random bit string 3030 from the quantum computer to a secure user environment, which it supplies to a two-source extractor 3122 (not shown in Figure 33). A vertester 3124 that performs proof of the first random bit string 3030 may be located in the proprietary backend in some cases, and in the secure user environment in other cases. (It should be understood that in the former optional case, the proprietary backend 3610 can provide the secure user environment 3510 with information regarding the entropy level of the first random bit string 3030, since this information is available to the two-source randomness extractor, which helps generate a nearly perfect entropy seed 3930.) (iii) In some implementations, the steps of the ARQ protocol described above are completed primarily on the remote proprietary quantum computer side 3610, and an authenticated (almost) complete seed 3930 may be supplied to the user. In this case, the user can then obtain a much longer-private, almost complete output 3136 using a strongly seeded extractor (such as 3140) and a private WSR 3100 (private source of randomness 3510) in a secure private environment 3500. This configuration can be mapped to the configuration of the cryptographic system 3000 shown in Figure 33. In Figure 33, a proprietary supplier with a quantum computer 3200 sends one or more seeds 3930 of independent randomness to the user, and the client performs further seeded randomness extraction on the user side. (iii) The quantum output is provided to a board or other device equipped with the WSR3100 to create seed 3930. Such a device can then obtain further WSR outputs provided with seed 3930 (which are used by the seeded extractor 3140 as described above). (iv) Instead of storing the seed 3930 used as input to the extractor 3520, the random bit sequence 3136 output from the extractor 3520 can be stored (in a potentially encrypted format) using the database 3530. (The configuration and flow shown in Figure 33 can then be adapted accordingly.) The output from the database, i.e., the stored random bit sequence 3136, can be converted to the key 3050 as desired, if necessary.

[0114] (The above examples are not intended to be limiting, and those skilled in the art should understand that many other modifications and configurations can be developed.)

[0115] Some configurations can be implemented in the form of a cloud-hosted Software as a Service (SaaS) platform configured to distribute one or more newly generated encryption keys 3050 to one or more end customers 3010. The encryption keys are generated using an entropy process executed on one or more quantum computers 3200. The entropy process uses a specific quantum random bit string generation algorithm executed using quantum gates on one or more quantum computers.

[0116] A designated end customer can request one or more new encryption keys by sending a message to the platform. Upon receiving the message, the platform generates one or more new quantum-grade encryption keys, encrypts them (e.g., using the transport key described above), and then sends the encrypted one or more new quantum-grade encryption keys back to the designated end customer. In this configuration, the platform can be considered to implement the functionality shown in Figure 29, for example. The actual platform represents an intermediate layer corresponding to the private domain 3002, which is (architecturally) located between the client 3010 and the quantum computer 3200.

[0117] In the approach described above, one or more new quantum-grade keys can be transmitted from the SaaS platform in encrypted form, so that only designated end customers can decrypt and access the quantum-grade keys. The transport key used to encrypt the quantum-grade keys may be generated by the platform when a new customer registers on the platform. The transport key is then transmitted to the customer in a properly secure manner, for example, by using public-key / private-key encryption, and / or in multiple XOR components via various different media such as SMS messages, emails, and / or printed documents. The customer (user 3010) can then reconstruct the transport key by combining the XOR components.

[0118] In some configurations, some or all of the functionality of the SaaS platform for implementing the ARQ protocol may be provided to the client 3010 in software form for integration with existing end-customer systems. For example, some end-customers may use hardware security modules (HSMs) to protect the keys. In this approach, the customer can use an integrated system to securely provision the quantum-grade keys received from the platform to the customer's HSM.

[0119] An alternative approach is to integrate the ARQ protocol into a site or service that provides a quantum computer 3200. In such a case, a user 3010 requests one or more keys 3050 from the site / service, and then performs all processing related to the ARQ protocol and returns the requested keys to the user.

[0120] Regardless of the specific configuration used to provide the ARQ protocol (or similar functionality) to user 3010, for example, whether the functionality resides on the client side, on the quantum computer 3200, or as a standalone facility, the functionality may be provided as a "black box." In other words, the user can request and receive a quantum-grade key from the ARQ facility, but the internal implementation and operation of the black box may be hidden from the user and therefore cannot be determined from the outside.

[0121] In some implementations, the communication connection between client 3010 and the platform can be secured using a standard TLS (Transport Layer Security) connection over the internet or any other network running the same or similar protocol. It should be understood that TLS is widely used, for example, to provide HTTPS websites. Within a TLS connection, communication is encrypted using 256-bit AES. https: / / en.wikipedia.org / wiki / Advanced_Encryption_Standard (See [reference]). TLS can be used to encrypt quantum-grade keys transmitted from the platform to the client (such encryption can be performed instead of, or in addition to, encryption performed by the platform itself). Furthermore, the TLS protocol can be used to set a transport key between the client and the platform, if desired.

[0122] In some implementations, the ARQ procedure implements two main algorithms (or groups of algorithms). The first algorithm is used to generate a random bit string (i.e., seed 3930) from one or more quantum computers, which is then stored in database 3530. Note that in some cases, the seed may be stored in database 3530 in an encrypted form. Furthermore, part of the processing of the first algorithm may be performed outside the secure user environment, for example, by the proprietary backend described above. The second group of algorithms is used to extract one or more random bit strings (seeds) from the database and output the corresponding random bit string 3136, which is used to generate a quantum-grade key.

[0123] The first algorithm involves executing several 3-qubit circuits on (for example) the quantum computer 3200 and obtaining Mermin's inequality to show how much entropy can be extracted from the results. The output from the quantum circuits is coupled with a local private source of randomness and passes through a two-source randomness extractor to generate a nearly perfect entropy seed 3930. Finally, the output from the two-source extractor is coupled again with a local private source of randomness and passes through a seeded extractor 3520 (corresponding to extractor 3140 in Figure 29). The output from the seeded extractor is a random bit sequence stored in the database described above. A second group of algorithms is used to generate a key from the random bit sequence and thus functions as a form of key generation system 3040 (see Figure 28). The functionality of such a key generation system can be implemented using various known systems or algorithms such as NTRU, Kyber CRYSTALS, and Classic Mceliece (see Wikipedia for further details; further options are known to those skilled in the art). In this context, the random bit sequence 3136 output from the extractor 3530 (or, if the random bit sequence 3136 is stored in the database 3530, the output from the database 3530) can be considered key precursors (however, they can also be used for any other desired purpose, such as Monte Carlo simulation).

[0124] While the quantum computer 3200 is used to implement system 3000 as described above, it should be understood that quantum optical hardware or any other suitable quantum device can be used as an alternative or additional source of quantum entanglement to implement the random bit string generator 3020. This is configured in use to generate quantum-grade random bit strings 3930. Further details regarding such implementations, including quantum optical hardware, are provided below (see, in particular, Figures 1 to 27; however, it should be noted that these figures generally relate to the multiple different implementations described herein, as well as the use of quantum optical hardware).

[0125] Further information about the encryption system 3000, as shown in Figures 28, 29, and 33, can be found in the following description. For example, see the sections "3-qubit protocol for high-speed device-independent quantum random amplification" and "conventional post-processing for quantum random amplification" (but not limited to these).

[0126] Therefore, the ARQ procedure described herein provides, at a high level, a method for generating (nearly) perfect random bit sequences from a source of weak randomness using a quantum process, such as a public quantum computer or other quantum device, that generates some testable (provable) randomness. That is, the quantum process that generates this randomness can be proven under certain assumptions about the device. Thus, using (public) randomness from such a quantum computer, a source of weak randomness can be amplified to give (nearly) perfect randomness.

[0127] Randomness from both a weak randomness source (WSR) and a public quantum computer (QC) is measured in terms of entropy. Entropy indicates the number of truly random bits in a bit string. The ARQ procedure provides a quantitative lower bound on the entropy from the QC, allowing the randomness from the WSR to be amplified into a (nearly) perfect randomness source using a two-source extractor, generating a seed 3930. This generated seed can then be used as a seed in multiple applications of a strong seeded extractor 3140 to generate more (nearly) perfect randomness from the WSR.

[0128] In some configurations, processing within the private domain 3002 (see Figure 29) is implemented on a server or in the cloud, and complete randomness, such as the form of key 3050, is distributed to the user (client) 3010 using secure cryptographic techniques as shown in Figure 28. Other configurations that can be adopted depending on the specific situation include: Processing within the private domain 3002 is performed on the end-user side, i.e., on one or more clients 3010 with a secure private environment and local minimum entropy WSR3115 (such as the one mentioned above with respect to Figure 33). In such a configuration, user 3010 queries the remote quantum computer 3200 via an authenticated channel, implementing the ARQ protocol in the private domain 3002 to obtain some (almost) complete and private random bit string 3136 as output. Note that the hardware and / or software implementation of the ARQ protocol may be provided or made available to the client 3010 by a third party with appropriate expertise in quantum-grade cryptography. In some configurations, the functionality of the private domain 3002 may be partially or completely implemented by some dedicated hardware component, such as a board or other device, which can connect to the client 3010 and make the encryption system 3000, as described herein, available to the client.

[0129] Figure 1 is a schematic diagram of an example of apparatus 100 for proving that numbers are generated by quantum apparatus 102 in an independent manner, and an example of a randomness extractor 110 configured to generate random numbers 116 for use in various downstream applications 120, 122, 124, and 128. The randomness extractor receives input from a weak randomness source 114 (shown here and in the figure as WSR-2), which may be a conventional apparatus for computing pseudorandom numbers. Furthermore, apparatus 100 also has a weak randomness source 104 (shown here and in the figure as WSR-1), which may be a conventional apparatus for computing pseudorandom numbers.

[0130] As used herein, a weak source of randomness (for example, with respect to WSR-1 104, WSR-2 114, and WSR3100) refers to a source of randomness where the randomness cannot be proven to be a result of or based on quantum effects. The term "weak" itself does not imply that the source of randomness is inadequate or insufficient in any way to meet industry standards of randomness. In some implementations, a weak source of randomness can be at least partially nondeterministic, or even completely nondeterministic. Thus, a weak source of randomness includes sources that produce nondeterministic random numbers that cannot be proven. A weak source of randomness is sometimes simply called a source of randomness.

[0131] The quantum device 102 comprises a device for generating multiple qubits and preparing qubits in a specific quantum state, as well as a device for measuring qubits on at least two different bases. The device 100 has security test logic 106 for automatically proving that a given set of multiple qubit measurements 108 violate the Bell inequality. The quantum computer 3200 and Bell tester 3124 in Figure 29 may correspond to the quantum device and test logic 106, respectively.

[0132] As used herein, the Bell inequality generally refers to any inequality relating to the measurement of a quantum system or a conventional system, and a violation of the inequality means that the measurement is consistent with the rules of quantum mechanics (e.g., entanglement or non-locality) and not with the rules of conventional physics (e.g., local realism or hidden variables). The Bell inequality includes an inequality that is always satisfied by any local probability distribution of the measurement results of two parties. This can be realized if each party's device has its own internal state. The Bell inequality includes the original inequality derived by John Stewart Bell and any inequality derived by others, such as the CHSH inequality (Clauser Home Shimony Holt inequality), the Leggett inequality, and the Leggett-Garg inequality. As further described herein, a violation of the Bell inequality ensures that the output of quantum apparatus 102 is due to quantum effects and is therefore independent of other sources, including, for example, a conventional weak source of randomness.

[0133] Proving that qubit measurement 108 violates Bell's inequality demonstrates that the qubit measurement was generated by a quantum effect rather than a conventional effect, and that this also demonstrates that qubit measurement 108 is independent of any other conventional weak source of randomness, such as WSR-2 114 and WSR-1 104 in Figure 1. In this sense, proving that qubit measurement 108 was generated by a quantum effect proves that qubit measurement 108 incorporates quantum randomness. With this proof, users can trust the randomness of the output without accessing the inside of the quantum device 102 (and thus without arranging, for example, for an expert to examine and test the internal structure of the quantum device 102).

[0134] The security test logic 106 can be implemented using any combination of one or more software, firmware, or hardware logic components. For example, but not limited to, exemplary types of hardware logic components that can be used at will include field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-chip systems (SOCs), complex programmable logic devices (CPLDs), graphics processing units (GPUs), central processing units (CPUs), or any other type of hardware processor. Some implementations provide an application programming interface (API) to allow a user to access the security test logic 106. For example, a user can use the API to perform tests to determine whether a given set of qubit measurements 108 violate the Bell inequality (e.g., security test A, described below) or whether the quantum device is non-signaling (e.g., security test B, described below). The API can provide a test mode that allows the user to access raw data from the device 100, enabling the user to perform any desired test and determine that the device 100 is functioning correctly.

[0135] In the embodiment shown in Figure 1, the set of qubit measurements 108 is of a fixed size, which may not be suitable for use in downstream applications 120, 122, 124, and 128. Therefore, in some embodiments, a randomness extractor is used to compute a number of appropriate size / length. Once multiple qubit measurements 108 have been obtained and proven to be generated by quantum effects, the qubit measurements 108 are input to a randomness extractor 110. Conventional randomness extractors, such as Trevisan's extractor, can be used. In some such embodiments, the randomness extractor 110 accepts not only the proven qubit measurements 108 but also pseudorandom numbers 112 from a source with weak randomness 114 as input. The randomness extractor computes a number that can be of any given length as its output. The number generated by the randomness extractor 110 has amplified randomness compared to the pseudorandom numbers 112 and is truly random, as the inputs to the randomness extractor are proven to be independent of each other, as will be explained in more detail below. The two-source extractor 3122 in Figure 29 may correspond to the random extractor 110.

[0136] In some embodiments, the randomly amplified number 116 is input to one or more downstream applications. A non-exhaustive list of examples of downstream applications includes computer security 120, where random numbers are pre-shared among entities and often used as one-time pads (OTPs) for encryption; weather forecasting 122, where random numbers are generated from time to time and used to initialize parameter values ​​for a weather system model; telecommunications systems 124, where random numbers are generated from time to time and used in resource allocation schemes; and manufacturing management systems 128, where random numbers are generated from time to time and used to model noise present in sensor readings. The device 100 may have a network interface for communicating with a network. The random number 116 can be input to downstream applications via the network interface, for example, via a local network connection or via a cloud-based network connection. For example, the device 100 may be installed locally within a user's facility, and the random number 116 may be input to various user applications. In other embodiments, the device 100 may be located away from the user's facility, for example, within a facility provided by the owner of the device 100. The random number 116 can be communicated to the user's downstream application via a network (for example, the internet, a wide or local area network, or a cloud computing network). Therefore, the device 100 may be installed in a single location or in a distributed manner.

[0137] In light of results such as those developed by Santha and Vazirani in 1986 ("Generating quasi-random sequences from semi-random sources" in the Journal of Computer and System Sciences, 33, I(1):75-87), conventional random number generation methods typically assume access to two independent sources of randomness and compute nearly ideal random bits using a randomness extractor. However, the assertion that the two sources of randomness are independent usually has to rely on further assumptions. This is one of the main drawbacks of such conventional methods. Since it is usually impossible to guarantee that the two weak sources of randomness are independent, such conventional methods are device-independent.

[0138] In contrast, current technology can guarantee the independence of the quantum device 102 from the conventional weak randomness source 114, WSR-2. A violation of Bell's inequality guarantees that the output of the quantum device 102 is due to quantum effects and is therefore independent of other sources, including the conventional weak randomness source 114, WSR-2. Thus, the randomness extractor 110 takes input from two sources that have been proven to be uncorrelated sources. In this sense, the output signal 116 of the randomness extractor is truly random.

[0139] Commercialized quantum randomness generators have not demonstrated verifiable device independence because they require a human operator to inspect the randomness generator and verify that it is employing quantum mechanics. Such devices utilize the probabilistic nature of quantum mechanics' operation, employing quantum preparation and measurement scenarios, to create strings of random numbers that are more favorable in many ways than conventional pseudorandom number generation methods. Commercialized quantum randomness generators perform measurements in a single quantum context in a way that is not suitable for device-independent implementations. Existing quantum randomness generators lack security guarantees, and verifying that the device is operating as specified can be difficult even for experts. For example, in certain previously developed photonics-based systems, measuring a photon system is difficult to verify as genuine given that photons are destroyed when they enter the detector. Without guarantee that the reported measurement is due to quantum effects, the device could generate obviously random bit strings that are pre-generated but known to an adversary.

[0140] Many existing quantum-based randomness generators offer security guarantees. These guarantees are only valid if the device is discarded after each round of measurement, or if a very large number of devices are used in parallel (increasing with the number of random bits generated). These approaches are not good candidates for commercial devices.

[0141] Many existing quantum randomness generators are not good candidates for practical applications because they cannot tolerate realistic noise levels from feasible quantum devices.

[0142] An advantageous aspect of device 100 is its robustness to noise. The security test logic functions correctly (and does not abort) simply under the condition that the quantum states and quantum measurements constituting the quantum device have low levels of noise. In particular, device 100 can operate and demonstrate its output even when the different quantum systems of quantum device 102 are almost entirely non-signaling, and not strictly non-signaling. Implementing strictly non-signaling quantum systems within a single device is impractical.

[0143] The various embodiments of the 4-device and 2-device quantum apparatus 102 described herein are unique in their design and application. They use quantum systems to achieve results that are not possible with conventional resources. The embodiments described herein are practically implementable for actual everyday use. The embodiments use a small, fixed number of quantum devices and tolerate realistic levels of noise within the quantum devices. Furthermore, quantum states are generated by quantum circuits that require only a few gates and have shallow circuit depths.

[0144] Device 100, capable of generating true randomness, operating as intended in a device-independent manner, and even proving the generation of random bits, offers a clear advantage over sources of weak randomness in any environment where an adversary's attack on the random bits is even a small possibility. Furthermore, the ability to prove randomness is expected to be important for legislative reasons in the financial industry. When calculating predictions using Monte Carlo simulation models, it is currently necessary to submit the initial pseudo-random seeds commonly used to regulators, but to date, there has been no effective way to prove that these seeds were actually randomly selected and not, for example, selected to influence the outcome in a particular way. Device 100 generates the required random bits along with a certificate of the existence of quantum effects 108, and in this sense generates a certificate of true randomness. Various non-restrictive examples of the process of amplifying an arbitrary source of weak randomness into a nearly ideal source of randomness using a quantum mechanical system are described. This process has the following key notable features:

[0145] Quantum device 102 offers the advantage of being device-independent, meaning that the user does not need to trust the internal workings of the device. This is because security test logic, which performs statistical tests on the device's inputs / outputs, provides the user with proof that output bits 108 and 116 are indeed random. Apart from providing proof of randomness, quantum device 102 is further secure in the sense that output bits 108 and 116 are unknown to anyone other than the user. The security or accuracy provided by device 100 is independent of assumptions of computational complexity and is unconditional, at least in this sense. The only assumption used to prove the accuracy and security of a particular embodiment of device 100 is that there can be no signaling from the device to an untrusted party (such as an eavesdropper). This is ensured, where appropriate, by shielding the device. Device 100 avoids the need for non-signaling assumptions between different parts of the device, in stark contrast to previous research on device-independent randomness generation. This is achieved by introducing a new test (security test B) that passes even if individual quantum systems are almost entirely non-signaling. This device is optionally used in conjunction with conventional random number generators or conventional pseudo-random number generators. Because its output bits are completely independent of other sources of randomness in the universe, it can optionally be used as a seed for conventional randomness extractors to generate larger sequences of random bits. This allows for significantly higher bit rates.

[0146] Device 100 operates with approximately linear execution time with respect to the length of the final bit string. In various examples, the device uses two or four isolated (nearly non-signaling) quantum devices to generate any number of random bits.

[0147] Figure 2A is a schematic diagram of an exemplary four-device quantum device for use as quantum device 102 in Figure 1. A two-device quantum device (see, for example, Figure 3A) can also be used as quantum device 102 in Figure 1. The advantage of the four-device quantum device in this embodiment is that it is secure against attacks by adversaries using a convex mixture of Popescu-Rohrlich (PR) boxes and local distributions, whereas the two-device quantum device is not. In at least some embodiments, the four-device quantum device uses simpler security tests than the two-device quantum device. Furthermore, in at least some two-device embodiments, the two-device quantum device prepares the qubits in a different quantum state than the four-device quantum device in at least some four-device embodiments. In at least some two-device embodiments, the two-device quantum device provides sensor measurements that can be proven as being due to quantum effects, where the correctness of quantum mechanics is assumed as an axiom in the process of computing the proof. In at least some four-device embodiments, the validity of the proof does not depend on the correctness of quantum mechanics as an axiom.

[0148] Referring to the exemplary embodiment shown in Figure 2A, there is an energy source 200 for emitting qubits, and four quantum systems 202, 204, 206, and 208 that receive input from the energy source 200. Each quantum system comprises a state expander 210 that prepares qubits to a specified quantum state. Each quantum system comprises a measuring device 212 that detects qubits on one or more metrics. The metrics of the measuring device 212 can be configured by a driver 216 according to a pseudo-random value of the measuring device setting generated by a source 218 with weak randomness. The measuring device 212 detects qubits received from the source 200 via their respective state expanders 210.

[0149] Source 200 generates pairs of qubits, each transmitted along a different channel. The channels can include paths from Source 200 through the state expander 210 to the detector in the measurement device 212. Since the paths are substantially the same length, the time it takes for a qubit to travel along each path is substantially the same.

[0150] Signals originating from each path are detected by detectors in the measuring device 212, and matches are identified. A match may include the detection of qubits by two or more detectors substantially simultaneously. For example, a match may include the detection of qubits by two or more detectors within a specified time period. The specified time period may depend at least in part on the bundle of qubit pairs generated by the source 200. The specified time period may tend to be inversely proportional to the bundle; for example, if the bundle of qubit pairs is large (e.g., many detections per unit time), the specified time period may be short, and if the bundle of qubit pairs is small (e.g., few detections per unit time), the specified time period may tend to be long. In some embodiments, the specified time period is in the range of about 1 ns to 1 ps, 1 ps to 1 ms, 1 ms to 0.1 s, or some other range. For example, the time period may be in the range of 5 to 15 ns, e.g., about 10 ns.

[0151] In some embodiments, an event in which a qubit is detected is represented by 1 (1), and an event in which a qubit is not detected is represented by 0 (zero). In this way, the measuring device 212 generates an output signal 214 containing a bit sequence. However, the use of binary representation is not mandatory, and in some embodiments, other representations are used for the output signal 214.

[0152] The output signal 214 is checked using security test A220 and optionally security test B. Security tests A and B are implemented using hardware in preferred embodiments, as hardware is generally more secure than software or firmware. However, it is not mandatory to implement security tests A and B using only hardware, and other implementations of the security tests may be based partially or entirely on software implementation.

[0153] Security test A checks whether the output signal 214 is due to quantum effects or conventional effects by testing for violations of Bell's inequality. If security test A passes, there is proof 226 that the output signal 214 is due to quantum effects and thus incorporates quantum randomness. If security test A fails 224, there is no proof and the output signal 214 is discarded. Since source 200 and quantum systems 202, 204, 206, and 208 can be affected by noise, particles prepared in quantum systems are not always qubits and may in some cases be conventional particles. Therefore, security test A is particularly useful because, in addition to giving the ability to prove whether the output signal 214 is quantum, it also provides robustness to noise (as it is a statistical test against many observations of particle detection in the detector of the measuring device), and there is no need to examine the inside of quantum systems 202, 204, 206, and 208.

[0154] Security test A includes monitoring the signals emanating from each channel. For each detector, there is a unique path or channel that a qubit can follow from source 200 to the detector, and the paths are arranged to be substantially the same length so that entangled qubits in superposition of states reach multiple designated detectors substantially simultaneously. The paths are configured to accept only qubits of a particular polarization and / or mode. By comparing the times when particles are detected in the detectors, it is possible to infer whether a particle is an entangled and superpositioned qubit or whether the particle is conventional. More formally, in at least some embodiments, security test A includes measuring violations of Bell's inequality by observing the times when particles are detected in different detectors of the detector.

[0155] Here, without repeating phrases from each step such as "in some embodiments," several embodiments of the four devices will be described in the following paragraphs. The four quantum systems 202, 204, 206, and 208 are four spatially separated parties having measurement settings {u1, u2, u3, u4} and their respective results {x1, x2, x3, x4}. Each of the four quantum systems has a specific two-dimensional Hilbert subspace that is susceptible to quantum control. Each system can store one qubit. The physical realization of the qubit and its measurement device follows one of many possible designs, such as linear optics, ion traps, and superconducting qubits.

[0156] Bell's inequality contains an inequality that is always satisfied by any local probability distribution of the measurement results of two parties. This can be realized if each party's device has its own internal state. This state may correlate with the state held by the other party, but each of the systems they hold has its own separate explanation without needing to explain the ensemble pair as a whole. This means that, in principle, the apparent randomness discovered by measuring one of the subsystems can be attributed to ignorance of what state the subsystem is actually in. However, entangled states in quantum mechanics give rise to non-local probability distributions. Since such distributions cannot be attributed to not knowing what state each subsystem is in, and therefore it cannot be said at all that the subsystems are actually in any state, the states must be explained as a whole. This opens the door to the possibility of true randomness, and therefore current techniques attempt to measure violations of Bell's inequality in order to be able to prove random bits output as measurements from measuring devices. While it is impossible to violate Bell's inequality in the conventional way, under specially selected measurements, it may be possible to see that purely entangled quantum states violate Bell's inequality without loopholes.

[0157] Security Test B is optional and checks whether the quantum systems are non-signaling (i.e., whether quantum systems 202, 204, 206, and 208 influence each other). Security Test B is performed after Security Test A because it relates to the non-signaling nature of quantum systems when they are operating as quantum systems, and not to conventional particles that travel through the quantum systems as a result of noise. Security Test B includes a test to confirm whether the measurement results are correlated between quantum systems, even if repeated measurements are performed with measurement device 212 and the measurement criteria are set to be partially correlated between measurement devices.

[0158] Figure 2B is another schematic diagram of the four-device quantum apparatus shown in Figure 2A. The four state expanders are shown as boxes 210, which receive quantum particles as input, represented by circles within the squares. Each state expander 210 is attached to a measurement device 212.

[0159] The operation method of the four-device quantum apparatus in Figure 2B involves, in operation A, causing the state expanders attached to each measuring device to interact with each other by preparing the states of quantum particles within the state expanders. This is represented in Figure 2B by the dotted line around box 210. This can be a probabilistic interaction rather than a deterministic interaction, in which case the length of the state preparation process is not fixed.

[0160] In operation B, once the correct entangled quantum state is prepared, input U is sent to the four measuring devices. i The system is measured by giving it input U. i This is a measurement setting selected using a source with weak randomness and used to establish a measurement criterion in the measurement device 212. The measurement result is shown in Figure 2B, symbolized by X. i As shown, the output is generated by the measuring device 212 (operation C).

[0161] The actions A to C shown in Figure 2B are repeated. The input U i X outputs the following: i There is no interaction between the boxes in between. Note that between actions A and B, the system is in a state that cannot be described as being composed of the individual states of its subsystems. Therefore, the system is described as a whole between actions A and B.

[0162] Figure 2C is a flowchart of the operation method of the four-device quantum device shown in Figures 2A and 2B. Qubits are generated in multiple quantum systems, such as four quantum systems (230). The qubits are prepared in a specific entangled quantum state, for example, as shown in Equation 3 below (232). This can be done using a state expander. The four qubits are prepared to interact to generate a specified quantum state of the device, which is of a type called an entangled state. This utilizes both two-qubit and single-qubit interactions. The measurement device settings are constructed using inputs from a source with weak randomness (234). The source with weak randomness is used to construct settings independently for each measurement device 212. These settings are derived from the metrics used in the operation method. For example, using a source with weak randomness, for each of the four measurement devices 212, a measurement setting can be selected from two metrics (e.g., a computation base and an Hadamard base, each of which may have two base states or base vectors). The measurement settings are used to construct the measurement device settings (234). Each of the four qubits is measured according to its measurement settings. This may include changes to the detector settings or transformations applied to the qubits in the measurement device's channels, depending on the exact implementation of the quantum device. Next, the qubit is measured. Note that this effectively destroys the quantum state. Then the detector receives the measurement result x n Bits including it are output, and the next measurement round is started. In one example, the settings include two possible orthogonal polarizations (such as horizontal and vertical) and two possible qubit modes. Once the settings are configured, the detectors of the measurement device start sensing the detected particles received along the path from the source to each detector. The measurement process 236 generates a measurement result (238) that is saved along with the relevant values of the settings of the measurement device at the time of measurement. A check is made (240) as to whether to repeat to obtain more measurement values. The check includes check criteria such as whether a specified time has elapsed, whether a specified number of measurement repetitions has elapsed, or whether the memory for saving the measurement values is full. When the check in operation 240 indicates that no further repetition is required, the saved measurement values are output 242.

[0163] Further details of at least some embodiments of the four quantum devices are given here.

[0164] Let's consider two strings of measurement settings given as follows. U0 = {{0001}, {0010}, {0100}, {1000}} and U1 = {{0111}, {1011}, {1101}, {1110}}, where U0 is a set of four possible measurement settings and U1 is another set of four possible measurement settings.

[0165] The Bell inequality used in this embodiment is as follows:

Number

[0166] In some embodiments, B is an index vector having 2’×2’ entries:

Number

number

[0167] In some embodiments, the Bell inequality index function B is implemented as a 16x16 array or matrix where each entry is either zero or one. The columns of the array represent possible configurations of the detector, and the rows of the array represent possible observations at the detector. In some embodiments, there are 16 possible configurations of the detector, since there are four measuring devices, each having four detectors. Many other data structures can be used instead of arrays or matrices, such as bitmaps, hash tables, lookup tables, and search trees. In some embodiments, the array or data structure is used as a lookup mechanism, and in some embodiments, a data structure that enables fast searching or lookups is preferred, where a combination of four input bits and four output bits is effectively used as a key for searching for the value of the Bell inequality index function.

[0168] An example of an array is shown below. Let the four input bits of the device be V1, ..., V4, and the four outputs be S1, ..., S4. Next, the function B(V,S) is defined as follows: Here,

number

number

[0169] V i and S i Let it be the input / output vector of the i-th round of the protocol. In the security test, calculate the following:

Number

[0170] Using the Bell inequality indicator vector, an efficient and accurate method for evaluating the coincidences observed by the detectors can be obtained. When coincidences are observed in detectors of different channels of the same measurement device, the coincidences are conventional noise. When coincidences are observed in detectors of different measurement devices of a pair of measurement devices, the coincidences are due to quantum effects. The security logic performs coincidence evaluation using an array (or a similar data structure) and the observed coincidences, and checks whether the result is less than 2 for each possible configuration setting. Since there are 16 possible configuration settings, the security logic looks for coincidence evaluation results less than one-eighth (the value obtained by dividing 2 by 16).

[0171] The quantum states used in the protocol are as follows:

Number

Number

Number

[0172] The quantum state of this example

Number

Number

number

[0173] For example, one possibility is the product state.

number

[0174] Input u i =0 corresponds to X-based (or Hadamard or Fourier-based) measurement, while input u i =1 corresponds to Z-based (or calculation-based) measurement (input)

number

number

[0175] Here, security test A for the embodiment of the 4 quantum device will be formally described with reference to Figure 4.

[0176] A string from a weak random source w2 is used to select the input for the measurement in the Bell experiment described above, for example, for each of the n realizations of the experiment, using 4 bits from w2 (u i ) j can be selected. j ranges from 1 to n. Next, the output (x i ) j collected from the string w3. A test statistic is calculated for the output values within the string w3 400. The statistical test includes the calculation of the following function:

Number

[0177] The test statistic L n If the calculated value of is less than the threshold b (see check 402 in FIG. 4), the process proceeds to 404. Otherwise, the process fails (406) and returns to operation 408 in FIG. 2C.

[0178] In summary, L with the free parameter b selected according to the quality of the initial weak random source 218 n Unless < b, the process is aborted. The smaller delta is, the less noise the protocol can tolerate, while on the other hand, it can amplify the randomness of a weaker source. To actually implement, for example, if b = 0.01 is selected, output random bits that deviate from true random bits by at most 0.0001 (negligible in most applications) (in variational distance) can be obtained. At the same time, the value of b = 0.01 means that the protocol can be executed normally even with the accuracy currently achieved in linear optics, ion traps, and superconducting systems (measured with a fidelity of about 99.2%). In another embodiment, b = 0.125 and the Bell inequality to be tested is the one in Equation 1 above. However, other values of the threshold b are used in some cases with the Bell inequality of Equation 1 above or other Bell inequalities.

[0179] Quantum mechanics exhibits a property known as non-signaling. This means that while entangled states exist that generate non-local probability distributions, this non-locality cannot be used to provide instantaneous communication between parties that own a quantum system. Many Bell inequalities have the property that, despite adhering to the principle of non-signaling, there are other physical theories that lead to greater Bell violations than quantum mechanics. A famous example of this is the CHSH inequality, compared to the conventional value of 2.

number

number

[0180] In the four-quantum device embodiment (and the two-quantum device embodiment), an example of security test B is formally described as follows.

[0181] Security test B includes checking that four different quantum systems are nearly non-signaling with each other. To explain exactly what nearly non-signaling with each other means, let's consider the probability distributions of outputs x1, ..., x4 tuned with inputs u1, ..., u4:

number

[0182] The approximate non-signaling conditions are as follows:

number

number

number

[0183] In summary, referring to Figure 5B, security test B involves configuring the measurement settings for all measuring devices of the instrument using a source with low randomness, such as WSR-1 (block 500). For each measuring device 502, the security test B process repeatedly measures for each possible configuration of the measuring device setting (504). A baseline histogram of each measuring device is stored, showing the frequency of particle detection for each configuration of the measurement setting (506).

[0184] For each of the 508 combinations of measurement settings, the process modifies one of the settings to match a setting from another of the measurement devices. Measurements are repeatedly acquired, and the results are stored in a test histogram (512).

[0185] A check is performed to determine whether the test histogram of any of the measurement devices differs significantly from the baseline histogram of that measurement device (514). If a significant difference is found, an alert or abort step 516 is performed to indicate that there is some degree of interaction between the measurement devices and that the measurement devices are not non-signaling. Otherwise, the process proceeds to 518, which proves the measurement devices to be nearly non-signaling.

[0186] Figure 3A shows an exemplary two-device quantum device used as the quantum device 102 in Figure 1 in some embodiments. The two-device quantum device has two quantum systems 302, 304, each comprising a state expander 310 and a measurement device 312. A source of qubits is connected to each of the state expanders 310 to generate qubits. The qubits move to the state expanders 310, and as the qubits move through the state expanders 310, the state of the qubits is prepared to a specified state. The prepared states of the qubits are formally shown below. Each measurement device 312 includes multiple detectors that detect qubits and can be configured into one or more configurations according to setting values ​​generated by a weakly random source 318. The weakly random source 318 generates random bit sequences (or other random numbers) and inputs them to a driver 316. The driver 316 drives the configuration of the detectors in the measurement device 312 to change the polarization values ​​and / or mode values ​​of the detectors. A weak randomness source 318 (or a weak randomness source 218 described with reference to Figure 2A or a weak randomness source 3100 described with reference to Figure 29) may contain one or more weak randomness sources. Each weak randomness source can generate one or more bits, and a random bit sequence may contain bits from one, some, or all of these weak randomness sources. For example, a weak randomness source may contain multiple (e.g., two or four) separate weak randomness sources, each separate source sequentially generating a sequence of bits that are read by the quantum device as needed. In some implementations, some or all of the weak randomness sources are provided by the user of the quantum device. In some such implementations, the quantum device may be configured so that the weak randomness sources are interchangeable, allowing the user to swap out sources with different randomness depending on the user's specific installation or application.

[0187] The prepared qubit moves from the state expander 310 to the measurement device 312. Each measurement device has multiple possible paths that the particle can follow. Each path is from the state expander to the detector. Since the paths are substantially the same length, the time it takes for the qubit to travel along each path is approximately the same. Measurements are performed substantially simultaneously at each detector, yielding an output signal 314, which in some examples is in the form of a bit string of 1 bit per detector, where a bit of 1 represents a detected particle and a bit of 0 represents no detected particle. The output signal 314 is input to component 320, which performs security test A. Component 320 receives information from a source with low randomness 318 so that it knows the configuration settings of the measurement device 312 used to obtain the output signal 314.

[0188] In some embodiments, security test A implemented by component 320 differs from security test A of a 4-device quantum device in that it implements an additional test referred to as security test C.

[0189] If security test A is passed, security test B is optionally performed using component 322. In some embodiments, security test B is the same as described above for a four-device quantum device. The output signal 326 includes the output signal 314 and information that security test A (and security test B, optionally) has been passed. Thus, downstream systems have information that proves the output signal 326 was generated by the quantum system and therefore has true randomness.

[0190] Figure 3B is another schematic diagram of an exemplary two-device quantum apparatus used in the apparatus of Figure 1. Figure 3B shows the state expander 310 and the measurement device 312. Qubits (represented by circles in squares) are input to the state expander 310, which interacts with the qubits so that they become entangled and enter a superposition state (the states of qubits prepared by the state expander 310 in the two-device apparatus are given below). Detector settings u1 and u2 are input to the measurement device 312, which configures the detector in the measurement device according to inputs from a source with weak randomness. The measurement device measures the particles that reach the detector and outputs signals x1 and x2.

[0191] In the case of the two-device quantum system example, the method of operation is very similar to that of the four-device quantum system example described above. However, in at least some embodiments, the state formed in operation A is different, and the detector configuration differs in both number and definition. Hereinafter, without repeating phrases in each step such as "in some embodiments," some two-device embodiments will be described further over the following paragraphs.

[0192] The two-device quantum devices in Figures 3A and 3B involve measuring four qubits: two placed in each of the two physical devices (in contrast to the exemplary four-device quantum device having four physical devices). Referring to Figure 3C, the procedure in the two-device quantum device is as follows: qubits are generated in multiple quantum systems within the two quantum devices 310 (330). The two quantum devices 310 interact to form an entangled quantum state. The entangled quantum state is prepared as defined by equation 10 below (332).

[0193] A source with low randomness is used to configure settings independently for each measuring device 312. These settings are derived from the metrics available in the operating method. For example, using a source with low randomness, a measurement setting can be selected from nine metrics for each of the two measuring devices 312. The measurement settings are used (334) to configure the settings for the measuring devices.

[0194] Measurement 336 is performed on two measuring devices, and the measurement results are saved along with the measurement criterion value (setting) (338). The procedure checks in operation 340 whether to repeat, and if so, the process repeats from operation 330. If the check in operation 340 indicates not to repeat, the saved measurement and associated settings are output (342). The decision in operation 340 whether to repeat is made using one or more criteria such as the time interval, the number of repetitions, the number of saved measurement values, or the amount of memory available to save the measurement values.

[0195] The output measurement is checked against the Bell inequality. If the Bell inequality is violated, the output measurement is found to be due to quantum effects and is input to the random sampler as explained with reference to Figure 1. If the Bell inequality is satisfied, the output measurement is found to be due to conventional effects and is rejected. Optionally, a further check (security test B) is completed as described below.

[0196] The Bell inequality to be tested can be expressed as follows:

number

number

[0197] Set S B This consists of the following set of 18 quantum states, presented here as unnormalized quantum states, which are grouped into nine different bases, denoted below as M1 through M9. In this example, each channel is a path that a qubit can take from the source to the detector, and the channels are substantially the same length.

number

number

[0198] Therefore, when the measuring device is configured for criterion M1, it can only receive signals on channels 1, 2, 3, and 4. When the measuring device is configured for criterion M2, it can only receive signals on channels 4, 5, 6, and 7. The same applies to other criterions.

[0199] Assigning a non-contextual hidden variable to each possible measurement would mean assigning values ​​of 0 and 1 to each vector, so that there is exactly one vector assigned the value 1 for each metric. Since there are nine metrics, the total number of assignments of 1 would be odd. However, note that since each vector appears in exactly two measurements, assigning 0 and 1 to the vectors would require that the number of 1s contained within the metrics be even. Thus, such a non-contextual assignment is impossible. This is known as a proof of contextuality. Note that we do not need to consider the actual probability of obtaining the measurement result, or even its possibility. This is the greatest example of contextuality that appears in a state-independent manner.

[0200] Both measuring devices 312 have nine available measurement criteria M i possess all of these, which are randomly selected. Thus, there are 81 different possibilities for the evaluation of u representing the settings of the measurement device. If the result x1 of u1 is orthogonal to the result x2 of u2, the pair (x,u) is defined to be in S B in the entangled state

Number

[0201] Here, a security test for an embodiment of a two-device quantum apparatus will be described with reference to FIG. 6. Security test A is completed by calculating the test statistic L n at operation 600. Security test A is the same as that described above with reference to an embodiment of a four-device quantum apparatus. If the test statistic L n is lower than the threshold at check 602, the process proceeds to security test C, whereby the test statistic S n (x,u) is calculated (610). Describing security test A using mathematical notation, the apparatus calculates the test statistic defined as follows:

Number

[0202] The apparatus aborts the process (see the failure box 606 in FIG. 6) unless L n <b. Here, b is a free parameter selected with respect to the quality of the initial weak random source 318. In the example, b = 0.125.

[0203] The test statistic L n If the threshold b is less than the threshold b, the process proceeds to run an additional security test called security test C. Security test C is performed with any fixed metric setting u * For the random variable D(x) j u j This includes defining ).

number

[0204] The test statistics for security test C are defined as follows:

number

[0205] The parameter μ is fixed to a value greater than zero (μ>0), and check 612 is performed to determine whether the test statistics of security test C are greater than or equal to the value of parameter μ, which is S n This can be expressed mathematically as (x,u)≧μ. If the test is accepted (for example, the test statistics for security test C are greater than the value of parameter μ), this means that the measuring device 312 has set input u * This correctly generates randomness and serves to ensure that the process proceeds to 614. However, if the test fails (for example, if the test statistics for security test C are less than the value of parameter μ), the process is terminated and returns to operation 230 in Figure 2C, as shown in box 608 in Figure 6.

[0206] In summary, security tests A and C serve as tests for Bell's inequality in the two-device embodiment. If these tests are passed, the measurement results from the detector are proven to be generated from qubits rather than conventional particles.

[0207] In another embodiment, the quantum apparatus 102 in Figure 1 includes a quantum system of only two qubits with four free modes, and has a measurement device that performs only two different quantum measurements for each quantum system. In this case, security test A can implement the CHSH test. The CHSH inequality can be used to prove Bell's theorem.

[0208] Further details regarding the randomness extractor 110 in Figure 1 are as follows (much of this information is at least partially relevant to other extractors described herein, such as extractors 3122 and 3140 shown in Figure 29, as will be understood by those skilled in the art). Generally, the randomness extractor 110 is a deterministic function that takes one or more strings of random bits as input and generates a sequence of perfectly random bits as its output signal 116. The one or more input strings of random bits can be weakly random bit sequences or multiple strings (for example, weakly random bit sequences may not be uniformly random and may have a bias toward zero). Unprovable non-deterministic random numbers are an example of weak random numbers. Generally, randomness extraction is impossible unless there are two or more sources. The sources themselves may not be perfectly random, but they are independent of each other. Conventionally, it is impossible to achieve this in a device-independent manner. However, current technology proves that the output string 108, given by the measurement result, is independent of the weak random number 112 (provided by WSR-2, a weak randomness source 114) that is also sent to the randomness extractor 110. The assumption that WSR-2 can be considered a Santha-Vazirani source is sufficient to prove that the measurement result 108 from quantum device 102 is completely independent of the weak random number 112 that is sent directly from WSR-2 to the conventional randomness extractor 110. The presence of quantum noise does not weaken this fact to such an extent that it becomes inapplicable. Even when considering the noise, the measurement result forms a random source with very low minimum entropy.

[0209] This means that the randomness extractor 110 must operate only in conventional settings where a known method for extracting truly random sequences exists. Guaranteeing the independence of the two inputs 108, 112 to the randomness extractor 110 is impossible in the conventional sense, but it is made possible by utilizing the non-local measurement properties of the entangled quantum system of the quantum device 102. There are many such conventional randomness extractors 110, including but not limited to von Neumann extractors, chaotic machines, and cryptographic hash functions. An example is Li's randomness extractor ("Improved constructions of two-source extractors," Xin Li, S August 2015 arXiv:1508.01115), which offers a practical choice of protocol. Other examples of suitable randomness extractors include the implementation of the Trevisian randomness extractor and / or Toeplitz-Hashing extractor described in Ma et al., “Postprocessing for quantum random-number generators: entropy evaluation and randomness extraction,” Phys. Rev. A., Vol. 87, No. 6, June 22, 2013.

[0210] Figure 7 is a flowchart illustrating an exemplary operation of the randomness extractor 110 as in the configuration of Figure 1. This method is also generally applicable to the operation of the two-source extractor 3122 in Figure 29. At 700, if the measurement performed by the quantum device passes the security test, the measurement string output by the quantum device is provably generated by quantum effects. The measurement string may include the output string 108 described with reference to Figure 1. As described herein, the security test may include one or more security tests: security test A, an optional security test B, or security test C (e.g., for a two-device quantum device). See, for example, the description of the security tests with reference to Figures 2A and 3A. At 702, the measurement string is passed to the two-source extractor. At 704, the two-source extractor receives input from a second weak source of randomness (e.g., WSR-2 114). Since the security test passed at 700, it is known well enough that the measurement string and the second weak source of randomness are independent. The two-source extractor combines these inputs and outputs a random number at 706. The random number can consist of a completely and provable sequence of random bits, as described with reference to, for example, output signal 116 in Figure 1, output signal 226 in Figure 2A, or output signal 326 in Figure 3A.

[0211] This specification has so far described the technology using common language and in terms of qubits, measurements, channels, and quantum states. This is to emphasize that the technology can be implemented on various different physical platforms. Currently, three specific platforms suitable for implementing this technology are provided. The following three platforms are intended to illustrate, and are not limiting, examples of technology implementation.

[0212] optics In optical systems for quantum information processing, qubits are represented using a unit of light in a predetermined mode called a photon. Quantum gates are implemented on qubits using operations via optical elements (beam splitters, mirrors, phase shifters). Well-established optical parametric down-conversion procedures are used to prepare many photonic qubit states. In optical parametric down-conversion, a beam of light is transmitted through a nonlinear crystal, and its polarization (or momentum) becomes entangled, producing twin photons. Another approach is to generate a single photon in a clearly defined quantum state. Again, this can be done using optical elements. Another element available for implementing common quantum circuits is the quantum gate (a transformation of the quantum state of one or more photons). The basic principle is that any one-qubit unitary operation can be constructed using at least one of a beam splitter and a phase shifter. For two-qubit gates, optical devices (e.g., Kerr nonlinearity) can be used, or nonlinearity can be simulated using measurements, as in the Kerr nonlinearity scheme. Measurements of photons can be performed with industrial photodetectors, including pn junctions that convert photons into electric currents.

[0213] In an optical example, four pairs are generated by a parametric down transform, and four distinct photons are produced by detecting one photon from each pair and indicating the others. The photons are then interacted using the scheme of Knill, Laflamme, and Milburn, "A scheme for efficient quantum computation with linear optics," Nature, 409(6816):46~52. Alternatively, the photons can be interacted with a very large third-order nonlinear susceptibility x, as described in "Non-linear optics using cold Rydberg atoms" by Pritchard, Weatherill, and Adams in the annual review of cold atoms and molecules, 1(301), 2013. (3) The interaction occurs via a nonlinear optical medium with a value. This is repeated as needed until the result of the interaction is the desired state. Each of the four measuring devices has an input bit that selects a specific measurement setting.

number

[0214] Ion trap The setup may be a linear arrangement of atoms trapped (for example, by standing electromagnetic waves). Each ion stores one qubit in a hyperfine level of two base states. Hyperfine qubits have very long lifetimes (e.g., decay times of several thousand to several million years) and stable phase and frequency (hence their traditional use in atomic frequency standards). Ionic qubit states are prepared in a specific qubit state using a well-known process of optical pumping.

[0215] The measurement can be performed as follows: A laser is applied to an ion that is coupled to only one of its qubit states. If the ion decays to this state during the measurement process, the laser excites the ion, and a photon is emitted when the ion decays from the excited state. After decay, the ion is continuously excited by the laser and repeatedly emits photons. These photons can be collected by a photomultiplier tube (PMT) or a charge-coupled device (CCD) camera. If the ion decays to another qubit state, it does not interact with the laser and no photons are emitted. By counting the number of collected photons, the state of the ion can be determined with very high accuracy (e.g., over approximately 99.9%).

[0216] Quantum gates can be implemented as follows: A single qubit gate can be implemented using a magnetic dipole transition or stimulated Raman transition in the case of a hyperfine qubit, or an electric quadrupole transition in the case of an optical qubit. Two qubit gates can be implemented by coupling the electronic states of an ion collectively to mo1. Four entangled ions can be generated using the Cirac-Zoller method. The Cirac-Zoller method is described in Cirac, JI, and Zoller, P. (1995-05-15). "Quantum Computations with Cold Trapped Ions." Physical Review Letters. 74(20):4091~4094.

[0217] In the example using an ion trap, four entangled ions are generated, and each of the four measurement devices in the quantum apparatus shown in Figure 2A has an input bit that selects a specific measurement setting.

number

[0218] The random number generation protocol can also be implemented in superconducting circuits.

[0219] Examples of quantum devices using optical systems Here, with reference to Figures 8 to 12, a detailed embodiment in which the quantum device 102 is implemented using an optical system will be described. The following detailed description is intended to illustrate the embodiment described with reference to Figures 8 to 12, but is not intended to limit the scope or design of the device.

[0220] Photons can be generated using conventional lasers. Some of these are conventional photons, and some are entangled quantum photons. Since the photons from the laser are input into one or two pairs of parametric down-transform waveguides, the entangled quantum photons have two or more paths to follow within the waveguides, and as a result, the quantum photons interact with each other. The parametric down-transform waveguides cause at least some of the photons to interact. This is because the Knill, Laflamme, and Milburn scheme, "A scheme for efficient quantum computation with linear optics," Nature, 409(6816):46~52, is used in this embodiment. As a result, the output from the waveguides contains a stream of photons, some of which are conventional photons, some of which are entangled, and which interact in quantum states according to the Knill-Laflamme-Milburn scheme.

[0221] A stream of photons enters multiple measurement devices. Each measurement device has multiple possible paths that the photon can follow, each path ending in an avalanche photodiode or other photon detector. The paths are of equal length. Therefore, a superposition quantum photon travels along all available paths, simultaneously reaching each photon detector at the end of those paths. Evidence of a superposition quantum photon can be found by looking for a match at the detectors (where multiple detectors simultaneously detect the photon). Conventional photons can also travel paths within the measurement devices, but not in a superposition state. Therefore, by looking at the output patterns at the detectors, evidence of conventional photons can also be found. To enhance security and avoid any risk of a malicious party knowing the measurement settings and tampering with the results, the measurement settings of the detectors are changed. In some implementations, millions of measurements may be performed, allowing evidence for and against the existence of quantum photons to be aggregated before determining whether the output of the measurement device is from a quantum system.

[0222] In this example, the state expander 210 in Figure 2A has two optical waveguides 810, and Figure 8 is a perspective view of one such optical waveguide. Waveguide 810 is suitable for use in other types of quantum devices as well as in the quantum device of Figure 2A.

[0223] In the case of optics, the state expander 210 can utilize the quantum superposition of entangled photons. The state expander 210 may have at least one pair of waveguides, each waveguide 810 comprising multiple blocks 800 of optical displacement material with multiple polarization modulators 802 scattered therein. Waveguide 810 has an input 804 for receiving a pair of entangled photons from a source such as a laser. The photons pass through the waveguide, are deflected by the blocks 800, and are polarized by the polarization modulators 802. There are two outputs 806, 808 of the waveguide, one for each of the two mutually orthogonal polarizations.

[0224] Each member of an entangled photon pair has a polarization that is mutually orthogonal to the other members of the pair. The input 804 is connected to a pair of waveguides (although only one waveguide is shown in Figure 8), and each waveguide receives one of the entangled photon pairs and induces the entangled photon in the waveguide via the optical displacement material block 800 and polarization modifier 802, generating a quantum superposition of photons, which in turn results in multiple possible paths that the photon can take in the waveguide as its polarization is changed. These multiple possible paths are shown in detail in Figure 10.

[0225] Each waveguide 810 is sized and shaped such that, for each entangled photon, the length of the path the photon travels through the waveguide is substantially the same, regardless of the mutually orthogonal polarizations of the entangled photons.

[0226] Each waveguide 810 has a pair of output optical fibers 806, 808, each of which is configured to accept light polarized to one of mutually orthogonal polarizations and discard light polarized to the other of mutually orthogonal polarizations.

[0227] Figure 9 shows a waveguide 810 within a housing (also called a casing) 900. The housing has a longitudinal channel 902, sized and molded to hold the waveguide so that a block 800 of optical displacement material fits into the sides of the channel 902. The housing 900 has a removable cover that covers the channel 902 once the waveguide is inside the channel. The housing 900 and cover function to protect the waveguide from environmental conditions such as moisture, dust, motion, temperature changes, and other environmental changes. The casing can be formed from a material that reduces the effects of atmospheric pressure, vibration, and humidity on the waveguide.

[0228] Figure 10 is a schematic longitudinal cross-sectional view of the waveguide 810 in Figure 8. In this example, there are six blocks 800 of optical displacement material, but in other examples, a different number of blocks may be used. In this example, there are six polarization modifiers 802, but in other examples, a different number of polarization modifiers may be used. In this example, there is one polarization modifier at the output end of waveguide 802, and the other five polarization modifiers are each located between two different blocks 800. Horizontally polarized photons entering the waveguide (indicated by H) are deflected to have two possible paths 1000 and 1006 through the waveguide. Vertically polarized photons entering the waveguide (indicated by V) are deflected to have two possible paths 1002 and 1004 through the waveguide. Note that since all paths pass through a waveguide of fixed length, the multiple paths through the waveguide are substantially the same length.

[0229] As shown in Figure 11A, the optical displacement material block 800 includes at least one block 1100 formed of a material that displaces light in a first direction (as indicated by the upward arrow on block 1100 in Figure 11A) and at least one block 1102 formed of a material that displaces light in a second direction different from the first direction (as indicated by the downward arrow on block 1102 in Figure 11A). In Figure 11A, waveguides are duplicated and shown to aid in understanding the technology. The upper waveguide in Figure 11A shows that if a horizontally polarized photon enters the waveguide on path 1000 and is deflected / displaced by the block, so that the photon is an entangled photon output from the laser, it can simultaneously follow two possible paths 1000 and 1006 through the waveguide. The lower waveguide in Figure 11B shows the same situation for a vertically polarized photon entering the waveguide. In reality, the upper and lower waveguides in Figure 11B are the same waveguide, and it should be noted that paths 1000, 1002, 1004, and 1006 pass through a single waveguide, as shown in Figure 10.

[0230] At least one block 1100 that displaces light in a first direction is made from an upper air crystal, and at least one block 1102 that displaces light in a second direction is made from a lower air crystal. In this way, the displacement of photons is facilitated, and multiple possible paths are created for entangled photons from the laser. The upper air crystal displaces light in a first direction away from the longitudinal axis of the waveguide. The lower air crystal displaces light in a second direction away from the longitudinal axis of the waveguide and substantially opposite to the first direction.

[0231] Multiple blocks 800 of the optical displacement material are preferably made of the same material, as this facilitates manufacturing. However, using the same material is not mandatory. A non-exhaustive list of examples of materials from which blocks 800 are made is one or more of calcite or lithium niobate. In a preferred example, the waveguide 810 contains six blocks of optical displacement material, as this provides a practical solution that is relatively easy to manufacture. However, in other examples, a different number of blocks 800 may be used.

[0232] In Figure 11A, waveguide 810 is shown with six blocks of optical displacement material made from upper and lower air crystals, arranged in the following order from the output end of the waveguide to the input end: lower air crystal, upper air crystal, upper air crystal, lower air crystal, lower air crystal, and upper air crystal. This arrangement has been found to be suitable for the embodiment in Figure 2A and / or particularly effective in providing multiple optical paths to a qubit having a quantum state as defined by Equation 3 above.

[0233] In the examples of Figures 11A and 11B, the polarization modifiers are arranged in a sequence of blocks of optical displacement material from the output end of the waveguide to the input end of the waveguide in the following order: polarization modifier 1124, gap 1122, lower air crystal, polarization modifier 1120, upper air crystal, gap 1118, polarization modifier 1116, gap 1114, upper air crystal, polarization modifier 1112, lower air crystal, gap 1110, polarization modifier 1108, gap 1106, lower air crystal, polarization modifier 1104, and upper air crystal, with or without gaps.

[0234] The polarization converter can be a half-wave plate, part of which is separated from adjacent blocks of optical displacement material by a gap. Other parts of the polarization converter may be in contact with adjacent blocks of optical displacement material. By selecting the position or size of the gap, the ability of photons to diffract or displace within the waveguide is enhanced.

[0235] At least one of the polarization modifiers includes a region 1126 through which light passes without polarization modification. This region is configured to transmit light without polarization change. In the example in Figure 11B, region 1126 is located within the third polarization modifier 1116 from the output end of the waveguide.

[0236] In some examples, there is a cooling chamber that holds the waveguide and is configured to lower the waveguide temperature to about minus 20 degrees Celsius during operation. This is because it reduces the noise of the generated qubits (i.e., waveguide 810 generates a higher percentage of qubits in the desired state, as opposed to conventional photons).

[0237] In the optical embodiment described above, the state expander receives pairs of entangled photons from a generator such as a laser, each member of a pair having mutually orthogonal polarizations with respect to the other members of the pair. The state expander inputs the entangled photons into a pair of waveguides, each waveguide 810 receiving one of the pairs of entangled photons and guiding the entangled photons into the waveguide along its length to create a quantum superposition of photons, thereby resulting in multiple possible paths that the photons can take within the waveguides, with their polarizations being altered. Each waveguide is sized and shaped such that, for each entangled photon, the length of the path the photon travels through the waveguide is substantially the same, regardless of the mutually orthogonal polarizations of the entangled photons.

[0238] Figure 12 is a schematic diagram of an example of a pair of measuring devices 1200 and 1202 for measuring particles received from the state expander 810. In this example, the measuring devices 1200 and 1202 are optical, and the qubits are formed using photons as described with reference to Figures 8 through 11B. Although Figure 12 shows only one pair of measuring devices 1200 and 1202, it should be noted that in practice, the apparatus in Figure 2A could have four such measuring devices. However, in the example in Figure 3A, there are only two such measuring devices.

[0239] Each measuring device 1200, 1202 has multiple possible paths that a photon can follow, each path ending at an avalanche photodiode or other photon detector. The paths are substantially the same length. Therefore, a superposition quantum photon travels along all available paths and arrives at each photon detector at the end of those paths substantially simultaneously. By searching for matching patterns at the detectors (where multiple detectors simultaneously detect the photon), evidence of a superposition quantum photon, which would give evidence of a violation of Bell's inequality, can be found. Conventional photons can also travel paths within the measuring devices, but they are not superimposed and will show a different pattern at the detector than quantum photons. To enhance security, the measurement settings of the detectors can be changed. Millions of measurements may be performed, and the evidence for and against the presence of quantum photons can be aggregated to determine whether or not Bell's inequality is violated.

[0240] The pair of measuring devices 1200 and 1202 in Figure 12 are part of an apparatus for detecting entangled photon pairs in a superposition state within a stream of photons containing both entangled photon pairs and conventional photons. Each measuring device 1200, 1202 has multiple detectors (1204, 1206, 1208, and 1210 for measuring device 1200, and 1212, 1214, 1216, and 1218 for measuring device 1202), each detector arranged to detect single photons. Each measuring device 1200, 1202 has a detector configuration device for automatically configuring the detector's measurement criteria for each detector according to the value of a control parameter. In the example in Figure 12, the detector configuration device in measuring device 1200 includes polarization modifiers 1240, 1244 and an optical mode setter 1232. The detector configuration device in measuring device 1202 includes polarization modifiers 1242, 1246 and an optical mode setter 1234.

[0241] Each measuring device 1200, 1202 has a photon input from the corresponding state expander 810. Each photon input has two photon paths, one for each of two potentially orthogonal photon polarizations (e.g., horizontal (H) and vertical (V)). Each photon path travels to one of the different detectors. The photon paths within a single measuring device are substantially the same length. In Figure 12, the photon input to measuring device 1200 is denoted by A, and the photon input to measuring device 1202 is denoted by A'. The polarization state of the photons is indicated by vertical bars. For example, A|H represents the horizontal polarization state of photon A, and A'|V represents the vertical polarization state of photon A'.

[0242] Furthermore, the photon paths of the pair of measuring devices are substantially the same length. That is, the distance from the source to the detector in measuring device 1200 is substantially the same as the distance from the source to the detector in measuring device 1202, and the same is true for the other two measuring devices not shown in Figure 12 for clarity.

[0243] Each measuring device comprises two polarizing beam splitters (PBS) 1228, 1224, 1230, 1226 and one or more mirrors 1236, 1238. When a perpendicularly polarized photon A (photon A|V in Figure 12) enters the measuring device 1200, it is sent to the Sagnac loop 1270. The Sagnac loop 1270 within the measuring device 1200 comprises a beam splitter (BS) 1220 and three mirrors 1236a, 1236b, and 1236c that form a Sagnac interferometer. The photon passes through the beam splitter 1220, is reflected by mirror 1236a, passes through the optical mode changer 1232, which potentially changes the optical mode of the photon (depending on the setting of the optical mode setter 1232), is reflected by another mirror 1236b and returns to the beam splitter 1220, is reflected by yet another mirror 1236c and enters the polarization changer 1244. Since the photon is already vertically polarized, if the polarization changer 1244 does nothing, the vertically polarized photon enters the polarizing beam splitter 1224 before being detected by the detector 1210 and is not detected by the detector 1208. If the polarization filter 1244 is configured to change the polarization of the photon passing through it, the photon becomes horizontally polarized and is detected by the detector 1208. The input from the state expander 810, which provides horizontally polarized photons (A|H), follows a path with a configurable polarization modifier 1240, passes through a configurable optical mode setter (modifier) ​​1232, and reaches detectors 1204, 1206. When acting on photons A' in polarization states A'|H or A'|V, the measuring device 1202 functions in much the same way as described for device 1200. For example, the Sagnac loop 1272 in device 1202 comprises a beam splitter 1222 and three mirrors 1238a, 1238b, and 1238c. In other implementations, other types of interferometers (e.g., Mach-Zehnder interferometers) can be used with measuring devices 1200, 1202, as illustrated with reference to Figures 13A and 13B. Various types of interferometers can be used with various measuring devices.

[0244] The measuring devices 1200 and 1202 detect a match, which is a qubit detected substantially simultaneously by their detectors. To determine whether or not Bell's inequality is violated, the match is evaluated as described in detail earlier herein. If a detector in the first of a pair of measuring devices detects a photon in the first time, and the other detector in the pair of measuring devices detects a photon within a specified time in the first time (a match), then the detected photons may be entangled photons in an overlapping state. For example, the specified time period may be in the range of 5 to 15 ns, e.g., about 10 ns.

[0245] However, if one detector in a single measuring device detects a photon in the first hour, and another detector in the single measuring device detects a photon within a specified time in the first hour (match), then the detected photon may be a conventional photon. Here again, for example, the specified time period could be in the range of 5 to 15 ns, e.g., about 10 ns.

[0246] Each of the measuring devices 1200 and 1202 has four detectors, including a first pair of detectors for each of the two mutually orthogonal polarizations (1204, 1206 in measuring device 1200; 1212, 1214 in measuring device 1202) and a second pair of detectors for each of the two mutually orthogonal polarizations (1208, 1210 in measuring device 1200; 1216, 1218 in measuring device 1202). The first pair of detectors operates in a first optical mode, and the second pair of detectors operates in a second optical mode. As illustrated with reference to Figure 12, the two mutually orthogonal polarizations can be horizontal (H) and vertical (V) polarizations.

[0247] The detector configuration device includes a mechanism for changing the number of radians of the phase shift (also called the optical mode) between two specified values ​​(such as x radians and x / 2 radians, or another pair of orthogonal phase shifts) and changing the polarization degree between two specified values ​​(such as horizontal and vertical, or 0 degrees and 22.5 degrees, or another pair of polarization values) for use in individual detectors. The detector configuration device receives values ​​for control parameters from the first weak source 104 of randomness via the device driver 1250.

[0248] In one example, the detector configuration device receives the control parameter value as 4 bits, because this is particularly efficient. However, other examples use a different number of bits. In various implementations, the detector configuration device can receive 4 bits as a 4-bit packet, four packets of 1 bit each, two packets of 2 bits each, or any other bit arrangement. The detector configuration device can access a stream of bits and, if necessary, access the control parameter bits from the stream.

[0249] In one example, the output of each measuring device contains 2 bits, each bit indicating whether or not a photon was detected according to a predetermined measurement criterion. In this example, there are four measuring devices, and the 8-bit output of the measuring devices is converted to a 4-bit output using a lookup table.

[0250] In some embodiments, there are two-device photonics implementations, as illustrated in the examples in Figures 3A and 3C. In this case, the source 300 in Figure 3A may be a laser emitting photons, some of which are conventional, and some of which are entangled quantum photons. As shown in Figure 3A, there are two quantum physical devices 302 and 304. Each quantum device can also store two qubits, in contrast to the embodiment in Figure 2A. Device 302 includes a state expander 310 with two waveguides so that it can store two qubits. Furthermore, device 304 also includes a state expander 310 with two waveguides so that it can store two qubits. The waveguides can be implemented as described with reference to Figures 8 to 11A and 11B. At least some of the quantum states of the photons stored in the state expander 310 of the two-device photonics embodiment are different from the quantum states of the four-device photonics embodiment, as described in the above example, and this is not limited to any particular type of qubit implementation.

[0251] In the two-device photonics embodiment, there are two measuring devices 312, as shown in Figure 3A. The measuring devices are generally as shown in Figure 12, but are modified to enable nine different measurement criteria for each detector. This can be done using nine different polarization and / or optical mode settings.

[0252] Using the same principles as in the four-device photonics embodiment, a pattern of detection events at the photon detector of the measurement device is recorded over many measurements at the photon detector. The pattern of detection events is used as evidence of or against the presence of qubits and violations of Bell's inequality. Optionally, further checks (security test B) are completed as described above.

[0253] As described above, Figure 12 is a schematic diagram of an example of a pair of measuring devices 1200 and 1202 for measuring particles received from the state expander 810. In this example, the measuring devices 1200 and 1202 are optical, and the qubits are formed using photons as described with reference to Figures 8 to 11B. Although Figure 12 shows only one pair of measuring devices 1200 and 1202, it should be noted that in reality, the apparatus in Figure 2A could have four such measuring devices. In the example in Figure 3, there are only two such measuring devices.

[0254] Figure 13A is a schematic diagram of another example of a pair of measuring devices 1200 and 1202 for measuring particles received from the state expander 810. In this example, the measuring devices 1200 and 1202 are optical, and qubits are formed using photons as described with reference to Figures 8 to 11B. For example, a source 200 emitting qubits comprises a laser 1304 and a nonlinear crystal 1308 for a spontaneous parametric down-conversion (SPDC) capable of generating pairs of entangled photons. The nonlinear crystal 1308 may include periodically polarized lithium niobate (PPLN), barium betaborate (BBO), potassium dihydrogen phosphate (KDP), or other crystals having sufficiently high second-order nonlinearity.

[0255] Figure 13A shows a pair of measuring devices 1200 and 1202, as in the example in Figure 3A, whereas the apparatus in Figure 2A has four such measuring devices. Many of the components shown in Figure 13A are generally similar to the corresponding components shown and described with reference to Figure 12 and will not be described further here.

[0256] In devices 1200 and 1202 shown in Figure 13A, Mach-Zehnder interferometers MZI A1370 and MZI B1372 are used in place of the Sagnac loop interferometers 1270 and 1272 used in the corresponding devices 1200 and 1202 shown in Figure 12, respectively. Each Mach-Zehnder interferometer includes two beam splitters and two mirrors, in contrast to the Sagnac loop, which includes one beam splitter and three mirrors. For example, MZI A1370 includes beam splitters 1320a and 1320b and mirrors 1336a and 1336b, while MZI B1372 includes beam splitters 1322a and 1322b and mirrors 1338a and 1338b. Similar to the Sagnac loops 1270 and 1272, the Mach-Zehnder interferometers 1370 and 1372 may also include configurable optical mode setters 1232 and 1234, respectively.

[0257] The functions of devices 1200 and 1202 shown in Figure 13A are substantially the same as those of the corresponding devices 1200 and 1202 shown in Figure 12. For example, when a vertically polarized photon A (photon A|V in Figure 13A) enters the measuring device 1200, it is transmitted to the MZI A1370. The optical mode changer 1232 can potentially change the optical mode of the photon (depending on the setting of the optical mode setter 1232). The photon passes through the beam splitter 1320b and enters the polarization changer 1244. Since the photon is already vertically polarized, if the polarization changer 1244 does nothing, the vertically polarized photon enters the polarization beam splitter 1224 before being detected by the detector 1210 and is not detected by the detector 1208. If the polarization modifier 1244 (e.g., a polarization rotor) is configured to change the polarization of a photon passing through it, the photon becomes horizontally polarized and is detected by detector 1208 (but not by detector 1210). Input from state expander SEP A810, which gives a horizontally polarized photon (A|H), follows a path involving the configurable polarization modifier 1240, passes through the configurable optical mode setter 1232, and reaches detectors 1204 and 1206. When the measuring device 1202 acts on a photon A' in polarization state A'|H or A'|V, it functions much as described for device 1200.

[0258] Figure 13B is a schematic diagram of another example of a measuring device 1200 for measuring particles received from the state expander 810. Note that only one measuring device is shown in Figure 13B (two devices are shown in Figures 12 and 13A). The apparatus in Figure 2 can use four such devices, and the apparatus in Figure 3A can use two such devices. The measuring device 1200 in Figure 13B is substantially the same as the device 1200 shown and described with reference to Figure 13A, for example, the measuring device 1200 in Figure 13 also uses a Mach-Zehnder interferometer MZI1370a (instead of a Sagnac loop).

[0259] As shown in Figure 13B, photons from source 200 enter device 1200, are placed into an entangled quantum state by state expander 810, and then passed to measurement device 1200. In this embodiment, photons from state expander 810 are reflected from knife-edge mirror 1352, then from mirrors 1354a and 1354b, and incident on MZI 1370a. MZI 1370a comprises two plate beam splitters 1320a and 1320b, and two mirrors 1326a and 1326b. In this embodiment, two of the paths include optical mode selectors 1232a and 1232b, which may be phase shifters or phase compensators. Photons emanating from MZI1370a are reflected by mirrors 1356a and 1356b, pass through polarization converters 1240 and 1244 (which may be polarization rotors), pass through polarization beam splitters 1224 and 1228, and then proceed to downstream detectors 1204, 1206, 1208, and 1210.

[0260] In embodiments of devices 1200 and 1202, the advantage of using a Mach-Zehnder interferometer is that such an interferometer can be manufactured using silicon photonics technology and can provide a compact, stable, and robust setup.

[0261] A combination of a Mach-Zehnder interferometer (MZI) and a state expander. In the embodiment shown in Figure 13B, both the state expander 810 and the measuring device 1200 are housed within the housing 1390, which can advantageously provide improved thermal and mechanical stability, as will be further described below. In the embodiment of the apparatus shown in Figure 12 or Figure 13A, both the state expander 810 and their corresponding measuring devices 1200, 1202 may be housed within a common housing, or two housings may be used, each housing containing a state expander and its corresponding measuring device.

[0262] Figure 13B shows the high-sensitivity region of device 1200 (specifically between components 1354a / b and 1232a / b), where the photon wavefunction paths differ, and these different paths should be maintained to high tolerances in order to achieve single-photon interference. The following provides a description of non-limiting examples of optical path length, mechanical, thermal, and vibrational tolerances, which, individually or in any combination, can advantageously provide tolerances high enough to achieve single-photon interference in various embodiments.

[0263] Figure 14 shows a calculation example of the HOM dip of a waveguide used in an embodiment of the state expander 810 under ideal temperature conditions. In this example, the waveguide is provided with periodically polarized potassium titanyl phosphate (KTP). The spectral full width at half maximum (FWHM) of the pump laser 1304 is set to 10 pm, which can provide very good HOM visibility (e.g., 0.996). The FWHM of the HOM dip is approximately 19 ps, which corresponds to a distance of approximately 5.7 mm.

[0264] To provide a region where single-photon interference is possible, it is often advantageous to control the distance much more precisely than this (e.g., less than 5.7 mm), especially considering wave packet diffusion that occurs in optical materials. Controlling this delay to within 1 ps (e.g., 0.3 mm) requires that the photon interference be maximized. This delay estimate assumes an ideal case where the pump perfectly matches the waveguide crystal, the linewidth is very narrow, the crystal is at the appropriate temperature, and there is little spectral diffusion of photons along the light train. A more conservative estimate suggests that the tolerances should be within approximately 0.05 mm of each other, which is achievable with modern manufacturing techniques.

[0265] Dimensional tolerances have two parts. The first is the allowable delay between the two arms of the interferometer, which can take into account the coherence length of the photons. The second is to maintain stability so that the path length of one arm does not shift by about a quarter of the photon wavelength (e.g., about 202 nm) relative to the other arm due to variations during measurement. This can be much more difficult in some implementations, as thermal and acoustic variations in the environment can be significant.

[0266] The mechanical design of the housing 1390 is just one component of the two arms of the MZI shown in Figures 13A and 13B. In these designs, the optical path length and tolerances of the components can be taken into consideration. Components that may be important in providing two-photon interference include the beam splitter (e.g., a thickness tolerance of about 0.1 mm), the angular alignment and angular direction of the knife-edge mirror 1352 (in the embodiment shown in Figure 13B), the tolerances of the optical mode selector (e.g., an optical compensator or optical phase shifter), and the thickness of the mirror.

[0267] Thermal fluctuations within the housing 1390 can be considered. Inside the housing, there may be heat sources such as Peltier plates associated with the phase shifter and polarizing rotor. Such heat sources can cause a temperature gradient between the two arms of the Mach-Zehnder interferometer in the high-sensitivity region. The thermal tolerance will, of course, depend on the materials used, as well as the size, position, and temperature of the Peltier plate, and the external ambient temperature. However, in some implementations, the thermal gradient should not differ so much that the path difference between the two arms of the interferometer differs by more than a tolerance of approximately 50 nm. Therefore, to achieve the desired thermal tolerance, the housing 1390 may include Peltier plates, thermoelectric heaters or coolers, insulation, air cooling, or liquid cooling (e.g., liquid nitrogen).

[0268] Similar to temperature fluctuations, acoustic vibrations can cause variations in the optical path lengths of the interferometer's two arms during operation. Fortunately, acoustic vibrations should be isolated, and the resulting optical path variations should not exceed 50 nm over a given frequency range. As long as the path lengths of the interferometer arms remain constant during the photon's time of flight (TOF), the frequencies critical to acoustic vibrations are expected to be high, which can lead to good results in single-photon interference. The TOF of photons passing through the high-sensitivity region is expected to be approximately 1 ns, which roughly corresponds to a frequency of approximately 1 GHz. Sensitivity to low frequencies depends on the acoustic modes present in the device and housing. If the acoustic modes are vibrating in phase, they are unaffected by fluctuations. However, if the acoustic modes are vibrating out of phase, all frequencies above 1 GHz are averaged out, making the device sensitive to all frequencies below 1 GHz.

[0269] Because the tolerances of the optical components are lower than the desired tolerances, the design may involve some manual adjustments. Compensation tools that provide manual adjustments may include tools for positioning the mirror and beam splitter in a highly sensitive area perpendicular to the surface of the mirror or beam splitter plate. The mirror mount may include a gimbal mount, available from Thorlabs, Inc. A translation stage may be included in at least part of the mirror / beam splitter arrangement.

[0270] Therefore, in various embodiments, the following tolerances, namely a static common path length tolerance of +0.05 mm, a temperature tolerance of +50 nm between arms during interferometer operation, and an acoustic vibration tolerance of +50 nm between arms at all frequencies up to the photon TOF (e.g., 1 GHz), can provide good single-photon interference in the interferometer.

[0271] 2-qubit optical QRNG architecture for on-chip implementation The quantum device architectures and designs disclosed in this section are examples of two-qubit quantum devices that utilize the quantum behavior of optical particles (photons) to generate quantum random bit sequences. In some implementations of these architectures, the quantum states required to generate quantum random bit sequences are prepared by routing photons through a network of optical components (e.g., waveguides, beam splitters, phase shifters, etc.). The architectures used in these examples can be used for on-chip implementations of the aforementioned self-test and device-independent quantum random number generators (QRNGs). These architectures can be implemented based on various types of on-chip configurations, for example, based on hybrid and / or monolithic integration with various optical components suited to such integration methods. Such on-chip implementations can significantly reduce the cost, complexity, and size of QRNG devices. These architectures can also be implemented using free-space or optical fiber optical devices and components. In some examples, one or more devices or subsystems can be implemented on a chip, while other components and modules of the system can be fabricated based on free-space and / or optical fiber components. In general, any of the architectures disclosed and described in this section can be implemented using any combination of on-chip (e.g., monolithic, hybrid integration, etc.), free-space, and optical fiber devices.

[0272] In addition to the advantages described above, these quantum device architectures can improve the level of device independence of the random number generator and amplification systems. As previously mentioned, weak random sequences (e.g., generated by WSR) and proven quantum random sequences (e.g., using the Vertest) generated independently of the weak random sequences can be combined to generate perfectly or nearly perfectly random sequences. Advantageously, the QRNG systems disclosed herein allow for testing the independence of the weak random sequences and the quantum random sequences. Furthermore, similar to the QRNGs described above, QRNGs using the disclosed on-chip 2-qubit quantum device may be more secure against various threats (e.g., cyberattacks) compared to some existing on-chip QRNGs. In other words, attacks on these existing on-chip QRNGs cannot be detected, but the systems described herein can detect collective attacks on QRNG systems (e.g., the quantum device of a QRNG) by quantifying the amount of intrinsic quantum randomness in the output string.

[0273] In some embodiments, the two-qubit quantum devices described herein may comprise an optical quantum state generator that provides entangled photons in quantum states, which can be evaluated using a Bell test (e.g., the original Bell inequality or an alternative inequality such as CHSH), a measurement stage, and a test system on which a selected Bell test is performed. In some embodiments, the optical quantum state generator may comprise a photon source that produces “pump” photons and at least two optical components (e.g., nonlinear optical components) that receive the pump photons and convert them into at least two photon pairs (e.g., based on spontaneous four-wave mixing, spontaneous parametric down-conversion, and other nonlinear processes) and transfer them to the measurement stage, during which the path may become entangled. In some examples, the photon pairs may be degenerate photon pairs (e.g., dichromatic photon pairs containing photons with different frequencies). In some such examples, the pump photons provided to the photon pair generator may be in a superposition quantum state, causing the photon pair generator to produce dichromatic photon pairs. By deterministically separating photons with different colors (frequencies) from each photon pair and guiding them to different optical paths, entangled photon pairs can be generated, and detecting a photon with a first color in the first path ensures that the corresponding photon with a second color is detected in the second path. In some embodiments, the measurement stage may comprise multiple interconnected, tunable directional couplers (TDCs) that reroute pairs of photons received from the quantum state generator to multiple optical paths, each ending at a photon detector (e.g., a photon counter, photomultiplier tube, or photodetector). Random selection of the criterion at the measurement stage can be implemented using two different configurations: a first configuration that supports passive random selection of the criterion for each measurement, and a second configuration that supports active random selection of the criterion for each measurement. In the passive configuration, for each measurement, the final quantum state of the photon (e.g., an entangled photon) is measured at a base corresponding to a randomly selected optical path through which the photon is supplied to the photon detector. Therefore, in some embodiments, the passive configuration may not require an external random source for selecting the metric.However, in the active configuration, with each measurement, the final quantum state is measured at a base selected by a source with weak randomness (similar to the systems shown in Figures 2A and 3A).

[0274] Both active and passive configurations can be adapted for on-chip manufacturing, but passive configurations may not require active optical switching, thus potentially supporting higher qubit generation speeds, and can be implemented on less complex optical platforms (e.g., with fewer materials in the substrate used to form the optical device, and with less complexity in the materials used), enabling simpler and faster manufacturing processes (e.g., fewer material layers need to be deposited, and each layer can be deposited faster).

[0275] Both designs can utilize partially entangled states (rather than fully entangled states), resulting in a higher level of device independence. In other words, if the photons provided by the quantum state generator (e.g., two photons) are partially entangled, the quantum random sequence generated during the measurement and verification of their quantum properties can be used by the randomness extractor to amplify a much weaker random source.

[0276] Furthermore, the disclosed passive quantum device architecture has two notable advantages over existing quantum device configurations currently employed in QRNG.

[0277] Architecture 1: Random selection of the metric is a natural consequence of providing multiple optical paths, each ending in a different photon detector. Therefore, the need for active selection of the metric and corresponding devices (e.g., using sources and drivers with weak randomness) is eliminated. Furthermore, the absence of active optical components (e.g., electro-optic switches) expands the range of substrate materials that can be used to form the device, enabling higher random number generation speeds and reducing overall optical loss in the system (resulting in lower power consumption).

[0278] Architecture 2: In addition to providing quantum random sequences (using matching detection and subsequent verification with the Bell inequality), passive architectures can provide random sequences that can be used as a source of weak random sequences required in the post-processing stage for extracting random numbers. In some examples, the random sequences provided by the passive quantum device can eliminate the need for an independent weak random source. Advantageously, in such examples, the number of off-chip components can be reduced, resulting in more compact QRNG devices that are easier and less expensive to manufacture.

[0279] Typical passive 2-qubit optical quantum device architecture Figure 15 shows a block diagram illustrating the construction blocks and providing an example of the operation of a quantum random number generator and amplifier system, the quantum device 1502 can be implemented based on the passive two-qubit architecture embodiment described above, or using any other suitable quantum device such as the quantum computer 3200. The quantum device 1502 comprises a quantum state generator 1510 that generates and prepares entangled photons that function as entangled qubits, and a measurement stage 1512 that measures the qubits generated by the quantum state generator 1510.

[0280] In the example shown in Figure 15, the photon source 1504 within the quantum state generator 1510 generates a stream of photons called "pump photons," all of which can have frequencies within a narrow frequency range. For example, the number of pump photons with the same frequency may have a Lorentz distribution as a function of wavelength (or frequency), with a center wavelength between 400 nm and 1200 nm, or between 1200 nm and 1600 nm, or between 1600 nm and 2000 nm, or any other suitable wavelength range. The full width at half maximum (FWHM) of the corresponding frequency distribution may be in the range of 1 kHz to 100 kHz, or between 100 kHz and 500 kHz, or between 500 kHz and 1 MHz, or any other suitable frequency range. In some examples, the photon source 1504 can generate a pump photon stream having a periodically changing beam of photons (e.g., periodic pulses with different time profiles). The pump photon stream leaving the photon source 1504 can be split into first and second pump photon streams. The first pump photon stream is sent to the first photon generator 1506, and the second pump photon stream is sent to the second photon pair generator 1508. The ratio (photon flux ratio) between the photon flux entering the first photon pair generator 1506 and the photon flux entering the second photon pair generator 1508 is adjustable and can be selected to be 50 / 50, 40 / 60, 30 / 70, or other appropriate ratios. The quantum state of each pump photon can be represented as a superposition quantum state, for example, as follows:

number

[0281] In some examples, each photon pair generator 1506 / 1508 can generate a pair of photons upon receiving two or more pump photons. In these examples, the photons of each photon pair are generated simultaneously and may be entangled (e.g., frequency entanglement). In some such examples, the generated photon pair may be a degenerate photon pair, where the frequencies of the photons in the pair may differ. For example, one photon may have a frequency higher than that of the pump photon, and the other photon may have a frequency lower than that of the pump photon. The frequencies of each photon in a photon pair may differ by the same amount as the frequency of the pump photon. For example, the frequency of the first photon in a photon pair, called the signal photon, may be upshifted relative to the frequency of the pump photon, and the frequency of the second photon, called the idler photon, may be downshifted by the same amount relative to the frequency of the pump photon. In some embodiments, the two photons of each photon pair generated by one of the photon pair generators 1506 / 1508 may have the same frequency. Photon pairs can be generated by various nonlinear optical effects. For example, the absorption of two pump photons can generate degenerate photon pairs of different frequencies (two-color photon pairs) via spontaneous four-wave mixing (SFWM). In some examples, two photon pair generators 1506 / 1508 may be identical or nearly identical photon pair generators having the same physical and optical properties (e.g., within the range of uncertainties associated with the manufacturing process). In these examples, the photon pair produced by the first photon pair generator 1506 and the photon pair produced by the second photon pair generator 1508 may be in a superposition quantum state (e.g., superposition between photon pair generators created by one or the other).

[0282] In some examples, photons having different frequencies in each photon pair leaving each photon pair generator 1506 / 1508 are routed to different optical paths using two frequency multiplexers (F-DEMUX) 1509a / 1509b. The first F-DEMUX 1509a splits the photon pairs received from the first photon pair generator 1506, and the second F-DEMUX 1509b splits the photon pairs received from the second photon pair generator 1508. In such examples, each F-DEMUX (1509a / 1509b) splits the stream of received photon pairs into two streams of photons, each stream of photons containing photons having the same or substantially the same frequency. In a preferred embodiment, photons leaving the two F-DEMUXs 1509a+1509b may be routed to four distinct optical paths. In some examples, these optical paths may have equal path lengths. In some examples, these four optical paths may be arranged so that streams of photons having the same or substantially the same frequency are merged and output from the quantum state generator 1510 as a single photon stream. In the example shown in Figure 15, high-frequency photons (e.g., signal photons) of photon pairs generated by photon generators 1506 / 1508 may be transmitted through the first output 1511a, and low-frequency photons (idler photons) of photon pairs generated by photon generators 1506 / 1508 may be transmitted through the second output 1511b. The photons received from these two outputs may be entangled photons (e.g., path-entangled photons). The first output 1511a provides the first qubit (qubit), and the second output 1511b provides the second qubit. For example, the collective quantum state of photons output from the first output 1511a and the second output 1511b of the quantum state generator 1510 can be expressed as follows:

number

[0283] Entangled photons generated by the quantum state generator 1510 may be supplied to a measurement stage 1512 where their quantum states are measured. In some embodiments, the measurement stage 1512 may include two identical measurement devices 1514 / 1516, each including multiple optical paths, each optical path ending in a photon detector. In some such embodiments, the optical paths may have substantially equal path lengths. In some embodiments, the optical paths within each measurement device may be reconfigurable. In some examples, each measurement device 1514 / 1516 may receive only photons having substantially identical frequencies from one of the outputs 1511a / 1511b of the quantum state generator 1502. For example, the first measurement device 1514 may receive signal photons from the first output 1510a, and the second measurement device 1516 may receive idler photons from the second output 1510b. When photons are received by a photon detector, the photon detector generates an output signal (detector signal). The output signals generated by all photon detectors of both measuring devices can be measured sequentially by an electronic signal processor. In some examples, the output signals can be analyzed by the processor using a set of instructions stored in non-temporary memory.

[0284] These measurement results can be classified into the following three types of events. Event 1: During the matching window, a single-click event occurs where only one photon detector in one of the measurement devices 1514 / 1516 provides a single output signal indicating the detection of one photon. Event 2: During the match window, each of the two photon detectors in different measuring devices provides an output signal indicating the simultaneous detection of two photons having different frequencies, resulting in a match. Event 3: A double-click event during the matching window in which each of two photon detectors within the same measuring device provides an output signal indicating the simultaneous detection of two photons having the same or substantially the same frequency.

[0285] The coincidence window can be a time interval determined by uncertainties associated with the detectors and measurement circuits that collect the measurement data. Essentially, the two output signals produced by two photon detectors during the coincidence window can be considered to represent the simultaneous arrival of two photons detected by one photon detector, each. In some examples, the coincidence window is calculated to account for uncertainties in optical path length. In some other examples, the coincidence window is calculated considering timing jitter and / or the resolution of the electronic circuit, clock cycles, etc. In some examples, the coincidence window may be limited by the resolution of the electronic system (e.g., FPGA) used to measure and process the signals provided by the photon detectors. In some such examples, the resolution of the electronic system may be between 1 ns and 5 ns, 5 ns and 10 ns, or 10 ns and 20 ns. In some other examples, the size of the coincidence window may be affected by undesirable differences in optical path length ending at different detectors. In yet another example, the coincidence window may be limited by the dead time of the photon detectors.

[0286] A coincidence event can be associated with the collapse of the quantum state of an entangled photon pair representing a pair of qubits (e.g., an entangled qubit). The quantum nature of the coincidence can be verified using Bell's inequality, implemented as security logic (as previously mentioned in the context of a four-device quantum device). A double-click event can be a conventional event and can be associated with conventional noise in the system (e.g., thermal noise or other types of noise in the photon detector or signal processor). In some cases, three or more photon detectors can generate an output signal within the coincidence window. Similar to double-click events, such events can also be associated with conventional events. In this passive architecture, the randomness of the criterion (measurement setting) is essentially provided by the availability of multiple optical paths (e.g., consisting of multiple 50 / 50 photon splitters) ending in multiple photon detectors within the measurement stage 1512. The detection of photons by each photon detector receiving photons from a subset of the optical paths can indicate a measurement at a particular criterion. In some embodiments, the detection of photons by a pair of photon detectors within the same measuring device may represent a measurement on a single criterion, and the detection of photons by each photon detector represents one of two possible results associated with the corresponding criterion. In some preferred examples, the criterion associated with each pair of photon detectors within the measuring device may be selected by the user (e.g., by reconfiguring one or more optical paths that provide photons to the pair of photon detectors). For example, the measuring device can be tuned so that the detection of photons by a particular pair of photon detectors within the same measuring device represents a measurement on computation, Hadamard, or other bases formed by a particular combination of these two bases. In some examples, different pairs of detectors may measure the quantum state of photons on different bases.This passive method for random selection of the metric is presented in Figures 2A and 3A, and distinguishes the quantum device in Figure 15 from the active 2-qubit architecture described above, where the metric is randomly selected based on inputs received from drivers 216 / 316 supplied by sources 218 / 318 with weak randomness (neither of which are present in the passive architecture).

[0287] Matches associated with the detection of two photons having different frequencies within a match window may indicate the collapse of an entangled quantum state into a state represented by one of the selected metrics. The collapse from an entangled state to a specific state (leading to the detection of a match) is a quantum random event. Therefore, a series of such events verified by security tests can constitute a quantum random bit sequence and be used to generate quantum random bit sequences. Single-click events are also random events that may result from quantum phenomena (e.g., selecting one path from two available paths in a 50 / 50 optical splitter), but they are not associated with the collapse of an entangled quantum state and therefore their quantum properties cannot be verified using the Bell test. Thus, weak random sequences can be generated using single-click events. Therefore, the two measurement devices 1514 / 1516 can provide random bits that can be used to generate weak random sequences, and random qubits that can be used as quantum random sequences when verified by security tests.

[0288] In some examples, the signals associated with the double-click event and the signals associated with the detection of more than two photons within the match window may be discarded, and the signals and matches associated with the single-click event may be provided to the bit string generation and storage device 1518. In some embodiments, the bit string generation and storage device 1518 can use the single-click event to generate a weak random bit string 1527.

[0289] As described above and similar to the procedure shown in Figure 2C, multiple coincident measurements provided by the two measurement devices 1514 / 1516 can be stored in the bit string generation and storage device 1518 along with the relevant values ​​of the measurement settings at the time of measurement (e.g., the base used to measure the quantum state of the received photon). Here, the measurement settings can be transmitted as a photon detector ID, since they are specified by the photon detector from which the signal is received. In some examples, once a specified number of measurements have been obtained, the stored measurements (e.g., photon detector ID 1517 and bit string 1519) can be sent to a security test unit, and security test A1522 can be performed on the received random bit string using the received photon detector ID.

[0290] In some embodiments, the matching measurements may be transferred to the security test unit as a random sequence 1519 having a specified length (e.g., defined by the user and stored in memory). For example, the length of the random sequence may be 10 to 10 3 Range, 10 3 ~10 5 Range, 10 5 ~10 7 The range, or 10 7 ~10 9 The range can be a bit. Security test A1522 can verify the quantum properties of the received random bit sequence, for example, using Bell's inequality (similar to Bell tester 3124 in Figure 29). In some examples, using Bell's inequality, security test A can assess the degree of randomness and / or the degree to which the randomness is associated with quantum events (sometimes called "quantum nature"). In some examples, security test A can also verify the non-signaling nature of the generation and measurement procedures that produced the qubits in the bit sequence. In preferred embodiments, security test A is implemented using hardware because hardware is usually more secure than software or firmware, but in other embodiments, security test A can be implemented using both hardware and software, or potentially using software only. The system may include one or more processors configured to compute security test A from stored measurements (for example, using a set of instructions stored in non-temporary memory). The processors may be configured to generate and output a certificate proving that the measurements are from a quantum system if the value of the computed test statistics falls below a certain threshold. It is possible to generate the same or a different certificate proving that the measurement is non-signaling or partially non-signaling. These tests are described in more detail below.

[0291] In some embodiments, once a quantum random bit string is evaluated and / or proven (e.g., as a qubit associated with a match generated by a non-signaling quantum system), the string (similar to bit string 3030 in Figure 29 when verified by vertesta 3124) may be provided as a first source to a twelfth-source randomness extractor 1526 (similar to extractor 3122 in Figure 29). The twelfth-source randomness extractor 1526 may be configured to generate a first weak random bit string 1527 (similar to bit string 3115 in Figure 29) which is generated by combining a first extracted quantum random string 1529 (similar to seed 3930 in Figure 29) and single-click events detected by each measurement device 1514 / 1516, using the quantum proven random bit string 1525. In some examples, the first extracted quantum random string 1529 may be a perfectly random string. As described above, in some examples, the proof of a random sequence may involve evaluating the degree of randomness and / or quantum nature of the quantum proof random bit sequence 1525. Conveniently, in some such examples, the degree of randomness and / or quantum nature of the quantum proof random bit sequence 1525 can be used in the extraction process to generate a perfectly random string.

[0292] Assuming that the bit stream rate generated by the quantum device 1502 (and all quantum random qubit generators in general) is relatively low, the first extracted quantum random sequence 1529 generated by the first randomness extractor 1526 may be provided at a rate lower than the rate required for many downstream applications. For example, the bit rate of the first extracted quantum random sequence 1529 may be less than 1 kb / s or less than 1 Mb / s, while the required rate is typically in the range of Mb / s to Gb / s, or even higher. Therefore, in some embodiments, a second randomness extractor 1531 (similar to the seeded extractor 3140 in Figure 29) may be used to extract an output quantum random bit sequence 1533 (similar to the output 3136 in Figure 29) using a first extracted quantum random sequence 1529 and a second weak random sequence (similar to the bit sequence 3115 in Figure 29), provided, for example, by a weak source of randomness (WSR) 1528 (similar to the WSR 3100 in Figure 29). In some such examples, the WSR 1528 can generate weak random sequences by utilizing conventional and / or quantum phenomena. The generation rate of the output quantum random bit sequence 1533 may be large enough to be used in a variety of downstream applications. In some embodiments, the second randomness extractor 1531 can increase the random bit generation rate by amplifying the first extracted quantum random sequence 1529. For example, the first extracted quantum random sequence 1529 may be a short string of random bits, although it is completely random (referred to as the seed in Figure 29). The second randomness extractor 1531 can generate an output quantum random bit sequence 1533 using a second weak random sequence (provided by WSR 1528) and the first extracted quantum random sequence 1529, which is also completely random but much longer than the first extracted quantum random bit sequence 1529. Thus, advantageously, the second randomness extractor 1531 can increase the random bit generation rate while maintaining complete randomness.

[0293] Example procedure for a passive photon device Figure 16 is a flowchart illustrating an exemplary operation of a bit string generation and storage system in a two-qubit quantum random number generator system based on a passive quantum device (e.g., the system shown in Figure 15). Photons can be prepared in a specific entangled quantum state, for example, as shown in Equation 14 above (1600). In some embodiments, entangled photons can be prepared in a specific quantum state using nonlinear optical phenomena (e.g., spontaneous four-wave mixing) and degenerate photon pair production by path entanglement. The output signals of photon detectors in two measurement devices 1514 / 1516 are measured (1602) and analyzed. If two signals are generated by two photon detectors of two different measurement devices within a time interval shorter than the coincidence window (indicating a coincidence event), the signals may be potentially related to the collapse of an entangled state and are therefore stored (e.g., in the device's memory) along with identifiers associated with the photon detectors that generated these signals (1604) (the photodetector identifier indicates the measured value of the signal). In a specific configuration of the measurement device, the measurement criterion for each measurement can be determined based on the photon detector that generates the measurement signal. Further checks are performed to determine whether or not to acquire the measurement (1606). These checks may include criteria such as whether a specified time has elapsed, whether a specified number of measurements have been collected (e.g., whether the number of measured bits exceeds 100 Mb), or whether the memory for storing the measurement is full. If check 1606 indicates the need for further measurements, the quantum state generator 1510 prepares new entangled photon pairs (1600), and a new cycle begins. If check 1606 indicates that no further measurements are needed, the stored measurement is output (1608). Single-click events (all signals received with a relative delay greater than the match window) can be treated as weak random events and stored in memory 1610, and provided to a randomness extractor (e.g., the first randomness extractor 1526 in Figure 15) as a weak random sequence 1612. The memory for storing single-click events may be the same as or different from the memory for storing matches.As described above, the randomness extractor may combine weak random sequences with random sequences where randomness and privacy are quantified (called "quantum random sequences") in order to generate substantially perfectly random sequences. Double-click events can be discarded as conventional random events.

[0294] Security test A for passive photon quantum devices Similar to the 4-qubit and 2-qubit systems described above, security test A can determine whether multiple qubit measurements violate the Bell inequality through a process, for example, as shown in Figure 17. In some examples, the Bell inequality may include any inequality used to determine whether a set of measurements coincides with a measurement of a particular quantum state supported by quantum mechanics (e.g., an entangled quantum state). The Bell inequality may include Bell's original inequality, the CHSH inequality (Clauser Home Shimony Holt inequality), or any other such inequality. A violation of the Bell inequality indicates that the corresponding measurement is associated with the collapse of an entangled state to a specific metric according to the rules of quantum mechanics. Firstly, a random bit sequence, along with the metric associated with the bits in the random bit sequence, may be received, for example, from a bit sequence generation and storage device 1518 (1700). The length of the random sequence specified by the user is 10 3 from 10 5 Range, 10 5 from 10 7 The range, or 10 7 from 10 9 The range can be a number of bits. In some examples, the value of each bit in the received random bit string may correspond to an output signal generated by one or more photon detectors. The metric for each bit in the random bit string is determined based on the ID of the photon detector on which the bit is measured. Secondly, a statistical test is calculated for the value of the bit associated with the matching event (e.g., the bit stored in block 1604 of Figure 16) and the metric for each bit (1702). In some examples, the statistical test is a function L of the bit string, defined based on the number of bits in the string, the metric for each bit, and the measurement value of each bit. n,p This may include calculating the function L. n,p If the calculated value of exceeds a threshold (e.g., greater than 2) (1704), the process proceeds to 1706. Otherwise, the process fails (1708) and returns to step 1600 in Figure 16 (1710). Here, another random bit sequence is generated and stored in 1604, and transferred to the security test stage in 1700. In some examples, a sufficient number of measured bits and bases may be stored in a storage device 1518 (e.g., the device's non-temporary memory) to generate two or more random bit sequences. In these examples, if the security test fails with the first random bit sequence in 1708, the second random bit sequence can be transferred from the storage device 1518 to the security test stage in step 1700. In some other implementations, Ln,p may be defined such that in step 1704, a value of Ln,p less than a threshold indicates that the process can proceed to 1706.

[0295] The exact functional form of Ln,p depends on the specific Bell inequality used in the security test. The specific Bell inequality can be selected based on the two-qubit quantum state prepared by the quantum state generator 1510. For example, the CHSH inequality can be used for a fully entangled state (e.g., generated by equally dividing the power of pump 1504 between two photon pair generators 1506 / 1508), while a different inequality can be used for a partially entangled state (e.g., generated by unequally dividing the power of pump 1504 between two photon pair generators 1506 / 1508). In some embodiments, the two qubits generated by the quantum state generator 1510 are fully entangled, and their two-qubit quantum state can be expressed as follows:

number

number

number

number

number

number

[0296] In some examples, the passive quantum device may not include a separate security test (e.g., security test B above) to determine whether the two measuring devices 1514 / 1516 are non-signaling with each other. In these examples, the threshold V of security test A is not included. th By modifying this, the remaining increase in the violation of the selected Bell inequality due to signaling between the two measuring devices can be taken into account. In this case, non-signaling may be defined as a signaling level smaller than the defined limit.

[0297] Implementation of a passive optical 2-qubit quantum device Figure 18 is a flowchart showing the steps that may be required to generate and measure a quantum state (e.g., an entangled quantum state) in an exemplary passive photonic quantum device. In block 1802, photons are generated by a photon source and may be supplied to multiple photon pair generators (block 1804), each of which generates a pair of non-degenerate photons (called signal photons and idler photons). In block 1806, the signal and idler photons received from each photon pair generator can be transmitted, and pump photons can be blocked (e.g., using optical filters). In block 1808, the signal and idler photons can be separated and rerouted to different optical paths (e.g., using directional couplers or add-drop filters). In block 1810, the signal photons may be transmitted through a first set of directional couplers, and the idler photons may be transmitted through a second set of directional couplers. In block 1812, signal photons may be transmitted through a third set of directional couplers, and idler photons may be transmitted through a fourth set of directional couplers. Finally, in block 1814, all photons output from all directional couplers in the third and fourth sets of directional couplers may be detected (e.g., by two sets of photon detectors). In some preferred embodiments, the directional couplers or other types of optical components used to separate or reroute the signal and idler photons may be adjustable (e.g., the relative phase and / or amplitude of the separated and / or rerouted photons may be adjustable).

[0298] In some examples, the steps shown in Figure 18 may be performed by passing photons emitted from a photon source through multiple optical components, each having one or more input ports and one or more output ports (e.g., waveguides, beam splitters, beam combiners, phase shifters, interferometers, directional couplers, etc.) via multiple optical paths, each ending in a photon detector. Some of these optical components may support nonlinear optical interactions (e.g., photon pair generators) where the frequency of the output photons differs significantly from the frequency of the input photons (e.g., spontaneous four-wave mixing, spontaneous parametric down-conversion). The photon detector can generate an electrical signal proportional to the number of photons received per unit time. In some embodiments, the photon detector may be a single-photon detector. The resulting quantum state of the photons is essentially the quantum state of an entangled photon pair, generated, for example, via one or more nonlinear optical interactions and routed through multiple different optical paths that may have the same optical path length.

[0299] Each optical path may contain multiple optical path segments, each segment connecting optical components that perform the subsequent steps shown in Figure 18. In some examples, the total optical path length from the photon source to each of the photon detectors may be substantially the same. In some other examples, in the procedure shown in Figure 18, all optical path segments connecting an optical device that performs one step to an optical device that performs the next step may have substantially equal optical path lengths. For example, the optical path lengths of the optical path segments between the source that generates photons (in block 1802) and each of the photon pair generators used in block 1804 may be substantially equal. In another example, the optical path lengths of all optical path segments between the directional coupler used to perform step 1810 and the directional coupler used to perform step 1812 may be substantially equal.

[0300] In some embodiments, the photon source may be a pulsed or continuous-wave (CW) laser source with a central wavelength between 400 nm and 800 nm, or between 800 nm and 1200 nm, or between 1200 nm and 1600 nm, or between 600 nm and 2000 nm, and a linewidth in the range of 1 to 100 kHz, or between 100 kHz and 500 kHz, or between 500 kHz and 1 MHz. Advantageously, near-infrared photon sources (e.g., having wavelengths between 1300 nm and 1600 nm) can enable the use of commercially available low-cost optical components and well-developed on-chip optical devices (e.g., optical devices used in silicon photonic technology). Alternatively, visible photon sources (e.g., having wavelengths between 400 nm and 700 nm) can enable the use of highly efficient single-photon detectors. The laser source may be an on-chip or off-chip laser source. In some embodiments, the laser source may be a semiconductor laser course. In other embodiments, the laser source may be a fiber laser, a solid-state laser, or any other type of laser.

[0301] In some preferred embodiments, the quantum optical circuit may include a network of tunable directional couplers (TDCs), photon pair generators (PPGs), wavelength multiplexers (WDs), optical filters, and photon detectors (PDs) connected via optical waveguides.

[0302] A TDC can be a four-port optical device with two input ports and two output ports, where each photon entering one of the input ports can be directed to one of the two output ports with a probability that can be selected by design or actively adjusted. For example, in some TDCs, the transmission probability of a photon input from one of the input ports to the first or second output port can be adjusted by a control signal (e.g., a current or voltage applied to the device). TDCs can be implemented using various optical materials based on various optical configurations. Examples of optical configurations include photonic crystals, microring resonators, and Mach-Zehnder interferometers. In a preferred embodiment, a TDC may be an on-chip device mounted (e.g., integrally) on or fabricated on a substrate formed from one or more materials. In some other embodiments, a TDC may be a fiber-coupled device in which the input and output ports are coupled to an optical fiber waveguide (e.g., a single-mode fiber).

[0303] A waveguide can be a two-port device with one input port and one output port directly connected by a single optical path. A waveguide can support one or more transverse optical modes. In a preferred embodiment, a waveguide used to connect any two optical components of a quantum optical circuit can support only a single transverse mode (commonly known as a single-mode waveguide). In a preferred embodiment, the waveguide may be an on-chip device manufactured (e.g., integrally) on a substrate formed from one or more materials. In some other embodiments, the waveguide may be an optical fiber waveguide (e.g., a single-mode optical fiber).

[0304] A PPG can be a two-port device with one input port and one output port, where the frequency of photons exiting the output port may differ from the frequency of photons entering the input port. Photons exiting the output port may be generated by photons entering the input port via a nonlinear optical phenomenon within the PPG. For example, two photons with the same frequency may enter the input port, and two photons with different frequencies, which are also different from the frequencies of photons entering the PPG, may exit the output port. In some embodiments, a PPG can have multiple input and output ports, where photons exiting one or more output ports may have frequencies different from the frequencies of photons entering one or more input ports. For selected nonlinear optical phenomena, a PPG can be implemented using various optical materials based on various optical configurations. Examples of optical configurations include photonic crystals, waveguides (e.g., long waveguides, helical waveguides), microring resonators, and Fabry-Perot resonators. In a preferred embodiment, a PPG may be an on-chip device mounted (e.g., integrally) on or fabricated on a substrate formed from one or more materials. In some other embodiments, the PPG may be a fiber-coupled device in which the input and output ports are coupled to an optical fiber waveguide (e.g., a single-mode fiber).

[0305] A WD can be a three-port device having one input port and two output ports, where photons entering the input port having a first frequency exit from the first output port, and photons entering the input port having a second frequency different from the first frequency exit from the second output port. A WD can be implemented using various optical materials based on various optical configurations. Examples of optical configurations include photonic crystals, directional couplers, and directional filters based on microring resonators. Examples of optical materials include silicon, silicon nitride, silicate glass, fluoride glass, and polymers. In a preferred embodiment, a WD may be an on-chip device mounted (e.g., integrally) on or fabricated on a substrate formed from one or more materials. In some other embodiments, a WD may be a fiber-coupled device in which the input and output ports are coupled to an optical fiber waveguide (e.g., a single-mode fiber).

[0306] A photon detector (PD) can be an optoelectronic device having an optical input port and an electrical output port, which generates an electrical output (e.g., current or voltage) in proportion to the photon flux received by the input port. For example, a photon detector may be a photon counter that generates a separate electrical signal at its output port for each photon received at its input port, such that the number of photons received is equal to the number of electrical signals generated. In some embodiments, the photon detector may be a semiconductor photon detector (e.g., an avalanche or PIN photodiode). In some other examples, the photon detector may be a photomultiplier tube.

[0307] Here, an exemplary system is described with reference to Figure 19. The two-qubit quantum device is implemented using the optical device described above. The following detailed description is intended to illustrate the example described with reference to Figure 19, but is not intended to limit the scope or design of the device.

[0308] Typical implementation of a passive optical 2-qubit quantum device The diagram in Figure 19 shows an example of a quantum optical circuit for generating and measuring quantum states usable in the self-test 2-qubit quantum random number generator architecture shown in Figure 15. In this example, a photon source 1902 generates a stream of pump photons. These photons may have a clearly defined polarization state (e.g., linear, circular, or elliptic polarization). The photons generated by the photon source 1902 may be supplied to a first adjustable directional coupler (TDCI) 1904 that randomly directs the photons into two optical paths, and for each photon, the ratio (splitting ratio) of the probability of being directed to the first optical path versus the probability of being directed to the second optical path can be adjusted. For example, the splitting ratio can be 50 / 50 (equal probability of proceeding to each optical path), 40 / 60, or 30 / 70. In some embodiments, the properties of the subsequently generated entangled photon pairs may be determined by the splitting ratio of the TDC1 1904. For example, a 50 / 50 ratio can be associated with the generation of a maximum entangled state, while other ratios can be associated with the generation of a partially entangled pair. As mentioned above, the generation and amplification of random numbers using partially entangled states can improve the degree of device independence in the QRNG system. Photons output by TDC1 1904 are fed to two photon pair generators (PPGs), with the first optical path from TDC1 1904 to the first PPG (labeled PPGa) 1906 and the second optical path from TDC1 to the second PPG (labeled PPGb) 1908 having substantially equal path lengths. In each PPG, some of the received pump photons can be converted into two new single-frequency photon streams. The frequency of photons in one of the new streams may be greater than the frequency of the pump photons, while the frequency of photons in the other stream may be less than the frequency of the pump photons. For example, the wavelengths of photons in the first and second generated streams may be down and upshifted by the same amount relative to the wavelength of the pump photon. The upshifted and downshifted photons are called "signal" and "idler" photons, respectively. In each PPG, the signal and idler photons may be generated via a nonlinear optical process (e.g., spontaneous four-wave mixing or SFWM).In some embodiments, two pump photons can be absorbed to produce one "signal" photon and one "idler" photon. The photons exiting each PPG are served to an optical filter (OF), where the transmission probability of the pump photons can be significantly lower than that of the signal and idler photons. For example, the transmission probability of the pump photons can be 10, 100, or even 1000 times lower. Thus, the number of pump photons in the OF or in the photon stream transmitted through each OF can be significantly less than the number of signal and idler photons transmitted. In some embodiments, the optical path length between PPG1906 and OFa1910 may be substantially equal to the optical path between PPGb1908 and OFb1912. The photons are transmitted through each OF to separate wavelength division multiplexing units (WDMs). The WDMs use a deterministic optical process to direct the signal and idler photons into two different optical paths. Therefore, the photons directed to each optical path have the same frequency. The two streams of photons exiting each WDM are transmitted to two TDCs. For example, in the configuration shown in Figure 19, signal photons and idler photons exiting WDMa1914 can be transmitted to TDC2a1920 and TDC2c1924, respectively. Similarly, signal photons and idler photons exiting WDMb1916 can be transmitted to TDC2b1922 and TDC2d1926, respectively. Thus, the first pair of TDCs (e.g., TDC2a and TDC2b in Figure 19) receive signal photons, and the second pair of TDCs (e.g., TDC2c and TDC2d in Figure 19) receive idler photons. In some embodiments, all optical paths (a total of four optical paths) through which photons are sent from WDMa1914 and WDMb1916 to TDC2a1920 and TDC2d1924 can have the same optical path length. Photons transmitted through each pair of TDCs that receive photons (idlers or signals) of the same frequency are provided to the second pair of TDCs so that each TDC in the second pair of TDCs receives photons from each TDC in the first pair of TDCs. For example, in the configuration shown in Figure 19, TDC3a1928 and TDC3b1930 each receive signal photons from both TDC2a1920 and TDC2b1922.Similarly, TDC3c1932 and TDC3d1934 each receive idler photons from both TDC2c1924 and TDC2d1926. In some embodiments, the lengths of all optical paths (a total of four optical paths) from the first pair of TDCs (e.g., TDC2a and TDC2b) to the second pair of TDCs (e.g., TDC3a and TDC3b) are substantially equal. Finally, each TDC in the second pair of TDCs directs the received photons to the pair of PDs via two optical paths that may have the same optical path length. For example, the two outputs from TDC3a1928 are supplied to PD1 1936 and PD2 1938, and the two outputs from TDC3b1930 are supplied to PD3 1940 and PD4 1942, and so on. Thus, the two pairs of PDs detect the photons received from each pair of TDCs that receive photons of the same frequency. For example, PD1 1936, PD2 1938, PD3 1940, and PD4 1942 detect signal photons emanating from TDC3a 1928 and TDC3b 1930. Similarly, PD5 1944, PD6 1946, PD7 1948, and PD8 1950 detect signal photons emanating from TDC3c 1932 and TDC3d 1950. Thus, the PDs can be divided into two groups, each containing four PDs: a first group that detects signal photons and a second group that detects idler photons. The detection of photons by PDs within a pair of PDs receiving photons from a single TDC3 indicates a measurement at a particular base. The particular base associated with the detection of photons by PDs in a pair of PDs is determined by the configuration of the corresponding TDC3s supplying the PD pair.

[0309] In some embodiments, all TDC2 in Figure 19 can be configured to transmit all received photons into two identical optical paths with equal, frequency-independent probability. In other words, a stream of idler or signal photons received by one of each of the four TDC2 is split into two streams at a 50 / 50 ratio, providing photons to the next device at the same rate (having the same frequency). In such a configuration, the electrical signal generated by each PD represents a quantum state measurement performed on a base determined by the splitting ratio of the TDC3 supplied to that PD. Thus, the measurement associated with each PD can be selected by adjusting the splitting ratio of the TDC3 supplied to it. For example, if the splitting ratio of TDCa1928 is adjusted to 50 / 50, the measurements performed by PD11936 and PD21938 can represent X-based measurements, while if the splitting ratio of TDCa1928 is adjusted to 100 / 0, the measurements performed by PD11936 and PD21938 can represent Z-based measurements. Therefore, measurements performed by a PD supplied by a TDC3 adjusted to a division ratio between 50 / 50 and 100 / 0 can represent a combination of X-based and Z-based values, and a particular combination can be determined by a specific division ratio of the TDC3.

[0310] In some examples, the division ratio of TDC3 is such that the electrical signal generated by the PD receiving photons from that TDC3 is X (Hadamard), Z (Computation),

number

number

number

[0311] The randomness of the measurement criteria in the passive embodiment described above is a result of the photons being randomly routed through different optical paths between TDC2 and TDC3. Thus, by continuously measuring the electrical signals generated by all PDs, the quantum state of the received photons is measured at a randomly selected base as the photons are transmitted through one or more PDs via randomly selected optical paths.

[0312] In some embodiments, the optical path lengths of all optical paths starting from one of the two PPGs and ending at one of the PDs are substantially equal.

[0313] In such embodiments, three categories of photon detection events can be identified: Category 1) Single-click event, where only one photon is detected by one of the PDs in any group. Category 2) Double-click event: Two photons are detected by two photodiodes (PDs) within a single group. In other words, the detected photons are either two signal photons or two idler photons. Category 3) Match: Two photons are detected by two PDs, each belonging to a different group (receiving photons from two TDCs that provide photons of different frequencies). In other words, one of the detected photons is the signal photon and the other is the idler photon.

[0314] The agreement may potentially represent a true quantum event corresponding to a measurement of a specific quantum state of an entangled photon pair (e.g., a state defined by Equation 14). As shown in the system in Figure 15 and the procedure in Figure 19, a single-click event may be provided to a randomness extractor, the agreement and corresponding metric may be stored first and then provided to a security test system, where the quantum properties of the measurement data are evaluated by the statistical test described above.

[0315] On-chip implementation example of a passive optical 2-qubit quantum device The architectures and examples described above can be implemented based on various schemes and optical components (e.g., free space, optical fiber, and integrated). However, as previously stated, the simplicity of the proposed architecture makes it particularly suitable for creating integrated or one-piece quantum devices. Figure 20 shows an implementation of the optical quantum device configuration shown in Figure 19 and described above. This is based on optical components that can be manufactured integrally on a chip (e.g., a silicon photonic chip). The specific on-chip optical components selected for the following on-chip implementations do not limit the on-chip implementations of the disclosed architectures that can be constructed using other on-chip optical components.

[0316] In the implementation shown in Figure 20, an on-chip adjustable Mach-Zehnder interferometer (MZI) is used as the TDC and WD, an on-chip helical waveguide is used as the PPG, an on-chip Bragg grating (BG) is used as the OF, and an on-chip single-mode waveguide is used as the interconnect waveguide. In some examples, all on-chip optical components can be manufactured integrally on the chip.

[0317] In some embodiments, the on-chip MZI may be a four-port optical device with two input ports and two output ports, each optically connected via a pair of on-chip directional couplers and a pair of optical waveguides, each called an arm of the MZI. In some examples, the MZI may be an integrated component in which all of its segments are waveguides formed on a single layer. In some examples, the relative optical phase between photons transmitted through two different arms can be controlled by an electrical signal (e.g., current or voltage). In some examples, the MZI and phase shifter can be reconfigured with high precision and rapidly (at a kHz rate).

[0318] In some examples, the MZI can be a thermally controlled MZI (e.g., the MZI used in Wang et al., Science360, 285-291, 2018), where the relative optical phase between the two MZI arms is controlled by an electro-heating element located on or near one of the arms. The current can control the relative optical phase between the two arms based on the thermo-optic effect. In some other examples, the MZI can be an electro-optically controlled MZI, where the relative optical phase between the two MZI arms is controlled by an electric field between two conductive electrodes located on or near one of the arms. The electric field can control the relative optical phase between the two arms based on the electro-optic effect. The current may be supplied to the heating element or electrodes via two or more wires or conductive strips integrated with the MZI.

[0319] In some examples, a subset of MZIs can be configured to function as a TDC, where photons entering one of the MZI's input ports are directed to each of the two output ports with a probability that depends on the controllable relative optical phase between the two arms.

[0320] In some examples, a subset of MZIs may be asymmetric MZIs configured to function as WDs, where two different wavelength photons entering one of the input ports are split into two streams of single-wavelength photons, each output by a different output port.

[0321] In some embodiments, each on-chip PPG can be a helical waveguide with a total length between 10 and 100 microns, 100 microns and 1 mm, 1 mm and 5 mm and 1 cm. In some examples, the helical waveguide may be similar to a helical waveguide known to those skilled in the art.

[0322] In some embodiments, each on-chip backgrowth (BG) can be a linear waveguide with a periodically changing width. In some examples, the BG may be similar to those known to those skilled in the art.

[0323] In some examples, the waveguide connecting all the on-chip optical components described above may be a single-mode waveguide (e.g., a ridge waveguide, a rib waveguide, a photonic crystal waveguide, etc.). In some examples, the waveguide may be similar to a waveguide known to those skilled in the art.

[0324] Examples of optical materials that can be used as structural materials for all of the above optical components (i.e., MZI, PPG, BG, and waveguides) include silicon, silicon nitride, silicate glass, fluoride glass, polymers, III-V compound semiconductors, and the like.

[0325] In this particular implementation, the photon source and PD are off-chip devices optically coupled to an on-chip waveguide. A variety of well-established coupling methods can be used to couple light from the off-chip source to the on-chip waveguide and from the on-chip waveguide to the off-chip PD. Examples of coupling methods include, but are not limited to, the use of a vertical grating coupler (VGC) and direct coupling via chip cleavage facets.

[0326] In some embodiments, the photon source and PD may be fiber-coupled devices. In these embodiments, the optical fiber coupled to the photon source and PD may be optically coupled to an on-chip waveguide using the optical coupling method described above. In some such examples, the VGC may be the same as or similar to a VGC known to those skilled in the art. The VGC may be used to optically couple the off-chip fiber-coupled photon source and PD to an on-chip waveguide and components.

[0327] In some other embodiments, the photon source may be an on-chip device and the photodiode (PD) may be an off-chip device. For example, the photon source can be integrated onto the chip using flip-chip bonding. In yet another embodiment, both the photon source and the PD may be on-chip devices. For example, the photon source and the PD can be integrated onto the chip using flip-chip bonding. In some examples, the PD can be manufactured integrally with other components on the chip.

[0328] In some examples, the photon source may be a CW laser such as a solid-state laser (e.g., ND:YAG laser), a fiber laser, or a semiconductor laser (e.g., a DFB laser). The CW laser may be a narrow-linewidth CW laser having a linewidth between 1 kHz and 1000 kHz.

[0329] In some other examples, the photon source may be a pulsed laser, such as a pulsed solid-state laser, pulsed fiber laser, or pulsed semiconductor laser.

[0330] The preparation of photon flow and quantum states in the optical on-chip implementation shown in Figure 20 is similar to the procedure described in detail for the general optical implementation shown in Figure 19, and the optical components can represent off-chip and / or on-chip optical devices. In the following, the optical connection between two components may be a junctionless continuation of a waveguide that transmits photons from one optical component to another with minimal loss.

[0331] An off-chip photon source 2004 (e.g., a laser source) provides a photon beam to a waveguide optically connected to one of the input ports of the on-chip MZI1 2006. For example, the photon source 2004 may be a fiber-coupled photon source (e.g., a fiber-coupled laser) optically coupled to the waveguide via a vertical fiber-to-chip grating coupler. In some examples, one or more off-chip optical components (e.g., lenses, lenses, etc.) can be used to increase the efficiency of optical coupling between the fiber-coupled photon source and the waveguide. In some other examples, the photon source 2004 may be an on-chip device.

[0332] Each output port of the MZI1 is optically connected to one of a pair of helical waveguides (SWa2008 and SWb2010), and two-color photon pairs are generated, for example, via an SFWM process (each pair contains a signal photon and an idler photon). The output port of each helical waveguide is connected to the input port of one of a pair of Bragg grating filters (SWa2008 to BGFa2012 and SWb2010 to BGFb2014), which attenuates the pump photon bundle while transmitting the signal and idler photons with minimal attenuation. The output of each Bragg grating filter is connected to one of the input ports of a pair of MZIs (BGFa2012 to MZI-Wa2016 and BGFb2014 to MZI-Wb2018) configured to function as WDs, with signal photons directed to the first output port of each MZI and idler photons directed to the second output port of the same MZI. The MZI-Wa2016 and MZI-Wb2018 are configured and positioned so that their distal output ports 2015 and 2017 and their proximal output ports 2011 and 2013 provide photons of different frequencies. For example, signal photons exiting BGFa2012 and BGFb2014 can pass through the upper port 2015 of MZI-Wa2016 and the upper port 2013 of MZI-Wb2018, respectively. Similarly, idler photons exiting BGFa2012 and BGFb2014 can pass through lower port 2011 of MZI-Wa2016 and lower port 2017 of MZI-Wb2018, respectively. The distal ports (2015 and 2017) of MZIa2016 and MZIb2018 are connected to two linear waveguide sections. The nearby output ports (2011 and 2013) of MZI-Wa2016 and MZIWb2018 are connected to two waveguide sections and cross each other via on-chip waveguides that cross WX1 2019, which is configured / designed to allow the two streams of photons to cross with minimal crosstalk. The two outputs of waveguide crossing 2019 are connected to two other linear waveguide sections. Therefore, after the intersection, signal photons generated from the two spiral waveguides are transferred to two adjacent waveguide sections, and idler photons are transferred to two other adjacent waveguide sections.The outputs of these four waveguide sections can each be connected to one of the input ports of one of the four MZIs in a set of four MZIs (MZI2a2020, MZI2b2022, MZI2c2024, and MZI2d2026), and configured to reroute photons received from one of the input ports to each of the output ports with equal probability. The second input ports of these MZIs can be left unconnected. Alternatively, these MZIs may have only one input port and two output ports. In the example shown in Figure 20, signal photons are supplied to MZI2a2020 and MZI2b2022, and idler photons are supplied to MZI2c2024 and MZI2d2026. Each pair of MZI2 receiving photons of the same frequency (e.g., MZI2a2020 and MZI2b2022) has an output port connected to the input port of a second pair of MZIs (e.g., MZI3a2028 and MZI3b2030), and each input port of the second pair of MZIs has an output port connected to one of the output ports of a different MZI in the first pair. Such connections between two pairs of MZIs can be provided by two linear waveguides and waveguide crossings. For example, in Figure 20, the first output port of MZI2a2020 is optically connected to the first input port of MZI3a2028 via a linear waveguide, and the second output port of MZI2a2020 is optically connected to the first input port of MZI3b2030 via a waveguide crossing WX2a2027. Similarly, the first output port of MZI2b2022 is optically connected to the second input port of MZI3b2030 via a linear waveguide, and the second output port of MZI2a2020 is optically connected to the second input port of MZI3b2030 via a waveguide that crosses WX2a2027. The connections from MZI2c2024 and MZI2d2026 (which provide idler photons) to MZI3c2032 and MZI3d2034 are similar to the connections from MZI2a and MZI2b (which provide signal photons) to MZI3a and MZI3b. Finally, each of the two output ports of the last MZI (MZI3) is coupled to a PD. Therefore, the four pairs of PDs receive photons output by the last four MZIs (MZI3a2028, MZI3b2030, MZI3c2032, MZI3d2034).The first PDv2036 / 2038 receives photons from MZI3a2028, the second PDv2040 / 2042 receives photons from MZI3b2030, the third PDv2044 / 2046 receives photons from MZI3c2032, and the fourth PDv2048 / 2050 receives photons from MZI3d2034.

[0333] In this particular implementation, the PD is an off-chip component. In some examples of this implementation, the PD is a fiber-coupled PD, where each PD is coupled to an optical fiber, which is then coupled via an on-chip vertical grating coupler to one output port of one MZI from a set of four output MZIs (i.e., MZI3a, MZI3b, MZI3c, MZI3d). In some other examples of such implementation, an additional optical filter can be used between each MZI port and the PD that receives photons from that port. This additional optical fiber can improve the performance of the system by further suppressing the pump photon flux remaining after BGFa2012 and BGFb2014.

[0334] Typical Active 2-Qubit Optical Quantum Device Architecture The block diagram shown in Figure 21 provides an illustration of the construction blocks and operation of an example of a quantum random number generation and amplification system, and the quantum device 2102 can be implemented based on the embodiment of the active two-qubit architecture described above. The quantum device 2102 comprises a quantum state generator 2110 that generates and prepares entangled photons that function as entangled qubits, and a measurement stage 2112 that measures the qubits generated by the quantum state generator 2110.

[0335] In the example shown in Figure 21, the photon source 2104 generates a stream of photons called "pump photons," all of which can have frequencies within a narrow frequency range. For example, the number of pump photons with nearly identical frequencies may have a Lorentz distribution as a function of wavelength (or frequency), with a center wavelength in the range of 800 nm to 1200 nm, or 1200 nm to 1600 nm, or 1600 nm to 2000 nm. The full width at half maximum (FWHM) of the corresponding frequency distribution may be in the range of 1 kHz to 100 kHz, or 100 kHz to 500 kHz, or 500 kHz to 1 MHz. In some examples, the photon source 2104 can generate a pump photon stream having a periodically changing beam of photons (e.g., periodic pulses with different time profiles). The stream of pump photons leaving the photon source 2104 can be split into first and second pump photon streams. The first pump photon stream is transmitted to the first photon pair generator 2106, and the second pump photon stream is transmitted to the second photon pair generator 2108. The ratio (photon flux ratio) between the photon flux entering the first photon pair generator 2106 and the photon flux entering the second photon pair generator 2108 may be adjustable, and a ratio of 50 / 50, 40 / 60, 30 / 70, or any other desired ratio can be selected. The collective quantum state of the pump photons supplied to the 12106 and 22108 photon pair generators can be represented as a superposition quantum state similar to the quantum state represented by equation 13 above.

[0336] In some examples, each photon pair generator 2106 / 2108 can generate a pair of photons upon receiving two or more pump photons. The photons in each pair may be generated simultaneously and may be entangled photon pairs. In some such examples, the generated photon pairs may be degenerate photon pairs, and the frequencies of the photons in the pair may differ. For example, one may have a frequency higher than that of the pump photon, and the other may have a frequency lower than that of the pump photon. The frequencies of each photon in a photon pair may differ by the same amount as the frequency of the pump photon. For example, the frequency of the first photon in a photon pair may be upshifted relative to the frequency of the pump photon, and the frequency of the second photon in a photon pair may be downshifted relative to the frequency of the pump photon. In some embodiments, the two photons in each photon pair generated by one of the photon pair generators 2106 / 2108 may have different frequencies. Photon pairs may be generated by various nonlinear optical effects. For example, the absorption of two pump photons can generate degenerate photon pairs (tangled dichromatic pairs) with different frequencies via spontaneous four-wave mixing (SFWM). In some examples, the two photon pair generators 2106 / 2108 may be identical photon pair generators having the same physical and optical properties. In these examples, the photon pair generated by the first photon pair generator 2106 and the photon pair generated by the second photon pair generator 2108 can be in a superposition quantum state (e.g., a superposition between those created by one photon pair generator and those created by the other).

[0337] In some examples, photons with different frequencies in each photon pair generated leaving each photon pair generator 2106 / 2108 are routed to different optical paths using two frequency multiplexers (F-DEMUX) 2109a / 2109b. The first F-DEMUX 2109a splits the photon pairs received from the first photon pair generator 2106, and the second F-DEMUX 2109b splits the photon pairs received from the second photon pair generator 2108. In such examples, each F-DEMUX (2109a / 2109b) can split the stream of received photon pairs into two streams of photons, each photon stream containing photons having the same or substantially the same frequency. In one embodiment, photons leaving the two F-DEMUXs 2109a, 2109b can be routed to four distinct optical paths. In some examples, these optical paths may have equal path lengths. In some examples of the quantum state generator 2102, these four optical paths may be arranged so that streams of photons having the same or substantially the same frequency are merged and output from the quantum state generator 2102 as a single photon stream. In the example shown in Figure 21, the high-frequency photons (e.g., signal photons) of photon pairs generated by photon generators 2106 / 2108 may be transmitted through the first output 2111a, and the low-frequency photons (e.g., idler photons) of photon pairs generated by photon generators 2106 / 2108 may be transmitted through the second output 2111b. The quantum states of photons received from these outputs may be entangled states associated with photons having different frequencies and routing through different paths. Very effectively, photons originally created in a superposition state are converted into entangled qubits with two paths (by F-DMUX and optical path configuration). The first qubit is provided by the first output 2111a of the quantum state generator 2102, and the second qubit is provided by the second output 2111b. In some examples, the collective quantum state of photons output from the first output 2111a and the second output 2111b can be expressed using equation 14 above.

[0338] In some embodiments, the measurement stage 2112 may include two identical measurement devices 2114 / 2116, each measurement device 2114 / 2116 including a plurality of configurable optical paths, each optical path ending in a photon detector. In some such embodiments, the optical paths may have substantially equal path lengths. In some examples, each measurement device 2114 / 2116 receives photons from only one of the outputs 2111a / 2111b of the quantum state generator 2102. For example, the first measurement device 2114 may receive signal photons from the first output 2111a, and the second measurement device may receive idler photons from the second output 2111b.

[0339] In some embodiments, the output of all photon detection devices of both measuring devices 2114 / 2116 can be measured during a predetermined time period called a “measurement cycle”. In some examples, the measurement cycle may be limited by the dead time of the detector. In these examples, the photon flux can be selected according to the dead time of the photon detector so that a single photon can be detected during the time period in which the photon detector is ON. In some embodiments, the specified time period is in the range of about 1 ns to 1 μs, 1 μs to 1 ms, 1 ms to 0.1 s, or some other range. For example, the time period may be in the range of 5 ns to 15 ns, e.g., about 10 ns. In some examples, the dead time of the photodetector may be the time required for the photon detector to switch from an “off” state to an “on” state in which it can detect photons again, for example, following the detection of a photon or a match.

[0340] In some embodiments, each measuring device 2114 / 2116 may include at least one adjustable optical device that allows selection of an optical path configuration within the measuring device using one or more external control signals. The optical path configuration in each measuring device may correspond to measuring the quantum state of a received photon on a particular basis. For example, the detection of a photon by a measuring device 2114 / 2116 having a particular optical path configuration selected by a control signal may represent a measurement on a computational basis, an Hadamard basis, a basis formed by a particular combination of these two bases, or some other basis. In some such embodiments, a random control signal can change the optical path configuration within each measuring device 2114 / 2116 for each measurement cycle. In these embodiments, the measurement criterion of each measuring device 2114 / 2116 during each measurement cycle is randomly selected. In some examples, the criterion for the first measuring device 2114 may be randomly selected from a first pair of criterions (e.g., a calculated base or an Hadamard base), and the criterion for the second measuring device 2116 may be randomly selected from a second pair of criterions (e.g., each base is a specific combination of a calculated base and an Hadamard base).

[0341] If only one photon detector within the measurement stage 2112 provides a signal during the coincidence window in a measurement cycle, such an event is considered a single-click event. If two photon detectors within the same measurement device provide signals during the coincidence window, such an event is considered a double-click event. If two photon detectors from two different measurement devices provide signals during the coincidence window, such an event is considered a coincidence. A coincidence involving the detection of two photons with two different frequencies substantially simultaneously potentially indicates the collapse of an entangled quantum state into a state represented by one of the selected measurement criteria. If the quantum properties of a random sequence containing a coincidence are verified by security logic tests, that random sequence can be considered a quantum (quantum-grade) random sequence (e.g., after also passing a non-signaling test, by choice). In contrast, the quantum (or conventional) properties of single-click and double-click events cannot be verified and therefore cannot be used to generate quantum random sequences.

[0342] In some embodiments, the control signals for both measurement devices may be provided by a first weak random number generator or weak source of randomness (WSR-I) 2132. The weak source of randomness 2132 generates random bit sequences (or other forms of random numbers), inputs them to a driver 2134, and the driver 2134 provides them as control signals to the measurement devices 2114 / 2116. In some other examples, the control signals for each measurement device 2114 / 2116 may be provided by two different weak sources of randomness. Each of the weak sources of randomness 2132 may contain one or more weak sources of randomness. Each weak source of randomness can generate one or more bits, and the random bit sequence may include bits from one, some, or all of these weak sources of randomness. For example, the weak source of randomness may contain multiple (e.g., two or four) separate weak sources of randomness, each separate source successively generating a sequence of bits that are read by the quantum device as needed. In some implementations, some or all of the weak sources of randomness are provided by the user of the quantum device. In some such implementations, the quantum device is configured so that a source with weak randomness is interchangeable, and the user can swap out sources with different levels of randomness depending on the user's specific installation or application.

[0343] In some examples, multiple quantum random bits provided by two measuring devices may form a random bit sequence stored in a bit sequence generation and storage device 2118, along with the relevant values ​​of the measurement settings at the time of measurement. Here, the measurement output of each measurement cycle includes the output signal generated by the photon detector, and the measurement settings are specified by the optical path configuration within the measuring device and therefore by the control signals received from the WSR-1 2132 during the corresponding measurement cycle. First, a check is performed to determine whether to repeat in order to obtain more measurements. Second, if the check indicates that no further repetition is necessary, the stored bit sequence 2119 and measurement settings 2117 are sent to a security test unit 2120, where security test A2122 and, optionally, security test B2124 may be performed. (Note that the bell test 3124 in Figure 29 represents the form of the security test unit 2120, typically security test A2122). Security test A2122 may verify the quantum properties of a received random bit sequence, and security test B2124 may verify the non-signaling properties of the generation and measurement procedures that produced the qubits in the random bit sequence. In preferred embodiments, security tests A and B are implemented using hardware, as hardware is generally more secure than software or firmware. However, security tests A and / or B may be implemented using hardware, firmware, software, or any combination thereof, depending on the circumstances of any given implementation. The system may include a processor configured to compute security test A from stored measurements and, if necessary, security test B. The processor may be configured to generate and output a certificate proving that the measurements are from a quantum system if the computed test statistics exceed, for example, a threshold. The same or another certificate may be generated proving that the measurements are non-signaling or partially non-signaling. These security tests are described in detail below.Once the quantum properties of a random bit sequence are proven, the quantum-proven random sequence (qubit sequence) 2125 is provided to the randomness extractor 2126. The randomness extractor 2126 can also receive weak random sequences from one or more weak sources of randomness. In the example shown in Figure 21, the randomness extractor 2126 is a two-source extractor (similar to the two-source extractor 3122 shown in Figure 29), which generates the output signal 2133 using the received proven quantum random bit sequence 2125 provided by the quantum device 2102 and the weak random bit sequence 2127 provided by a second weak source of randomness (WSR-2) 2128 (similar to WSR3100 in Figure 29). In some examples, WSR-1 2132 and / or WSR-22128 can generate weak random sequences using conventional and / or quantum phenomena.

[0344] Example procedure for an active quantum photon device Figure 22 is a flowchart illustrating an exemplary operation of the bit string generation and storage system of Figure 21 for a 2-qubit quantum random number generator based on an active quantum device. Photons can be prepared in a specific entangled quantum state, for example, as shown in Equation 14 above (2200). In some embodiments, entangled photons can be prepared in a specific quantum state using nonlinear optical phenomena (such as spontaneous four-wave mixing) and degenerate photon pair production by path entanglement. Using a control signal (random string) provided by a source with weak randomness 2132, a measurement setting (2202) can be configured independently for each measurement device 2114 / 2116 during each measurement cycle. The outputs of the photon detectors in the two measurement devices 2114 / 2116 are measured during the measurement cycle (2204). For each measurement setting, the detection of photons by one or more photon detectors in the measurement device indicates that a quantum state is being measured on a particular basis. For example, a random bit sequence provided by a source with weak randomness 2132 can be used to select a criterion from two criterions for the first measuring device (e.g., a computed base and an Hadamard base), and another criterion from two other bases for the second measuring device (e.g., a combination of a computed base and an Hadamard base). Once the measurement setup is configured, photons are measured by the two measuring devices (2204), and one or more photon detectors output a signal when a photon is detected, initiating the next round of measurement. Thus, during each measurement cycle, each of the two measuring devices can output a signal representing the measurement on a specific base according to its measurement setup. If both photon detectors of the two different measuring devices generate signals within a coincidence window, those signals may be considered coincidental and are stored along with the measurement setup of both measuring devices at the time of measurement (2208). A check is performed to determine whether to repeat the process to obtain further measurements (2206). The check includes checking whether a specified time has elapsed, whether a specified number of measurement iterations have elapsed, or whether the memory for storing the measurements is full.If check 2206 indicates the need for further measurements, the quantum state generator 2110 prepares a new entangled photon pair (2200), and the measurement cycle begins. If check 2206 indicates that no further repetitions are needed, the stored measurement is output (2210). If, during the matching window, only one photon detector in either measurement device generates a signal, or if two photon detectors in one measurement device generate signals, these signals are ignored as conventional events.

[0345] Security Test A for Active Quantum Photon Devices Similar to the passive case, in some examples, security test A determines whether multiple qubit measurements violate Bell's inequality through the process shown in Figure 23. In some embodiments, this process may be similar to the process shown in Figure 17 for a passive quantum device, but the metric for each qubit is determined based on the value of a random control signal received by the corresponding measuring device in the measurement cycle in which the qubit was measured. First, a bit string is collected from the storage and output generation stage 2118 along with the measurement setting associated with each bit in the random bit string (2300). Each bit in the received random bit string may correspond to a match. The metric for each bit in the random bit string can be determined based on the measurement setting of the measuring device that receives the match signal. Secondly, a statistical test is then calculated based on the value of the bit in the received bit string and the metric for each bit (2302). In some examples, the statistical test is a function L of the bit string defined based on the number of bits in the string, the metric for each bit, and the measurement for each bit. n,a This may include calculating L n,a L is defined in equation 16 above. n,p This could be similar to the function L. n,a If the calculated value exceeds a threshold (e.g., greater than 2) (2304), the process proceeds to 2306. Otherwise, the process fails (2308) and returns to operation 2200. The process in Figure 22 may be repeated, with another random bit sequence then being generated, stored (2208), and transferred to the security test stage (2300). In some examples, a sufficient number of measured bits and bass may be stored in the memory device 2118 (e.g., the device's non-temporary memory) to generate two or more random bit sequences. In these examples, if the security test fails with the first random bit sequence (2308), the second random bit sequence may be transferred from the memory device 2118 to the security test stage in step 2300. In some other implementations, L n,a In step 2304, L is below the threshold. n,a The value of can be defined to indicate that the process can proceed to 2306.

[0346] Security Test B for Active Quantum Photon Device As mentioned above, security test B determines whether two different measurement devices are nearly non-signaling with each other. In some embodiments, security test B for an active quantum device architecture (e.g., the architecture shown in Figure 21) may be similar to security test B described above with reference to Figure 5. In some other embodiments, slightly different variations of the process shown in Figure 5 are available. Figure 24 shows a flowchart of an exemplary security test B that may be used in the quantum random generator system shown in Figure 21. Referring to Figure 24, in block 2402, a measurement setup can be configured for two measurement devices (e.g., 2114 and 2116) of an active two-qubit quantum device (2102) using a source with weak randomness (e.g., WSR-1 2132). In block 2404, the output of each measurement device can be repeatedly measured to generate a first baseline histogram for the first measurement device and a second baseline histogram for the second measurement device. In block 2406, the baseline histograms are stored (e.g., in the device's non-temporary memory). Next, in blocks 2408A and 2408B, a specific metric is selected for one measurement device, while the metric for the other measurement device is randomly varied, for example, using the same weakly random source used in block 2402. In blocks 2410A and 2410B, the output of each measurement device with the randomly selected metric is repeatedly measured to generate a first test histogram for the first measurement device (block 2412A) and a second test histogram for the second measurement device (block 2412B). Finally, in step 2414, all test and baseline histograms for each measurement device are compared to check whether the test histogram of a measurement device differs significantly from its baseline histogram. If no difference is detected between the test histogram and the base histogram, the measurement device is determined to be non-signaling, and the system proceeds (for example, by passing a proof quantum random bit sequence to the randomness extractor 2126).If two or more test histograms and baseline histograms differ at least partially, it indicates some degree of interaction between the measurement devices, and the random column is discarded. In some examples, if the system determines that two measurement devices are not non-signaling, it can generate an alert and terminate the process.

[0347] In yet another embodiment, instead of performing a separate test to verify that the two measuring devices are non-signaling with each other, during security test A, the threshold of the Bell test may be modified to account for the remaining increase in violations of the selected Bell inequality due to signaling between the two measuring devices. Using this approach, the level of signaling between the two measuring devices can be evaluated. In this case, non-signaling may be defined as a signaling level smaller than a predefined limit. In these examples, security test B2124 may be removed from the active two-qubit quantum device shown in Figure 21.

[0348] Implementation of an active optical 2-qubit quantum device Figure 25 shows an example of a quantum optical circuit for generating and measuring quantum states usable in the active two-qubit quantum random number generator architecture shown in Figure 21. The photons used in this circuit may have clearly defined polarization states (e.g., linearly polarized, circularly polarized, or elliptically polarized). Photons generated by the photon source 2502 may be supplied to a first adjustable directional coupler (TDCI) 2504 that randomly directs the photons into two optical paths, and for each photon, the ratio (split ratio) of the probability of being directed to the first optical path versus the probability of being directed to the second optical path can be adjusted. For example, the split ratio can be 50 / 50 (equal probability of proceeding to each optical path), 40 / 60, or 30 / 70. In some embodiments, the characteristics of the subsequently generated entangled photon pairs may be determined by the split ratio of the TDC1 2504. For example, a 50 / 50 ratio can be associated with the generation of the most entangled state, while other ratios can be associated with the generation of only partially entangled pairs. As described above, advantageously, by using a partially entangled state, it may be possible to implement a randomness amplification protocol that supports the generation of a completely randomly amplified random sequence. Photons output by TDC1 2504 are fed to two photon pair generators (PPGs), where the first optical path from TDC1 2504 to the first PPG (labeled PPGa) 2506 and the second optical path from TDC1 to the second PPG (labeled PPGb) 2508 have substantially equal optical path lengths. In each PPG, some of the received pump photons can be converted into two new single-frequency photon streams. The frequency of photons in one of the new streams may be higher than the frequency of the pump photons, while the frequency of photons in the other stream may be lower than the frequency of the pump photons. For example, the wavelengths of photons in the first and second generated streams may be down and upshifted by the same amount relative to the wavelength of the pump photons. The upshifted and downshifted photons are called “signal” and “idler” photons, respectively. In each PPG, the signal and idler photons can be generated via a nonlinear optical process (e.g., spontaneous four-wave mixing or SFWM).In some embodiments, two pump photons can be absorbed to generate one "signal" photon and one "idler" photon. The photons exiting each PPG are supplied to an optical filter (OF), where the transmission probability of the pump photons can be significantly lower than that of the signal and idler photons. For example, the transmission probability of the pump photons can be 10, 100, or even 1000 times lower. Thus, the number of pump photons in the photon stream transmitted through each OF can be significantly less than the number of signal and idler photons transmitted. In some embodiments, the optical path length between PPGb2506 and OFa2510 may be substantially equal to the optical path between PPGb2508 and OFb2514. The photons transmitted through each OF are supplied to a wavelength division multiplexer (WDM) that directs the signal and idler photons into two different optical paths, so that the photons directed into each of the two optical paths exiting each WDM have substantially the same frequency. The separation of signal photons and idler photons in each WDM is a deterministic process. The four streams of photons provided by WDMa2516 and WDMb2518 are transmitted to TDC2a2528 and TDC2b2530 such that each pair of photon streams having the same frequency is transmitted to one TDC. For example, in the configuration shown in Figure 25, signal photons exiting WDMa2516 and WDMb2518 may be transmitted to TDC2a2528. Similarly, idler photons exiting WDMa2516 and WDMb2518 may be transmitted to TDC2b2530. In some embodiments, all optical paths (a total of four optical paths) from which photons are sent from WDMa and WDMb to TDC2a and TDC2d may have the same or substantially the same optical path length. Each of the TDC2 may be configured by their respective control signals 2529 / 2531 provided by, for example, a weakly random source (WSR). In some embodiments, both control signals 2529 / 2531 may be provided by a single WSR. In some other embodiments, control signals 2529 / 2531 may be provided by two independent WSRs. Finally, photons transmitted through each TDC receiving photons of the same frequency (either idler or signal photons) are provided to a pair of PDs via two optical paths that may have the same optical path length.For example, two outputs from TDC2a are provided to PD1 and PD2, and two outputs from TDC2b are provided to PD3 and PD4. Therefore, the PDs in a PD pair (PD1 / PD2 or PD3 / PD4) detect photons of the same frequency. In the example shown in Figure 25, PD1 2536 and PD2 2538 detect signal photons exiting TDC2a 2528, and PD3 2540 and PD4 2542 detect idler photons exiting TDC2b 2530. The detection of photons by the PDs within a PD pair that receive photons from one of the TDC2s represents a measurement at a specific base determined by the control signals provided to the TDC2s supplying the PD pair. Therefore, during each measurement cycle, the quantum state of the photons supplied to each pair of PDs may be measured at different bases, depending on the magnitude of the control signals provided to the TDC2s supplying the PD pair at photon detection. In the example shown in Figure 25, the criterion related to the detection of photons in PD1 or PD2 may be selected by the control signal 2529 provided to TDC2A2528. Similarly, the criterion related to the detection of photons in PD3 or PD4 may be selected by the control signal 2531 provided to TDC2b2530. In some examples, the first pair of criterion for PD2536 / 2538 may be X or Z, and the second pair of criterion for PD2540 / 2542 may be (X+Z) / √2 or (XZ) / √2.

[0349] In some embodiments, the optical path lengths of all optical paths starting from one of the two PPGs and ending in one of the PDs are substantially equal to each other. In some other embodiments, the optical path lengths of all optical paths starting from the first TDC (TDC1 2504) following the photon source 2502 and ending in one of the PDs are substantially equal to each other. In yet another embodiment, all optical path segments starting from and ending in optical devices of the same type have equal optical path lengths.

[0350] In some examples, the duration of each measurement cycle may be limited by the detector's dead time. In these examples, the photon flux can be selected according to the detector's dead time so that a single photon can be detected during the time period in which the photon detector is ON. In some embodiments, the specified time period is in the range of about 1 ns to 1 μs, 1 μs to 1 ms, 1 ms to 0.1 s, or some other range. For example, the time period may be in the range of 5 ns to 15 ns, e.g., about 10 ns (where "ns" is an abbreviation for nanosecond, "μs" is an abbreviation for microsecond, and "ms" is an abbreviation for millisecond).

[0351] In such embodiments, three categories of photon detection events can be identified: Event type 1: Single-click event, where only one photon is detected by one of the PDs in any pair of PDs. Event type 2: Double-click event, where two photons are detected by two PDs in a pair of PDs. In other words, the detected photons are either two signal photons or two idler photons. Event type 3: Match, two photons are detected by two PDs, each belonging to a different PD pair (receiving photons from two TDCs that provide photons of different frequencies). That is, one of the detected photons is the signal photon and the other is the idler photon.

[0352] As described above, a match can potentially represent a true quantum event corresponding to a measurement of a specific quantum state of an entangled photon pair (e.g., a state defined by Equation 14). Single-click and double-click events can also be associated with quantum phenomena, but unlike matches, their quantum properties cannot be verified (and therefore cannot be used to generate a proven random qubit sequence). As shown in the system in Figure 21 and the procedure in Figure 22, matches and their corresponding metrics can be stored and transferred to a security test system 2120, where the quantum properties of the measurement data are evaluated by the statistical tests described above.

[0353] An example of on-chip implementation of an active optical 2-qubit quantum device. Figure 26 shows an implementation of the optical quantum device configuration shown in Figure 25 and described above. This is based on optical components that can be fabricated on a chip (e.g., a silicon photonic chip). In some examples, these optical components can be the same type of optical components described above for the on-chip implementation of a passive two-qubit quantum device, with reference to Figure 19. The specific optical devices selected for this implementation do not limit the integrated implementation. These components can be replaced with other components that use a similar architecture and provide the...

Claims

1. 1. A cryptographic system having a secure user environment, comprising: a store containing one or more seeds, each seed containing or generated from a first sequence of random bits that has been certified to have been generated by quantum behavior in a quantum device; a first private source of randomness configured to generate and output a second sequence of random bits; a seeded randomness extractor configured to receive a first input comprising a seed from the store and a second input comprising the second sequence of random bits; Including, the randomness extractor is further configured to generate and output a third sequence of random bits in response to a user request; the third sequence of random bits can be used to form an encryption key, the third sequence of random bits having increased entropy compared to the second sequence of random bits. Encryption system.

2. the secure user environment further comprising at least one processing component that forms an encryption key from the third random bit sequence; Optionally, the at least one processing component encrypts the encryption key.

2. The encryption system of claim 1.

3. the encryption system is further configured to provide the encryption key or the encrypted encryption key to the user in response to the user request.

3. An encryption system according to claim 1 or 2.

4. the cryptographic system configured to receive the one or more seeds over a network from a source external to the secure user environment for storage in the store; Optionally, (i) the network is or includes a public network, and / or (ii) the encryption system is configured to authenticate communications including the one or more seeds received over the network. The encryption system according to any one of claims 1 to 3.

5. The secure user environment includes: a two-source randomness extractor configured to receive a first input including the certified first random bit sequence having a first entropy, receive a second input including a fourth random bit sequence having a second entropy, and generate and output a seed derived from the first random bit sequence and the fourth random bit sequence; the seed has a third entropy that is amplified to be greater than both the first entropy and the second entropy. An encryption system according to any one of claims 1 to 4.

6. the secure user environment further includes a second private source of randomness for generating and outputting the fourth sequence of random bits to the two-source randomness extractor; Optionally, the first private source of randomness is the same as or shares an implementation with the second private source of randomness.

6. The encryption system of claim 5.

7. the two-source randomness extractor is configured to generate a perfect randomness seed using the measure of entropy of the first sequence of random bits obtained as part of the proof. An encryption system according to claim 5 or claim 6.

8. the complete entropy of the seed is subject to protocol errors that reflect the probability that an adversary can distinguish the output from a perfectly uniformly distributed one; the probability is less than 2-32, less than 2-64, less than 2-128, or less than 2-256; 8. The encryption system of claim 7.

9. The two-source randomness extractor is the same as the seeded randomness extractor or shares an implementation with the seeded randomness extractor. An encryption system according to any one of claims 1 to 8.

10. At least one of the seeded randomness extractor and the two-source randomness extractor is a robust extractor, and the output of the extractor is independent of either of the two inputs to the extractor. An encryption system according to any one of claims 1 to 9.

11. the seeded randomness extractor is a strong extractor and is capable of using multiple second random bit sequences in succession with the same seed to generate multiple third random bit sequences.

11. The encryption system of claim 10.

12. At least one of the seeded randomness extractor and the two-source randomness extractor is implemented as a Dodis extractor. An encryption system according to any one of claims 1 to 11.

13. At least one of the seeded randomness extractor and the two-source randomness extractor is implemented with complexity ≦O(nlog(n)); Optionally, using number theoretic transformations; An encryption system according to any one of claims 1 to 12.

14. At least one of the first and second private sources of randomness comprises a weak source of randomness, a source of imperfect randomness, a deterministic source of random numbers, a source of pseudorandom numbers, a source of random numbers that does not exhibit quantum behavior, or any combination of the above. An encryption system according to any one of claims 1 to 13.

15. At least one of the second and fourth random bit sequences is generated by a block minimum entropy source; each block containing a fixed number of bits in the random bit string has a particular number of truly random bits that are comparable even if an adversary knew all previous blocks and had a perfect model of the operation of the block's min-entropy source; Optionally, the block minimum entropy source is a Santha-Vazirani source. An encryption system according to any one of claims 1 to 14.

16. performing said proof of quantum behavior using a Bell test to confirm the presence of quantum entanglement as part of the generation of said one or more first sequences of random bits; Optionally, the Bell test is evaluated against a Mermin inequality. An encryption system according to any one of claims 1 to 15.

17. the third sequence of random bits has perfect entropy; Optionally, the full entropy of the seed is subject to a protocol error reflecting the probability that an adversary can distinguish the output from a perfectly uniformly distributed one; the probability is less than 2-32, less than 2-64, less than 2-128, or less than 2-256; An encryption system according to any one of claims 1 to 16.

18. the cryptographic system is implemented within at least one of a trusted execution environment and a separate hardware module or chip of a computer; An encryption system according to any one of claims 1 to 17.

19. 1. A method of operating a cryptographic system including a secure user, comprising: configuring a store containing one or more seeds, each seed containing or generated from a first sequence of random bits that has been certified to have been generated by quantum behavior in a quantum device; configuring a first private source of randomness to generate and output a second sequence of random bits; configuring a seeded randomness extractor to receive a first input comprising a seed from said store and a second input comprising said second sequence of random bits; 1. A method comprising: the randomness extractor is further configured to generate and output a third sequence of random bits in response to a user request; the third sequence of random bits can be used to form an encryption key, the third sequence of random bits having increased entropy compared to the second sequence of random bits. method.

20. 1. A system for providing a random bit sequence for use in one or more cryptographic applications, comprising: a test system configured to receive a first sequence of random bits having a first entropy and to perform tests using the first sequence of random bits to ascertain a quantum behavior in the generation of the first sequence of random bits; a two-source randomness extractor configured to receive a first input including the first random bit sequence whose quantum behavior has been confirmed in the test in generating the first random bit sequence, receive a second input including a second random bit sequence having a second entropy, and generate and output a third random bit sequence derived from the first random bit sequence and the second random bit sequence; Equipped with the third random bit sequence has a third entropy that is amplified to be greater than both the first entropy and the second entropy. system.

21. the system is configured to receive the first random bit sequence over a public network from a source remote from the system; Optionally, the system is configured to authenticate a communication received from the source over the public network, the communication including the first random bit sequence.

21. The system of claim 20.

22. the test being a Bell test for the presence of quantum entanglement as part of the generation of the first sequence of random bits; Optionally, the Bell test is evaluated against a Mermin inequality.

22. A system according to claim 20 or claim 21.

23. the test system is configured to determine a level of entropy of the first sequence of random bits; Optionally, the two-source randomness extractor is configured to use the determined entropy to generate the third sequence of random bits having perfect entropy. A system according to any one of claims 20 to 22.

24. the first random bit sequence is derived from measurements of a plurality of states prepared by a quantum device; A system according to any one of claims 20 to 23.

25. each of the plurality of states to be measured includes three qubits; Optionally, each of the plurality of states to be measured is a Greenberger-Horn-Zeilinger state.

25. The system of claim 24.

26. the test system is configured to execute a set of quantum circuits on a quantum computer; Each quantum circuit is configured to: (i) prepare a state including a number of quantum bits; (ii) perform a measurement on the prepared state, the measurement being taken from a set of a number of possible measurements; and (iii) output, as a measurement result, the measured quantum bit state at an end of the circuit. A system according to any one of claims 20 to 25.

27. said two-source randomness extractor being a robust extractor; the output of the strong two-source randomness extractor, i.e. the third random bit sequence, is independent of both of the two inputs to the strong two-source randomness extractor, i.e. the first random bit sequence and the second random bit sequence, and either the first random bit sequence or the second random bit sequence can be made public without compromising the confidentiality of the third random bit sequence. A system according to any one of claims 20 to 26.

28. the two-source randomness extractor is configured such that the third random bit sequence has full entropy if the first random bit sequence and the second random bit sequence have a combined minimum entropy rate greater than 1.

28. A system according to claim 26 or claim 27.

29. a seeded randomness extractor configured to receive as a seed a first input including the third random bit sequence output by the two-source randomness extractor, receive a second input including a fourth random bit sequence having a fourth entropy less than the third entropy, and generate and output a fifth random bit sequence derived from the third random bit sequence and the fourth random bit sequence; A plurality of fourth random bit sequences may be used in succession with the same seed to generate a plurality of fifth random bit sequences. A system according to any one of claims 20 to 28.

30. the seeded randomness extractor is a strong extractor; the output of the strong seeded randomness extractor, i.e. the fifth random bit sequence, is independent of either of the two inputs to the strong seeded randomness extractor, i.e. the third random bit sequence and the fourth random bit sequence, and can be combined with multiple fourth random bit sequences to generate multiple fifth random bit sequences from the same seed without compromising the secrecy of the seed; Optionally, the number of fifth random bit sequences that can be generated from the same seed is limited by a security parameter.

30. The system of claim 29.

31. a first private random number generator configured to generate the second sequence of random bits and output the second sequence of random bits to the two-source randomness extractor; A system according to any one of claims 20 to 30.

32. a second private random number generator configured to generate the fourth sequence of random bits and output the fourth sequence of random bits to the seeded randomness extractor; the second private random number generator is optionally the same as the first private random number generator or shares an implementation with the first private random number generator.

30. A system as claimed in claim 29 or any claim dependent thereon.

33. 1. An encryption software system as a service for providing encryption keys to a plurality of client users, comprising: a client interface configured to receive a request for an encryption key from a client; a service interface configured to request and receive a first sequence of random bits from the quantum device; at least one processing component configured to perform a test on the first sequence of random bits received from the quantum device to ascertain quantum behavior by the quantum device in generating the received first sequence of random bits, and, provided that the test provides confirmation of quantum behavior, generate one or more encryption keys using the first sequence of random bits, encrypt the one or more encryption keys, and, in response to receiving the request from the client, transmit the encrypted one or more encryption keys to the client via the client interface; A system comprising:

34. 1. A system for generating a random bit sequence, comprising: at least one weak source of randomness configured to generate a first sequence of bits and a second sequence of bits; a quantum device configured to receive one or more of said second bit sequences and to output an associated third bit sequence; a security test system configured to calculate a test statistic using each of the one or more second bit sequences and the associated third bit sequences received by the quantum device; a two-source randomness extractor configured to receive the first and third bit sequences and generate a fourth random bit sequence; Including, the system.

35. 1. A method for generating a random bit sequence, comprising the steps of: Provides a weak source of randomness, providing a quantum device configured to generate a plurality of quantum particles in an entangled quantum state; measuring each of the plurality of quantum particles on a different basis; Determine the level of violation of Bell inequality, determining whether to accept or decline based at least in part on said determined level of non-compliance; extracting said random bit sequence using a two-source randomness extractor; method.

36. 1. A method of operating a system for providing a random bit sequence for use in one or more cryptographic applications, comprising: configuring a test system to receive a first sequence of random bits having a first entropy and to perform tests using the first sequence of random bits to verify quantum behavior in the generation of the first sequence of random bits; 1. A method for generating a two-source randomness extractor comprising: receiving a first input including a first random bit sequence for which the test confirmed quantum behavior in generating the first random bit sequence; receiving a second input including a second random bit sequence having a second entropy; and generating and outputting a third random bit sequence derived from the first random bit sequence and the second random bit sequence, the method comprising: the third random bit sequence has a third entropy that is amplified to be greater than both the first entropy and the second entropy. method.

37. 1. A method of operating an encryption software system as a service for providing encryption keys to client users, comprising: Configure the client interface to receive requests for encryption keys from clients, configuring a service interface to request a first sequence of random bits and receive the first sequence of random bits from the quantum device; configuring at least one processing component to perform a test on the first sequence of random bits received from the quantum device to ascertain quantum behavior by the quantum device in generating the received first sequence of random bits, and, provided that the test provides confirmation of quantum behavior, generate one or more encryption keys using the first sequence of random bits, encrypt the one or more encryption keys, and, in response to receiving the request from the client, transmit the encrypted one or more encryption keys to the client via the client interface. method.