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

Qiskit / qiskit-addon-sqd / 39512718744
91%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 11:06PM 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

20 Oct 2026 11:05PM UTC coverage: 90.743% (+7.7%) from 83.009%
39512718744

push

github

web-flow
Fix orbital rotation antisymmetry and in-place k_flat optimization (#410)

Fix two bugs in orbital optimization:

1. _antisymmetric_matrix_from_upper_tri set the lower triangle via
jnp.tril_indices(k_dim, k=-1) with -k_flat, but row-major order of the
lower triangle differs from the transpose of the upper triangle for
dimension 4 or greater. This caused K[j, i] != -K[i, j], so expm(K) was
not orthogonal and rotate_integrals altered the spectrum of the
Hamiltonian. Fixing this by subtracting upper.T from upper guarantees
exact antisymmetry for all dimensions.

2. In _optimize_orbitals_sci, subtracting the JAX gradient array from
k_flat (k_flat -= prev_update) resulted in Python rebinding the local
variable rather than modifying the caller's NumPy array in place. Converting
the JAX gradient with np.asarray ensures in-place subtraction updates the
caller's array.

Adds regression tests verifying that _antisymmetric_matrix_from_upper_tri
generates strictly antisymmetric matrices, that rotate_integrals preserves
the FCI spectrum for norb >= 4, and that optimize_orbitals updates
k_flat in place.

Fixes #390.

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

4 of 4 new or added lines in 1 file covered. (100.0%)

696 of 767 relevant lines covered (90.74%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39512718744.1 20 Oct 2026 11:06PM UTC 7
90.74
GitHub Action Run
Source Files on build 39512718744
  • 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 #39512718744
  • 2364dbc6 on github
  • Prev Build on main (#39493954754)
  • Next Build on main (#39660126745)
  • 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