Skip to content

Commit 82c4242

Browse files
committed
fixing test
1 parent ae118fe commit 82c4242

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/pyqrack/runtime/test_dyn_memory.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ def ghz(n: int):
1515
for i in range(1, n):
1616
qasm2.cx(q[0], q[i])
1717

18-
for i in range(n):
19-
qasm2.measure(q[i], c[i])
18+
qasm2.measure(q, c)
2019

2120
return c
2221

@@ -27,6 +26,6 @@ def ghz(n: int):
2726

2827
N = 20
2928

30-
result = target.multi_run(ghz, 100, N)
29+
result = target.run(ghz, shots=100, args=(N,))
3130
result = Counter("".join(str(int(bit)) for bit in bits) for bits in result)
3231
assert result.keys() == {"0" * N, "1" * N}

0 commit comments

Comments
 (0)