diff --git a/_common/qiskit/execute.py b/_common/qiskit/execute.py index 01a3f55a..39265f4b 100644 --- a/_common/qiskit/execute.py +++ b/_common/qiskit/execute.py @@ -379,12 +379,12 @@ def set_execution_target(backend_id='qasm_simulator', Session ) - if use_ibm_quantum_platform or hub and group and project: - channel = "ibm_quantum" - instance = f"{hub}/{group}/{project}" - else: + if not use_ibm_quantum_platform: channel = "ibm_cloud" instance = None + else: + channel = "ibm_quantum" + instance = f"{hub}/{group}/{project}" print(f"... using Qiskit Runtime {channel=} {instance=}") backend_name = backend_id diff --git a/benchmarks-qiskit.ipynb b/benchmarks-qiskit.ipynb index b5daec5e..127321d6 100644 --- a/benchmarks-qiskit.ipynb +++ b/benchmarks-qiskit.ipynb @@ -31,8 +31,8 @@ "\n", "# # ==========================\n", "# # *** If using IBMQ hardware, run this once to authenticate\n", - "# from qiskit import IBMQ\n", - "# IBMQ.save_account('YOUR_API_TOKEN_HERE')\n", + "# from qiskit_ibm_runtime import QiskitRuntimeService\n", + "# QiskitRuntimeService.save_account('YOUR_API_TOKEN_HERE')\n", "\n", "# # *** If you are part of an IBMQ group, set hub, group, and project name here\n", "# hub=\"YOUR_HUB_NAME\"; group=\"YOUR_GROUP_NAME\"; project=\"YOUR_PROJECT_NAME\"\n",