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

Qiskit / qiskit-fermions / 44487984717
98%
main: 98%

Build:
Build:
LAST BUILD BRANCH: stable/0.4
DEFAULT BRANCH: main
Ran 19 Nov 2026 08:39AM UTC
Jobs 1
Files 131
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

19 Nov 2026 08:29AM UTC coverage: 98.266% (-0.04%) from 98.303%
44487984717

push

github

web-flow
fix: compare Evolution, InitializeModes and PrepareSlaterDeterminant by what defines them (#427) (#429)

These gates are Qiskit `Gate`s, whose equality only sees the name and the
`params`. None of them stores its defining data there: `Evolution` keeps
only the time in `params`, and the other two keep nothing. Evolutions under
different Hamiltonians for the same time, and either gate with different
occupations, therefore compared equal. Defining `__eq__` also left them
unhashable, so they could not be deduplicated in a set or a dict.

Each class now compares the attributes that define it, as `OrbitalRotation`
already did. The operators of two evolutions are compared with
`equiv(other, 0.0)` rather than `==`, because operator `==` depends on the
order in which terms are stored. `Evolution` also gains `equiv(other, atol)`
for a comparison up to a tolerance. The synthesis method and the `atomic`
flag are left out of both comparisons: they decide how a gate is broken
down, not which gate it is.

Nothing inside the package relied on gate equality (`MergeEvolutions`
compares the operators directly), so only user code is affected.


(cherry picked from commit 93de8b2b6)

Co-authored-by: Max Rossmannek <21973473+mrossinek@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

24 of 31 new or added lines in 3 files covered. (77.42%)

14565 of 14822 relevant lines covered (98.27%)

295872.74 hits per line

Uncovered Changes

Lines Coverage ∆ File
5
89.36
-10.64% python/qiskit_fermions/circuit/library/evolution.py
1
98.67
-1.33% python/qiskit_fermions/circuit/library/initialize_modes.py
1
97.06
-2.94% python/qiskit_fermions/circuit/library/prepare_slater_determinant.py
Jobs
ID Job ID Ran Files Coverage
1 44487984717.1 19 Nov 2026 08:39AM UTC 131
98.27
GitHub Action Run
Source Files on build 44487984717
  • Tree
  • List 131
  • Changed 4
  • Source Changed 3
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #44487984717
  • d67bec0a on github
  • Prev Build on stable/0.4 (#44487981040)
  • Next Build on stable/0.4 (#44490273852)
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