Elsevier Science Home
Computer Physics Communications Program Library
Full text online from Science Direct
Programs in Physics & Physical Chemistry
CPC Home

[Licence| Download | New Version Template] aeka_v2_0.tar.gz(246 Kbytes)
Manuscript Title: Employing online quantum random number generators for generating truly random quantum states in Mathematica
Authors: Jaroslaw Adam Miszczak
Program title: TRQS
Catalogue identifier: AEKA_v2_0
Distribution format: tar.gz
Journal reference: Comput. Phys. Commun. 184(2013)257
Programming language: Mathematica, C.
Computer: Any supporting Mathematica in version 7 or higher.
Operating system: Any platform supporting Mathematica; tested with GNU/Linux (32 and 64 bit).
RAM: Case-dependent
Supplementary material: Figure 1 mentioned below can be downloaded.
Keywords: Random density matrices, Quantum information, Quantum random number generator, On-line quantum random number generator service.
PACS: 03.67.-a, 02.70.Wz, 07.05.Tp.
Classification: 4.15.

External routines: Quantis software library (http://www.idquantique.com/support/quantis-trng.html)

Does the new version supersede the previous version?: Yes

Nature of problem:
Generation of random density matrices and utilization of high-quality random numbers for the purpose of computer simulation.

Solution method:
Use of a physical quantum random number generator and an on-line service providing access to the source of true random numbers generated by quantum real number generator.

Reasons for new version:
Added support for the high-speed on-line quantum random number generator and improved methods for retrieving lists of random numbers.

Summary of revisions:
The presented version provides two signicant improvements. The first one is the ability to use the on-line Quantum Random Number Generation service developed by PicoQuant GmbH and the Nano-Optics groups at the Department of Physics of Humboldt University. The on-line service supported in the version 2.0 of the TRQS package provides faster access to true randomness sources constructed using the laws of quantum physics. The service is freely available at https://qrng.physik.hu-berlin.de/. The use of this service allows using the presented package with the need of a physical quantum random number generator.
The second improvement introduced in this version is the ability to retrieve arrays of random data directly for the used source. This increases the speed of the random number generation, especially in the case of an on-line service, where it reduces the time necessary to establish the connection. Thanks to the speed improvement of the presented version, the package can now be used in simulations requiring larger amount of random data. Moreover, the functions for generating random numbers provided by current version of the package more closely follow the pattern of functions for generating pseudo-random numbers provided in Mathematica.

Additional comments:
Speed comparison: The implementation of the support for QRNG on-line service provides a noticeable improvement in the speed of random number generation. For the samples of real numbers of size 101; 102,...,107 the times required to generate these samples using Quantis USB device and QRNG service are compared in Fig. 1. The presented results show that the use of on-line service provides faster access to random numbers. One should note, however, that the speed gain can increase or decrease depending on the connection speed between the computer and the server providing random numbers.

Running time:
Depends on the used source of randomness and the amount of random data used in the experiment.

[1] M. Wahl, M. Leifgen, M. Berlin, T. Röhlicke, H.-J. Rahn, O. Benson., An ultrafast quantum random number generator with provably bounded output bias based on photon arrival time measurements, Applied Physics Letters, Vol. 098, 171105 (2011). DOI:10.1063/1.3578456