HitachiClientΒΆ

class HitachiClientΒΆ

Bases: BaseClient

Methods

__init__

solve

solve

Attributes

acceptable_degrees

Returns: amplify.AcceptableDegrees:

graph

Returns: amplify.Graph:

parameters

Returns: amplify.HitachiClient.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 averaged_energyΒΆ

Returns: bool | None:

property averaged_spinsΒΆ

Returns: bool | None:

property energiesΒΆ

Returns: bool | None:

property execution_timeΒΆ

Returns: bool | None:

property num_outputsΒΆ

Returns: int | None:

property spinsΒΆ

Returns: bool | None:

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

str

__str__(self) strΒΆ
Return type:

str

property temperature_initialΒΆ

Returns: float | None:

property temperature_num_stepsΒΆ

Returns: int | None:

property temperature_step_lengthΒΆ

Returns: int | None:

property temperature_targetΒΆ

Returns: float | None:

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

str

__str__(self) strΒΆ
Return type:

str

property num_executionsΒΆ

Returns: int | None:

property outputsΒΆ

Returns: amplify.HitachiClient.Parameters.Outputs:

property parametersΒΆ

Returns: amplify.HitachiClient.Parameters.TemperatureParameters:

property typeΒΆ

Returns: int:

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

str

__str__(self) strΒΆ
Return type:

str

property averaged_energyΒΆ

Returns: float | None:

property averaged_spinsΒΆ

Returns: list[tuple[int, int, float]] | None:

property energiesΒΆ

Returns: numpy.ndarray:

property execution_timeΒΆ

Returns: datetime.timedelta:

property spinsΒΆ

Returns: list[list[tuple[int, int, int]]]:

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

str

__str__(self) strΒΆ
Return type:

str

property job_idΒΆ

Returns: str:

property messageΒΆ

Returns: str | None:

property resultΒΆ

Returns: amplify.HitachiClient.Result.Result:

property statusΒΆ

Returns: int:

__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, objective: Poly | Matrix, dry_run: Literal[True]) None

solve

Overload 1.

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

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

Returns:

amplify.HitachiClient.Result:

Overload 2.

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

  • dry_run (typing.Literal[True])

property acceptable_degreesΒΆ

Returns: amplify.AcceptableDegrees:

property graphΒΆ

Returns: amplify.Graph:

property parametersΒΆ

Returns: amplify.HitachiClient.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: