entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
119 stars 59 forks source link

Bugfix: Running .optimize() for a RQAOA object not working as expected #125

Closed raulconchello closed 1 year ago

raulconchello commented 1 year ago

Before, if one optimized twice a RQAOA object, the second time wasn't working as expected. Because the self._q.was compiled with the last problem of the first optimization.

TODO

codecov[bot] commented 1 year ago

Codecov Report

Merging #125 (91ad696) into dev (80b0b6b) will increase coverage by 0.00%. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##              dev     #125   +/-   ##
=======================================
  Coverage   87.30%   87.31%           
=======================================
  Files          67       67           
  Lines        8924     8930    +6     
=======================================
+ Hits         7791     7797    +6     
  Misses       1133     1133           
Impacted Files Coverage Δ
openqaoa/workflows/optimizer.py 89.69% <100.00%> (ø)
tests/test_workflows.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more