From 5d89dce89af850577a78a30aec22dabe0ae1083d Mon Sep 17 00:00:00 2001 From: Lauren Capelluto Date: Wed, 8 Nov 2023 16:26:26 -0500 Subject: [PATCH] fixup test --- test/unit_tests/braket/experimental/autoqasm/test_api.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/unit_tests/braket/experimental/autoqasm/test_api.py b/test/unit_tests/braket/experimental/autoqasm/test_api.py index 057cc0cec..f9d0b4a59 100644 --- a/test/unit_tests/braket/experimental/autoqasm/test_api.py +++ b/test/unit_tests/braket/experimental/autoqasm/test_api.py @@ -131,7 +131,9 @@ def do_h(int[32] q) { } def recursive_h(int[32] q) { do_h(q); - if (q > 0) { + bool __bool_0__; + __bool_0__ = q > 0; + if (__bool_0__) { recursive_h(q - 1); } } @@ -155,7 +157,9 @@ def do_h(int[32] q) { } def recursive_h(int[32] q) { do_h(q); - if (q > 0) { + bool __bool_0__; + __bool_0__ = q > 0; + if (__bool_0__) { recursive_h(q - 1); } }