FixstarsClient#

class FixstarsClient#

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

compression

compression property

parameters

parameters property

proxy

proxy 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#
class Outputs#
__init__(*args, **kwargs)#
__repr__(self) str#

__repr__

Return type:

str

__str__(self) str#

__str__

Return type:

str

property duplicate#

duplicate property

Return type:

bool | None

property energies#

energies property

Return type:

bool | None

property feasibilities#

feasibilities property

Return type:

bool | None

property num_outputs#

num_outputs property

Return type:

int | None

property sort#

sort property

Return type:

bool | None

property spins#

spins property

Return type:

bool | None

__init__(*args, **kwargs)#
__repr__(self) str#

__repr__

Return type:

str

__str__(self) str#

__str__

Return type:

str

property num_gpus#

num_gpus property

Return type:

int | None

property outputs#

outputs property

Return type:

Outputs

property penalty_calibration#

penalty_calibration property

Return type:

bool | None

property timeout#

timeout property

Return type:

timedelta | None

class Result#
class ExecutionParameters#
__init__(*args, **kwargs)#
__repr__(self) str#

__repr__

Return type:

str

__str__(self) str#

__str__

Return type:

str

property num_gpus#

num_gpus property

Return type:

int

property num_iterations#

num_iterations property

Return type:

int

property penalty_calibration#

penalty_calibration property

Return type:

bool

property penalty_multipliers#

penalty_multipliers property

Return type:

ndarray

property timeout#

timeout property

Return type:

timedelta

property version#

version property

Return type:

str

class ExecutionTime#
__init__(*args, **kwargs)#
__repr__(self) str#

__repr__

Return type:

str

__str__(self) str#

__str__

Return type:

str

property annealing_time#

annealing_time property

Return type:

timedelta

property cpu_time#

cpu_time property

Return type:

timedelta

property queue_time#

queue_time property

Return type:

timedelta

property time_stamps#

time_stamps property

Return type:

list[timedelta]

__init__(*args, **kwargs)#
__repr__(self) str#

__repr__

Return type:

str

__str__(self) str#

__str__

Return type:

str

property energies#

energies property

Return type:

ndarray

property execution_parameters#

execution_parameters property

Return type:

ExecutionParameters

property execution_time#

execution_time property

Return type:

ExecutionTime

property feasibilities#

feasibilities property

Return type:

ndarray

property message#

message property

Return type:

str

property spins#

spins property

Return type:

list[ndarray[Any, dtype[numpy.int8], writable[False]]]

__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

Overloading:

1. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[False] = False) -> amplify.FixstarsClient.Result

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

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

Returns:

amplify.FixstarsClient.Result:

2. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.FixstarsClient.Result

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

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

Returns:

amplify.FixstarsClient.Result:

3. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.FixstarsClient.Result

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

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

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

Returns:

amplify.FixstarsClient.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 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