entropicalabs / openqaoa

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

Azure backend doesn't catch http response errors #205

Open Q-lds opened 1 year ago

Q-lds commented 1 year ago

Prerequisites

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

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Using an azure device (e.g. device = create_device(location='azure', name='rigetti.sim.qvm', resource_id=resource_id, az_location=az_location) ) lead to the following HttpResponseError

image

Since the exception was not caught gracefully by OQ the result of the run was lost.

Expected behaviour

OQ should always exit gracefully any error that happens during the hybrid classical-quantum loop. This is fundamental to avoid loosing QPU data.