Improve failed-job behavior for qiskit-experiments (`error_message()`)
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- python
- Domain
- backend-api-design
Research direction
Start with QCDLJob.result() and the underlying QCDL problems' Future.exception() values. Read qiskit-experiments' ExperimentData._add_job_data and its failure analysis to compare jobs whose result() raises with jobs reporting ERROR and error_message(). Done means error_message() returns the aggregated failure reasons, while result() behavior is deliberately confirmed and the failure path works with qiskit-experiments.
Written by the indexing model from the issue text.
Description
QCDLJob surfaces failures by raising JobError from result(). That is consistent with Qiskit's JobV1 API.
However, qiskit-experiments seem to expect a job to terminate in JobStatus.ERROR state, with error_message() that reports the error.
The happy path with qiskit-experiments is verified to work; the failure path is not. We need to:
- Check how current
qiskit-experiments(ExperimentData._add_job_data/ failure analysis) treats a job whoseresult()raises vs. one that reportsERROR+error_message(). - Implement
error_message() -> str | NoneonQCDLJob, aggregating the failure reasons of the underlying QCDL problems (Future.exception()). - Decide whether
result()should keep raising (probably yes — standard Qiskit behavior) witherror_message()as the non-raising complement.
- Dominant language
- Python
- Stars
- 39
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dwavesystems/dwave-qiskit-plugin
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
dwavesystems/dwave-qiskit-plugin#2 · 7 comments ·
All issues in dwavesystems/dwave-qiskit-plugin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
521xueweihan/HelloGitHub#4729 ·
-
auto-reported bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
needs-triage type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
pollen-robotics/reachy_mini_conversation_app#631 ·
Maintainers usually reply within 7 days
-
stix-atlas.json: the same relationship id is used for several different mitigates relationshipsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 76/100