DWaveSamplerClientΒΆ
- class DWaveSamplerClientΒΆ
Bases:
BaseClientMethods
Attributes
Degrees of the polynomial that the solver accepts.
Parameters that the client sends with every request.
URL of the proxy that the client goes through, or
Nonefor no proxy.API token of the user.
URL of the service that the client sends to.
Version of the service.
Path of the file that receives a copy of the request, or
Noneto write none.Path of the file that receives a copy of the response, or
Noneto write none.- class AnswerModeΒΆ
Bases:
Enum- classmethod __contains__(value)ΒΆ
Return True if value is in cls.
value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the clsβs members. 3) value is a pseudo-member (flags)
- classmethod __getitem__(name)ΒΆ
Return the member matching name.
- classmethod __iter__()ΒΆ
Return members in definition order.
- classmethod __len__()ΒΆ
Return the number of members (no aliases)
- __members__ = mappingproxy({'histogram': DWaveSamplerClientAnswerMode.histogram, 'raw': DWaveSamplerClientAnswerMode.raw})ΒΆ
- __name__ = 'AnswerMode'ΒΆ
- __nb_enum__ = <capsule object NULL>ΒΆ
- __qualname__ = 'DWaveSamplerClient.AnswerMode'ΒΆ
- histogram = 0ΒΆ
- raw = 1ΒΆ
- class ParametersΒΆ
Parameters that the client sends with every request.
- property anneal_offsetsΒΆ
- property anneal_scheduleΒΆ
- property annealing_timeΒΆ
The value in microseconds. Fractional values are preserved.
- Return type:
float | None
- property answer_modeΒΆ
- property auto_scaleΒΆ
- property fast_annealΒΆ
- property flux_biasesΒΆ
- property flux_drift_compensationΒΆ
- property h_gain_scheduleΒΆ
- property initial_stateΒΆ
- property labelΒΆ
- property num_readsΒΆ
- property programming_thermalizationΒΆ
The value in microseconds. Fractional values are preserved.
- Return type:
float | None
- property readout_thermalizationΒΆ
The value in microseconds. Fractional values are preserved.
- Return type:
float | None
- property reduce_intersample_correlationΒΆ
- property reinitialize_stateΒΆ
- __init__(self) NoneΒΆ
- __init__(self, token: str = '', solver: str = '', url: str = '', proxy: str | None = None) None
- solve(self, objective: Poly, dry_run: Literal[False] = False) SampleSetΒΆ
- solve(self, objective: Poly, dry_run: Literal[True]) None
Send the objective function and the constraints to the solver.
This method takes the polynomial that the solver accepts, so it runs no conversion of the model. Use
solve()to solve a model that needs a conversion. It returns the raw response of the solver.Overload 1.
- Args:
objective (amplify.Poly): The objective function that the solver minimizes.
dry_run (typing.Literal[False]): When
True, ask the service to check the request, and returnNone. Defaults toFalse.
- Returns:
dimod.sampleset.SampleSet:
Overload 2.
- Args:
objective (amplify.Poly): The objective function that the solver minimizes.
dry_run (typing.Literal[True]): When
True, ask the service to check the request, and returnNone.
- property acceptable_degreesΒΆ
Degrees of the polynomial that the solver accepts.
solve()reads it to decide the conversion of the model.- Return type:
- property compress_qpu_problem_dataΒΆ
- property graphΒΆ
- property parametersΒΆ
Parameters that the client sends with every request.
- Return type:
- property propertiesΒΆ
- property proxyΒΆ
URL of the proxy that the client goes through, or
Nonefor no proxy.- Return type:
str | None
- property solverΒΆ
- property solver_namesΒΆ
- property tokenΒΆ
API token of the user.
The client needs it for every request. Its text never appears in the output of
repr().- Return type:
- property versionΒΆ
Version of the service.
Reading this property sends a request to the service.
- Return type: