Skip to content

Commit 0d1f9a5

Browse files
authored
Remove noise_specs from local-emulator backends (#572)
1 parent a7637ce commit 0d1f9a5

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

docs/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
# Changelog
66

7+
## Unreleased
8+
9+
- Remove `noise_specs` from local-emulator backends.
10+
711
## 0.43.0 (January 2025)
812

913
- Check for language support when submitting programs.

pytket/extensions/quantinuum/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Backends for processing pytket circuits with Quantinuum devices
16-
"""
15+
"""Backends for processing pytket circuits with Quantinuum devices"""
1716

1817
# _metadata.py is copied to the folder after installation.
1918
from ._metadata import (

pytket/extensions/quantinuum/backends/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
"""Backends for processing pytket circuits with Quantinuum devices
16-
"""
15+
"""Backends for processing pytket circuits with Quantinuum devices"""
1716

1817
from .api_wrappers import (
1918
QuantinuumAPI as QuantinuumAPI,

pytket/extensions/quantinuum/backends/quantinuum.py

+1
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ def _dict_to_backendinfo(
390390
dct1["system_type"] = "local_emulator"
391391
dct1.pop("emulator", None)
392392
dct1["batching"] = False
393+
dct1.pop("noise_specs", None)
393394
return BackendInfo(
394395
name=cls.__name__,
395396
device_name=name + "LE" if local_emulator else name,

tests/integration/local_emulator_test.py

+18
Original file line numberDiff line numberDiff line change
@@ -479,3 +479,21 @@ def test_result_handling_for_empty_bits(
479479
n_shots=1,
480480
)
481481
assert result.get_counts() == {(0, 0): 1}
482+
483+
484+
@pytest.mark.skipif(skip_remote_tests, reason=REASON)
485+
@pytest.mark.skipif(not have_pecos(), reason="pecos not installed")
486+
@pytest.mark.parametrize(
487+
"authenticated_quum_backend_prod",
488+
[{"device_name": name} for name in pytest.ALL_LOCAL_SIMULATOR_NAMES], # type: ignore
489+
indirect=True,
490+
)
491+
def test_no_noise(
492+
authenticated_quum_backend_prod: QuantinuumBackend,
493+
) -> None:
494+
# https://github.com/CQCL/pytket-quantinuum/issues/571
495+
496+
backend = authenticated_quum_backend_prod
497+
backend_info = backend.backend_info
498+
assert backend_info is not None
499+
assert "noise_specs" not in backend_info.misc

0 commit comments

Comments
 (0)