• 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/checkout-7
  • 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%
27860912292

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
27860912292 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 20 Jun 2026 05:55AM UTC web-flow github
89.66
27808620671 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 Jun 2026 07:01AM UTC web-flow github
89.66
27784880601 dependabot/github_actions/actions/checkout-7 Merge fa89b7682 into f6832841e Pull #1049 18 Jun 2026 08:36PM UTC web-flow github
89.66
27738703234 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 Jun 2026 06:19AM UTC web-flow github
89.66
27598295433 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 Jun 2026 07:10AM UTC web-flow github
89.66
27527513486 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 15 Jun 2026 07:01AM UTC web-flow github
89.66
27489327806 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 14 Jun 2026 06:13AM UTC web-flow github
89.66
27480204869 feature/phase-of-matter-dataset Merge d410e1708 into f6832841e Pull #1044 13 Jun 2026 10:48PM UTC web-flow github
89.8
27254602310 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 10 Jun 2026 08:50AM UTC web-flow github
89.66
27184761189 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 09 Jun 2026 08:27AM UTC web-flow github
89.66
See All Builds (1140)
  • 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