AmplifyAEClientΒΆ

class AmplifyAEClientΒΆ

Bases: BaseClient

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

async_threshold_ms

async_threshold_ms 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 duplicate_solutionsΒΆ

duplicate_solutions property

Return type:

bool | None

property num_gpusΒΆ

num_gpus property

Return type:

int | None

property penalty_weight_calibrationΒΆ

penalty_weight_calibration property

Return type:

bool | None

property time_limit_msΒΆ

time_limit_ms property

Return type:

timedelta | None

class ResultΒΆ
class SolutionΒΆ
class StatusΒΆ

Bases: 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ΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

Feasible = 1ΒΆ
Infeasible = 0ΒΆ
Optimal = 2ΒΆ
__nb_enum__ = <capsule object NULL>ΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property objectiveΒΆ

objective property

Return type:

float

property statusΒΆ

status property

Return type:

Status

property time_stamp_msΒΆ

time_stamp_ms property

Return type:

timedelta

property valuesΒΆ

values property

Return type:

ndarray

__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property execution_time_msΒΆ

execution_time_ms property

Return type:

timedelta

property num_flipsΒΆ

num_flips property

Return type:

int

property num_gpusΒΆ

num_gpus property

Return type:

int

property num_samplingsΒΆ

num_samplings property

Return type:

int

property queue_time_msΒΆ

queue_time_ms property

Return type:

timedelta

property solutionsΒΆ

solutions property

Return type:

list[Solution]

property started_atΒΆ

started_at property

Return type:

datetime

property submitted_atΒΆ

submitted_at property

Return type:

datetime

property versionΒΆ

version property

Return type:

str

property warningsΒΆ

warnings property

Return type:

list[str]

class SolverΒΆ

Bases: 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ΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

Constraint = 0ΒΆ
Pubo = 1ΒΆ
Qubo = 2ΒΆ
__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

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.AmplifyAEClient.Result:

Overload 2.

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

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

Returns:

amplify.AmplifyAEClient.Result:

Overload 3.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

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

Returns:

amplify.AmplifyAEClient.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 async_threshold_msΒΆ

async_threshold_ms property

Return type:

timedelta | None

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