Questions tagged [callback]

A piece of code (i.e. the address or reference of a function or method or a lambda expression) that is passed as an argument to other code, which is expected to call back (execute) the argument at some convenient time.

Filter by
Sorted by
Tagged with
3
votes
2answers
100 views

Callback function in VQE do not return the intermediate values of the parameters

I tried to save all the intermediate values of the parameters when running the built-in VQE in qiskit. The callback function can save the mean values and counts, however it seems only save the very ...