Closed gines-carrascal closed 1 year ago
There is an open issue on primitives around retry Qiskit/qiskit-ibm-runtime#682
I'm closing the issue as it should be addressed in https://github.com/Qiskit/qiskit-ibm-runtime, particularly in the issue mentioned above.
Environment
What is happening?
When you call the "fit" function for a QVC, there are lots of call to the Sampler primitive to complete the process. This can take hours. During this process, if only one call to the Sampler fails (i.e. gets a timeout), all the process stops and you lost all the work done.
Example of trace:
How can we reproduce the issue?
Simply calling fit on a QVC. The error happens randomly when a circuit evaluation fails
What should happen?
In this scenario is preferred to print a warning, take "default values"(i.e. all 0) and continue the training.
Any suggestions?
Change this kind of behviour:
for something like this (idea, not actual code)