I have been looking into the creation of truly random numbers using a quantum computer, but I have been having trouble with finding resources on this problem. Is it possible to create a truly random number using a quantum computer?
In theory, my thinking is that we can prepare a qubit in the $|0\rangle$ state, apply a Hadamard to obtain a $|+\rangle$, and then measure in the logical basic to get a 0 with probability $\frac{1}{2}$ and a 1 with probability $\frac{1}{2}$. Repeat the process as many times as you want to create a random number in binary (i.e. 0110001...)
Now there are obviously problems with this practically (regarding the accuracy of our state initiation, Hadamard transform, and measurement). But is the theory correct? In theory can we therefore produce a truly random number using a quantum computer?