AdvancedConfig ¶
Bases: BaseModel
Additional FlexQAOA algorithm configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
mixer | XYMixer | Dict | Mixer types in XY-ring-mixer. Default: |
parallel_indicators | bool | Toggle to apply indicator functions in parallel. Does not affect sampling performance of QAOA, but only circuit metrics, like number of qubits and circuit depth. |
discard_slack | bool | Discard slack qubits in evaluation, i.e. only measure on the binary variables of the initial problem. This requires an auxilary cost function that penalizes infeasible solutions. |
infeas_penalty | float | None | Penalty for infeasible solutions if |
discard_slack class-attribute instance-attribute ¶
discard_slack: bool = Field(
default=False,
description="Discard slack qubits in evaluation, i.e. only measure on the binary variables of the initial problem. This requires an auxilary cost function that penalizes infeasible solutions.",
)
infeas_penalty class-attribute instance-attribute ¶
infeas_penalty: float | None = Field(
default=None,
ge=0,
description="Penalty for infeasible solutions if `discard_slack` is activated.By defalt, 10 times the max absolute intial bias is chosen.",
)
mixer class-attribute instance-attribute ¶
mixer: XYMixer = Field(
default_factory=lambda: XYMixer(),
description='Mixer types in XY-ring-mixer. Default: `["even", "odd", "last"]`',
)
parallel_indicators class-attribute instance-attribute ¶
parallel_indicators: bool = Field(
default=True,
description="Toggle to apply indicator functions in parallel. Does not affect sampling performance of QAOA, but only circuit metrics, like number of qubits and circuit depth.",
)