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

Resolve fails when some jobs have failed #39

Open
lpawela opened this issue Oct 12, 2022 · 4 comments
Open

Resolve fails when some jobs have failed #39

lpawela opened this issue Oct 12, 2022 · 4 comments
Assignees

Comments

@lpawela
Copy link
Member

lpawela commented Oct 12, 2022

When some of the jobs in an experiment have failed, the entire resolve fails. Here is an example

02:36:04  |pyqbench|lpawela@fury PyQBench ±|lp/ibmq-experiments ✗|→ qbench disc-fourier resolve ibmq-experiments/test_batch_washington.yml ibmq-experiments/results/test_batch_washington.yml
INFO | 2022-10-12 02:36:07,790 | qbench | Enabling account and creating backend
INFO | 2022-10-12 02:36:15,943 | qbench | Reading jobs ids from the input file
INFO | 2022-10-12 02:36:15,943 | qbench | Fetching total of 22 jobs
Traceback (most recent call last):
  File "/home/lpawela/anaconda3/envs/pyqbench/bin/qbench", line 8, in <module>
    sys.exit(main())
  File "/home/lpawela/new-zksi-repo/PyQBench/qbench/cli.py", line 20, in main
    args.func(args)
  File "/home/lpawela/new-zksi-repo/PyQBench/qbench/fourier/_cli.py", line 26, in _resolve
    resolved = resolve_results(results)
  File "/home/lpawela/new-zksi-repo/PyQBench/qbench/fourier/_experiment.py", line 249, in resolve_results
    result_pairs = [
  File "/home/lpawela/new-zksi-repo/PyQBench/qbench/fourier/_experiment.py", line 253, in <listcomp>
    entry.keys, jobs_mapping[entry.job_id].result().get_counts()  # type: ignore
  File "/home/lpawela/anaconda3/envs/pyqbench/lib/python3.10/site-packages/qiskit/providers/ibmq/job/ibmqjob.py", line 290, in result
    raise IBMQJobFailureError(
qiskit.providers.ibmq.job.exceptions.IBMQJobFailureError: 'Unable to retrieve result for job 63347e3bfcf0f35ca5eae594. Job has failed: Internal Error. Error code: 9443.'

Can we skip the failed jobs and only resolve succesful ones? We can have "gaps" in the data, that is fine. We should just have a way to mark the parts that have failed.

@lpawela
Copy link
Member Author

lpawela commented Oct 13, 2022

After merging master into lp/experiments I get the following error

11:25:50  |base|lpawela@strange PyQBench ±|lp/ibmq-experiments|→ qbench disc-fourier resolve
cd -- qbench disc-fourier resolve
bash: cd: too many arguments

@lpawela
Copy link
Member Author

lpawela commented Oct 13, 2022

After installing in a clean conda environment the problem in comment #39 (comment) has vanished. I still get the original error.

@plewandowska777
Copy link
Contributor

Try with my branch pl/fix-resolve-error.

@lpawela
Copy link
Member Author

lpawela commented Oct 13, 2022

Now it looks like an infinite download loop

01:12:16  |pyqbench|lpawela@strange PyQBench ±|lp/ibmq-experiments ✗|→ qbench disc-fourier resolve ibmq-experiments/test_batch_washington.yml ibmq-experiments/results/test_batch_washington.yml
INFO | 2022-10-13 13:12:23,746 | qbench | Enabling account and creating backend
INFO | 2022-10-13 13:12:29,369 | qbench | Reading jobs ids from the input file
INFO | 2022-10-13 13:12:29,370 | qbench | Fetching total of 22 jobs
WARNING | 2022-10-13 13:12:33,156 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:34,804 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:36,624 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:38,597 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:40,212 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:41,450 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:43,126 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:44,812 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:46,658 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594
WARNING | 2022-10-13 13:12:48,304 | qbench | IBMQJobFailureError for job 63347e3bfcf0f35ca5eae594

This continues indefinitely with the same job id.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants