WarmStartQAOAFactory#
- class WarmStartQAOAFactory(epsilon)[fuente]#
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.
- Parámetros:
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.
- Muestra:
QiskitOptimizationError – if
epsilon
is not in the range [0, 0.5].
Methods
- create_initial_state(initial_variables)[fuente]#
Creates an initial state quantum circuit to warm start QAOA.