Friday, May 31, 2024

Record of getting stated with Qiskit

 I already have an account, and was able to log in.  

  • Go to IBM Quantum Documentation, which tells me I need to install Qiskit.
    • Install video:  https://docs.quantum.ibm.com/start/install
    • In this video, he installs miniconda, but I already have anaconda installed on Physics Laptop 8706.
    • I need to update anaconda - got a temp password for installs from ITS, and updated.
    • Relaunched anaconda
    • Follow:  https://subscription.packtpub.com/book/programming/9781838828448/1/ch01lvl1sec04/installing-qiskit
      • Follow: https://www.geeksforgeeks.org/set-up-virtual-environment-for-python-using-anaconda/
        • Get an anaconda prompt from start menu ("Anaconda prompt")
        • Check the version of conda in the path:  conda -V gives conda 24.5.0
        • conda update conda ---- gives all requested packages already installed
        • conda search “^python$” --- to find installed python versions.  Gives highest version as 3.12.3
      • conda create --name cwq
      • confirm y
      • conda activate cwq
      • pip install qiskit
      • pip install matplotlib
      • pip install qiskit-ibm-runtime
      • pip install qiskit[visualization]
      • pip install jupyter
        • Open notebook as follows:  jupyter notebook path/to/notebook.ipynb 
        • I made a directory in Quantum 200 folder called cwq
      • pip install pylatexenc
  • OK, but maybe I just want to use composer and I do not need qiskit installed?
  • To get to composer
    • Click on "Application Switcher" -> multiple dots upper right (not left) corner.
    • Go to Learning
    • Tools 
    • Quantum Composer
    • OK - I'm up and running, and I think this will be enough.  No need for all the installs, that makes things easier.