RockPaperScissorsQuantum.py README
Creator: John Gers
Initial Steps:
-
Run the following command to setup an Anaconda environment:
conda create -n name_of_my_env python=3
Press y to proceed
-
Activate the environment with this command:
source activate name_of_my_env
-
Install the necessary package:
pip install qiskit
-
Run the program with the following command:
python RockPaperScissorsQuantum.py
POTENTIAL PROBLEM: If you are not authorized to use the IBM Quantum Computer, then you will have to make an account and acquire the api token. Then you will have to add the following line of code to the python file before line 94 where the account is loaded.
IBMQ.save_account('MY_API_TOKEN',overwrite=true)
Running it at a later time:
-
Activate the environment with this command:
source activate name_of_my_env
-
Run the program with the following command:
python RockPaperScissorsQuantum.py
Sample output: