FixstarsClientΒΆ
- class FixstarsClientΒΆ
Bases:
BaseClientClient for Fixstars Amplify Annealing Engine (Amplify AE) v0, a QUBO solver that runs simulated annealing on GPUs. This engine is deprecated. Use
AmplifyAEClientfor Amplify AE v1.Methods
Attributes
Degrees of the polynomial that the solver accepts.
Whether the client compresses the body of the request.
Format of the objective function in the request.
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 ParametersΒΆ
Parameters that the client sends with every request.
- class OutputsΒΆ
- __init__(*args, **kwargs)ΒΆ
- __repr__(self) strΒΆ
- Return type:
str
- __str__(self) strΒΆ
- Return type:
str
- property duplicateΒΆ
- property energiesΒΆ
- property feasibilitiesΒΆ
- property num_outputsΒΆ
- property sortΒΆ
- property spinsΒΆ
- __init__(*args, **kwargs)ΒΆ
- __repr__(self) strΒΆ
- Return type:
str
- __str__(self) strΒΆ
- Return type:
str
- property num_gpusΒΆ
- property outputsΒΆ
- property penalty_calibrationΒΆ
- property timeoutΒΆ
- class ResultΒΆ
Raw response that the solver returned.
- class ExecutionParametersΒΆ
- __init__(*args, **kwargs)ΒΆ
- __repr__(self) strΒΆ
- Return type:
str
- __str__(self) strΒΆ
- Return type:
str
- property num_gpusΒΆ
- property num_iterationsΒΆ
- property penalty_calibrationΒΆ
- property penalty_multipliersΒΆ
- property timeoutΒΆ
- property versionΒΆ
Version of the service.
Reading this property sends a request to the service.
- Return type:
str
- class ExecutionTimeΒΆ
- __init__(*args, **kwargs)ΒΆ
- __repr__(self) strΒΆ
- Return type:
str
- __str__(self) strΒΆ
- Return type:
str
- property annealing_timeΒΆ
- property cpu_timeΒΆ
- property queue_timeΒΆ
- property time_stampsΒΆ
- __init__(*args, **kwargs)ΒΆ
- __repr__(self) strΒΆ
- Return type:
str
- __str__(self) strΒΆ
- Return type:
str
- property energiesΒΆ
- property execution_parametersΒΆ
- property execution_timeΒΆ
- property feasibilitiesΒΆ
- property messageΒΆ
- property spinsΒΆ
- __init__(self) NoneΒΆ
- __init__(self, token: str = '', url: str = '', proxy: str | None = None) None
- Parameters:
token (str) β Defaults to
''.url (str) β Defaults to
''.proxy (str | None) β Defaults to
None.
- __repr__(self) strΒΆ
- Return type:
str
- __str__(self) strΒΆ
- Return type:
str
- solve( ) ResultΒΆ
- solve(
- self,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- solve(self, objective: Poly | Matrix, dry_run: Literal[True]) None
- solve(self, constraint: Constraint | ConstraintList, dry_run: Literal[True]) None
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[True],
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.FixstarsClient.Result:
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList): The constraints that the solution must satisfy.
dry_run (typing.Literal[False]): When
True, ask the service to check the request, and returnNone. Defaults toFalse.
- Returns:
amplify.FixstarsClient.Result:
Overload 3.
- Args:
objective (amplify.Poly | amplify.Matrix): The objective function that the solver minimizes.
constraint (amplify.Constraint | amplify.ConstraintList): The constraints that the solution must satisfy.
dry_run (typing.Literal[False]): When
True, ask the service to check the request, and returnNone. Defaults toFalse.
- Returns:
amplify.FixstarsClient.Result:
Overload 4.
- 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.
Overload 5.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList): The constraints that the solution must satisfy.
dry_run (typing.Literal[True]): When
True, ask the service to check the request, and returnNone.
Overload 6.
- Args:
objective (amplify.Poly | amplify.Matrix): The objective function that the solver minimizes.
constraint (amplify.Constraint | amplify.ConstraintList): The constraints that the solution must satisfy.
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 async_thresholdΒΆ
- property compressionΒΆ
Whether the client compresses the body of the request.
Compression costs CPU time and it makes the request smaller.
- Return type:
bool
- property objective_formatΒΆ
Format of the objective function in the request.
See
ObjectiveFormat.- Return type:
- 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:
str
- property urlΒΆ
URL of the service that the client sends to.
- Return type:
str
- property versionΒΆ
Version of the service.
Reading this property sends a request to the service.
- Return type:
str
- property write_request_dataΒΆ
Path of the file that receives a copy of the request, or
Noneto write none.Use it to inspect what the client sends.
- Return type:
pathlib.Path | None
- property write_response_dataΒΆ
Path of the file that receives a copy of the response, or
Noneto write none.- Return type:
pathlib.Path | None