Skip to content

Commit

Permalink
Merge pull request #651 from haimeng-zhang/upgrade-to-qiskit-1.2
Browse files Browse the repository at this point in the history
Resolve the credential authentication issue for the `ibm_cloud` users
  • Loading branch information
rtvuser1 authored Nov 14, 2024
2 parents cc657ee + 84e9130 commit 9665819
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions _common/qiskit/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions benchmarks-qiskit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 9665819

Please sign in to comment.