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.

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 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.