ToshibaSQBM2Client

class ToshibaSQBM2Client

ベースクラス: BaseClient

Methods

Attributes

acceptable_degrees

Returns: amplify.AcceptableDegrees:

compression

Returns: bool:

parameters

Returns: amplify.ToshibaSQBM2Client.Parameters:

proxy

Returns: str | None:

solver

Returns: amplify.ToshibaSQBM2Client.Solver:

token

Returns: str:

url

Returns: str:

version

Returns: str:

write_request_data

Returns: pathlib.Path | None:

write_response_data

Returns: pathlib.Path | None:

class Parameters
__init__(*args, **kwargs)
__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

str

property C

Returns: float | None:

property HMCsteps

Returns: int | None:

property HMCweight

Returns: int | None:

property PD3Orate

Returns: int | None:

property algo

Returns: int | None:

property algos

Returns: str | None:

property blocks

Returns: int | None:

property detail_level

Returns: int | None:

property detail_log

Returns: int | None:

property dt

Returns: float | None:

property loops

Returns: int | None:

property maxout

Returns: int | None:

property maxwait

Returns: datetime.timedelta | None:

property multishot

Returns: int | None:

property phi

Returns: float | None:

property steps

Returns: int | None:

property target

Returns: float | None:

property timeout

Returns: datetime.timedelta | None:

class Result

ベースクラス: Solution

__init__(*args, **kwargs)
__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

str

property count

Returns: int:

property id

Returns: str:

property message

Returns: str:

property others

Returns: list[amplify.ToshibaSQBM2Client.Solution]:

property param

Returns: amplify.ToshibaSQBM2Client.Parameters:

property result

Returns: numpy.ndarray:

property runs

Returns: int:

property time

Returns: datetime.timedelta:

property value

Returns: float:

property wait

Returns: datetime.timedelta:

class Solution
__init__(*args, **kwargs)
__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

str

property count

Returns: int:

property param

Returns: amplify.ToshibaSQBM2Client.Parameters:

property result

Returns: numpy.ndarray:

property value

Returns: float:

class Solver

ベースクラス: Enum

classmethod __contains__(value)

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls's members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)

Return the member matching name.

classmethod __iter__()

Return members in definition order.

classmethod __len__()

Return the number of members (no aliases)

__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

str

Pubo = 2
Qplib = 1
Qubo = 0
__nb_enum__ = <capsule object NULL>
__init__(self) None
__init__(self, token: str = '', url: str = '', proxy: str | None = None) None
パラメータ:
  • token (str) -- Defaults to ''.

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

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

__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

str

health_check(self) bool
戻り値の型:

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

Overload 1.

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

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

Returns:

amplify.ToshibaSQBM2Client.Result:

Overload 2.

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

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

Returns:

amplify.ToshibaSQBM2Client.Result:

Overload 3.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

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

Returns:

amplify.ToshibaSQBM2Client.Result:

Overload 4.

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

  • dry_run (typing.Literal[True])

Overload 5.

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

  • dry_run (typing.Literal[True])

Overload 6.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

  • dry_run (typing.Literal[True])

property acceptable_degrees

Returns: amplify.AcceptableDegrees:

property compression

Returns: bool:

property parameters

Returns: amplify.ToshibaSQBM2Client.Parameters:

property proxy

Returns: str | None:

property solver

Returns: amplify.ToshibaSQBM2Client.Solver:

property token

Returns: str:

property url

Returns: str:

property version

Returns: str:

property write_request_data

Returns: pathlib.Path | None:

property write_response_data

Returns: pathlib.Path | None: