Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1# Copyright 2019-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"). You 

4# may not use this file except in compliance with the License. A copy of 

5# the License is located at 

6# 

7# http://aws.amazon.com/apache2.0/ 

8# 

9# or in the "license" file accompanying this file. This file is 

10# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF 

11# ANY KIND, either express or implied. See the License for the specific 

12# language governing permissions and limitations under the License. 

13 

14from pydantic import Field 

15 

16from braket.device_schema.dwave.dwave_provider_level_parameters_v1 import ( 

17 DwaveProviderLevelParameters, 

18) 

19from braket.schema_common import BraketSchemaBase, BraketSchemaHeader 

20 

21 

22class DwaveDeviceParameters(BraketSchemaBase): 

23 """ 

24 This is the description of the D-Wave parameters 

25 

26 Attributes: 

27 providerLevelParameters: Parameters that are specific to D-Wave device. 

28  

29 Examples: 

30 >>> import json 

31 >>> input_json = { 

32 ... "braketSchemaHeader": { 

33 ... "name": "braket.device_schema.dwave.dwave_device_parameters", 

34 ... "version": "1",}, 

35 ... "providerLevelParameters": { 

36 ... "braketSchemaHeader": { 

37 ... "name": "braket.device_schema.dwave.dwave_provider_level_parameters", 

38 ... "version": "1", 

39 ... }, 

40 ... "annealingOffsets": [1], 

41 ... "beta": 1, 

42 ... } 

43 ... } 

44 >>> DwaveDeviceParameters.parse_raw_schema(json.dumps(input_json)) 

45 

46 """ 

47 

48 _PROGRAM_HEADER = BraketSchemaHeader( 

49 name="braket.device_schema.dwave.dwave_device_parameters", version="1" 

50 ) 

51 braketSchemaHeader: BraketSchemaHeader = Field(default=_PROGRAM_HEADER, const=_PROGRAM_HEADER) 

52 providerLevelParameters: DwaveProviderLevelParameters