Closed LowkeyCoding closed 3 months ago
Hi @LowkeyCoding thanks for the PR. The PR looks good. Could you merge the latest commit from main which will fix the checks.
It seems like the behavior of get_backend()
is not filtering in the test environment (most likely due to self.mock_session.search_devices.return_value
and self.mock_session.get_device.side_effect
). I have fixed it by creating a mock session with no simulators to catch the case where no backends are found and an exception is raised.
Summary
Qiskit's
ProviderV1
andProvider
abstract classes are deprecated and will be removed after the release of v2.0. This change requires the removal of the abstract class from theBraketProvider
and the re-implementation ofget_backend(self, name=None, **kwargs)
.Details and comments
The change described in the summary has been implemented, and additionally, comments for the
self.backends()
andself.get_backend()
methods have been added.