1
$\begingroup$

I'm running VQE algorithm on ibmq-qasm-simulator.
I'm trying to implement a restart mechanism in order to be able to start a new computation from the result of a previous one.

To do so I've tried to set VQE' s initial_point parameter to result['optimal_point'], where result is the return value of vqe.run(quinstance) of the previous computation.

The code has worked for a very small graph (4 nodes, 4 edges), anyway it continues to fail for little bigger graphs (5 and 6 nodes). It doesn't converge to a minimum energy state but continues to oscillate.

Is this the correct way to implement a restart?
Thanks

$\endgroup$
  • $\begingroup$ Just an intermediate question: there was a bug with the restarting algorithm in version 0.19.0, which was fixed in 0.19.2. Are you running this latest version? $\endgroup$ – Cryoris May 18 at 15:16
  • $\begingroup$ I don't know that algorithm, could you please show it to me? $\endgroup$ – Valentina May 18 at 15:35
  • $\begingroup$ Sorry, that was a typo. I meant "a bug with restarting the algorithm". What's the Qiskit version you are running? $\endgroup$ – Cryoris May 18 at 19:48
  • $\begingroup$ I'm running 0.19.1 $\endgroup$ – Valentina May 19 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.