Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rectified the display name of BracketLocalBackend #92

Merged
merged 6 commits into from
May 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qiskit_braket_provider/providers/braket_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, name: str = "default", **fields):
name: name of backend
**fields: extra fields
"""
super().__init__(name="sv_simulator", **fields)
super().__init__(name=name, **fields)
self.backend_name = name
self._aws_device = LocalSimulator(backend=self.backend_name)
self._target = local_simulator_to_target(self._aws_device)
Expand Down
5 changes: 5 additions & 0 deletions tests/providers/test_braket_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ def test_local_backend(self):
with self.assertRaises(NotImplementedError):
backend.control_channel([0, 1])

def test_local_backend_output(self):
"""Test local backend output"""
first_backend = BraketLocalBackend(name="braket_dm")
self.assertEqual(first_backend.backend_name, "braket_dm")

def test_local_backend_circuit(self):
"""Tests local backend with circuit."""
backend = BraketLocalBackend(name="default")
Expand Down