HitachiClientΒΆ

class HitachiClientΒΆ

Bases: AmplifyClient

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

graph

graph 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 averaged_energyΒΆ

averaged_energy property

Return type:

bool | None

property averaged_spinsΒΆ

averaged_spins property

Return type:

bool | None

property energiesΒΆ

energies property

Return type:

bool | None

property execution_timeΒΆ

execution_time property

Return type:

bool | None

property num_outputsΒΆ

num_outputs property

Return type:

int | None

property spinsΒΆ

spins property

Return type:

bool | None

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

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property temperature_initialΒΆ

temperature_initial property

Return type:

float | None

property temperature_num_stepsΒΆ

temperature_num_steps property

Return type:

int | None

property temperature_step_lengthΒΆ

temperature_step_length property

Return type:

int | None

property temperature_targetΒΆ

temperature_target property

Return type:

float | None

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

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property num_executionsΒΆ

num_executions property

Return type:

int | None

property outputsΒΆ

outputs property

Return type:

Outputs

property parametersΒΆ

parameters property

Return type:

TemperatureParameters

property typeΒΆ

type property

Return type:

int

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

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property averaged_energyΒΆ

averaged_energy property

Return type:

float | None

property averaged_spinsΒΆ

averaged_spins property

Return type:

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

property energiesΒΆ

energies property

Return type:

ndarray

property execution_timeΒΆ

execution_time property

Return type:

timedelta

property spinsΒΆ

spins property

Return type:

list[list[tuple[int, int, int]]]

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

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

property job_idΒΆ

job_id property

Return type:

str

property messageΒΆ

message property

Return type:

str | None

property resultΒΆ

result property

Return type:

Result

property statusΒΆ

status property

Return type:

int

__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, 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ΒΆ

acceptable_degrees property

Return type:

AcceptableDegrees

property graphΒΆ

graph property

Return type:

Graph

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:

Path | None

property write_response_dataΒΆ

write_response_data property

Return type:

Path | None