LeapHybridCQMSamplerClient

class LeapHybridCQMSamplerClient

ベースクラス: AmplifyClient

Methods

__init__

__init__

solve

solve

Attributes

acceptable_degrees

acceptable_degrees property

compress_qpu_problem_data

compress_qpu_problem_data 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

Overload 1.

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

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

Returns:

dimod.sampleset.SampleSet:

Overload 2.

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

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

Returns:

dimod.sampleset.SampleSet:

Overload 3.

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

  • constraint (amplify.Constraint | amplify.ConstraintList)

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

Returns:

dimod.sampleset.SampleSet:

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

戻り値の型:

AcceptableDegrees

property compress_qpu_problem_data

compress_qpu_problem_data property

戻り値の型:

bool | None

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

戻り値の型:

Path | None

property write_response_data

write_response_data property

戻り値の型:

Path | None