From 53600e651569e4636144635ed99d23b5bf225894 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Wed, 18 Sep 2024 11:33:28 -0400 Subject: [PATCH 1/5] Deprecate channel strategy --- qiskit_ibm_runtime/qiskit_runtime_service.py | 30 ++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index ffe37ec16..cd4fb1bee 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -116,7 +116,7 @@ def __init__( ``username_ntlm``, ``password_ntlm`` (username and password to enable NTLM user authentication) verify: Whether to verify the server's TLS certificate. - channel_strategy: Error mitigation strategy. + channel_strategy: (DEPRECATED) Error mitigation strategy. private_endpoint: Connect to private API URL. url_resolver: Function used to resolve the runtime url. @@ -128,6 +128,19 @@ def __init__( """ super().__init__() + if channel_strategy: + warnings.warn( + ( + "The channel_strategy parameter is now deprecated. " + "The Q-CTRL Performance Management strategy will be removed on October 18th. " + "To continue using Q-CTRL in your workflow, use one of the following options: " + "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " + "Fire Opal: https://q-ctrl.com/fire-opal" + ), + DeprecationWarning, + stacklevel=2, + ) + self._account = self._discover_account( token=token, url=url, @@ -698,12 +711,25 @@ def save_account( authentication) verify: Verify the server's TLS certificate. overwrite: ``True`` if the existing account is to be overwritten. - channel_strategy: Error mitigation strategy. + channel_strategy: (DEPRECATED) Error mitigation strategy. set_as_default: If ``True``, the account is saved in filename, as the default account. private_endpoint: Connect to private API URL. """ + if channel_strategy: + warnings.warn( + ( + "The channel_strategy parameter is now deprecated. " + "The Q-CTRL Performance Management strategy will be removed on October 18th. " + "To continue using Q-CTRL in your workflow, use one of the following options: " + "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " + "Fire Opal: https://q-ctrl.com/fire-opal" + ), + DeprecationWarning, + stacklevel=2, + ) + AccountManager.save( token=token, url=url, From 716e5e8feac784fed6e20ea30cd81408e6ffaf8d Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Wed, 18 Sep 2024 11:40:50 -0400 Subject: [PATCH 2/5] add release note --- qiskit_ibm_runtime/qiskit_runtime_service.py | 4 ++-- release-notes/unreleased/1931.deprecation.rst | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 release-notes/unreleased/1931.deprecation.rst diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index cd4fb1bee..3c119b5b4 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -131,7 +131,7 @@ def __init__( if channel_strategy: warnings.warn( ( - "The channel_strategy parameter is now deprecated. " + "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is deprecated. " "The Q-CTRL Performance Management strategy will be removed on October 18th. " "To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " @@ -720,7 +720,7 @@ def save_account( if channel_strategy: warnings.warn( ( - "The channel_strategy parameter is now deprecated. " + "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is deprecated. " "The Q-CTRL Performance Management strategy will be removed on October 18th. " "To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " diff --git a/release-notes/unreleased/1931.deprecation.rst b/release-notes/unreleased/1931.deprecation.rst new file mode 100644 index 000000000..440b171f6 --- /dev/null +++ b/release-notes/unreleased/1931.deprecation.rst @@ -0,0 +1,6 @@ +The ``channel_strategy`` parameter has been deprecated. +The Q-CTRL Performance Management strategy will be removed on October 18th. +To continue using Q-CTRL in your workflow, please explore the following options: + +- Qiskit Functions Catalog: https://quantum.ibm.com/functions +- Fire Opal: https://q-ctrl.com/fire-opal \ No newline at end of file From 18e8aa962c3b547039d2c665ad4d8d9a70705e52 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Wed, 18 Sep 2024 11:46:31 -0400 Subject: [PATCH 3/5] formatting --- qiskit_ibm_runtime/qiskit_runtime_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index 3c119b5b4..3642fac96 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -131,8 +131,8 @@ def __init__( if channel_strategy: warnings.warn( ( - "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is deprecated. " - "The Q-CTRL Performance Management strategy will be removed on October 18th. " + "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is " + "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th. " "To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " "Fire Opal: https://q-ctrl.com/fire-opal" @@ -720,8 +720,8 @@ def save_account( if channel_strategy: warnings.warn( ( - "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is deprecated. " - "The Q-CTRL Performance Management strategy will be removed on October 18th. " + "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is " + "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th. " "To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " "Fire Opal: https://q-ctrl.com/fire-opal" From 135f662843111b3296a07496dc8e1b06ef5b5813 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Wed, 18 Sep 2024 11:51:17 -0400 Subject: [PATCH 4/5] formatting --- qiskit_ibm_runtime/qiskit_runtime_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index 3642fac96..3b7c606df 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -132,8 +132,8 @@ def __init__( warnings.warn( ( "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is " - "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th. " - "To continue using Q-CTRL in your workflow, use one of the following options: " + "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th" + ". To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " "Fire Opal: https://q-ctrl.com/fire-opal" ), @@ -721,8 +721,8 @@ def save_account( warnings.warn( ( "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is " - "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th. " - "To continue using Q-CTRL in your workflow, use one of the following options: " + "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th" + ". To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " "Fire Opal: https://q-ctrl.com/fire-opal" ), From 1411a2c2a5e6a672b601c7f5d02ad3c9e9dfeed3 Mon Sep 17 00:00:00 2001 From: kevin-tian Date: Wed, 18 Sep 2024 14:17:12 -0400 Subject: [PATCH 5/5] Updating wording --- qiskit_ibm_runtime/qiskit_runtime_service.py | 10 ++++++---- release-notes/unreleased/1931.deprecation.rst | 12 +++++++++--- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/qiskit_ibm_runtime/qiskit_runtime_service.py b/qiskit_ibm_runtime/qiskit_runtime_service.py index 3b7c606df..21219e0fb 100644 --- a/qiskit_ibm_runtime/qiskit_runtime_service.py +++ b/qiskit_ibm_runtime/qiskit_runtime_service.py @@ -132,8 +132,9 @@ def __init__( warnings.warn( ( "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is " - "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th" - ". To continue using Q-CTRL in your workflow, use one of the following options: " + "deprecated. Q-CTRL Performance Management strategy currently offered " + "on the Qiskit Runtime Service will be removed on 18 October, 2024. " + "To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " "Fire Opal: https://q-ctrl.com/fire-opal" ), @@ -721,8 +722,9 @@ def save_account( warnings.warn( ( "As of qiskit-ibm-runtime version 0.30.0, the channel_strategy parameter is " - "deprecated. Q-CTRL Performance Management strategy will be removed on October 18th" - ". To continue using Q-CTRL in your workflow, use one of the following options: " + "deprecated. Q-CTRL Performance Management strategy currently offered " + "on the Qiskit Runtime Service will be removed on 18 October, 2024." + "To continue using Q-CTRL in your workflow, use one of the following options: " "Qiskit Functions Catalog: https://quantum.ibm.com/functions, or " "Fire Opal: https://q-ctrl.com/fire-opal" ), diff --git a/release-notes/unreleased/1931.deprecation.rst b/release-notes/unreleased/1931.deprecation.rst index 440b171f6..ab71bf8cf 100644 --- a/release-notes/unreleased/1931.deprecation.rst +++ b/release-notes/unreleased/1931.deprecation.rst @@ -1,6 +1,12 @@ The ``channel_strategy`` parameter has been deprecated. -The Q-CTRL Performance Management strategy will be removed on October 18th. +The Q-CTRL Performance Management strategy will be removed on October 18th, 2024. To continue using Q-CTRL in your workflow, please explore the following options: -- Qiskit Functions Catalog: https://quantum.ibm.com/functions -- Fire Opal: https://q-ctrl.com/fire-opal \ No newline at end of file +- If your organization has an existing IBM Quantum Premium Plan instance: migrate to +the Q-CTRL Performance Management Function, found in the +`Qiskit Functions Catalog `__. + +- To continue using Qiskit Runtime with IBM Cloud: migrate to Q-CTRL Fire Opal, +the same performance management product accessible directly through Q-CTRL. +You can `connect your IBM Cloud API key and Qiskit Runtime CRN `__ +to Fire Opal. \ No newline at end of file