QOKit icon indicating copy to clipboard operation
QOKit copied to clipboard

Objective function of a general QUBO problem

Open eegzheng opened this issue 11 months ago • 9 comments

In you example "Simulation of QAOA applied to a general problem", you gave an example specified by 'terms' below:

N = 4 np.random.seed(10) terms = [(np.random.normal(), spin_pair) for spin_pair in combinations(range(N), r=2)]

I wonder how to get the objective function in order to optimize this general Hamiltonian. Many thanks.

eegzheng avatar Mar 17 '24 19:03 eegzheng