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

qutip / qutip-qip / 16297706141
86%

Build:
DEFAULT BRANCH: master
Ran 15 Jul 2025 03:34PM UTC
Jobs 1
Files 49
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

15 Jul 2025 03:33PM UTC coverage: 86.502%. First build
16297706141

push

github

web-flow
Bug fix in the VQA module (#280)

* Simplify matplotlib importation error

Just throw the error if package is not installed.

* Fix a bug in vqa test

The overlap computes the inner product, which is unfortunately imaginary in this case, so 1-overlap has always real part 1.

This should never work. However, since the test was initialized in the right answer, pi/2, the optimizer always stopped pretty close to the right answer. So it seldom reports an error. But the changes in SciPy 1.16.0 somehow make the optimizer bolder and explores large values in the beginning, causing the test failing.

* Adapt the test example

This is a trivial example to test the plotting function. Before, it was a VQA with no parameters, but since Scipy 1.16 the minimize function raise an error if there is no value to optimize. So I adapt the test.

* Remove the VQA bitstring cost function

I do not understand how cost function can be based on one bit string sampling. Sampling over quantum state is a statistical process, information is needed for the whole distribution. Sampling one bit string does not tell anything.

The test was passing just because it was initialized in state 1.

* black style fixing

* Fix a importation bug to be compatible with qutip==4.7

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

4563 of 5275 relevant lines covered (86.5%)

5.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 16297706141.1 15 Jul 2025 03:40PM UTC 49
86.5
GitHub Action Run
Source Files on build 16297706141
  • Tree
  • List 49
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 300695a1 on github
  • Prev Build on master (#16230699351)
  • Next Build on master (#16797727758)
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

© 2025 Coveralls, Inc