class QPanda::QAOA

Overview

Quantum Approximate Optimization Algorithm. More…

Detailed Documentation

Quantum Approximate Optimization Algorithm.

Construction

Constructor of ChemiQ.

Methods

set Hamiltonian

Parameters:

QPauliMap&

pauli map

set val of Delta T

Parameters:

double

the val of Delta T

set step

Parameters:

size_t

the val of step

get step

Returns:

return the val of step

set Shots val

Parameters:

size_t

the val of Shots

regiest user defined functional

Parameters:

QUserDefinedFunc&

the user defined functional

set default optimize parameter

Parameters:

vector_d&

the default optimize parameters

whether or not enable the log file

Parameters:

bool

whether or not

string

filename log file name

get optimizer object

Returns:

AbstractOptimizer* the optimizer object ptr

execute optimizer

Returns:

return true on success, or else return false

get optimizer result

Returns:

return QOptimizationResult

scan Para to file

Returns:

return true on success, or else return false