FujitsuDA4ClientΒΆ
- class FujitsuDA4ClientΒΆ
Bases:
AmplifyClient
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ΒΆ
Bases:
Enum
- Canceled = 3ΒΆ
- Deleted = 5ΒΆ
- Done = 0ΒΆ
- Error = 4ΒΆ
- Running = 1ΒΆ
- Waiting = 2ΒΆ
- __nb_enum__ = <capsule object NULL>ΒΆ
- 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
Overload 1.
- Args:
objective (amplify.Poly)
- Returns:
str:
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
- Returns:
str:
Overload 3.
- 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
Overload 1.
- Args:
objective (amplify.Poly | amplify.Matrix)
dry_run (typing.Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
Overload 2.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
Overload 3.
- Args:
objective (amplify.Poly | amplify.Matrix)
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[False]): Defaults to
False
.retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
- Returns:
amplify.FujitsuDA4Client.Result:
Overload 4.
- Args:
objective (amplify.Poly | amplify.Matrix)
dry_run (typing.Literal[True])
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
Overload 5.
- Args:
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.Literal[True])
retry_after_delete (bool): Defaults to
True
.delete_after_solve (bool): Defaults to
True
.
Overload 6.
- Args:
objective (amplify.Poly | amplify.Matrix)
constraint (amplify.Constraint | amplify.ConstraintList)
dry_run (typing.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: