Skip to content

Commit 0bf8393

Browse files
* Addressing review comments
Signed-off-by: Pradnya Khalate <pkhalate@nvidia.com>
1 parent 66e0c0b commit 0bf8393

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

python/tests/backends/test_Infleqtion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ def kernel(vec: list[complex]):
188188
state = [1. / np.sqrt(2.), 1. / np.sqrt(2.), 0., 0.]
189189
counts = cudaq.sample(kernel, state, shots_count=shots)
190190
counts.dump()
191-
assert assert_close(counts["00"], shots / 2, 10)
192-
assert assert_close(counts["10"], shots / 2, 10)
191+
assert assert_close(shots / 2, counts["00"], 10)
192+
assert assert_close(shots / 2, counts["10"], 10)
193193

194194

195195
def test_state_preparation_builder():
@@ -199,8 +199,8 @@ def test_state_preparation_builder():
199199

200200
state = [1. / np.sqrt(2.), 1. / np.sqrt(2.), 0., 0.]
201201
counts = cudaq.sample(kernel, state, shots_count=shots)
202-
assert assert_close(counts["00"], shots / 2, 10)
203-
assert assert_close(counts["10"], shots / 2, 10)
202+
assert assert_close(shots / 2, counts["00"], 10)
203+
assert assert_close(shots / 2, counts["10"], 10)
204204

205205

206206
def test_exp_pauli():

0 commit comments

Comments
 (0)