Skip to content

Commit

Permalink
fixed a bug in the app_phase_polynomial function
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Nov 26, 2024
1 parent 1fecf64 commit bccca3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/qrisp/alg_primitives/arithmetic/SBP_arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ def app_phase_polynomial(qf_list, poly, symbol_list=None, t=1):
for qf in qf_list:
if qf.signed:
# We do not use modular arithmetic.
sb_poly_list.append(qf.sb_poly()-2**(qf.msize+2+qf.exponent)*sp.symbols(qf.name + "_" + str(qf.msize)))
sb_poly_list.append(qf.sb_poly()-2**(qf.msize+2+qf.exponent)*sp.symbols(str(hash(qf)) + "_" + str(qf.msize)))
else:
sb_poly_list.append(qf.sb_poly())

Expand Down

0 comments on commit bccca3c

Please sign in to comment.