Run the specific QAOA problem instance with given quantum arguments, depth of QAOA circuit, measurement keyword arguments (mes_kwargs) and maximum iterations for optimization (max_iter).
The argument to which the QAOA circuit is applied, or a function returning a QuantumVariable or QuantumArray to which the QAOA circuit is applied.
The amount of QAOA layers.
The keyword arguments for the measurement function. Default is an empty dictionary.
The maximum number of iterations for the optimization method. Default is 50.
Specifies the way the initial optimization parameters are chosen. Available are random
and tqa
. The default is random
: The parameters are initialized uniformly at random in the interval \([0,\pi/2]\). For tqa
, the parameters are chosen based on the Trotterized Quantum Annealing protocol. If tqa
is chosen, and no init_function
for the QAOAProblem is specified, the \(\ket{-}^n\) state is prepared (the ground state for the X mixer).
Specifies the initial optimization parameters.
Specifies the SciPy optimization routine. Available are, e.g., COBYLA
, COBYQA
, Nelder-Mead
. The Default is COBYLA
. In tracing mode (i.e. Jasp) Jax-traceable optimization routines must be utilized. Available are COBYLA
, SPSA
.
A dictionary of solver options.
The optimal result after running QAOA problem for a specific problem instance. It contains the measurement results after applying the optimal QAOA circuit to the quantum argument.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4