Skip to content

Commit

Permalink
fixed an error in accelerated comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
positr0nium committed Feb 23, 2024
1 parent 07eb51f commit 2d84339
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/qrisp/environments/quantum_conditionals.py
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,11 @@ def q_eq(input_0, input_1, invert = False):
)


with conjugate(cx)(input_0, input_1):
def multi_cx(input_0, input_1):
for i in range(len(input_0)):
cx(input_0[i], input_1[i])

with conjugate(multi_cx)(input_0, input_1):
mcx(input_1, res, method="balauca", ctrl_state=0)


Expand Down

0 comments on commit 2d84339

Please sign in to comment.