English
Languages
English
Shortcuts



WarmStartQAOAFactory

class WarmStartQAOAFactory(epsilon)[source]

Bases: object

A factory that produces quantum circuits for the QAOA implementation. The methods of this factory can be overridden to modify behavior of QAOA. This implementation generates quantum circuits for initial state and mixer to warm start QAOA.

Parameters

epsilon (float) – the regularization parameter that changes the initial variables according to xi = epsilon if xi < epsilon xi = 1-epsilon if xi > epsilon. The regularization parameter epsilon should be between 0 and 0.5. When it is 0.5 then warm start corresponds to standard QAOA.

Raises

QiskitOptimizationError – if epsilon is not in the range [0, 0.5].

Methods

create_initial_state(initial_variables)

Creates an initial state quantum circuit to warm start QAOA.

create_initial_variables(solution)

Creates initial variable values to warm start QAOA.

create_mixer(initial_variables)

Creates an evolved mixer circuit as Ry(theta)Rz(-2beta)Ry(-theta).