solve¶

solve(
model: Model,
client: FixstarsClient | DWaveSamplerClient | LeapHybridSamplerClient | LeapHybridCQMSamplerClient | FujitsuDA4Client | ToshibaSQBM2Client | GurobiClient | NECVA2Client,
integer_encoding_method: str | IntegerEncodingMethod = Default,
quadratization_method: str | QuadratizationMethod = IshikawaKZFD,
substitution_multiplier: float = 1.0,
embedding_method: str | EmbeddingMethod = Default,
embedding_timeout: float | timedelta = 10.0,
chain_strength: float = 1.0,
dry_run: bool = False,
num_solves: int = 1,
filter_solution: bool = True,
sort_solution: bool = True,
) Result¶
solve(
model: Poly | Matrix | Constraint | ConstraintList,
client: FixstarsClient | DWaveSamplerClient | LeapHybridSamplerClient | LeapHybridCQMSamplerClient | FujitsuDA4Client | ToshibaSQBM2Client | GurobiClient | NECVA2Client,
integer_encoding_method: str | IntegerEncodingMethod = Default,
quadratization_method: str | QuadratizationMethod = IshikawaKZFD,
substitution_multiplier: float = 1.0,
embedding_method: str | EmbeddingMethod = Default,
embedding_timeout: float | timedelta = 10.0,
chain_strength: float = 1.0,
dry_run: bool = False,
num_solves: int = 1,
filter_solution: bool = True,
sort_solution: bool = True,
) Result

solve

Overloading:

1. solve(model: amplify.Model, client: Union[amplify.FixstarsClient, amplify.DWaveSamplerClient, amplify.LeapHybridSamplerClient, amplify.LeapHybridCQMSamplerClient, amplify.FujitsuDA4Client, amplify.ToshibaSQBM2Client, amplify.GurobiClient, amplify.NECVA2Client], integer_encoding_method: Union[str, amplify.IntegerEncodingMethod] = Default, quadratization_method: Union[str, amplify.QuadratizationMethod] = IshikawaKZFD, substitution_multiplier: float = 1.0, embedding_method: Union[str, amplify.EmbeddingMethod] = Default, embedding_timeout: Union[float, datetime.timedelta] = 10.0, chain_strength: float = 1.0, dry_run: bool = False, num_solves: int = 1, filter_solution: bool = True, sort_solution: bool = True) -> amplify.Result

Args:
  • model (amplify.Model):

  • client (amplify.FixstarsClient | amplify.DWaveSamplerClient | amplify.LeapHybridSamplerClient | amplify.LeapHybridCQMSamplerClient | amplify.FujitsuDA4Client | amplify.ToshibaSQBM2Client | amplify.GurobiClient | amplify.NECVA2Client):

  • integer_encoding_method (str | amplify.IntegerEncodingMethod): Defaults to Default.

  • quadratization_method (str | amplify.QuadratizationMethod): Defaults to IshikawaKZFD.

  • substitution_multiplier (float): Defaults to 1.0.

  • embedding_method (str | amplify.EmbeddingMethod): Defaults to Default.

  • embedding_timeout (float | datetime.timedelta): Defaults to 10.0.

  • chain_strength (float): Defaults to 1.0.

  • dry_run (bool): Defaults to False.

  • num_solves (int): Defaults to 1.

  • filter_solution (bool): Defaults to True.

  • sort_solution (bool): Defaults to True.

Returns:

amplify.Result:

2. solve(model: Union[amplify.Poly, amplify.Matrix, amplify.Constraint, amplify.ConstraintList], client: Union[amplify.FixstarsClient, amplify.DWaveSamplerClient, amplify.LeapHybridSamplerClient, amplify.LeapHybridCQMSamplerClient, amplify.FujitsuDA4Client, amplify.ToshibaSQBM2Client, amplify.GurobiClient, amplify.NECVA2Client], integer_encoding_method: Union[str, amplify.IntegerEncodingMethod] = Default, quadratization_method: Union[str, amplify.QuadratizationMethod] = IshikawaKZFD, substitution_multiplier: float = 1.0, embedding_method: Union[str, amplify.EmbeddingMethod] = Default, embedding_timeout: Union[float, datetime.timedelta] = 10.0, chain_strength: float = 1.0, dry_run: bool = False, num_solves: int = 1, filter_solution: bool = True, sort_solution: bool = True) -> amplify.Result

Args:
  • model (amplify.Poly | amplify.Matrix | amplify.Constraint | amplify.ConstraintList):

  • client (amplify.FixstarsClient | amplify.DWaveSamplerClient | amplify.LeapHybridSamplerClient | amplify.LeapHybridCQMSamplerClient | amplify.FujitsuDA4Client | amplify.ToshibaSQBM2Client | amplify.GurobiClient | amplify.NECVA2Client):

  • integer_encoding_method (str | amplify.IntegerEncodingMethod): Defaults to Default.

  • quadratization_method (str | amplify.QuadratizationMethod): Defaults to IshikawaKZFD.

  • substitution_multiplier (float): Defaults to 1.0.

  • embedding_method (str | amplify.EmbeddingMethod): Defaults to Default.

  • embedding_timeout (float | datetime.timedelta): Defaults to 10.0.

  • chain_strength (float): Defaults to 1.0.

  • dry_run (bool): Defaults to False.

  • num_solves (int): Defaults to 1.

  • filter_solution (bool): Defaults to True.

  • sort_solution (bool): Defaults to True.

Returns:

amplify.Result: