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

Qiskit / qiskit-fermions / 30527531774
98%

Build:
DEFAULT BRANCH: main
Ran 30 Jul 2026 08:48AM 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 08:39AM UTC coverage: 98.014% (+0.004%) from 98.01%
30527531774

push

github

web-flow
feat(operators): add has_groups() to the Python API (#233)

Checking whether an operator tracks groups had to go through the `groups`
attribute, i.e. `op.groups is None`. That getter clones the entire group
index vector out of Rust just to have it discarded again, so the cheapest
possible question -- "is this `Option` populated?" -- was paying a copy
proportional to the number of terms.

`has_groups()` answers it without touching the indices. The C API already
had `qf_{ferm,maj}_op_has_groups`; this brings the Python API up to par
and covers all four operator types, not just the two the C API exposes.

Also corrects the two C API docstrings, which claimed has_groups reports a
`groups` attribute "that is not empty". The implementation has always been
`is_some()`, and an empty-but-present `groups` is reachable in practice
(`from_fcidump` seeds `Some(vec![])`), so `true` with zero indices is a
real state -- now documented as such on both the Rust and Python side
rather than contradicted.

Refs #229

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

32 of 38 new or added lines in 10 files covered. (84.21%)

10366 of 10576 relevant lines covered (98.01%)

313.55 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
94.59
-5.41% crates/core/src/operators/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 30527531774.1 30 Jul 2026 08:48AM UTC 102
98.01
GitHub Action Run
Source Files on build 30527531774
  • Tree
  • List 102
  • Changed 11
  • Source Changed 11
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30527531774
  • ee4638d2 on github
  • Prev Build on main (#30524780342)
  • Next Build on main (#30530363564)
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