QAOAType¶
- class QAOAType¶
ベースクラス:
EnumSelects the QAOA circuit construction strategy.
Pass this as
QAOA.Parameters.qaoa_typeto control which implementation is used when building the QAOA ansatz.Attributes
Automatically choose the best implementation based on the problem structure.
Like
AUTObut restricts the objective to quadratic form.Standard QAOA for unconstrained Ising problems.
Like
ORIGINALbut restricts the objective to quadratic form.QAOA that preserves equal to constraints throughout the circuit, keeping the quantum state in the feasible subspace.
Like
NHOTbut restricts the objective to quadratic form.- AUTO = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_auto.AutoQAOAImpl'>, <amplify.AcceptableDegrees object>)¶
Automatically choose the best implementation based on the problem structure. Selects
NHOTwhen the problem has disjoint equal to constraints, otherwise falls back toORIGINAL.
- AUTO_QUADRATIC = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_auto.AutoQAOAImpl'>, <amplify.AcceptableDegrees object>)¶
Like
AUTObut restricts the objective to quadratic form.
- NHOT = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_n_hot.NHOTQAOAImpl'>, <amplify.AcceptableDegrees object>)¶
QAOA that preserves equal to constraints throughout the circuit, keeping the quantum state in the feasible subspace.
- NHOT_QUADRATIC = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_n_hot.NHOTQAOAImpl'>, <amplify.AcceptableDegrees object>)¶
Like
NHOTbut restricts the objective to quadratic form.
- ORIGINAL = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_original.OriginalQAOAImpl'>, <amplify.AcceptableDegrees object>)¶
Standard QAOA for unconstrained Ising problems.