ToshibaSQBM2ClientΒΆ

class ToshibaSQBM2ClientΒΆ

Methods

__init__

__init__

health_check

health_check

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

compression

compression property

parameters

parameters property

proxy

proxy property

solver

solver property

token

token property

url

url property

version

version property

write_request_data

write_request_data property

write_response_data

write_response_data property

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

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property CΒΆ

C property

Return type:

float | None

property algoΒΆ

algo property

Return type:

int | None

property algosΒΆ

algos property

Return type:

str | None

property dtΒΆ

dt property

Return type:

float | None

property loopsΒΆ

loops property

Return type:

int | None

property maxoutΒΆ

maxout property

Return type:

int | None

property maxwaitΒΆ

maxwait property

Return type:

timedelta | None

property stepsΒΆ

steps property

Return type:

int | None

property targetΒΆ

target property

Return type:

float | None

property timeoutΒΆ

timeout property

Return type:

timedelta | None

class ResultΒΆ

Bases: Solution

__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property countΒΆ

count property

Return type:

int

property idΒΆ

id property

Return type:

str

property messageΒΆ

message property

Return type:

str

property othersΒΆ

others property

Return type:

list[Solution]

property paramΒΆ

param property

Return type:

Parameters

property resultΒΆ

result property

Return type:

ndarray

property runsΒΆ

runs property

Return type:

int

property timeΒΆ

time property

Return type:

timedelta

property valueΒΆ

value property

Return type:

float

property waitΒΆ

wait property

Return type:

timedelta

class SolutionΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property countΒΆ

count property

Return type:

int

property paramΒΆ

param property

Return type:

Parameters

property resultΒΆ

result property

Return type:

ndarray

property valueΒΆ

value property

Return type:

float

class SolverΒΆ
__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

Qplib = ToshibaSQBM2ClientSolver.QplibΒΆ
Qubo = ToshibaSQBM2ClientSolver.QuboΒΆ
__name__ = 'Solver'ΒΆ
__init__(self) NoneΒΆ
__init__(self, token: str = '', url: str = '', proxy: str | None = None) None

__init__

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

  • url (str) – Defaults to ''.

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

__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

health_check(self) boolΒΆ

health_check

Return type:

bool

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

solve

Overloading:

1. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[False] = False) -> amplify.ToshibaSQBM2Client.Result

Args:
  • objective (amplify.Poly | amplify.Matrix):

  • dry_run (Literal[False]): Defaults to False.

Returns:

amplify.ToshibaSQBM2Client.Result:

2. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.ToshibaSQBM2Client.Result

Args:
  • constraint (amplify.Constraint | amplify.ConstraintList):

  • dry_run (Literal[False]): Defaults to False.

Returns:

amplify.ToshibaSQBM2Client.Result:

3. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.ToshibaSQBM2Client.Result

Args:
  • objective (amplify.Poly | amplify.Matrix):

  • constraint (amplify.Constraint | amplify.ConstraintList):

  • dry_run (Literal[False]): Defaults to False.

Returns:

amplify.ToshibaSQBM2Client.Result:

4. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[True]) -> None

Args:
  • objective (amplify.Poly | amplify.Matrix):

  • dry_run (Literal[True]):

5. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True]) -> None

Args:
  • constraint (amplify.Constraint | amplify.ConstraintList):

  • dry_run (Literal[True]):

6. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True]) -> None

Args:
  • objective (amplify.Poly | amplify.Matrix):

  • constraint (amplify.Constraint | amplify.ConstraintList):

  • dry_run (Literal[True]):

property acceptable_degreesΒΆ

acceptable_degrees property

Return type:

AcceptableDegrees

property compressionΒΆ

compression property

Return type:

bool

property parametersΒΆ

parameters property

Return type:

Parameters

property proxyΒΆ

proxy property

Return type:

str | None

property solverΒΆ

solver property

Return type:

Solver

property tokenΒΆ

token property

Return type:

str

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