• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Qiskit / qiskit-ibm-runtime / 28243261246 / 8
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-2996-23bc9772e6766ca2a7855869cb6a23cf6ac45197
DEFAULT BRANCH: main
Ran 26 Jun 2026 02:12PM UTC
Files 319
Run time 29s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jun 2026 02:06PM UTC coverage: 87.01% (+0.003%) from 87.007%
28243261246.8

push

github

web-flow
Add precision validation for estimator pubs to prevent non-positive v… (#2963)

### Summary

Specifying 0 as you precision in the pub level input on the legacy
EstimatorV2 will cause the following server error:
`RuntimeJobFailureError: "Unable to retrieve job result. Error code
1500;`

A guard clause should be added before server submission to throw
`IBMInputValueError: 'The precision value must be strictly greater than
0.'` instead.

This is consistent to specifying 0 as your precision in the run kwarg
level or default options level.

```
qc = QuantumCircuit(2)
qc.h(0)
qc.cx(0, 1)

pm = generate_preset_pass_manager(optimization_level=1, backend=backend)
isa_circuit = pm.run(qc)
isa_obs = SparsePauliOp("ZZ").apply_layout(isa_circuit.layout)

estimator = EstimatorV2(mode=backend)

# precision = 0 on the pub -> accepted by the client, then ZeroDivisionError server-side
job = estimator.run([(isa_circuit, isa_obs, None, 0.0)])
print(job.result())  # job fails: (error 1500)
```


### AI/LLM disclosure

- [x] I used the following tool to generate or modify code: Claude Code

8279 of 9515 relevant lines covered (87.01%)

0.87 hits per line

Source Files on job unit-tests_python3.10-ubuntu-latest - 28243261246.8
  • Tree
  • List 319
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 28243261246
  • 5d0b7014 on github
  • Prev Job for on gh-readonly-queue/main/pr-2963-49dc44147422b7e89fbc6937f0dc60dd145a0bbd (#28241693970.2)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc