NECVA2Client

class NECVA2Client

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

parameters

parameters property

proxy

proxy property

set_andzero

set_andzero property

set_fixed

set_fixed property

set_maxone

set_maxone property

set_minmaxone

set_minmaxone property

set_onehot

set_onehot property

set_orone

set_orone property

set_supplement

set_supplement 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
__init__(*args, **kwargs)
__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property beta_list

beta_list property

戻り値の型:

list[float] | None

property beta_range

beta_range property

戻り値の型:

tuple[float, float, int] | None

property dense

dense property

戻り値の型:

bool | None

property num_reads

num_reads property

戻り値の型:

int | None

property num_results

num_results property

戻り値の型:

int | None

property num_sweeps

num_sweeps property

戻り値の型:

int | None

property timeout

timeout property

戻り値の型:

timedelta | None

property ve_num

ve_num property

戻り値の型:

int | None

property vector_mode

vector_mode property

戻り値の型:

VectorMode | None

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property constraint

constraint property

戻り値の型:

bool

property energy

energy property

戻り値の型:

float

property memory_usage

memory_usage property

戻り値の型:

float

property spin

spin property

戻り値の型:

dict[str, int]

property time

time property

戻り値の型:

timedelta

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property execution_time

execution_time property

戻り値の型:

timedelta

property queue_time

queue_time property

戻り値の型:

timedelta

property solve_qubo_time

solve_qubo_time property

戻り値の型:

timedelta

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

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

property result

result property

戻り値の型:

list[Result]

property timing

timing property

戻り値の型:

Timing

class VectorMode
__eq__(value, /)

Return self==value.

__ge__(value, /)

Return self>=value.

__gt__(value, /)

Return self>value.

__hash__()

Return hash(self).

__index__()

Return self converted to an integer, if self is suitable for use as an index into a list.

__init__(*args, **kwargs)
__int__()

int(self)

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__repr__(self) str

__repr__

戻り値の型:

str

__str__(self) str

__str__

戻り値の型:

str

Accuracy = NECVA2ClientVectorMode.Accuracy
Speed = NECVA2ClientVectorMode.Speed
__name__ = 'VectorMode'
__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,
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

Overloading:

1. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[False] = False) -> amplify.NECVA2Client.Result

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

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

Returns:

amplify.NECVA2Client.Result:

2. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.NECVA2Client.Result

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

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

Returns:

amplify.NECVA2Client.Result:

3. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[False] = False) -> amplify.NECVA2Client.Result

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

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

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

Returns:

amplify.NECVA2Client.Result:

4. solve(self, objective: Union[amplify.Poly, amplify.Matrix], dry_run: Literal[True]) -> None

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

  • dry_run (Literal[True]):

5. solve(self, constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True]) -> None

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

  • dry_run (Literal[True]):

6. solve(self, objective: Union[amplify.Poly, amplify.Matrix], constraint: Union[amplify.Constraint, amplify.ConstraintList], dry_run: Literal[True]) -> None

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

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

  • dry_run (Literal[True]):

property acceptable_degrees

acceptable_degrees property

戻り値の型:

AcceptableDegrees

property parameters

parameters property

戻り値の型:

Parameters

property proxy

proxy property

戻り値の型:

str | None

property set_andzero

set_andzero property

戻り値の型:

bool

property set_fixed

set_fixed property

戻り値の型:

bool

property set_maxone

set_maxone property

戻り値の型:

bool

property set_minmaxone

set_minmaxone property

戻り値の型:

bool

property set_onehot

set_onehot property

戻り値の型:

bool

property set_orone

set_orone property

戻り値の型:

bool

property set_supplement

set_supplement property

戻り値の型:

bool

property token

token property

戻り値の型:

str

property url

url property

戻り値の型:

str

property version

version property

戻り値の型:

str

property write_request_data

write_request_data property

戻り値の型:

PathLike | None

property write_response_data

write_response_data property

戻り値の型:

PathLike | None