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

qiskit-community / qiskit-nature / 7084131258
87%
main: 86%

Build:
Build:
LAST BUILD BRANCH: addfeature-ternarytreemap-issue582
DEFAULT BRANCH: main
Ran 04 Dec 2023 09:01AM UTC
Jobs 1
Files 165
Run time 11s
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

04 Dec 2023 08:49AM UTC coverage: 86.771% (+0.003%) from 86.768%
7084131258

push

github

web-flow
Fix the `AngularMomentum` (again) (#1292) (#1297)

* fix: use the symmetric formula for S^2

Prior to this fix, the `AngularMomentum` operator was working on the
assumption that the number of alpha-spin particles would always exceed
the number of beta-spin particles (for non-singlet systems). However,
this is not guaranteed to be the case. This commit fixes this problem by
using a symmetric formula for S^2 which is the average of the two cases
(alpha- vs. beta-spin particles exceeding the other).

* feat: log a warning when the alpha-beta overlap is non-unitary

When dealing with active spaces obtained from unrestricted-spin
orbitals, the alpha-beta overlap matrix which is used to construct the
S^2 operator can become non-unitary (for example, when the active set of
alpha- and beta-spin orbitals do not span the same space). This can
result in an <S^2> value measured on the active space that is largely
different from (e.g.) the UHF <S^2> value. More importantly, when this
is the case, the difference between these two <S^2> values is "hidden"
in the inactive+inactive and inactive+active interactions. Especially
when spin contamination is present, this can lead to vastly unexpected
results and may indicate a poor choice of active space.

* Add reno

* test: add a regression test

* fix: update warning tolerance

* Linting and formatting

* docs: fix verbatim in RST

(cherry picked from commit 55e677672)

Co-authored-by: Max Rossmannek <oss@zurich.ibm.com>

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

2 existing lines in 1 file now uncovered.

8783 of 10122 relevant lines covered (86.77%)

0.87 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7084131258.1 04 Dec 2023 09:01AM UTC 0
86.77
Source Files on build 7084131258
Detailed source file information is not available for this build.
  • Back to Repo
  • 945f52d2 on github
  • Prev Build on stable/0.7 (#7020936187)
  • Next Build on stable/0.7 (#7126497847)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc