This python script explains how classical computations can be done using Quantum gates. It generates a random number using Quantum computation.
-
Intially register at IBM quantum computing
-
Go to my account section located in top-right where you will find your credentials and information on how to run Qiskit package locally.
-
Additionally, I have included a section in comments for you to save your account. I recommend to setup a virtual environment for it, so you can easily uninstall packages if you do not want to use them further.
python Quant_random.py
In case you want to setup a virtual environment. Read this.
Before running the script, just install qiskit for python using this command:
pip install qiskit
Happy Quantuming.