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

Qiskit / qiskit-ibm-runtime / 30120351326
88%
main: 88%

Build:
Build:
LAST BUILD BRANCH: ta-program-metadata
DEFAULT BRANCH: main
Ran 24 Jul 2026 07:24PM UTC
Jobs 8
Files 333
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

24 Jul 2026 07:20PM UTC coverage: 87.742% (+0.04%) from 87.702%
30120351326

push

github

web-flow
Write "high-level" prepare function for executor-based Estimator (#3102)

### Summary
Currently, the `EstimatorV2.run` function takes care of dispatching the
PUB's to the "low-level" `prepare_*` (`prepare`, `prepare-pea`,
`prepare_pec`, ...) functions. This creates some issues:
- Some issues when testing: we cannot test the dispatching without
initializing the Estimator and using mocks
- As well as an asymmetry with `SamplerV2`: in Sampler, we have a single
`prepare` function that takes as input pubs and options and returns pubs
and options, mapping inputs of Sampler to inputs of Executor.

In this PR, we:

- [x] Rename the current `prepare` function as `prepare_vanilla`
- [x] Write a `prepare` function that takes inputs of Estimator and maps
them to inputs of Executor, taking care of dispatching to the low-level
`prepare_*` functions.
- [x] Rewrite tests such as
`test_run_dispatches_to_prepare_pec_when_pec_enabled` in a way that does
not require mocks

Fixes #3090 

### 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:

---------

Co-authored-by: Anthony <125415978+apchytr@users.noreply.github.com>

68 of 70 new or added lines in 3 files covered. (97.14%)

3 existing lines in 1 file now uncovered.

9019 of 10279 relevant lines covered (87.74%)

6.96 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
95.45
qiskit_ibm_runtime/executor_estimator/prepare_vanilla.py

Coverage Regressions

Lines Coverage ∆ File
3
96.7
-0.33% qiskit_ibm_runtime/executor_estimator/estimator.py
Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.10-ubuntu-latest - 30120351326.1 24 Jul 2026 07:24PM UTC 333
87.74
GitHub Action Run
2 unit-tests_python3.13-ubuntu-latest - 30120351326.2 24 Jul 2026 07:24PM UTC 333
87.74
GitHub Action Run
3 unit-tests_python3.11-ubuntu-latest - 30120351326.3 24 Jul 2026 07:24PM UTC 333
87.74
GitHub Action Run
4 unit-tests_python3.11-windows-latest - 30120351326.4 24 Jul 2026 07:25PM UTC 333
86.26
GitHub Action Run
5 unit-tests_python3.13-windows-latest - 30120351326.5 24 Jul 2026 07:25PM UTC 333
86.26
GitHub Action Run
6 unit-tests_python3.12-ubuntu-latest - 30120351326.6 24 Jul 2026 07:24PM UTC 333
87.74
GitHub Action Run
7 unit-tests_python3.12-windows-latest - 30120351326.7 24 Jul 2026 07:25PM UTC 333
86.26
GitHub Action Run
8 unit-tests_python3.10-windows-latest - 30120351326.8 24 Jul 2026 07:25PM UTC 333
86.26
GitHub Action Run
Source Files on build 30120351326
  • Tree
  • List 333
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30120351326
  • 4711a380 on github
  • Prev Build on gh-readonly-queue/main/pr-3089-521961de60c5ebf905bef8b8fd43ba1f4d028dcb (#30116180982)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc