Skip to content

Commit

Permalink
fixed an issue within cq_gidney_adder
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Dec 31, 2024
1 parent 151879c commit 5da36fb
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand All @@ -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

Expand Down

0 comments on commit 5da36fb

Please sign in to comment.