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

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

Build:
Build:
LAST BUILD BRANCH: sim
DEFAULT BRANCH: main
Ran 24 Jul 2026 07:26PM UTC
Files 333
Run time 9s
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.3

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>

9019 of 10279 relevant lines covered (87.74%)

0.88 hits per line

Source Files on job unit-tests_python3.11-ubuntu-latest - 30120351326.3
  • Tree
  • List 333
  • Changed 6
  • Source Changed 6
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 30120351326
  • 4711a380 on github
  • Prev Job for on gh-readonly-queue/main/pr-3102-9271f84706cd5a432867aa730a95db85d726c70e (#30116180982.8)
  • 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