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

Qiskit / qiskit-fermions / 30530363564
98%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2026 09:33AM UTC
Jobs 1
Files 102
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

30 Jul 2026 09:21AM UTC coverage: 98.109% (+0.1%) from 98.014%
30530363564

push

github

web-flow
perf(operators): compute group weights natively for all operator types (#235)

Sampling weights for a grouped Hamiltonian were reduced in Python: pull
the full per-term coefficient array and the full per-term group-index
array across the FFI boundary, then collapse both down to one value per
group in NumPy, plus a second pass to normalize by each group's term
count. The data crossing into Python therefore scaled with the *ungrouped*
term count purely so it could be aggregated straight back down again.

`group_weights()` does that reduction in a single native pass and hands
back only `num_groups()` values. On the N2 Hamiltonian from
docs/guides/sqdrift.rst (251,468 terms in 75,616 groups) this cuts the
weight computation from ~30ms to ~4ms per call.

A group index carried by no term weighs 0.0 rather than dividing by zero.
Index ranges are dense by construction, but nothing enforces that, and a
single NaN would poison the whole probability vector downstream.

Refs #229

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>

64 of 73 new or added lines in 9 files covered. (87.67%)

10431 of 10632 relevant lines covered (98.11%)

312.11 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
96.84
0.0% crates/core/src/operators/edge_vertex_operator.rs
3
97.34
0.0% crates/core/src/operators/majorana_operator.rs
3
96.94
0.0% crates/core/src/operators/transfer_vertex_operator.rs
Jobs
ID Job ID Ran Files Coverage
1 30530363564.1 30 Jul 2026 09:33AM UTC 102
98.11
GitHub Action Run
Source Files on build 30530363564
  • Tree
  • List 102
  • Changed 9
  • Source Changed 9
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30530363564
  • f600fc12 on github
  • Prev Build on main (#30527531774)
  • Next Build on main (#30544761657)
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