HitachiClientΒΆ
- class HitachiClientΒΆ
Bases:
BaseClientClient for Hitachi Annealing Cloud Web, a CMOS annealing machine whose variables sit on a Kingβs graph. Amplify embeds the model into that graph before it sends the request.
Methods
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 API that the client speaks.
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 ParametersΒΆ
Parameters that the client sends with every request.
- class OutputsΒΆ
- __init__(*args, **kwargs)ΒΆ
- property averaged_energyΒΆ
- property averaged_spinsΒΆ
- property energiesΒΆ
- property execution_timeΒΆ
- property num_outputsΒΆ
- property spinsΒΆ
- class TemperatureParametersΒΆ
- __init__(*args, **kwargs)ΒΆ
- property temperature_initialΒΆ
- property temperature_num_stepsΒΆ
- property temperature_step_lengthΒΆ
- property temperature_targetΒΆ
- __init__(*args, **kwargs)ΒΆ
- property num_executionsΒΆ
- property outputsΒΆ
- property parametersΒΆ
- property typeΒΆ
- class ResultΒΆ
Raw response that the solver returned.
- class ResultΒΆ
- __init__(*args, **kwargs)ΒΆ
- property averaged_energyΒΆ
- property averaged_spinsΒΆ
- property energiesΒΆ
- property execution_timeΒΆ
- property spinsΒΆ
- __init__(*args, **kwargs)ΒΆ
- property job_idΒΆ
- property messageΒΆ
- property resultΒΆ
- property statusΒΆ
- solve(self, objective: Poly | Matrix, dry_run: Literal[False] = False) ResultΒΆ
- solve(self, objective: Poly | Matrix, 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 | amplify.Matrix): 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:
amplify.HitachiClient.Result:
Overload 2.
- Args:
objective (amplify.Poly | amplify.Matrix): 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 graphΒΆ
- property parametersΒΆ
Parameters that the client sends with every request.
- Return type:
- property proxyΒΆ
URL of the proxy that the client goes through, or
Nonefor no proxy.- Return type:
str | None
- 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 API that the client speaks.
The client holds this text, so reading it sends no request.
- Return type: