braket.device_schema.dwave.dwave_provider_level_parameters_v1 module
- class braket.device_schema.dwave.dwave_provider_level_parameters_v1.PostProcessingType(value)[source]
Bases:
str
,Enum
The type of processing for D-Wave.
- SAMPLING = 'SAMPLING'
- OPTIMIZATION = 'OPTIMIZATION'
- class braket.device_schema.dwave.dwave_provider_level_parameters_v1.ResultFormat(value)[source]
Bases:
str
,Enum
The type of results format for D-Wave.
- RAW = 'RAW'
- HISTOGRAM = 'HISTOGRAM'
- class braket.device_schema.dwave.dwave_provider_level_parameters_v1.DwaveProviderLevelParameters(*, braketSchemaHeader: BraketSchemaHeader = BraketSchemaHeader(name='braket.device_schema.dwave.dwave_provider_level_parameters', version='1'), annealingOffsets: List[float] | None = None, annealingSchedule: List[List[float]] | None = None, annealingDuration: ConstrainedIntValue | None = None, autoScale: bool | None = None, beta: float | None = None, chains: List[List[int]] | None = None, compensateFluxDrift: bool | None = None, fluxBiases: List[float] | None = None, initialState: List[int] | None = None, maxResults: ConstrainedIntValue | None = None, postprocessingType: PostProcessingType | str | None = None, programmingThermalizationDuration: int | None = None, readoutThermalizationDuration: int | None = None, reduceIntersampleCorrelation: bool | None = None, reinitializeState: bool | None = None, resultFormat: ResultFormat | None = None, spinReversalTransformCount: ConstrainedIntValue | None = None)[source]
Bases:
BraketSchemaBase
This is the description of the D-Wave parameters
- annealingOffsets
Provides offsets to annealing paths, per qubit.
- Type:
Optional[List[float]]
- annealingSchedule
Introduces variations to the global anneal schedule.
- Type:
Optional[List[List[float]]]
- annealingDuration
Sets the duration (in microseconds) of quantum annealing time, per read.
- Type:
Optional[int] = Field(gt=1)
- autoScale
Indicates whether h and J values are rescaled.
- Type:
Optional[bool]
- beta
Provides a value for the Boltzmann distribution parameter. Used when sampling postprocessing is enabled on D-Wave 2000Q and earlier systems.
- Type:
Optional[float]
- chains
Defines which qubits represent the same logical variable. Used only when postprocessing is enabled on D-Wave 2000Q and earlier systems. Ensures that all qubits in the same chain have the same value within each sample.
- Type:
Optional[List[List[int]]]
- compensateFluxDrift
Boolean flag indicating whether the D-Wave system compensates for flux drift.
- Type:
Optional[bool]
- fluxBiases
List of flux-bias offset values with which to calibrate a chain. Often required when using the extended J range to create a strongly coupled chain for certain embeddings.
- Type:
Optional[List[float]]
- initialState
When using the reverse annealing feature, you must supply the initial state to which the system is set.
- Type:
Optional[List[int]]
- maxResults
Specifies the maximum number of answers returned from the solver.
- Type:
Optional[int] = Field(gt=1)
- postprocessingType
Defines what type of postprocessing the system runs online on raw solutions.
- Type:
Optional[Union[PostProcessingType, str]]
- postprocessingType
Defines what type of postprocessing the system runs online on raw solutions.
- Type:
Optional[PostProcessingType]
- programmingThermalizationDuration
Gives the time (in microseconds) to wait after programming the QPU for it to cool back to base temperature (i.e., post-programming thermalization time).
- Type:
Optional[int]
- readoutThermalizationDuration
Gives the time (in microseconds) to wait after each state is read from the QPU for it to cool back to base temperature (i.e., post-readout thermalization time).
- Type:
Optional[int]
- reduceIntersampleCorrelation
Reduces sample-to-sample correlations caused by the spin-bath polarization effect by adding a delay between reads.
- Type:
Optional[bool]
- reinitializeState
When using the reverse annealing feature, you must supply the initial state to which the system is set.
- Type:
Optional[bool]
- resultFormat
Type of the result format returned by the QPU.
- Type:
Optional[ResultFormat]
- spinReversalTransformCount
Specifies the number of spin-reversal transforms to perform.
- Type:
Optional[int] = Field(gt=0)
Examples
>>> import json >>> input_json = { ... "braketSchemaHeader": { ... "name": "braket.device_schema.dwave.dwave_provider_level_parameters", ... "version": "1", ... }, ... "beta": 1 ... } >>> DwaveProviderLevelParameters.parse_raw_schema(json.dumps(input_json))
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
- braketSchemaHeader: BraketSchemaHeader
- annealingOffsets: List[float] | None
- annealingSchedule: List[List[float]] | None
- annealingDuration: int | None
- autoScale: bool | None
- beta: float | None
- chains: List[List[int]] | None
- compensateFluxDrift: bool | None
- fluxBiases: List[float] | None
- initialState: List[int] | None
- maxResults: int | None
- postprocessingType: PostProcessingType | str | None
- programmingThermalizationDuration: int | None
- readoutThermalizationDuration: int | None
- reduceIntersampleCorrelation: bool | None
- reinitializeState: bool | None
- resultFormat: ResultFormat | None
- spinReversalTransformCount: int | None