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

Qiskit / qiskit-ibm-runtime / 29437376116
87%
main: 87%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/main/pr-3044-ce0d7fe87781694d29c511bfa6f9cf279bc8387f
DEFAULT BRANCH: main
Ran 15 Jul 2026 05:42PM UTC
Jobs 7
Files 326
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

15 Jul 2026 05:38PM UTC coverage: 87.121% (+0.009%) from 87.112%
29437376116

push

github

web-flow
Small improvements to prepare functions (#3039)

### Summary
This PR adds two small improvements to the existing functions:
- Firstly, it modifies `prepare_pec` so that when `gamma` is `1`, the
calculation of `noise_gain` does not raise a "dividing-by-zero" warning,
which currently shows up (eg in tests) when users try `prepare_pec`
passing trivial maps.
- Secondly, it adds a graceful error message to `calculate_gamma` for
the case where a ref is missing from the noise models map.
- Finally, it rewrites all the error messages for the case of missing
refs consistently.

### AI/LLM disclosure

- [x] I didn't use LLM tooling, or only used it privately.
- [ ] I used the following tool to help write this PR description:
- [ ] I used the following tool to generate or modify code:

15 of 15 new or added lines in 3 files covered. (100.0%)

8828 of 10133 relevant lines covered (87.12%)

6.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.12-ubuntu-latest - 29437376116.1 15 Jul 2026 05:42PM UTC 326
87.12
GitHub Action Run
2 unit-tests_python3.11-windows-latest - 29437376116.2 15 Jul 2026 05:44PM UTC 326
85.62
GitHub Action Run
3 unit-tests_python3.10-windows-latest - 29437376116.3 15 Jul 2026 05:44PM UTC 326
85.62
GitHub Action Run
4 unit-tests_python3.12-windows-latest - 29437376116.4 15 Jul 2026 05:44PM UTC 326
85.62
GitHub Action Run
5 unit-tests_python3.10-ubuntu-latest - 29437376116.5 15 Jul 2026 05:43PM UTC 326
87.12
GitHub Action Run
6 unit-tests_python3.13-ubuntu-latest - 29437376116.6 15 Jul 2026 05:43PM UTC 326
87.12
GitHub Action Run
7 unit-tests_python3.11-ubuntu-latest - 29437376116.7 15 Jul 2026 05:43PM UTC 326
87.12
GitHub Action Run
Source Files on build 29437376116
  • Tree
  • List 326
  • Changed 3
  • Source Changed 3
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29437376116
  • c653a00d on github
  • Prev Build on gh-readonly-queue/main/pr-3038-7e3751dcefad4edf1fd5569e4804bfc6c4554051 (#29422030416)
  • 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