ProjectQ-Framework / ProjectQ

ProjectQ: An open source software framework for quantum computing
https://projectq.ch
Apache License 2.0
874 stars 271 forks source link

REST API update #378

Closed Sov-trotter closed 3 years ago

Sov-trotter commented 3 years ago

I have been referring to the API client in this repo, to build the a similar thing in The Julia Language. According to https://github.com/ProjectQ-Framework/ProjectQ/blob/develop/projectq/backends/_ibm/_ibm_http_client.py#L165-L169, and the docs too, there have to be three fields in the response, viz. downloadQObjectUrlEndpoint, uploadQobjectUrlEndpoint and uploadUrl, but I have been getting only the uploadUrl in response. I happened to discuss it with one of the lead devs of IBMQ and he confirmed that there had indeed been an update, where there's isn't any need of the extra step and directly PUT the QObject to the uploadUrl.

I didn't try the code here in Python, but if someone can confirm then it'd be nice. :)

dbretaud commented 3 years ago

Indeed, I can see now there has been some (additional) modifications to the API since ProjectQ was updated. I will take a look into that