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__

Return type:

str

__str__(self) str

__str__

Return type:

str

property beta_list

beta_list property

Return type:

list[float] | None

property beta_range

beta_range property

Return type:

tuple[float, float, int] | None

property dense

dense property

Return type:

bool | None

property num_reads

num_reads property

Return type:

int | None

property num_results

num_results property

Return type:

int | None

property num_sweeps

num_sweeps property

Return type:

int | None

property timeout

timeout property

Return type:

timedelta | None

property ve_num

ve_num property

Return type:

int | None

property vector_mode

vector_mode property

Return type:

VectorMode | None

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

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property constraint

constraint property

Return type:

bool

property energy

energy property

Return type:

float

property memory_usage

memory_usage property

Return type:

float

property spin

spin property

Return type:

dict[str, int]

property time

time property

Return type:

timedelta

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

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property execution_time

execution_time property

Return type:

timedelta

property solve_qubo_time

solve_qubo_time property

Return type:

timedelta

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

__repr__

Return type:

str

__str__(self) str

__str__

Return type:

str

property result

result property

Return type:

list[Result]

property timing

timing property

Return type:

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__

Return type:

str

__str__(self) str

__str__

Return type:

str

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

Return type:

AcceptableDegrees

property parameters

parameters property

Return type:

Parameters

property proxy

proxy property

Return type:

str | None

property set_andzero

set_andzero property

Return type:

bool

property set_fixed

set_fixed property

Return type:

bool

property set_maxone

set_maxone property

Return type:

bool

property set_minmaxone

set_minmaxone property

Return type:

bool

property set_onehot

set_onehot property

Return type:

bool

property set_orone

set_orone property

Return type:

bool

property set_supplement

set_supplement property

Return type:

bool

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:

PathLike | None

property write_response_data

write_response_data property

Return type:

PathLike | None