ToshibaSQBM2Client

class ToshibaSQBM2Client

ベースクラス: AmplifyClient

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 HMCsteps

HMCsteps property

戻り値の型:

int | None

property HMCweight

HMCweight property

戻り値の型:

int | None

property PD3Orate

PD3Orate property

戻り値の型:

int | None

property algo

algo property

戻り値の型:

int | None

property algos

algos property

戻り値の型:

str | None

property blocks

blocks property

戻り値の型:

int | None

property detail_level

detail_level property

戻り値の型:

int | None

property detail_log

detail_log property

戻り値の型:

int | 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 multishot

multishot property

戻り値の型:

int | None

property phi

phi property

戻り値の型:

float | 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

ベースクラス: Enum

__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__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

__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

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

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

戻り値の型:

Path | None

property write_response_data

write_response_data property

戻り値の型:

Path | None