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

Qiskit / qiskit-ibm-runtime / 28388864578
87%

Build:
DEFAULT BRANCH: main
Ran 29 Jun 2026 05:01PM 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

29 Jun 2026 04:50PM UTC coverage: 87.01%. Remained the same
28388864578

push

github

web-flow
Fix misleading constraint-validator names in NoiseLearnerOptions (#2969)

<!--
⚠️ The pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using reno if the change needs
to be
  documented in the release notes.
⚠️ If your pull request fixes an open issue, please link to the issue.

✅ I have added the tests to cover my changes.
✅ I have updated the documentation accordingly.
✅ I have read the CONTRIBUTING document.
-->

### Summary
Issue: https://github.com/Qiskit/qiskit-ibm-runtime/issues/2971
Fix misleading constraint-validator attribute names in
`NoiseLearnerOptions`.

The two private constraint validators were named after the wrong
constraint due to a copy-paste:

- `_gt0` enforced `ge=0` on `max_layers_to_learn`
- `_ge0` enforced `ge=1` on `shots_per_randomization` /
`num_randomizations`

### Details and comments

Everywhere else in the `options` package the validator attribute name
encodes its constraint (`_gt0` → `gt=0`, `_ge0` → `ge=0`, `_ge1` →
`ge=1`), and the parallel `LayerNoiseLearningOptions` uses `_ge0` /
`_ge1` for these exact same fields. This PR renames them to `_ge0` /
`_ge1` to match.

This is a naming-only change; the enforced constraints (`ge=0` and
`ge=1`) are unchanged, so no release note is needed.
`test/unit/test_options.py` still passes and the constraints remain
enforced (`max_layers_to_learn=0` accepted; `-1`, and
`num_randomizations` / `shots_per_randomization` of `0` rejected).

### AI/LLM disclosure

- [ ] I didn't use LLM tooling, or only used it privately.
- [x] I used the following tool to help write this PR description:
Gemini
- [ ] I used the following tool to generate or modify 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.11-ubuntu-latest - 28388864578.1 29 Jun 2026 05:01PM UTC 319
87.01
GitHub Action Run
2 unit-tests_python3.11-windows-latest - 28388864578.2 29 Jun 2026 05:02PM UTC 319
85.41
GitHub Action Run
3 unit-tests_python3.12-windows-latest - 28388864578.3 29 Jun 2026 05:02PM UTC 319
85.41
GitHub Action Run
4 unit-tests_python3.13-windows-latest - 28388864578.4 29 Jun 2026 05:02PM UTC 319
85.41
GitHub Action Run
5 unit-tests_python3.10-windows-latest - 28388864578.5 29 Jun 2026 05:03PM UTC 319
85.41
GitHub Action Run
6 unit-tests_python3.10-ubuntu-latest - 28388864578.6 29 Jun 2026 05:01PM UTC 319
87.01
GitHub Action Run
7 unit-tests_python3.12-ubuntu-latest - 28388864578.7 29 Jun 2026 05:01PM UTC 319
87.01
GitHub Action Run
8 unit-tests_python3.13-ubuntu-latest - 28388864578.8 29 Jun 2026 05:01PM UTC 319
87.01
GitHub Action Run
Source Files on build 28388864578
  • Tree
  • List 319
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28388864578
  • ffcc1079 on github
  • Prev Build on main (#28355213343)
  • 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