parallel_solve

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

parallel_solve

Overloading:

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

Args:
  • model (amplify.Model | list[amplify.Model]):

  • client (amplify.FixstarsClient | amplify.DWaveSamplerClient | amplify.LeapHybridSamplerClient | amplify.LeapHybridCQMSamplerClient | amplify.FujitsuDA4Client | amplify.ToshibaSQBM2Client | amplify.GurobiClient | amplify.NECVA2Client | amplify.DASClient | list[Union[amplify.FixstarsClient, amplify.DWaveSamplerClient, amplify.LeapHybridSamplerClient, amplify.LeapHybridCQMSamplerClient, amplify.FujitsuDA4Client, amplify.ToshibaSQBM2Client, amplify.GurobiClient, amplify.NECVA2Client, amplify.DASClient]]):

  • integer_encoding_method (str | amplify.IntegerEncodingMethod | list[Union[str, amplify.IntegerEncodingMethod]]): Defaults to Default.

  • quadratization_method (str | amplify.QuadratizationMethod | list[Union[str, amplify.QuadratizationMethod]]): Defaults to IshikawaKZFD.

  • substitution_multiplier (float | list[float]): Defaults to 1.0.

  • embedding_method (str | amplify.EmbeddingMethod | list[Union[str, amplify.EmbeddingMethod]]): Defaults to Default.

  • embedding_timeout (float | datetime.timedelta | list[Union[float, datetime.timedelta]]): Defaults to 10.0.

  • chain_strength (float | list[float]): Defaults to 1.0.

  • dry_run (bool | list[bool]): Defaults to False.

  • num_solves (int | list[int]): Defaults to 1.

  • filter_solution (bool | list[bool]): Defaults to True.

  • sort_solution (bool | list[bool]): Defaults to True.

  • concurrency (int): Defaults to 0.

Returns:

list[Optional[amplify.Result]]:

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

Args:
  • model (amplify.Poly | amplify.Matrix | amplify.Constraint | amplify.ConstraintList | list[Union[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 | amplify.DASClient | list[Union[amplify.FixstarsClient, amplify.DWaveSamplerClient, amplify.LeapHybridSamplerClient, amplify.LeapHybridCQMSamplerClient, amplify.FujitsuDA4Client, amplify.ToshibaSQBM2Client, amplify.GurobiClient, amplify.NECVA2Client, amplify.DASClient]]):

  • integer_encoding_method (str | amplify.IntegerEncodingMethod | list[Union[str, amplify.IntegerEncodingMethod]]): Defaults to Default.

  • quadratization_method (str | amplify.QuadratizationMethod | list[Union[str, amplify.QuadratizationMethod]]): Defaults to IshikawaKZFD.

  • substitution_multiplier (float | list[float]): Defaults to 1.0.

  • embedding_method (str | amplify.EmbeddingMethod | list[Union[str, amplify.EmbeddingMethod]]): Defaults to Default.

  • embedding_timeout (float | datetime.timedelta | list[Union[float, datetime.timedelta]]): Defaults to 10.0.

  • chain_strength (float | list[float]): Defaults to 1.0.

  • dry_run (bool | list[bool]): Defaults to False.

  • num_solves (int | list[int]): Defaults to 1.

  • filter_solution (bool | list[bool]): Defaults to True.

  • sort_solution (bool | list[bool]): Defaults to True.

  • concurrency (int): Defaults to 0.

Returns:

list[Optional[amplify.Result]]: