Showing posts with label Qiskit. Show all posts
Showing posts with label Qiskit. Show all posts

Friday, March 10, 2023

Qiskit Installation Procedure and Access the IBM Qiskit Account

Qiskit Installation for Windows

1.       Step 1: Download the Anaconda Python installer for Windows.

2.       Step 2: Once the installation is complete, launch the “Anaconda Prompt”

3.       Step 3: In the anaconda prompt, type “pip install qiskit

4.       Step 4:You are all set to launch the Jupyter Notebook by typing the command “jupyter notebook”

5.       Step 5: Let’s create a new Python 3 Notebook by clicking New > Python 3.

This will open a new tab with an editor to write and execute Python programs.

6.       Step 6: Import Qiskit by typing “import qiskit” and hit “Shift+Enter“.

7.       Step 7: Let’s now check the version of Qiskit imported by typing the below line.

qiskit.__qiskit_version__

First Qiskit Program

8.       Step 8: Go to https://quantum-computing.ibm.com/ and sign-up to create your account

9.       Step 9: Upon sign-in, click on the user icon on the top right corner and select "My Account"

10.   Step 10: Click the "Copy token" (blue button) to copy your API token to the clipboard.

11.   Step 11: Let us now go ahead and import IBMQ from Qiskit by typing the below line in the Jupyter Notebook and hit “Shift+Enter

 

You now have an IBM Q Experience’s API token, so let’s save that to your computer by typing the below line and hit “Shift+Enter

 

IBMQ.save_account('<YOUR-IBM-API-TOKEN>')

 

12.   Step 13: To see that we have connected to the IBM’s Quantum devices, type the below code in the Notebook and hit “Shift+Enter

 

IBMQ.load_account()