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

Qiskit / qiskit-fermions / 30744562503
98%

Build:
DEFAULT BRANCH: main
Ran 02 Aug 2026 11:02AM UTC
Jobs 1
Files 103
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

02 Aug 2026 10:51AM UTC coverage: 98.135% (+0.01%) from 98.121%
30744562503

push

github

web-flow
fix(operators): stop conjugating coefficients in ichop (#253)

`ichop` pushed `term.coeff.conj()` rather than `term.coeff`, so chopping an
operator silently conjugated every *surviving* coefficient: an operator with a
`3+4j` term came back as `3-4j`. The `.conj()` was copy-pasted from the
neighbouring `adjoint`, where it is correct.

This is public API in both language bindings (`op.ichop(atol)` and
`qf_*_op_ichop`), and it affected all four operator types.

The one place `ichop` is used internally, `is_hermitian`, was unaffected: it
chops `self - self.adjoint()` and then compares against zero, and both the chop
filter and that comparison only read `abs()`, which conjugation preserves.
Verified over 300 random complex operators — no `is_hermitian` result changes,
so no regression test is added there (it would pass before and after).

Every pre-existing `ichop` test used purely real coefficients, where `.conj()`
is the identity, which is why all three test suites missed this. The new tests
therefore use genuinely complex coefficients, and keep a below-threshold term so
they also pin that the filter compares `abs()` and not the real part.

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

90 of 90 new or added lines in 4 files covered. (100.0%)

10999 of 11208 relevant lines covered (98.14%)

296.17 hits per line

Jobs
ID Job ID Ran Files Coverage
1 30744562503.1 02 Aug 2026 11:02AM UTC 103
98.14
GitHub Action Run
Source Files on build 30744562503
  • Tree
  • List 103
  • Changed 4
  • Source Changed 4
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #30744562503
  • 297a77a3 on github
  • Prev Build on main (#30743472918)
  • Next Build on main (#30745841200)
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