Skip to content

Commit c3f6673

Browse files
authored
Merge branch 'main' into remove-iqp-classic-tests
2 parents eb3bb46 + e458c67 commit c3f6673

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1049
-309
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,10 @@ When a single backend is retrieved with the `instance` parameter,
141141
142142
.. code:: python
143143
144-
service.backend('ibm_torino', instance='ibm-q/open/main')
145-
# raises error if torino is not in ibm-q/open/main but in a different instance
144+
service.backend('ibm_torino', instance='IBM_CLOUD_INSTANCE')
145+
# raises error if torino is not in given instance but in a different instance
146146
# the user has access to
147-
service = QiskitRuntimeService(channel="ibm_quantum", instance="ibm-q/open/main")
147+
service = QiskitRuntimeService(channel="ibm_cloud", instance="IBM_CLOUD_INSTANCE")
148148
service.backend('ibm_torino') # raises the same error
149149
150150
if the backend is not in the instance, but in a different one the user
@@ -213,20 +213,13 @@ make integration-test
213213

214214
###### Configuration
215215

216-
Integration tests require an environment configuration and can be run against both IBM Quantum APIs (`ibm_quantum`, and `ibm_cloud`).
216+
Integration tests require an environment configuration and can be run against the IBM Quantum Platform API
217+
(`ibm_quantum_platform` channel).
217218

218-
Sample configuration for IBM Quantum
219-
```bash
220-
QISKIT_IBM_TOKEN=... # IBM Quantum API token
221-
QISKIT_IBM_URL=https://auth.quantum.ibm.com/api # IBM Quantum API URL
222-
QISKIT_IBM_INSTANCE=ibm-q/open/main # IBM Quantum provider to use (hub/group/project)
223-
QISKIT_IBM_QPU=... # IBM Quantum Processing Unit to use
224-
```
225-
226-
Sample configuration for IBM Cloud
219+
Sample configuration for IBM Cloud (ibm_quantum_platform)
227220
```bash
228221
QISKIT_IBM_TOKEN=... # IBM Cloud API key
229-
QISKIT_IBM_URL=https://cloud.ibm.com # Cloud URL
222+
QISKIT_IBM_URL=https://quantum.cloud.ibm.com # Cloud URL
230223
QISKIT_IBM_INSTANCE=crn:v1:bluemix:... # The CRN value of the Quantum service instance
231224
QISKIT_IBM_QPU=... # The Quantum Processing Unit to use
232225
```

README.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,14 @@ pip install qiskit-ibm-runtime
3030

3131
### Qiskit Runtime service on IBM Quantum Platform
3232

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+
3336
You will need your IBM Quantum API token to authenticate with the runtime service:
3437

3538
1. Create an IBM Quantum account or log in to your existing account by visiting the [IBM Quantum login page].
3639

37-
1. Copy (and optionally regenerate) your API token from your
40+
2. Copy (and optionally regenerate) your API token from your
3841
[IBM Quantum account page].
3942

4043
### Qiskit Runtime service on IBM Cloud
@@ -60,8 +63,9 @@ from qiskit_ibm_runtime import QiskitRuntimeService
6063
# Save an IBM Cloud account.
6164
QiskitRuntimeService.save_account(channel="ibm_cloud", token="MY_IBM_CLOUD_API_KEY", instance="MY_IBM_CLOUD_CRN")
6265

63-
# Save an IBM Quantum account.
64-
QiskitRuntimeService.save_account(channel="ibm_quantum", token="MY_IBM_QUANTUM_TOKEN")
66+
# 'ibm_quantum_platform' and 'ibm_cloud' point to the same channel so they can be used interchangeably
67+
# In a future releases 'ibm_cloud' will be deprecated and removed in favor of 'ibm_quantum_platform'
68+
QiskitRuntimeService.save_account(channel="ibm_quantum_platform", token="MY_IBM_CLOUD_API_KEY", instance="MY_IBM_CLOUD_CRN")
6569
```
6670

6771
Once the account is saved on disk, you can instantiate the service without any arguments:
@@ -96,14 +100,8 @@ from qiskit_ibm_runtime import QiskitRuntimeService
96100

97101
# For an IBM Cloud account.
98102
ibm_cloud_service = QiskitRuntimeService(channel="ibm_cloud", token="MY_IBM_CLOUD_API_KEY", instance="MY_IBM_CLOUD_CRN")
99-
100-
# For an IBM Quantum account.
101-
ibm_quantum_service = QiskitRuntimeService(channel="ibm_quantum", token="MY_IBM_QUANTUM_TOKEN")
102103
```
103104

104-
| :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-
107105
## Primitives
108106

109107
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
281279

282280
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.
283281

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).
285283
286284
To view a list of your instances, visit your [account settings page](https://www.quantum.ibm.com/account) or use the `instances()` method.
287285

288286
You can specify an instance when initializing the service or provider, or when picking a backend:
289287

290288
```python
291289
# Optional: List all the instances you can access.
292-
service = QiskitRuntimeService(channel='ibm_quantum')
290+
service = QiskitRuntimeService(channel='ibm_cloud')
293291
print(service.instances())
294292

295293
# 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")
297295
backend1 = service.backend("ibmq_manila")
298296

299297
# Optional: Specify the instance at the backend level, which overwrites the service-level specification when this backend is used.
300-
backend2 = service.backend("ibmq_manila", instance="hub2/group2/project2")
298+
backend2 = service.backend("ibmq_manila", instance="IBM_CLOUD_INSTANCE")
301299

302300
sampler1 = Sampler(mode=backend1) # this will use hub1/group1/project1
303301
sampler2 = Sampler(mode=backend2) # this will use hub2/group2/project2

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
# The short X.Y version
2828
version = ''
2929
# The full version, including alpha/beta/rc tags
30-
release = '0.39.0'
30+
release = '0.40.0'
3131

3232
# -- General configuration ---------------------------------------------------
3333

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ zip-safe = false
5050
root = "."
5151
write_to = "qiskit_ibm_runtime/VERSION.txt"
5252
version_scheme = "release-branch-semver"
53-
fallback_version = "0.39.0"
53+
fallback_version = "0.40.0"
5454

5555
[project]
5656
name = "qiskit-ibm-runtime"

qiskit_ibm_runtime/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@
143143
can use the :meth:`QiskitRuntimeService.save_account` method to save the credentials
144144
on disk.
145145
146-
Qiskit Runtime is available on both IBM Cloud and IBM Quantum, and you can specify
147-
``channel="ibm_cloud"`` for IBM Cloud and ``channel="ibm_quantum"`` for IBM Quantum. The default
148-
is IBM Cloud.
146+
Qiskit Runtime is available on IBM Cloud, and you can specify the channel with
147+
``channel="ibm_cloud"`` or ``channel="ibm_quantum_platform"``.
149148
150149
Runtime Jobs
151150
------------

qiskit_ibm_runtime/accounts/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
Account management functionality related to the IBM Runtime Services.
1515
"""
1616

17-
from .account import Account, AccountType, ChannelType
17+
from .account import Account, AccountType, ChannelType, RegionType, PlanType
1818
from .management import AccountManager
1919
from .exceptions import (
2020
AccountNotFoundError,

0 commit comments

Comments
 (0)