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

qiskit-community / qiskit-machine-learning / 25482029184
90%

Build:
DEFAULT BRANCH: main
Ran 07 May 2026 08:16AM UTC
Jobs 1
Files 116
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

07 May 2026 07:23AM UTC coverage: 89.655% (+0.01%) from 89.643%
25482029184

push

github

web-flow
Fix SamplerQNN._postprocess to handle transpiled circuit layouts (#1041)

* fix: marginalise ancilla qubits in SamplerQNN._postprocess

  The previous filter (ki < 2**num_virtual_qubits) discarded valid
  measurements when logical qubits were mapped to high physical
  positions by the transpiler. This fix uses the circuit layout to
  extract only the logical qubit bits and marginalises over ancillas.

  Fixes #1040

* test: add regression test for SamplerQNN layout postprocessing

  Verifies that _postprocess correctly marginalises ancilla qubits
  when logical qubits are mapped to high physical positions by the
  transpiler.

  Related: #1040

* docs: add release note for SamplerQNN postprocess fix

  Fixes #1040

* style: apply black formatting

* fix: use SamplerV2 in test to trigger physical-space bitstring bug

* docs: clarify SamplerV2 usage in regression test docstring

* style: apply black formatting

* fix: use American English spelling in comments

* fix: add type annotation for probs_i to satisfy mypy

* fix: use American English in release note

* docs: update release note to describe both bug causes and add ki to spell dict

* docs: update test docstring to describe both bug causes and fix spelling

* refactor: rename ki to
  key_int for clarity in _postprocess

12 of 12 new or added lines in 1 file covered. (100.0%)

5174 of 5771 relevant lines covered (89.66%)

0.9 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25482029184.1 07 May 2026 08:16AM UTC 116
89.66
GitHub Action Run
Source Files on build 25482029184
  • Tree
  • List 116
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25482029184
  • f6832841 on github
  • Prev Build on main (#24128087555)
  • Next Build on main (#25591450653)
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