NECVA2ClientΒΆ

class NECVA2ClientΒΆ

Bases: BaseClient

Methods

__init__

solve

solve

Attributes

acceptable_degrees

Returns: amplify.AcceptableDegrees:

parameters

Returns: amplify.NECVA2Client.Parameters:

proxy

Returns: str | None:

set_andzero

Returns: bool:

set_fixed

Returns: bool:

set_maxone

Returns: bool:

set_minmaxone

Returns: bool:

set_onehot

Returns: bool:

set_orone

Returns: bool:

set_supplement

Returns: bool:

token

Returns: str:

url

Returns: str:

version

Returns: str:

write_request_data

Returns: pathlib.Path | None:

write_response_data

Returns: pathlib.Path | None:

class ParametersΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ
Return type:

str

__str__(self) strΒΆ
Return type:

str

property beta_listΒΆ

Returns: list[float] | None:

property beta_rangeΒΆ

Returns: tuple[float, float, int] | None:

property denseΒΆ

Returns: bool | None:

property num_readsΒΆ

Returns: int | None:

property num_resultsΒΆ

Returns: int | None:

property num_sweepsΒΆ

Returns: int | None:

property timeoutΒΆ

Returns: datetime.timedelta | None:

property ve_numΒΆ

Returns: int | None:

property vector_modeΒΆ

Returns: amplify.NECVA2Client.VectorMode | None:

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

str

__str__(self) strΒΆ
Return type:

str

property constraintΒΆ

Returns: bool:

property energyΒΆ

Returns: float:

property memory_usageΒΆ

Returns: float:

property spinΒΆ

Returns: dict[str, int]:

property timeΒΆ

Returns: datetime.timedelta:

class TimingΒΆ
__init__(*args, **kwargs)ΒΆ
__repr__(self) strΒΆ
Return type:

str

__str__(self) strΒΆ
Return type:

str

property execution_timeΒΆ

Returns: datetime.timedelta:

property queue_timeΒΆ

Returns: datetime.timedelta:

property solve_qubo_timeΒΆ

Returns: datetime.timedelta:

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

str

__str__(self) strΒΆ
Return type:

str

property resultΒΆ

Returns: list[amplify.NECVA2Client.Result.Result]:

property timingΒΆ

Returns: amplify.NECVA2Client.Result.Timing:

class VectorModeΒΆ

Bases: Enum

classmethod __contains__(value)ΒΆ

Return True if value is in cls.

value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)

classmethod __getitem__(name)ΒΆ

Return the member matching name.

classmethod __iter__()ΒΆ

Return members in definition order.

classmethod __len__()ΒΆ

Return the number of members (no aliases)

__repr__(self) strΒΆ
Return type:

str

__str__(self) 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
Parameters:
  • token (str) – Defaults to ''.

  • url (str) – Defaults to ''.

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

__repr__(self) strΒΆ
Return type:

str

__str__(self) 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ΒΆ

Returns: amplify.AcceptableDegrees:

property parametersΒΆ

Returns: amplify.NECVA2Client.Parameters:

property proxyΒΆ

Returns: str | None:

property set_andzeroΒΆ

Returns: bool:

property set_fixedΒΆ

Returns: bool:

property set_maxoneΒΆ

Returns: bool:

property set_minmaxoneΒΆ

Returns: bool:

property set_onehotΒΆ

Returns: bool:

property set_oroneΒΆ

Returns: bool:

property set_supplementΒΆ

Returns: bool:

property tokenΒΆ

Returns: str:

property urlΒΆ

Returns: str:

property versionΒΆ

Returns: str:

property write_request_dataΒΆ

Returns: pathlib.Path | None:

property write_response_dataΒΆ

Returns: pathlib.Path | None: