-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Raising errors for missing M or nshots #81
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #81 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 232 232
=========================================
Hits 232 232
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Okay, that is a good point in favor of moving this check to the front end. @marcorossi5, could you please show @BrunoLiegiBastonLiegi how to change the front-end API and include this feature? |
Moving the logic to the webapp means adding the checks in this function: https://github.com/qiboteam/qibo-webapp/blob/892ee98d36d777873a1c713d3c92b8beade19cd6/src/client/views.py#L75 New tests go in this class: https://github.com/qiboteam/qibo-webapp/blob/892ee98d36d777873a1c713d3c92b8beade19cd6/src/client/tests/test_views.py#L27 |
Now that qiboteam/qibo-webapp#105 implemented the blocking of circuit without measurements or |
Thanks @BrunoLiegiBastonLiegi . I think we should make the |
Thanks @BrunoLiegiBastonLiegi, could you please double check if the README and sphinx docs are okay with your latest changes? |
The |
Thanks, I would suggest to do not state any device name here and just point to the user that in order to device the device name, visit the cloud system and checkout the available partitions for his account. |
As per title, errors are raised when running on hardware and either:
nshots
is not definedthis should close #73
At the moment I am just checking whether
device == "k2"
, but ideally it would be nice if each partition had a property,simulation=True
for instance, doing the check on the node inside the job and returning an error response.