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

qiskit-community / qiskit-machine-learning
90%

Build:
DEFAULT BRANCH: main
Repo Added 05 Jun 2023 05:56PM UTC
Files 116
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

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • AC/intersphinx-cloud
  • PR_NTangled
  • Update-CODEOWNERS
  • Update-migration-guide
  • VFF_PR
  • add-arxiv-shield
  • add-sbplx-optimizer
  • add-support-py313
  • bump-version-pre-release
  • cct_fns_use
  • dependabot/github_actions/actions/checkout-5
  • dependabot/github_actions/actions/checkout-6
  • dependabot/github_actions/actions/download-artifact-5
  • dependabot/github_actions/actions/download-artifact-6
  • dependabot/github_actions/actions/setup-python-6
  • dependabot/github_actions/actions/upload-artifact-5
  • edoaltamura-coveralls-fix
  • edoaltamura-fix-toxini-qiskit
  • edoaltamura-pin-qiskit-2
  • enh-docs-samplerqnn-outputshape
  • feature-predict-probabilities
  • feature-support-for-different-v2-primitives
  • feature/phase-of-matter-dataset
  • fischer-info
  • fix-black-version
  • fix-callback-nonscipy-optimizer
  • fix-callback_trainable_model
  • fix-copyright
  • fix-mypy-typing
  • fix-tox-ini
  • fix-valueerror-basekernel
  • fix/samplerqnn-postprocess-layout
  • fix_ci
  • fix_rnd_ci
  • fix_trainable_kernels
  • fixes_mypy
  • main
  • mergify/bp/stable/0.8/pr-862
  • mergify/bp/stable/0.8/pr-875
  • mergify/bp/stable/0.8/pr-878
  • mergify/bp/stable/0.8/pr-879
  • mergify/bp/stable/0.8/pr-884
  • mergify/bp/stable/0.8/pr-886
  • mergify/bp/stable/0.8/pr-894
  • mergify/bp/stable/0.8/pr-919
  • mergify/bp/stable/0.8/pr-925
  • mergify/bp/stable/0.8/pr-926
  • mergify/bp/stable/0.8/pr-933
  • mergify/bp/stable/0.8/pr-944
  • mergify/bp/stable/0.8/pr-964
  • mergify/bp/stable/0.8/pr-981
  • mergify/bp/stable/0.8/pr-982
  • paper-citation
  • pin-scipy1_15
  • pre-release-0.8.1
  • pre-release-v-bump
  • release_0_8_2
  • remove-psutil
  • reno_4_cct_fns
  • restore-qiskit-version
  • scikit
  • scipy1p16
  • stable/0.6
  • stable/0.7
  • stable/0.8
  • support-py313
  • typo
  • update-contributing-guide
  • update-outshape-dec-tutorial
  • update-serialisation
  • update_tutorials

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

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

Relevant lines Covered
Build:
Build:
5771 RELEVANT LINES 5174 COVERED LINES
0.9 HITS PER LINE
Source Files on main
  • Tree
  • List 116
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
26703952211 main 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 mapp... push 31 May 2026 06:00AM UTC web-flow github
89.66
26619051542 main 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 mapp... push 29 May 2026 05:56AM UTC web-flow github
89.66
26555717925 main 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 mapp... push 28 May 2026 03:10PM UTC web-flow github
89.66
26491964308 main 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 mapp... push 27 May 2026 05:54AM UTC web-flow github
89.66
26384425993 main 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 mapp... push 25 May 2026 06:04AM UTC web-flow github
89.66
26323502606 main 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 mapp... push 23 May 2026 05:23AM UTC web-flow github
89.66
26076949558 main 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 mapp... push 19 May 2026 05:45AM UTC web-flow github
89.66
26014420221 main 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 mapp... push 18 May 2026 05:51AM UTC web-flow github
89.66
25981593195 main 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 mapp... push 17 May 2026 05:36AM UTC web-flow github
89.66
25952615355 main 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 mapp... push 16 May 2026 05:18AM UTC web-flow github
89.66
See All Builds (1125)
  • Repo on GitHub
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