-
Notifications
You must be signed in to change notification settings - Fork 3
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
[WIP] New factoring #62
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #62 +/- ##
==========================================
- Coverage 92.93% 92.24% -0.70%
==========================================
Files 26 28 +2
Lines 1076 1147 +71
==========================================
+ Hits 1000 1058 +58
- Misses 76 89 +13 ☔ View full report in Codecov by Sentry. |
….jl into jg/factoring
….jl into jg/factoring
src/rules/factoring_sat.jl
Outdated
# s + 2c = p*q + s_pre + c_pre | ||
c = BooleanExpr(Symbol("c$i$j")) | ||
s = BooleanExpr(Symbol("s$i$j")) | ||
mul_exprs, ancillas = multiplier(s, c, p[i], q[j], j == n2 ? BooleanExpr(:false) : spres[j+1], cpre) |
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.
ERROR: BoundsError: attempt to access 0-element Vector{BooleanExpr} at index [2] since the spres and cpres are empty vector. So maybe initialize the vector by pushing zeros. But 0
(1
) is not defined in BoolExpr, also the false
& true
test/rules/factoring_sat.jl
Outdated
# res4 = reduceto(CircuitSAT, fact4) | ||
# best_configs4 = findbest(target_problem(res4), BruteForce()) <- this step is slow and we can't get the result ,stucked. maybe improve it | ||
# @test length(best_configs4) == 2 | ||
|
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.
check this plz
No description provided.