parallel_solveΒΆ

parallel_solve(
model: Model | Poly | Matrix | Constraint | ConstraintList | Sequence[Model | Poly | Matrix | Constraint | ConstraintList],
client: AmplifyClient | Sequence[AmplifyClient],
*,
dry_run: bool | Sequence[bool] = False,
integer_encoding_method: Literal['Unary', 'Linear', 'Binary', 'Default'] | IntegerEncodingMethod | Sequence[Literal['Unary', 'Linear', 'Binary', 'Default'] | IntegerEncodingMethod] = IntegerEncodingMethod.Default,
quadratization_method: Literal['IshikawaKZFD', 'Substitute'] | QuadratizationMethod | Sequence[Literal['IshikawaKZFD', 'Substitute'] | QuadratizationMethod] = QuadratizationMethod.IshikawaKZFD,
substitution_multiplier: float | Sequence[float] = 1.0,
embedding_method: Literal['Default', 'Minor', 'Clique', 'Parallel'] | EmbeddingMethod | Sequence[Literal['Default', 'Minor', 'Clique', 'Parallel'] | EmbeddingMethod] = EmbeddingMethod.Default,
embedding_timeout: float | timedelta | Sequence[float | timedelta] = 10.0,
chain_strength: float | Sequence[float] = 1.0,
num_solves: int | Sequence[int] = 1,
filter_solution: bool | Sequence[bool] = True,
sort_solution: bool | Sequence[bool] = True,
concurrency: int = 0,
) list[Result | None]ΒΆ

parallel_solve

Parameters:
  • model (Model | Poly | Matrix | Constraint | ConstraintList | Sequence[Model | Poly | Matrix | Constraint | ConstraintList])

  • client (AmplifyClient | Sequence[AmplifyClient])

  • dry_run (bool | Sequence[bool]) – Defaults to False.

  • integer_encoding_method (Literal['Unary', 'Linear', 'Binary', 'Default'] | amplify.IntegerEncodingMethod | collections.abc.Sequence[typing.Literal['Unary', 'Linear', 'Binary', 'Default'] | amplify.IntegerEncodingMethod]) – Defaults to IntegerEncodingMethod.Default.

  • quadratization_method (Literal['IshikawaKZFD', 'Substitute'] | amplify.QuadratizationMethod | collections.abc.Sequence[typing.Literal['IshikawaKZFD', 'Substitute'] | amplify.QuadratizationMethod]) – Defaults to QuadratizationMethod.IshikawaKZFD.

  • substitution_multiplier (float | Sequence[float]) – Defaults to 1.0.

  • embedding_method (Literal['Default', 'Minor', 'Clique', 'Parallel'] | amplify.EmbeddingMethod | collections.abc.Sequence[typing.Literal['Default', 'Minor', 'Clique', 'Parallel'] | amplify.EmbeddingMethod]) – Defaults to EmbeddingMethod.Default.

  • embedding_timeout (float | timedelta | Sequence[float | timedelta]) – Defaults to 10.0.

  • chain_strength (float | Sequence[float]) – Defaults to 1.0.

  • num_solves (int | Sequence[int]) – Defaults to 1.

  • filter_solution (bool | Sequence[bool]) – Defaults to True.

  • sort_solution (bool | Sequence[bool]) – Defaults to True.

  • concurrency (int) – Defaults to 0.

Return type:

list[Result | None]