Commit 0d1f9a5 1 parent a7637ce commit 0d1f9a5 Copy full SHA for 0d1f9a5
File tree 5 files changed +25
-4
lines changed
pytket/extensions/quantinuum
5 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 4
4
5
5
# Changelog
6
6
7
+ ## Unreleased
8
+
9
+ - Remove ` noise_specs ` from local-emulator backends.
10
+
7
11
## 0.43.0 (January 2025)
8
12
9
13
- Check for language support when submitting programs.
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- """Backends for processing pytket circuits with Quantinuum devices
16
- """
15
+ """Backends for processing pytket circuits with Quantinuum devices"""
17
16
18
17
# _metadata.py is copied to the folder after installation.
19
18
from ._metadata import (
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- """Backends for processing pytket circuits with Quantinuum devices
16
- """
15
+ """Backends for processing pytket circuits with Quantinuum devices"""
17
16
18
17
from .api_wrappers import (
19
18
QuantinuumAPI as QuantinuumAPI ,
Original file line number Diff line number Diff line change @@ -390,6 +390,7 @@ def _dict_to_backendinfo(
390
390
dct1 ["system_type" ] = "local_emulator"
391
391
dct1 .pop ("emulator" , None )
392
392
dct1 ["batching" ] = False
393
+ dct1 .pop ("noise_specs" , None )
393
394
return BackendInfo (
394
395
name = cls .__name__ ,
395
396
device_name = name + "LE" if local_emulator else name ,
Original file line number Diff line number Diff line change @@ -479,3 +479,21 @@ def test_result_handling_for_empty_bits(
479
479
n_shots = 1 ,
480
480
)
481
481
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
You can’t perform that action at this time.
0 commit comments