diff --git a/src/qrisp/alg_primitives/arithmetic/jasp_arithmetic/jasp_cq_gidney_adder.py b/src/qrisp/alg_primitives/arithmetic/jasp_arithmetic/jasp_cq_gidney_adder.py index 1f664970..67b5d9b8 100644 --- a/src/qrisp/alg_primitives/arithmetic/jasp_arithmetic/jasp_cq_gidney_adder.py +++ b/src/qrisp/alg_primitives/arithmetic/jasp_arithmetic/jasp_cq_gidney_adder.py @@ -23,7 +23,7 @@ from qrisp.core import x, cx, QuantumVariable, mcx from qrisp.environments import control, custom_control -@qache +@jit def extract_boolean_digit(integer, digit): return jnp.bool((integer>>digit & 1)) @@ -36,6 +36,7 @@ def jasp_cq_gidney_adder(a, b, ctrl = None): else: n = b.size + a = jnp.array(a, dtype = jnp.int32) # If the quantum target only has a single qubit, the addition can be performed # with a simply X-gate