Skip to content

Commit

Permalink
Deprecate service.runtime (#1278)
Browse files Browse the repository at this point in the history
* Deprecate service.runtime

* add reno
  • Loading branch information
kt474 authored Dec 18, 2023
1 parent 7173af8 commit bdbbade
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions qiskit_ibm_runtime/qiskit_runtime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
from .api.client_parameters import ClientParameters
from .runtime_options import RuntimeOptions
from .ibm_backend import IBMBackend
from .utils.deprecation import issue_deprecation_msg

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -1187,6 +1188,12 @@ def runtime(self): # type:ignore
Returns:
self
"""
issue_deprecation_msg(
msg="The runtime property is deprecated",
version="0.18.0",
remedy="",
period="1 month",
)
return self

def __repr__(self) -> str:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
deprecations:
- |
:meth:`~qiskit_ibm_runtime.QiskitRuntimeService.runtime` has been deprecated.

0 comments on commit bdbbade

Please sign in to comment.