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

qiskit-community / qiskit-nature / 7057494730
86%

Build:
DEFAULT BRANCH: main
Ran 01 Dec 2023 08:32AM UTC
Jobs 1
Files 165
Run time 20s
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

01 Dec 2023 08:17AM UTC coverage: 86.743% (-0.03%) from 86.768%
7057494730

push

github

web-flow
UCC and fully occupied MOs (Fix for issue #1277) (#1286)

* UCC and fully occupied MOs (Fix for issue #1277)

The configuration check looked for whether any number of alpha or beta orbitals was greater or equals than the number of particles.
Obviously, there cannot be more particles than spin orbitals, and in order to handle this case, I updated the previous `any(n >= ...` to `any(n > ...`. 
For handling case where both alpha and beta are the same as the number of particles (i.e. He2 molecule), I created a new raise condition, notifying that the function is still not implemented.
For the case where either alpha or beta is equals to the number of particles (i.e. H-He molecule), it should just pass through.

* Remove unintended spaces

Sorry, I forgot to remove the spaces.

* Added case for HeH 

Added a test case for HeH molecule, with (alpha, beta) = (2, 1). This should work after the changes in ucc.py

* Remove comment

The tests complained because of the spelling of a molecule in a comment. And I reformatted a little.

* Formatting according to black

Formatted the indentations correctly following the suggestions of black

* Create release notes for PR #1286

Release notes created

* Deleted unnecessary parts.

Deleted unnecessary parts.

* Update releasenotes/notes/fix-UCC-and-fully-occupied-MOs-c8fdf252a0607395.yaml

---------

Co-authored-by: Max Rossmannek <max.rossmannek@uzh.ch>

2 of 5 new or added lines in 1 file covered. (40.0%)

8768 of 10108 relevant lines covered (86.74%)

0.87 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
89.06
-1.36% qiskit_nature/second_q/circuit/library/ansatzes/ucc.py
Jobs
ID Job ID Ran Files Coverage
1 7057494730.1 01 Dec 2023 08:32AM UTC 165
86.74
Source Files on build 7057494730
  • Tree
  • List 165
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • c815e54c on github
  • Prev Build on main (#7020358022)
  • Next Build on main (#7067204339)
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