FujitsuDA4Client

class FujitsuDA4Client

Methods

__init__

__init__

async_solve

async_solve

cancel_job

cancel_job

delete_job_result

delete_job_result

get_job_result

get_job_result

get_jobs

get_jobs

health_check

health_check

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

parameters

parameters property

proxy

proxy property

set_inequalities

set_inequalities property

set_one_way_one_hot_groups

set_one_way_one_hot_groups property

set_penalty_binary_polynomial

set_penalty_binary_polynomial property

set_two_way_one_hot_groups

set_two_way_one_hot_groups property

token

token property

type_id

type_id property

url

url property

version

version property

write_request_data

write_request_data property

write_response_data

write_response_data property

class CommonError
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property code

code property

Return type:

int

property message

message property

Return type:

str

property title

title property

Return type:

str

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.

__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

Canceled = FujitsuDA4ClientJobStatusEnum.Canceled
Deleted = FujitsuDA4ClientJobStatusEnum.Deleted
Done = FujitsuDA4ClientJobStatusEnum.Done
Error = FujitsuDA4ClientJobStatusEnum.Error
Running = FujitsuDA4ClientJobStatusEnum.Running
Waiting = FujitsuDA4ClientJobStatusEnum.Waiting
__name__ = 'JobStatus'
class JobStatusInfo
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property job_id

job_id property

Return type:

str

property job_status

job_status property

Return type:

JobStatus

property start_time

start_time property

Return type:

datetime

class Parameters
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property gs_cutoff

gs_cutoff property

Return type:

int | None

property gs_level

gs_level property

Return type:

int | None

property internal_penalty

internal_penalty property

Return type:

int | None

property max_penalty_coef

max_penalty_coef property

Return type:

int | None

property num_group

num_group property

Return type:

int | None

property num_output_solution

num_output_solution property

Return type:

int | None

property num_run

num_run property

Return type:

int | None

property one_hot_cutoff

one_hot_cutoff property

Return type:

int | None

property one_hot_level

one_hot_level property

Return type:

int | None

property penalty_auto_mode

penalty_auto_mode property

Return type:

int | None

property penalty_coef

penalty_coef property

Return type:

int | None

property penalty_inc_rate

penalty_inc_rate property

Return type:

int | None

property target_energy

target_energy property

Return type:

float | None

property time_limit_sec

time_limit_sec property

Return type:

timedelta | None

class Progress
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property energy

energy property

Return type:

float

property penalty_energy

penalty_energy property

Return type:

float

property time

time property

Return type:

timedelta

QuboResponse

alias of Result

class QuboSolution
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property configuration

configuration property

Return type:

dict[str, bool]

property energy

energy property

Return type:

float

property frequency

frequency property

Return type:

int

property penalty_energy

penalty_energy property

Return type:

float

class QuboSolutionList
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property progress

progress property

Return type:

list[Progress]

property result_status

result_status property

Return type:

bool

property solutions

solutions property

Return type:

list[QuboSolution]

property timing

timing property

Return type:

SolverTiming

class Result
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property message

message property

Return type:

str

property qubo_solution

qubo_solution property

Return type:

QuboSolutionList

property status

status property

Return type:

JobStatus

class SolverTiming
__init__(*args, **kwargs)
__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property solve_time

solve_time property

Return type:

timedelta

property total_elapsed_time

total_elapsed_time property

Return type:

timedelta

__init__(self) None
__init__(self, token: str = '', type_id: str | None = None, url: str = '', proxy: str | None = None) None

__init__

Parameters:
  • token (str) – Defaults to ''.

  • type_id (str | None) – Defaults to None.

  • url (str) – Defaults to ''.

  • proxy (str | None) – Defaults to None.

__repr__(self) str

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

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:

cancel_job(self, job_id: str) JobStatus

cancel_job

Parameters:

job_id (str) –

Return type:

JobStatus

delete_job_result(self, job_id: str) Result

delete_job_result

Parameters:

job_id (str) –

Return type:

Result

get_job_result(self, job_id: str) Result

get_job_result

Parameters:

job_id (str) –

Return type:

Result

get_jobs(self) list[JobStatusInfo]

get_jobs

Return type:

list[JobStatusInfo]

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,
) Result
solve(
self,
constraint: Constraint | ConstraintList,
dry_run: Literal[False] = False,
retry_after_delete: bool = True,
delete_after_solve: bool = True,
) Result
solve(
self,
objective: Poly | Matrix,
constraint: Constraint | ConstraintList,
dry_run: Literal[False] = False,
retry_after_delete: bool = True,
delete_after_solve: bool = True,
) Result
solve(
self,
objective: Poly | Matrix,
dry_run: Literal[True],
retry_after_delete: bool = True,
delete_after_solve: bool = True,
) None
solve(
self,
constraint: Constraint | ConstraintList,
dry_run: Literal[True],
retry_after_delete: bool = True,
delete_after_solve: bool = True,
) None
solve(
self,
objective: Poly | Matrix,
constraint: Constraint | ConstraintList,
dry_run: Literal[True],
retry_after_delete: bool = True,
delete_after_solve: bool = True,
) None

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:

AcceptableDegrees

property parameters

parameters property

Return type:

Parameters

property proxy

proxy property

Return type:

str | None

property set_inequalities

set_inequalities property

Return type:

bool

property set_one_way_one_hot_groups

set_one_way_one_hot_groups property

Return type:

bool

property set_penalty_binary_polynomial

set_penalty_binary_polynomial property

Return type:

bool

property set_two_way_one_hot_groups

set_two_way_one_hot_groups property

Return type:

bool

property token

token property

Return type:

str

property type_id

type_id property

Return type:

str | None

property url

url property

Return type:

str

property version

version property

Return type:

str

property write_request_data

write_request_data property

Return type:

PathLike | None

property write_response_data

write_response_data property

Return type:

PathLike | None