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

Qiskit / qiskit-ibm-runtime / 28243552032
87%

Build:
DEFAULT BRANCH: main
Ran 26 Jun 2026 02:16PM UTC
Jobs 8
Files 319
Run time 2min
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%
28243552032

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

2 of 2 new or added lines in 1 file covered. (100.0%)

8279 of 9515 relevant lines covered (87.01%)

6.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.13-ubuntu-latest - 28243552032.1 26 Jun 2026 02:16PM UTC 319
87.01
GitHub Action Run
2 unit-tests_python3.10-ubuntu-latest - 28243552032.2 26 Jun 2026 02:16PM UTC 319
87.01
GitHub Action Run
3 unit-tests_python3.12-ubuntu-latest - 28243552032.3 26 Jun 2026 02:16PM UTC 319
87.01
GitHub Action Run
4 unit-tests_python3.11-ubuntu-latest - 28243552032.4 26 Jun 2026 02:16PM UTC 319
87.01
GitHub Action Run
5 unit-tests_python3.12-windows-latest - 28243552032.5 26 Jun 2026 02:17PM UTC 319
85.41
GitHub Action Run
6 unit-tests_python3.13-windows-latest - 28243552032.6 26 Jun 2026 02:17PM UTC 319
85.41
GitHub Action Run
7 unit-tests_python3.11-windows-latest - 28243552032.7 26 Jun 2026 02:17PM UTC 319
85.41
GitHub Action Run
8 unit-tests_python3.10-windows-latest - 28243552032.8 26 Jun 2026 02:17PM UTC 319
85.41
GitHub Action Run
Source Files on build 28243552032
  • Tree
  • List 319
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28243552032
  • 5d0b7014 on github
  • Prev Build on main (#28241693970)
  • 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