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

Qiskit / qiskit-addon-sqd / 40537996610
92%
main: 91%

Build:
Build:
LAST BUILD BRANCH: stable/0.14
DEFAULT BRANCH: main
Ran 27 Oct 2026 04:09PM 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 04:08PM UTC coverage: 91.646% (+0.5%) from 91.147%
40537996610

push

github

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

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
(cherry picked from commit 2a77c7449)

Co-authored-by: Jim Garrison <garrison@ibm.com>

735 of 802 relevant lines covered (91.65%)

0.92 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40537996610.1 27 Oct 2026 04:09PM UTC 7
91.65
GitHub Action Run
Source Files on build 40537996610
  • 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 #40537996610
  • 11bd9fbf on github
  • Prev Build on stable/0.14 (#39986415459)
  • Next Build on stable/0.14 (#40595226913)
  • 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