ToshibaSQBM2ClientΒΆ

class ToshibaSQBM2ClientΒΆ

Bases: 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__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property CΒΆ

C property

Return type:

float | None

property HMCstepsΒΆ

HMCsteps property

Return type:

int | None

property HMCweightΒΆ

HMCweight property

Return type:

int | None

property PD3OrateΒΆ

PD3Orate property

Return type:

int | None

property algoΒΆ

algo property

Return type:

int | None

property algosΒΆ

algos property

Return type:

str | None

property blocksΒΆ

blocks property

Return type:

int | None

property detail_levelΒΆ

detail_level property

Return type:

int | None

property detail_logΒΆ

detail_log property

Return type:

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

multishot property

Return type:

int | None

property phiΒΆ

phi property

Return type:

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

Bases: Enum

__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

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__

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

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

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:

Path | None

property write_response_dataΒΆ

write_response_data property

Return type:

Path | None