QAOA Parameters
BasicQAOAParams ¶
Bases: BaseModel
Individual QAOA Parameters.
Parameters betas and gammas need to be of same size.
Attributes:
| Name | Type | Description |
|---|---|---|
betas | list[float] | List of beta parameters for the mixer layers in QAOA. |
gammas | list[float] | List of gamma parameters for the cost layers in QAOA. |
LinearQAOAParams ¶
Bases: BaseModel
Linear QAOA Parameters.
Linearly decreasing beta parameters from delta_beta to zero. Linearly growing paramters from zero to delta_gamma.
Attributes:
| Name | Type | Description |
|---|---|---|
delta_beta | float | Parameter scaling for the beta paramters for the mixer layers in QAOA. |
delta_gamma | float | Parameters scaling for the gamma parameters for the cost layers in QAOA. |
delta_beta class-attribute instance-attribute ¶
delta_beta: float = Field(
description="Parameter scaling for the beta paramters for the mixer layers in QAOA."
)
delta_gamma class-attribute instance-attribute ¶
delta_gamma: float = Field(
description="Parameters scaling for the gamma parameters for the cost layers in QAOA."
)
RandomQAOAParams ¶
Bases: BaseModel
Uniform random QAOA Parameter within predefined value ranges.
Attributes:
| Name | Type | Description |
|---|---|---|
seed | int | None | Seed for random number generator. |
beta_range | tuple[float, float] | Value range for uniform random beta parameters (mixer layer). |
gamma_range | tuple[float, float] | Value range for uniform random gamma parameters (cost layer). |
beta_range class-attribute instance-attribute ¶
beta_range: tuple[float, float] = Field(
default=(0, 2 * pi),
description="Value range for uniform random beta parameters (mixer layer).",
)
gamma_range class-attribute instance-attribute ¶
gamma_range: tuple[float, float] = Field(
default=(0, 2 * pi),
description="Value range for uniform random gamma parameters (cost layer).",
)