Certified infinite randomness expansion
Randomness expansion is a protocol for Quantum Random Number Generator which takes as input a private, uniformly random string and outputs a longer string which is (close to) private and uniformly random. The protocol of Courdon and Yuen enables randomness expansion of such an input using eight identical untrusted (i.e. provided by an adversary) measurement devices. The protocol is able to extend the string to any desired length as the output of one iteration can be fed back into another iteration by ensuring that at each stage the intermediate output is private from the devices which produced it and independent of the input that seeded it. Privacy and uniformity of the final output is dependent on the length of the input string.
Such a protocol is useful in the case where one already has access to a private source for true randomness, but whose use is prohibitively expensive or whose access is limited. By applying randomness expansion, it is possible to make this resource go further using potentially much cheaper or more simple methods.
Tags: Building Blocks, Quantum Functionality, Specific Task
Assumptions
- Quantum theory is correct.
- The measurement devices do not interact during measurements.
- The measurement devices are not correlated with the input string.
Outline
In this protocol, Alice has her initial private random string (the seed) and has been provided with eight identical measurement devices by Eve. Each of the devices has four settings and can produce two outputs. Alice first groups these devices into two `clusters', each containing four devices. With her seed as the initial input, she then iterates through a repeated procedure of passing a string to one of the clusters, performing a set of subroutines (defined below), then passing the output of this to the other cluster, where the same subroutines are carried out. She is free to stop the process at on any cluster output (though the whole protocol may abort prematurely if privacy can no longer be guaranteed).
Each passage through one cluster corresponds to the application of two sub-protocols: one to expand the length of the input string, and the other to generate a new, private string. The second step reduces the length of the output from the first, but by a significantly smaller factor so overall the length is still increased. As the output is private, it can be used to seed a repeated application of the protocol.
The clusters themselves are also used in pairs. First, two of the devices are used to apply the protocol of Vazirani and Vidick. First, Alice splits her input string into two equal portions and stashes the second half for later use. Using the first half as a source of randomness for making probabilistic decisions, she performs an adaptation of the CHSH game. In this version, both of her devices can make four measurements, in the original game corresponding to:
- The honest measurement that party A would make given an input of 0
- The honest measurement that party A would make given an input of 1
- The honest measurement that party B would make given an input of 0
- The honest measurement that party B would make given an input of 1
Alice must first set up a series of `blocks` with size and count related to the confidence with which she seeks protocol correctness - these are effectively tables for storing her measurement results. She then designates a subset of these to be `Bell blocks` with probability determined by the count she has chosen. This selection is done at random using some of her input seed to generate indices.
To perform the game, Alice steps through each block in turn. If a given block has not been designated as a Bell block, for each position in the block she has her devices prepare an EPR pair entangled across themselves and measures both qubits with the same setting applied to each device. If her results from each device do not perfectly match, she aborts the protocol as this implies the devices contain something other than an EPR pair. For any block that has been designated as a Bell block, she first takes two bits from her seed and uses these to determine measurement settings: if the first is zero she applies the setting corresponding to measurement (1.) from above, if if is one she applies setting (2.). For the second device, if the second bit is zero she also applies setting (1.), if it is one she applies setting (4.). For each position in the block she has her devices prepare and EPR pair as above and measures with in the prior settings applied. As the outcomes are now correlated but stochastic, she accepts if the agreement of her results are within some threshold.
Having completed the adapted CHSH game, Alice concatenates all of her measurement results into a single output string. To remove any correlations this may have with an eavesdropper, she passes this string to a quantum-strong randomness extractor, using the remaining half of the initial input as a seed. The resulting output is an exponentially expanded, still (close to) uniformly random and private string.
This string is then used as the input to another (thankfully much simpler) protocol: using the other two devices in the cluster, Alice plays a standard CHSH game. The string is split into a half and two quarters. Until her seeds have been exhausted, Alice has her devices prepare an EPR state then makes a measurement based on the next bit in each of the seed quarters - for example, if the next bits taken from each sections are 0 and 1, then the first device will be set to (1.) as described above and the second to (4.). Once the game has been completed, she compares the results obtained from each: if they are not close to the results that would have been obtained with the private quantum strategy then she aborts the protocol. If the protocol is not aborted, Alice divides up the measurement results from her first device into a series of equal sized chunks and, using the remaining half-string of seed to generate a random index, selects one of these chunks to be returned as the protocol output.
The above constitutes one full run through a single `cluster expansion` step. This can then be repeated by Alice indefinitely, with the output of each step being used as the input to the next, so long as she alternates between the clusters she uses.
Notation
- : initial private random seed
- : number of protocol iterations
- : final randomness expanded string
- : -th measurement device
- : set of all measurement devices
- : measurement setting for device 1 on iteration
- : measurement setting for device 2 on iteration
- : measurement result for device 1 on iteration
- : measurement result for device 2 on iteration
- : string (or array) of measurement results
- : randomness expanded string after iteration
- : final randomness expanded string
- : tuple of measurement bases for CHSH party A;
- : tuple of measurement bases for CHSH party B;
- : strong seeded (classical) randomness extractor
- : parameter to control block size and count in
- : parameter to control block count in
- : block size in
- : block count in
- : Boolean array marking blocks as Bell blocks in
- : Hadamard distance in
- : number of measurement iterations in
- : number of blocks in which to divide the output string in
- : CHSH game win count in
- : output block start index in
- : output block end index in
Requirements
- Network stage: Entanglement Distribution
- Random number generator
- Authenticated quantum channel
- Authenticated classical channel
- Hardware:
- Multi qubit non-separable state preparation
- Single qubit measurement
- Single qubit gates
Properties
- Requires eight measurement devices.
- Devices can be untrusted.
- Length of expanded string unbounded: for iterations the output length is a -height tower of exponential - i.e. two to the power of two to the power of two ... to the power of .
- Uniformity of final string dependent on input length - the distance of the output from uniform is .
Pseudocode
Input: , , , ,
Output:
- to :
With the following subroutines defined:
clusterExpansion
Input: , , , ,
Output:
VVExpansion
Input: , , ,
Output:
- split evenly into
- initialise array of length
- For to :
- set with probability (seed with $t^{(1)}</math>)
- For to do initialise array of length
- If :
- For to :
- prepare state and share across devices and
- measurement results from device in basis
- measurement results from device in basis
- If :
- For to :
- Else:
- draw next random bit from
- draw next random bit from
- set device to
- set device to
- For Failed to parse (syntax error): {\displaystyle j\leftarrow1</ma}th> to <math>\kappa}
:
- prepare state and share across devices and
- measurement results from device in set basis
- measurement results from device in set basis
- If and and :
- If and :
- If and and ( or ):
- If :
- flatten into array of bits
RUVExpansion
Input: , ,
Output:
- split
- initialise arrays of length
- :
- prepare state and share across devices and
- measurement result from device
- measurement result from device
- If :
- If :
- \textbf{abort}
- random number in range $\{0...n/N-1\}</math> (seed using $t^{(2)}</math>)
- random number in range $\{1...\sqrt{N}-1\}</math> (seed using $t^{(2)}</math>)
- initialise array of length
- For to :