entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
116 stars 58 forks source link

Error Catching for RQAOA Workflow #206

Open shahidee44 opened 1 year ago

shahidee44 commented 1 year ago

Prerequisites

Before raising this issue, I have already checked that I am:

Describe the bug

The RQAOA Workflow is missing some form of error catching in the case where a QAOA run is incomplete/crashes midway.

To Reproduce

Link to file Line 385

Expected behavior

If an error occurred during one of the QAOA runs and the error is caught, but the run is incomplete. The RQAOA should be terminated and whatever information that was obtained should be available in the final workflow object in the result attribute.