-
Notifications
You must be signed in to change notification settings - Fork 28
🐛 Increased tolerance to avoid undetected degeneracy and added forbidden BDL types in wire detection #685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 Increased tolerance to avoid undetected degeneracy and added forbidden BDL types in wire detection #685
Conversation
…on_detected_degeneracy' into increase_error_margin_to_avoid_non_detected_degeneracy
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #685 +/- ##
==========================================
- Coverage 98.36% 98.36% -0.01%
==========================================
Files 254 253 -1
Lines 41399 41485 +86
Branches 1878 1884 +6
==========================================
+ Hits 40723 40806 +83
- Misses 676 679 +3
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
clang-tidy review says "All clean, LGTM! 👍" |
…put wire and vice versa.
Signed-off-by: GitHub Actions <actions@github.com>
clang-tidy review says "All clean, LGTM! 👍" |
clang-tidy review says "All clean, LGTM! 👍" |
I think that is an excellent idea! Since there is always the possibility of getting degenerate groundstates, we should respect that in the function name, i.e.: |
Good call! Would it make sense then to parameterize the function to allow degeneracy or not? Or have two separate functions for that? I'm also okay with having a single one simply called |
Personally, I do not see a reason for parameterizing it. |
Signed-off-by: GitHub Actions <actions@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: GitHub Actions <actions@github.com>
bindings/mnt/pyfiction/include/pyfiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/detect_bdl_wires.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/detect_bdl_wires.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/detect_bdl_wires.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: GitHub Actions <actions@github.com>
…on_detected_degeneracy' into increase_error_margin_to_avoid_non_detected_degeneracy
Signed-off-by: GitHub Actions <actions@github.com>
…on_detected_degeneracy' into increase_error_margin_to_avoid_non_detected_degeneracy
…on_detected_degeneracy' into increase_error_margin_to_avoid_non_detected_degeneracy
Signed-off-by: GitHub Actions <actions@github.com>
include/fiction/algorithms/simulation/sidb/detect_bdl_wires.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
include/fiction/algorithms/simulation/sidb/sidb_simulation_result.hpp
Outdated
Show resolved
Hide resolved
…on_detected_degeneracy' into increase_error_margin_to_avoid_non_detected_degeneracy
Signed-off-by: GitHub Actions <actions@github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for the fix and the quick iterations!
Description
This PR increases the tolerance used in
groundstate_from_simulation_results
to extract the ground states from simulation results. Previously, it failed to detect the degeneracy of the ground state in some cases, leading to "weird" operational domains. This should now be fixed.Example:

This operational domain should be empty, which is only the case if the degeneracy of the ground state is correctly detected. As said, this should be fixed now.
Checklist: