Skip to content

Commit

Permalink
change: Change error message when trying to create a NoiseModel from …
Browse files Browse the repository at this point in the history
…unsupported device capabilities
  • Loading branch information
ltnln committed Jul 30, 2024
1 parent f30379c commit 9bddfbc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/braket/aws/aws_noise_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)}."
)


Expand Down

0 comments on commit 9bddfbc

Please sign in to comment.