FixstarsClient

class FixstarsClient

ベースクラス: 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
戻り値の型:

str

__str__(self) str
戻り値の型:

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
戻り値の型:

str

__str__(self) str
戻り値の型:

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
戻り値の型:

str

__str__(self) str
戻り値の型:

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
戻り値の型:

str

__str__(self) str
戻り値の型:

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
戻り値の型:

str

__str__(self) str
戻り値の型:

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
パラメータ:
  • token (str) -- Defaults to ''.

  • url (str) -- Defaults to ''.

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

__repr__(self) str
戻り値の型:

str

__str__(self) str
戻り値の型:

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: