Skip to content
This repository has been archived by the owner on Dec 7, 2021. It is now read-only.

Support auto recovery of internet connection error #117

Closed
chunfuchen opened this issue Sep 14, 2018 · 5 comments
Closed

Support auto recovery of internet connection error #117

chunfuchen opened this issue Sep 14, 2018 · 5 comments
Assignees

Comments

@chunfuchen
Copy link
Contributor

What is the expected behavior?

For the iterative algorithm, like VQE, it submits the circuits to the backend multiple times; however, sometimes the local machine might lose internet connection or other reasons, and then the program is crashed.
This leads all intermediate results gone.

One aspect to resolve this issue is having a robust querying for the result from the backend.
Another one is generating the checkpoint for the iterative algorithm, and then users can resume that later.

I would like to work on the first one.

@chunfuchen
Copy link
Contributor Author

#118 solved the problem of internet error.

saving the checkpoint is working progress.

@chunfuchen
Copy link
Contributor Author

some bug when comparing the status by String, using JobStatus Enum is better.

https://github.com/Qiskit/aqua/blob/master/qiskit_aqua/utils/run_circuits.py#L179

@chunfuchen
Copy link
Contributor Author

Use terra API to check the status of result now.

@chunfuchen
Copy link
Contributor Author

Still need to figure out a way to create the snapshot; however for scipy optimizer, it seems that we can not get the internal state during the optimization.

@chunfuchen
Copy link
Contributor Author

closed and discuss #677

stefan-woerner added a commit that referenced this issue Aug 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant