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__

戻り値の型:

str

__str__(self) str¶

__str__

戻り値の型:

str

property C¶

C property

戻り値の型:

float | None

property algo¶

algo property

戻り値の型:

int | None

property algos¶

algos property

戻り値の型:

str | None

property dt¶

dt property

戻り値の型:

float | None

property loops¶

loops property

戻り値の型:

int | None

property maxout¶

maxout property

戻り値の型:

int | None

property maxwait¶

maxwait property

戻り値の型:

timedelta | None

property steps¶

steps property

戻り値の型:

int | None

property target¶

target property

戻り値の型:

float | None

property timeout¶

timeout property

戻り値の型:

timedelta | None

class Result¶

ベースクラス: Solution

__init__(*args, **kwargs)¶
__repr__(self) str¶

__repr__

戻り値の型:

str

__str__(self) str¶

__str__

戻り値の型:

str

property count¶

count property

戻り値の型:

int

property id¶

id property

戻り値の型:

str

property message¶

message property

戻り値の型:

str

property others¶

others property

戻り値の型:

list[Solution]

property param¶

param property

戻り値の型:

Parameters

property result¶

result property

戻り値の型:

ndarray

property runs¶

runs property

戻り値の型:

int

property time¶

time property

戻り値の型:

timedelta

property value¶

value property

戻り値の型:

float

property wait¶

wait property

戻り値の型:

timedelta

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

__repr__

戻り値の型:

str

__str__(self) str¶

__str__

戻り値の型:

str

property count¶

count property

戻り値の型:

int

property param¶

param property

戻り値の型:

Parameters

property result¶

result property

戻り値の型:

ndarray

property value¶

value property

戻り値の型:

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__

戻り値の型:

str

__str__(self) str¶

__str__

戻り値の型:

str

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

__init__

パラメータ:
  • token (str) -- Defaults to ''.

  • url (str) -- Defaults to ''.

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

__repr__(self) str¶

__repr__

戻り値の型:

str

__str__(self) str¶

__str__

戻り値の型:

str

health_check(self) bool¶

health_check

戻り値の型:

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

戻り値の型:

AcceptableDegrees

property compression¶

compression property

戻り値の型:

bool

property parameters¶

parameters property

戻り値の型:

Parameters

property proxy¶

proxy property

戻り値の型:

str | None

property solver¶

solver property

戻り値の型:

Solver

property token¶

token property

戻り値の型:

str

property url¶

url property

戻り値の型:

str

property version¶

version property

戻り値の型:

str

property write_request_data¶

write_request_data property

戻り値の型:

PathLike | None

property write_response_data¶

write_response_data property

戻り値の型:

PathLike | None