NECVA2ClientΒΆ

class NECVA2ClientΒΆ

Bases: AmplifyClient

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 queue_timeΒΆ

queue_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ΒΆ

Bases: Enum

__repr__(self) strΒΆ

__repr__

Return type:

str

__str__(self) strΒΆ

__str__

Return type:

str

Accuracy = 0ΒΆ
Speed = 1ΒΆ
__nb_enum__ = <capsule object NULL>ΒΆ
__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

Overload 1.

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

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

Returns:

amplify.NECVA2Client.Result:

Overload 2.

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

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

Returns:

amplify.NECVA2Client.Result:

Overload 3.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

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

Returns:

amplify.NECVA2Client.Result:

Overload 4.

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

  • dry_run (typing.Literal[True])

Overload 5.

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

  • dry_run (typing.Literal[True])

Overload 6.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

  • dry_run (typing.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:

Path | None

property write_response_dataΒΆ

write_response_data property

Return type:

Path | None