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

Qiskit / qiskit-addon-sqd-hpc / 18233219366

03 Oct 2025 08:36PM UTC coverage: 52.694% (-41.3%) from 93.994%
18233219366

push

github

web-flow
Normalize occupancies prior to configuration recovery (#21)

* Normalize occupancies prior to configuration recovery

This changes the code to use the closest value between 0 and 1 to the
occupancy that is given.  With this, it should accept as input any float
except NaN.

The old code presented a problem because the capi-demo code could result
in giving it values that were 1e-16 above 1.0 and then failing, because it
would then calculate negative weights for sampling.

* Add tests

669 of 1578 branches covered (42.4%)

Branch coverage included in aggregate %.

3 of 4 new or added lines in 2 files covered. (75.0%)

149 existing lines in 5 files now uncovered.

524 of 686 relevant lines covered (76.38%)

5.1 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

52.65
/test/test_configuration_recovery.cpp


Source Not Available

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