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