CustomConfig ¶
Bases: BaseModel
Additional FlexQAOA circuit configuration.
Attributes:
| Name | Type | Description |
|---|---|---|
max_qubits | PositiveInt | None | Maximum number of qubits allowed for the circuit. If |
minimize_qubits | bool | Minimize the number of used qubits in the circuit if set to |
wstate | Literal['log', 'bilinear', 'linear'] | WState generation cricuit. Choice between:
Default: |
qft_synth | Literal['line', 'full'] | QFT synthesis method. Choice between:
Default: |
max_qubits class-attribute instance-attribute ¶
max_qubits: PositiveInt | None = Field(
default=None,
description="Maximum number of qubits allowed for the circuit. If `None`, no limit is applied.",
)
minimize_qubits class-attribute instance-attribute ¶
minimize_qubits: bool = Field(
default=False,
description="Minimize the number of used qubits in the circuit if set to `True`. Otherwise, minimize circuit depth.",
)
qft_synth class-attribute instance-attribute ¶
qft_synth: Literal["line", "full"] = Field(
default="full",
description="QFT synthesis method. Shorter depth (full) implementation requires all-to-all connectivity. Longer (line) implementation requires only linear connectivity.",
)
wstate class-attribute instance-attribute ¶
wstate: Literal["log", "bilinear", "linear"] = Field(
default="log",
description="WState generation cricuit. Choice between: Logarithmic-depth (log) binary tree circuit and linear or bilinear construction. bilinear places the start in the middle and linearly constructs the circuit outwards.",
)