Skip to content

Commit

Permalink
added some comments to the multiplication
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Jan 5, 2025
1 parent a7797e1 commit 461a3eb
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,14 @@ def jasp_squaring(a, inpl_adder = gidney_adder):

return s

# @qache(static_argnames = "inpl_adder")
@qache(static_argnames = "inpl_adder")
def jasp_multiplyer(factor_1, factor_2, inpl_adder = gidney_adder):

# Executes the algorithm

# x*y = (x<<n - y_0*x - sum([x<<i*(-1)**y_i for i in range(1, len(x)+1)))
# https://arxiv.org/abs/2112.10537

n = factor_1.size-1
s = QuantumFloat(factor_1.size + factor_2.size,
exponent = factor_1.exponent + factor_2.exponent)
Expand Down

0 comments on commit 461a3eb

Please sign in to comment.