LeapHybridCQMSamplerClient¶

class LeapHybridCQMSamplerClient¶

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

parameters

parameters property

properties

properties property

proxy

proxy property

solver

solver property

solver_names

solver_names property

token

token property

url

url property

version

version property

write_request_data

write_request_data property

write_response_data

write_response_data property

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

__init__

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

  • solver (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,
) SampleSet¶
solve(
self,
constraint: Constraint | ConstraintList,
dry_run: Literal[False] = False,
) SampleSet
solve(
self,
objective: Poly | Matrix,
constraint: Constraint | ConstraintList,
dry_run: Literal[False] = False,
) SampleSet
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) -> dimod.sampleset.SampleSet

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

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

Returns:

dimod.sampleset.SampleSet:

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

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

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

Returns:

dimod.sampleset.SampleSet:

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

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

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

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

Returns:

dimod.sampleset.SampleSet:

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

戻り値の型:

DWaveClientParameters

property properties¶

properties property

戻り値の型:

dict[str, Any]

property proxy¶

proxy property

戻り値の型:

str | None

property solver¶

solver property

戻り値の型:

str

property solver_names¶

solver_names property

戻り値の型:

list[str]

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