FujitsuDA4ClientΒΆ
- class FujitsuDA4ClientΒΆ
Methods
__init__
async_solve
cancel_job
delete_job_result
get_job_result
get_jobs
health_check
solve
Attributes
acceptable_degrees property
parameters property
proxy property
set_inequalities property
set_one_way_one_hot_groups property
set_penalty_binary_polynomial property
set_two_way_one_hot_groups property
token property
type_id property
url property
version property
write_request_data property
write_response_data property
- class JobStatusΒΆ
- __eq__(value, /)ΒΆ
Return self==value.
- __ge__(value, /)ΒΆ
Return self>=value.
- __gt__(value, /)ΒΆ
Return self>value.
- __hash__()ΒΆ
Return hash(self).
- __index__()ΒΆ
Return self converted to an integer, if self is suitable for use as an index into a list.
- __init__(*args, **kwargs)ΒΆ
- __int__()ΒΆ
int(self)
- __le__(value, /)ΒΆ
Return self<=value.
- __lt__(value, /)ΒΆ
Return self<value.
- __ne__(value, /)ΒΆ
Return self!=value.
- Canceled = FujitsuDA4ClientJobStatusEnum.CanceledΒΆ
- Deleted = FujitsuDA4ClientJobStatusEnum.DeletedΒΆ
- Done = FujitsuDA4ClientJobStatusEnum.DoneΒΆ
- Error = FujitsuDA4ClientJobStatusEnum.ErrorΒΆ
- Running = FujitsuDA4ClientJobStatusEnum.RunningΒΆ
- Waiting = FujitsuDA4ClientJobStatusEnum.WaitingΒΆ
- __name__ = 'JobStatus'ΒΆ
- class QuboSolutionListΒΆ
- __init__(*args, **kwargs)ΒΆ
- property solutionsΒΆ
solutions property
- Return type:
- property timingΒΆ
timing property
- Return type:
- class ResultΒΆ
- __init__(*args, **kwargs)ΒΆ
- property qubo_solutionΒΆ
qubo_solution property
- Return type:
- __init__(self) None ΒΆ
- __init__(self, token: str = '', type_id: str | None = None, url: str = '', proxy: str | None = None) None
__init__
- async_solve(self, objective: Poly) str ΒΆ
- async_solve(self, constraint: Constraint | ConstraintList) str
- async_solve(self, objective: Poly, constraint: Constraint | ConstraintList) str
async_solve
- Overloading:
1. async_solve(self, objective: amplify.Poly) -> str
- Args:
objective (amplify.Poly):
- Returns:
str:
2. async_solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList]) -> str
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
- Returns:
str:
3. async_solve(self, objective: amplify.Poly, constraint: Union[amplify.Constraint, amplify.ConstraintList]) -> str
- Args:
objective (amplify.Poly):
constraint (amplify.Constraint | amplify.ConstraintList):
- Returns:
str:
- get_jobs(self) list[JobStatusInfo] ΒΆ
get_jobs
- Return type:
- health_check(self) CommonError | None ΒΆ
health_check
- Return type:
CommonError | None
- solve(
- self,
- objective: Poly | Matrix,
- dry_run: Literal[False] = False,
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[False] = False,
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- objective: Poly | Matrix,
- dry_run: Literal[True],
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[True],
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
- solve(
- self,
- objective: Poly | Matrix,
- constraint: Constraint | ConstraintList,
- dry_run: Literal[True],
- retry_after_delete: bool = True,
- delete_after_solve: bool = True,
solve
- Overloading:
1. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[False] = False, retry_after_delete: bool = True, delete_after_solve: bool = True) -> amplify.FujitsuDA4Client.Result
- Args:
objective (amplify.Poly | amplify.Matrix):
dry_run (Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
2. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False, retry_after_delete: bool = True, delete_after_solve: bool = True) -> amplify.FujitsuDA4Client.Result
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
3. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False, retry_after_delete: bool = True, delete_after_solve: bool = True) -> amplify.FujitsuDA4Client.Result
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
4. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[True], retry_after_delete: bool = True, delete_after_solve: bool = True) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
dry_run (Literal[True]):
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
5. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True], retry_after_delete: bool = True, delete_after_solve: bool = True) -> None
- Args:
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[True]):
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
6. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True], retry_after_delete: bool = True, delete_after_solve: bool = True) -> None
- Args:
objective (amplify.Poly | amplify.Matrix):
constraint (amplify.Constraint | amplify.ConstraintList):
dry_run (Literal[True]):
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- property acceptable_degreesΒΆ
acceptable_degrees property
- Return type:
- property parametersΒΆ
parameters property
- Return type: