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

Qiskit / qiskit-addon-sqd / 40524387567
91%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 02:47PM UTC
Jobs 1
Files 7
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

27 Oct 2026 02:46PM UTC coverage: 91.265% (+0.5%) from 90.743%
40524387567

push

github

web-flow
Document that sci_solver receives sorted CI strings (#423)

diagonalize_fermionic_hamiltonian has always sorted the CI strings of each
subspace before calling sci_solver, in _apply_shape_constraints, but the
sci_solver contract never said so.  A solver that maps a flat eigenvector
back onto determinants depends on that order.  The Fulqrum guide already
relies on it: it reshapes the eigenvector against its own sorted basis, and
is correct only because the strings arrive sorted.

Make the ordering part of the documented interface so a solver can rely on
it, and add tests that pin it.  The existing suite does notice when the sort
is removed, but only as numerical drift -- a spin_square mismatch in the third
decimal place and an energy-ordering assertion -- which is indistinguishable
from the seed sensitivity those tests already carry.

Also document the ordering as a precondition of solve_sci and
solve_sci_batch, which take ci_strings directly.  PySCF's selected_ci
locates excitations by binary search, so unsorted strings there give a
variationally wrong energy with no error raised.

Assisted-by: Claude Opus 5

700 of 767 relevant lines covered (91.26%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40524387567.1 27 Oct 2026 02:47PM UTC 7
91.26
GitHub Action Run
Source Files on build 40524387567
  • Tree
  • List 7
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40524387567
  • 2a77c744 on github
  • Prev Build on main (#40406102427)
  • Next Build on main (#40559417537)
  • Delete
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