Skip to content
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

Throw runtime error if job fails on IonQ's server #429

Merged
merged 2 commits into from
Jul 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
remove return variable
Signed-off-by: A.M. Santana <[email protected]>
  • Loading branch information
anthony-santana committed Jul 18, 2023
commit 78ea89b6a985f4c095e7ac5066276fd473b68eb7
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ bool IonQServerHelper::jobIsDone(ServerMessage &getJobResponse) {
"account for more information.");

// Return whether the job is completed
auto ret = jobs[0].at("status").get<std::string>() == "completed";
return ret;
return jobs[0].at("status").get<std::string>() == "completed";
}

// Process the results from a job
Expand Down
Loading