• CattyMpanorama_fish_eye
    17 posts
    4 years

    Hi there! I am trying to connect to the IBM quantum computing system from my Jupyter Notebook. I know that one can set it up with API tokens. Can anyone give a step by step guidance?

  • Peachnutspanorama_fish_eye
    8 posts
    4 years

    Hi. You could find the tutorial here.
    You could access your API token in your account setting.
    And then you use this for the first time.

    IBMQ.save_account(TOKEN)
    

    After that, each time you could use

    IBMQ.load_account()
    

    to connect your IBMQ account.
    Hope it helps.

  • Mengpanorama_fish_eye
    22 posts
    4 years

    First, you need to have a IBMQ account so that you can use their QPU cloud service. Register here: quantum-computing.ibm.com/

    • Copy your own API token. In your home page, you can see and copy the token.

    image.png

    • save and load your account in the local device
    from qiskit import IBMQ
    
    IBMQ.save_account(TOKEN)
    IBMQ.load_account() # Load account from disk
    IBMQ.providers()    # List all available providers
    
    • Get a backend

    You can show a list of backends which you can access

    provider = IBMQ.get_provider(hub='ibm-q')
    provider.backends()
    

    Choose one backend from the list

    backend = provider.get_backend('ibmq_vigo')
    backend
    
    • Run your quantum circuit

    Use a tool to help you visualize the queue on QPU

    from qiskit.tools import jupyter
    %qiskit_job_watcher
    

    image.png

    Then run the circuit on the backend!

    backend.run(qc)
    
    image.png

    PNG, 114.7 KB, uploaded by Meng 4 years ago.

    image.png

    PNG, 293.6 KB, uploaded by Meng 4 years ago.

There are no more posts in this thread.

first_page
chevron_left
chevron_right
last_page