Skip to content

Commit

Permalink
[api-change] Remove Backend.characterisation (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
cqc-alec authored Feb 17, 2022
1 parent 66f93db commit 8691843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
2 changes: 2 additions & 0 deletions pytket/docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
13 changes: 0 additions & 13 deletions pytket/pytket/backends/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8691843

Please sign in to comment.