From bccca3cda4b5896d01276f52f2e7f12812be7f6a Mon Sep 17 00:00:00 2001 From: positr0nium <raphaelsdel@gmail.com> Date: Tue, 26 Nov 2024 13:15:53 +0100 Subject: [PATCH] fixed a bug in the app_phase_polynomial function --- src/qrisp/alg_primitives/arithmetic/SBP_arithmetic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qrisp/alg_primitives/arithmetic/SBP_arithmetic.py b/src/qrisp/alg_primitives/arithmetic/SBP_arithmetic.py index 1c1a9382..bf3703d6 100644 --- a/src/qrisp/alg_primitives/arithmetic/SBP_arithmetic.py +++ b/src/qrisp/alg_primitives/arithmetic/SBP_arithmetic.py @@ -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())