Skip to content

Commit ceda69d

Browse files
authored
Deprecate channel strategy (#1931)
* Deprecate channel strategy * add release note * formatting * formatting * Updating wording
1 parent f2108d1 commit ceda69d

File tree

2 files changed

+42
-2
lines changed

2 files changed

+42
-2
lines changed

qiskit_ibm_runtime/qiskit_runtime_service.py

+30-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(
116116
``username_ntlm``, ``password_ntlm`` (username and password to enable NTLM user
117117
authentication)
118118
verify: Whether to verify the server's TLS certificate.
119-
channel_strategy: Error mitigation strategy.
119+
channel_strategy: (DEPRECATED) Error mitigation strategy.
120120
private_endpoint: Connect to private API URL.
121121
url_resolver: Function used to resolve the runtime url.
122122
@@ -128,6 +128,20 @@ def __init__(
128128
"""
129129
super().__init__()
130130

131+
if channel_strategy:
132+
warnings.warn(
133+
(
134+
"As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is "
135+
"deprecated. Q-CTRL Performance Management strategy currently offered "
136+
"on the Qiskit Runtime Service will be removed on 18 October, 2024. "
137+
"To continue using Q-CTRL in your workflow, use one of the following options: "
138+
"Qiskit Functions Catalog: https://quantum.ibm.com/functions, or "
139+
"Fire Opal: https://q-ctrl.com/fire-opal"
140+
),
141+
DeprecationWarning,
142+
stacklevel=2,
143+
)
144+
131145
self._account = self._discover_account(
132146
token=token,
133147
url=url,
@@ -698,12 +712,26 @@ def save_account(
698712
authentication)
699713
verify: Verify the server's TLS certificate.
700714
overwrite: ``True`` if the existing account is to be overwritten.
701-
channel_strategy: Error mitigation strategy.
715+
channel_strategy: (DEPRECATED) Error mitigation strategy.
702716
set_as_default: If ``True``, the account is saved in filename,
703717
as the default account.
704718
private_endpoint: Connect to private API URL.
705719
"""
706720

721+
if channel_strategy:
722+
warnings.warn(
723+
(
724+
"As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is "
725+
"deprecated. Q-CTRL Performance Management strategy currently offered "
726+
"on the Qiskit Runtime Service will be removed on 18 October, 2024."
727+
"To continue using Q-CTRL in your workflow, use one of the following options: "
728+
"Qiskit Functions Catalog: https://quantum.ibm.com/functions, or "
729+
"Fire Opal: https://q-ctrl.com/fire-opal"
730+
),
731+
DeprecationWarning,
732+
stacklevel=2,
733+
)
734+
707735
AccountManager.save(
708736
token=token,
709737
url=url,
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
The ``channel_strategy`` parameter has been deprecated.
2+
The Q-CTRL Performance Management strategy will be removed on October 18th, 2024.
3+
To continue using Q-CTRL in your workflow, please explore the following options:
4+
5+
- If your organization has an existing IBM Quantum Premium Plan instance: migrate to
6+
the Q-CTRL Performance Management Function, found in the
7+
`Qiskit Functions Catalog <https://quantum.ibm.com/functions>`__.
8+
9+
- To continue using Qiskit Runtime with IBM Cloud: migrate to Q-CTRL Fire Opal,
10+
the same performance management product accessible directly through Q-CTRL.
11+
You can `connect your IBM Cloud API key and Qiskit Runtime CRN <https://docs.q-ctrl.com/fire-opal/discover/hardware-providers/how-to-authenticate-with-ibm-credentials>`__
12+
to Fire Opal.

0 commit comments

Comments
 (0)