diff --git a/qualtran/bloqs/arithmetic_test.py b/qualtran/bloqs/arithmetic_test.py index 45d5e6180..d543c6d46 100644 --- a/qualtran/bloqs/arithmetic_test.py +++ b/qualtran/bloqs/arithmetic_test.py @@ -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) @@ -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) @@ -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)