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

Qiskit / qiskit-ibm-runtime / 45374291000
91%
main: 91%

Build:
Build:
LAST BUILD BRANCH: feature/tags-in-integration-tests
DEFAULT BRANCH: main
Ran 24 Nov 2026 10:28AM UTC
Jobs 11
Files 344
Run time 1min
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 Nov 2026 10:22AM UTC coverage: 91.267% (+0.1%) from 91.167%
45374291000

push

github

web-flow
Support mid-circuit measure and reset in fake backends (#3438)

<!--
⚠️ The pull request title should be short detailed and understandable
for all.
⚠️ Also, please add a release note file using towncrier 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

Fake backends that advertise `measure_2` (FakeKingston, FakePittsburgh,
FakeBoston) and `reset_2` (FakeBoston) can now run circuits using
`MidCircuitMeasure` and `MidCircuitReset`. Previously, these circuits
failed in local testing mode with `AerError: unknown instruction:
measure_2`, because Aer does not support these instruction names.

### Details and comments

A new private pass, `ConvertMidCircuitToStandard`
(`fake_provider/mid_circuit_conversion.py`), replaces single-qubit
`measure_<n>` instructions with `Measure`. And `reset_<n>` instructions
with `Reset` right before simulation, including inside control-flow
blocks. It is applied in two places, because the executor path builds
its own `AerSampler` and never calls `FakeBackendV2.run`:

| Path | Before | After |
|---|---|---|
| `FakeBackendV2.run` and the legacy `SamplerV2`/`EstimatorV2` in local
mode | `AerError` | works |
| Client-side `executor_sampler.Sampler` in local mode
(`run_quantum_program`) | `AerError` | works |

**Noise:** the converted instructions use the error rates and durations
of `measure` and `reset` from the fake backend's noise model, not the
separate `measure_2` and `reset_2` entries. This is documented in the
`FakeBackendV2.run` docstring and the release note: fake backends can't
be used to compare the noise of `measure` and `measure_2`. Keeping the
instruction-specific noise would need changes to how the noise model is
built, so I left it out of scope.

**Tests:**
- `test/unit/fake_provider... (continued)

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

8852 of 9699 relevant lines covered (91.27%)

9.96 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-tests_python3.11-windows-latest - 45374291000.1 24 Nov 2026 10:34AM UTC 344
89.57
GitHub Action Run
2 unit-tests_python3.10-windows-latest - 45374291000.2 24 Nov 2026 10:31AM UTC 344
88.9
GitHub Action Run
3 unit-tests_python3.13-ubuntu-latest - 45374291000.3 24 Nov 2026 10:28AM UTC 344
91.27
GitHub Action Run
4 unit-tests_python3.13-macos-latest - 45374291000.4 24 Nov 2026 10:28AM UTC 344
91.27
GitHub Action Run
5 unit-tests_python3.12-ubuntu-latest - 45374291000.5 24 Nov 2026 10:29AM UTC 344
91.27
GitHub Action Run
6 unit-tests_python3.10-ubuntu-latest - 45374291000.6 24 Nov 2026 10:29AM UTC 344
90.6
GitHub Action Run
7 unit-tests_python3.12-windows-latest - 45374291000.7 24 Nov 2026 10:32AM UTC 344
89.57
GitHub Action Run
8 unit-tests_python3.13-windows-latest - 45374291000.8 24 Nov 2026 10:29AM UTC 344
89.57
GitHub Action Run
9 unit-tests_python3.11-ubuntu-latest - 45374291000.9 24 Nov 2026 10:29AM UTC 344
91.27
GitHub Action Run
10 unit-tests_python3.12-macos-latest - 45374291000.10 24 Nov 2026 10:31AM UTC 344
91.27
GitHub Action Run
11 unit-tests_python3.11-macos-latest - 45374291000.11 24 Nov 2026 10:28AM UTC 344
91.27
GitHub Action Run
Source Files on build 45374291000
  • Tree
  • List 344
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #45374291000
  • c00052ad on github
  • Prev Build on gh-readonly-queue/main/pr-3592-f6709f3d8889558469c675ad7b54b503253fed2a (#45204162119)
  • 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