-
Notifications
You must be signed in to change notification settings - Fork 28
🎨 Refactored QuickSim
to remove magic number for upper limit calculation
#679
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
Conversation
QuickSim
to remove magic number for upper limit calculationQuickSim
to remove magic number for upper limit calculation
QuickSim
to remove magic number for upper limit calculationQuickSim
to remove magic number for upper limit calculation
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #679 +/- ##
==========================================
- Coverage 98.41% 98.40% -0.01%
==========================================
Files 254 254
Lines 41149 41167 +18
Branches 1869 1871 +2
==========================================
+ Hits 40495 40511 +16
- Misses 654 656 +2
... and 3 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Description
This PR introduces a minor refactor of QuickSim. The key update involves removing the hardcoded number
1.5
in the upper limit calculation, which was originally implemented to accelerate the simulation of SiDB gates. While this approach proved effective in most scenarios, it could lead to rare edge cases causing unexpected behavior. To enhance reliability, this adjustment eliminates the magic number. Importantly, the overall performance remains significantly improved compared to the results presented in QuickSim: Efficient and Accurate Physical Simulation of Silicon Dangling Bond Logic (https://ieeexplore.ieee.org/document/10231266).Checklist: