The following is an example of configuring your IBM Runtime environment. You will fist need to have made an account at quantum.ibm.com using your RPI email address as the account name. Do not use your RPI password when making the account.
from qiskit_ibm_runtime import QiskitRuntimeService
# Save an IBM Quantum account and set it as your default account.
QiskitRuntimeService.save_account(
channel="ibm_quantum",
# Replace everything between "" with the your instance.
# General is the lowest priority instance
instance="rpi-rensselaer/general/general",
# Replace everything between "" with your API Token
token="YOUR TOKEN",
set_as_default=True,
overwrite=True,
)
#To use the saved runtime, start your programs with:
service = QiskitRuntimeService()
backend = service.backend("ibm_rensselaer", instance="rpi-rensselaer/general/general")
# Rumtimes an be also be named
QiskitRuntimeService.save_account(
name="CS102",
channel="ibm_quantum",
instance="rpi-rensselaer/class/cs102",
# Replace everything between "" with your API Token
token="YOUR TOKEN",
set_as_default=True,
overwrite=True,
)
# To see the list of saved accounts:
service.saved_accounts()
Comments
0 comments
Article is closed for comments.