QAOAType

class QAOAType

Bases: Enum

Selects the QAOA circuit construction strategy.

Pass this as QAOA.Parameters.qaoa_type to control which implementation is used when building the QAOA ansatz.

Attributes

AUTO

Automatically choose the best implementation based on the problem structure.

AUTO_QUADRATIC

Like AUTO but restricts the objective to quadratic form.

ORIGINAL

Standard QAOA for unconstrained Ising problems.

ORIGINAL_QUADRATIC

Like ORIGINAL but restricts the objective to quadratic form.

NHOT

QAOA that preserves equal to constraints throughout the circuit, keeping the quantum state in the feasible subspace.

NHOT_QUADRATIC

Like NHOT but 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 NHOT when the problem has disjoint equal to constraints, otherwise falls back to ORIGINAL.

AUTO_QUADRATIC = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_auto.AutoQAOAImpl'>, <amplify.AcceptableDegrees object>)

Like AUTO but 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 NHOT but 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.

ORIGINAL_QUADRATIC = (<class 'amplify_quantum.algo.qaoa.impls.qaoa_original.OriginalQAOAImpl'>, <amplify.AcceptableDegrees object>)

Like ORIGINAL but restricts the objective to quadratic form.