simulated-bifurcation-algorithm icon indicating copy to clipboard operation
simulated-bifurcation-algorithm copied to clipboard

Keyboard interrupt

Open bqth29 opened this issue 1 year ago • 1 comments

💬 Pull Request Description

This PR allows the user to stop manually the run of the Simulated Bifurcation algorithm from the terminal (ctrl + C). Instead of an error, the optimizer will return the current state of the spins.

✔️ Check list

Before you open the pull request, make sure the following requirements are met.

  • [x] The code matches the styling rules
  • [x] The new code is covered by relevant tests
  • [ ] Documentation was added

🚀 New features

Possibility to manually interrupt the SB algorithm.

🐞 Bug fixes

None

📣 Supplementary information

None

bqth29 avatar Dec 22 '23 17:12 bqth29

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (68c2541) to head (a06076f). Report is 13 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #51   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           36        36           
  Lines         1600      1620   +20     
=========================================
+ Hits          1600      1620   +20     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Dec 22 '23 17:12 codecov[bot]