You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new channel and allow instance selection with new platform (#2239)
* add new channel name & deprecate ibm_cloud
* wip cloud account prefs
* save account & backend logic
* fix service.backends() logic
* fix backends() logic, add plan filter, address comments
* more docs, still use ibm_cloud in examples
* refactor logic, new discussed implentation
* update release note
* allow init with no instance
* refactor/cleanup
* support instance as name
* add & fix tests
* refactor no instance case
* add warning msg and docs for account_id
* update tests and docs
* fix account preferences & add test
* allow instance name in backend(), handle instances w same name
* set default channel, cache backend objs
* update instances() & IQP classic fixes
* update unit tests
* fix staging
* add try/except for invalid instances
* update integration tests
* remove account_id & fix plan name logic
* fix staging & simplify urls
* * Allow for multiple clients within a QiskitRuntimeService
* Confirm they work for job and session retrieval
* Update docstrings to include all channels and clarify when methods are used
* Update deprecation messages to fit docstrings
* Fix unit tests
* Update mocks
* Refactor backends method
* Refactor job retrieval
* Add distinct urls for ibm_quantum_platform and ibm_cloud
* Remove resolve_crn
* Error on wrong plan list
* Update link
* Fix error msg
* Follow-ups
* URL resolution
* Fix URL resolution with ibm_quantum_platform. Region needs to be specified for non-default regions (non-US)
* fix typing & lint
* fix instance check & new iqp url
* update release note
* update new iqp url logic
* Improve documentation of instances() method
* Release note edits
* Minimize new client creation
---------
Co-authored-by: ElePT <epenatap@gmail.com>
Co-authored-by: Elena Peña Tapia <57907331+ElePT@users.noreply.github.com>
### Qiskit Runtime service on IBM Quantum Platform
32
32
33
+
| :warning: The ibm_quantum channel option is deprecated and will be sunset on 1 July. For help migrating to the ibm_cloud channel, read the [migration guide.](https://quantum.cloud.ibm.com/docs/migration-guides/classic-iqp-to-cloud-iqp)
34
+
|:---------------------------|
35
+
33
36
You will need your IBM Quantum API token to authenticate with the runtime service:
34
37
35
38
1. Create an IBM Quantum account or log in to your existing account by visiting the [IBM Quantum login page].
36
39
37
-
1. Copy (and optionally regenerate) your API token from your
40
+
2. Copy (and optionally regenerate) your API token from your
38
41
[IBM Quantum account page].
39
42
40
43
### Qiskit Runtime service on IBM Cloud
@@ -60,8 +63,9 @@ from qiskit_ibm_runtime import QiskitRuntimeService
| :warning: The ibm_quantum channel option is deprecated and will be sunset on 1 July. For help migrating to the ibm_cloud channel, read the [migration guide.](https://quantum.cloud.ibm.com/docs/migration-guides/classic-iqp-to-cloud-iqp)
105
-
|:---------------------------|
106
-
107
105
## Primitives
108
106
109
107
All quantum applications and algorithms level are fundamentally built using these steps:
@@ -281,23 +279,23 @@ This code returns `Job result is [4.] at theta = 1.575674623307102` using only n
281
279
282
280
Access to IBM Quantum Platform channel is controlled by the instances (previously called providers) to which you are assigned. An instance is defined by a hierarchical organization of hub, group, and project. A hub is the top level of a given hierarchy (organization) and contains within it one or more groups. These groups are in turn populated with projects. The combination of hub/group/project is called an instance. Users can belong to more than one instance at any time.
283
281
284
-
> **_NOTE:_** IBM Cloud instances are different from IBM Quantum Platform instances. IBM Cloud does not use the hub/group/project structure for user management. To view and create IBM Cloud instances, visit the [IBM Cloud Quantum Instances page](https://cloud.ibm.com/quantum/instances).
282
+
> **_NOTE:_** IBM Cloud instances are different from IBM Quantum Platform classic instances. IBM Cloud does not use the hub/group/project structure for user management. To view and create IBM Cloud instances, visit the [IBM Cloud Quantum Instances page](https://cloud.ibm.com/quantum/instances).
285
283
286
284
To view a list of your instances, visit your [account settings page](https://www.quantum.ibm.com/account) or use the `instances()` method.
287
285
288
286
You can specify an instance when initializing the service or provider, or when picking a backend:
289
287
290
288
```python
291
289
# Optional: List all the instances you can access.
292
-
service = QiskitRuntimeService(channel='ibm_quantum')
290
+
service = QiskitRuntimeService(channel='ibm_cloud')
293
291
print(service.instances())
294
292
295
293
# Optional: Specify the instance at service level. This becomes the default unless overwritten.
296
-
service = QiskitRuntimeService(channel='ibm_quantum', instance="hub1/group1/project1")
294
+
service = QiskitRuntimeService(channel='ibm_cloud', instance="IBM_CLOUD_INSTANCE")
297
295
backend1 = service.backend("ibmq_manila")
298
296
299
297
# Optional: Specify the instance at the backend level, which overwrites the service-level specification when this backend is used.
0 commit comments