HitachiClient

class HitachiClient

ベースクラス: 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__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property averaged_energy

averaged_energy property

戻り値の型:

bool | None

property averaged_spins

averaged_spins property

戻り値の型:

bool | None

property energies

energies property

戻り値の型:

bool | None

property execution_time

execution_time property

戻り値の型:

bool | None

property num_outputs

num_outputs property

戻り値の型:

int | None

property spins

spins property

戻り値の型:

bool | None

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property temperature_initial

temperature_initial property

戻り値の型:

float | None

property temperature_num_steps

temperature_num_steps property

戻り値の型:

int | None

property temperature_step_length

temperature_step_length property

戻り値の型:

int | None

property temperature_target

temperature_target property

戻り値の型:

float | None

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property num_executions

num_executions property

戻り値の型:

int | None

property outputs

outputs property

戻り値の型:

Outputs

property parameters

parameters property

戻り値の型:

TemperatureParameters

property type

type property

戻り値の型:

int

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property averaged_energy

averaged_energy property

戻り値の型:

float | None

property averaged_spins

averaged_spins property

戻り値の型:

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

property energies

energies property

戻り値の型:

ndarray

property execution_time

execution_time property

戻り値の型:

timedelta

property spins

spins property

戻り値の型:

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

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property job_id

job_id property

戻り値の型:

str

property message

message property

戻り値の型:

str | None

property result

result property

戻り値の型:

Result

property status

status property

戻り値の型:

int

__init__(self) None
__init__(self, token: str = '', url: str = '', proxy: str | None = None) None

__init__

パラメータ:
  • token (str) -- Defaults to ''.

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

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

__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

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

戻り値の型:

AcceptableDegrees

property graph

graph property

戻り値の型:

Graph

property parameters

parameters property

戻り値の型:

Parameters

property proxy

proxy property

戻り値の型:

str | None

property token

token property

戻り値の型:

str

property url

url property

戻り値の型:

str

property version

version property

戻り値の型:

str

property write_request_data

write_request_data property

戻り値の型:

Path | None

property write_response_data

write_response_data property

戻り値の型:

Path | None