From 9bddfbcce5c9c63e5579701299ba32e9cdfe80c2 Mon Sep 17 00:00:00 2001 From: Nagji Date: Tue, 30 Jul 2024 15:15:13 -0700 Subject: [PATCH] change: Change error message when trying to create a NoiseModel from unsupported device capabilities --- src/braket/aws/aws_noise_models.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/braket/aws/aws_noise_models.py b/src/braket/aws/aws_noise_models.py index 5254ce381..5a4f9223f 100644 --- a/src/braket/aws/aws_noise_models.py +++ b/src/braket/aws/aws_noise_models.py @@ -107,8 +107,7 @@ def device_noise_model(properties: DeviceCapabilities, arn: str) -> NoiseModel: @singledispatch def _setup_calibration_specs(properties: DeviceCapabilities, arn: str) -> NoiseModel: raise NotImplementedError( - f"A noise model cannot be created from device capabilities with \ - type {type(properties)}." + f"A noise model cannot be created from device capabilities with type {type(properties)}." )