QAOAType¶
- class QAOAType¶
Bases:
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.- classmethod __contains__(value)¶
Return True if value is in cls.
value is in cls if: 1) value is a member of cls, or 2) value is the value of one of the cls’s members. 3) value is a pseudo-member (flags)
- classmethod __getitem__(name)¶
Return the member matching name.
- classmethod __iter__()¶
Return members in definition order.
- classmethod __len__()¶
Return the number of members (no aliases)
- 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.