Your First Quantum Program: Build A Truly Random Number Generator With Qiskit
Get familiar with the Qiskit SDK and get your hands dirty with some Quantum programming
True randomness is challenging to create.
Most random numbers that you see being used in computers are created using deterministic algorithms called Pseudorandom number generators (PRNGs).
For example, Python’s random
library uses the Mersenne Twister algorithm to generate pseudo-random numbers.
This means that they are not truly random. If one knew the exact seed and conditions used to create them, they would be able to create a similar number using the algorithm.
(Quick question. Do you consider a roll of a dice truly random? Be ready to get this belief shattered.)
Can quantum computers help us create a truly random number, then?
The answer is surprisingly — Yes!
Keep reading with a 7-day free trial
Subscribe to Into Quantum to keep reading this post and get 7 days of free access to the full post archives.