This report aims to examine whether quantum computers can generate true unbiased random numbers. 12.5 MB of data was generated by a quantum computer provided by IBM. This data was then analyzed with the TestU01 test suite to check if it could be considered to come from an unbiased source of randomness. The data was also checked for frequency of binary ones over time, as well as if the frequency of ones was within what was expected. Most tests in the TestU01 test suite gave too low of a p-value, meaning the hypothesis that the numbers generated by the quantum computer is random can be rejected. We also saw that the frequency of ones deviated too much from the expected frequency, and that the bias in the qubits changed over time. We therefore determined that the quantum computer we used is not a good tool for generating random numbers.
Den här raporten ämnar att undersöka om en kvantdator kan användas för att generera slumptal. 12.5MB genererades av en kvantdator från IBM. Datan analyserades med hjälp av testsviten TestU01 för att undersöka ifall den kom från en slumpkälla utan bias. Frekvensen av binära ettor i datan över tid undersöktes också. Samt ifall den slutliga frekvensen var inom ett förväntat intervall. De flesta testerna från TestU01 gav ett för lågt p-värde, vilket betyder att vi kan förkasta hypotesen om att talen som generades från kvantdatorn var slumpade. Vi såg också att frekvensen av ettor avvek för mycket från den förväntade frekvensen och att bias hos kvantbitarna ändrades över tiden. Vi drar därför slutsatsen att kvantdatorn vi undersökte inte är ett bra verktyg för att generera slumptal.