Skip to content

Commit

Permalink
Fix unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Oct 10, 2023
1 parent 770622b commit 5389f38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qualtran/bloqs/arithmetic_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def test_greater_than():
q0 = bb.add_register('a', bitsize)
q1 = bb.add_register('b', bitsize)
anc = bb.add_register('result', 1)
q0, q1, anc = bb.add(GreaterThan(bitsize), a=q0, b=q1, result=anc)
q0, q1, anc = bb.add(GreaterThan(bitsize), a=q0, b=q1, target=anc)
cbloq = bb.finalize(a=q0, b=q1, result=anc)


Expand All @@ -182,7 +182,7 @@ def test_greater_than_constant():
bitsize = 5
q0 = bb.add_register('x', bitsize)
anc = bb.add_register('result', 1)
q0, anc = bb.add(GreaterThanConstant(bitsize, 17), x=q0, result=anc)
q0, anc = bb.add(GreaterThanConstant(bitsize, 17), x=q0, target=anc)
cbloq = bb.finalize(x=q0, result=anc)


Expand All @@ -191,7 +191,7 @@ def test_equals_a_constant():
bitsize = 5
q0 = bb.add_register('x', bitsize)
anc = bb.add_register('result', 1)
q0, anc = bb.add(EqualsAConstant(bitsize, 17), x=q0, result=anc)
q0, anc = bb.add(EqualsAConstant(bitsize, 17), x=q0, target=anc)
cbloq = bb.finalize(x=q0, result=anc)


Expand Down

0 comments on commit 5389f38

Please sign in to comment.