FixstarsClientΒΆ

class FixstarsClientΒΆ

Bases: BaseClient

Methods

__init__

solve

solve

Attributes

acceptable_degrees

Returns: amplify.AcceptableDegrees:

async_threshold

Returns: datetime.timedelta | None:

compression

Returns: bool:

parameters

Returns: amplify.FixstarsClient.Parameters:

proxy

Returns: str | None:

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ΒΆ
class OutputsΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ
Return type:

str

__str__(self) strΒΆ
Return type:

str

property duplicateΒΆ

Returns: bool | None:

property energiesΒΆ

Returns: bool | None:

property feasibilitiesΒΆ

Returns: bool | None:

property num_outputsΒΆ

Returns: int | None:

property sortΒΆ

Returns: bool | None:

property spinsΒΆ

Returns: bool | None:

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

str

__str__(self) strΒΆ
Return type:

str

property num_gpusΒΆ

Returns: int | None:

property outputsΒΆ

Returns: amplify.FixstarsClient.Parameters.Outputs:

property penalty_calibrationΒΆ

Returns: bool | None:

property timeoutΒΆ

Returns: datetime.timedelta | None:

class ResultΒΆ
class ExecutionParametersΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ
Return type:

str

__str__(self) strΒΆ
Return type:

str

property num_gpusΒΆ

Returns: int:

property num_iterationsΒΆ

Returns: int:

property penalty_calibrationΒΆ

Returns: bool:

property penalty_multipliersΒΆ

Returns: numpy.ndarray:

property timeoutΒΆ

Returns: datetime.timedelta:

property versionΒΆ

Returns: str:

class ExecutionTimeΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ
Return type:

str

__str__(self) strΒΆ
Return type:

str

property annealing_timeΒΆ

Returns: datetime.timedelta:

property cpu_timeΒΆ

Returns: datetime.timedelta:

property queue_timeΒΆ

Returns: datetime.timedelta:

property time_stampsΒΆ

Returns: list[datetime.timedelta]:

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

str

__str__(self) strΒΆ
Return type:

str

property energiesΒΆ

Returns: numpy.ndarray:

property execution_parametersΒΆ

Returns: amplify.FixstarsClient.Result.ExecutionParameters:

property execution_timeΒΆ

Returns: amplify.FixstarsClient.Result.ExecutionTime:

property feasibilitiesΒΆ

Returns: numpy.ndarray:

property messageΒΆ

Returns: str:

property spinsΒΆ

Returns: list[numpy.ndarray[dtype=int8, writable=False]]:

__init__(self) NoneΒΆ
__init__(self, token: str = '', url: str = '', proxy: str | None = None) None
Parameters:
  • token (str) – Defaults to ''.

  • url (str) – Defaults to ''.

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

__repr__(self) strΒΆ
Return type:

str

__str__(self) 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.FixstarsClient.Result:

Overload 2.

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

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

Returns:

amplify.FixstarsClient.Result:

Overload 3.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

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

Returns:

amplify.FixstarsClient.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 async_thresholdΒΆ

Returns: datetime.timedelta | None:

property compressionΒΆ

Returns: bool:

property parametersΒΆ

Returns: amplify.FixstarsClient.Parameters:

property proxyΒΆ

Returns: str | None:

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: