Skip to content
This repository has been archived by the owner on Feb 4, 2025. It is now read-only.

Commit

Permalink
[QI2-1096] renamed method
Browse files Browse the repository at this point in the history
  • Loading branch information
napocornejo authored and napocornejo committed Oct 24, 2024
1 parent 1fb767e commit ff66a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pennylane_quantuminspire2/qi_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def __init__(self, backend: QIBackend, **kwargs: Any) -> None:
super().__init__(wires=backend.num_qubits, backend=backend, shots=backend.default_shots, **kwargs)

@classmethod
def get_backends(cls) -> Sequence[QIBackend]:
def backends(cls) -> Sequence[QIBackend]:
return cls._qi_provider.backends() # type: ignore[no-any-return]

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion tests/test_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_device_backends(mocker: MockerFixture, backend_repository: Sequence[Bac
provider_mock.backends.return_value = backend_repository
QI2Device._qi_provider = provider_mock
# Act
backends = QI2Device.get_backends()
backends = QI2Device.backends()

# Assert
provider_mock.backends.assert_called_once()
Expand Down

0 comments on commit ff66a71

Please sign in to comment.