entropicalabs / openqaoa

Multi-backend SDK for quantum optimisation
MIT License
116 stars 58 forks source link

de_folder_restruct_RQAOA #180

Closed kidiki closed 1 year ago

kidiki commented 1 year ago

The way we identify isolated nodes failed for cutoff 1. The solution for vanishing instances outputted 2^n states, all degenerate, which is not required.

Description

-Changing the redefine_problem function to remove the eliminated spins from the difference between registers in the case of isolated nodes.

How Has This Been Tested?

Added: test_total_elimination_cutoff_1_whole_workflow Modified: test_solution_for_vanishing_instances

codecov[bot] commented 1 year ago

Codecov Report

Merging #180 (3000fd8) into de_folder_restruct (f5586e2) will increase coverage by 0.00%. The diff coverage is 100.00%.

:exclamation: Current head 3000fd8 differs from pull request most recent head 4a247b2. Consider uploading reports for the commit 4a247b2 to get more accurate results

@@                 Coverage Diff                 @@
##           de_folder_restruct     #180   +/-   ##
===================================================
  Coverage               89.24%   89.25%           
===================================================
  Files                      30       30           
  Lines                    5738     5742    +4     
===================================================
+ Hits                     5121     5125    +4     
  Misses                    617      617           
Impacted Files Coverage Δ
tests/test_rqaoa.py 100.00% <100.00%> (ø)

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