Skip to content

Commit

Permalink
fixed phase polynomial
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Nov 26, 2024
1 parent bcf458f commit 1fecf64
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 @@ -1374,7 +1374,7 @@ def app_phase_polynomial(qf_list, poly, symbol_list=None, t=1):
else:
sb_poly_list.append(qf.sb_poly())

temp_var_list = list(sp.symbols(qf.name + "_" + "0:" + str(qf.size)))
temp_var_list = list(sp.symbols(str(hash(qf)) + "_" + "0:" + str(qf.size)))
new_symbol_list += temp_var_list

repl_dic = {symbol_list[i]: sb_poly_list[i] for i in range(len(qf_list))}
Expand Down

0 comments on commit 1fecf64

Please sign in to comment.