From 8691843f14e6a82aec9bc50e90caaf5ea75e4c84 Mon Sep 17 00:00:00 2001 From: Alec Edgington <54802828+cqc-alec@users.noreply.github.com> Date: Thu, 17 Feb 2022 06:19:18 +0000 Subject: [PATCH] [api-change] Remove `Backend.characterisation` (#226) --- pytket/docs/changelog.rst | 2 ++ pytket/pytket/backends/backend.py | 13 ------------- 2 files changed, 2 insertions(+), 13 deletions(-) diff --git a/pytket/docs/changelog.rst b/pytket/docs/changelog.rst index 6ca95cade0..b3708290c4 100644 --- a/pytket/docs/changelog.rst +++ b/pytket/docs/changelog.rst @@ -11,6 +11,8 @@ API changes: * The deprecated ``Backend.compile_circuit`` method is removed. (Use ``get_compiled_circuit`` instead.) * ``RebaseCustom`` takes one allowed gateset parameter rather than separate single qubit and multiqubit gatesets. +* The ``Backend.characterisation`` property is removed. (Use + ``Backend.backend_info`` instead.) Minor new features: diff --git a/pytket/pytket/backends/backend.py b/pytket/pytket/backends/backend.py index 2639ee461e..cdff8095a3 100644 --- a/pytket/pytket/backends/backend.py +++ b/pytket/pytket/backends/backend.py @@ -406,19 +406,6 @@ def cancel(self, handle: ResultHandle) -> None: """ raise NotImplementedError("Backend does not support job cancellation.") - @property - def characterisation(self) -> Optional[dict]: - """Retrieve the characterisation targeted by the backend if it exists. - - :return: The characterisation that this backend targets if it exists. The - characterisation object contains device-specific information such as gate - error rates. - :rtype: Optional[dict] - """ - raise NotImplementedError( - "Backend does not support retrieving characterisation." - ) - @property def backend_info(self) -> Optional[BackendInfo]: """Retrieve all Backend properties in a BackendInfo object, including