Skip to content

Commit

Permalink
update emulator test for getbitstring (#351)
Browse files Browse the repository at this point in the history
Co-authored-by: Kai-Hsin Wu <khwu@KHWus-MacBook-Pro.local>
  • Loading branch information
kaihsin and Kai-Hsin Wu authored Aug 1, 2023
1 parent 7a717b4 commit d57fe00
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/test_braket_emulator.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import pytest
# import pytest
from bloqade import start
import numpy as np

# import numpy as np

@pytest.mark.skip(reason="not a good unit test, skip for now")

# @pytest.mark.skip(reason="not a good unit test, skip for now")
def test_braket_simulator_getbitstring():
program = (
start.add_position((0, 0))
Expand All @@ -15,10 +16,7 @@ def test_braket_simulator_getbitstring():

output = program.braket_local_simulator(10).submit().report()

assert all(
output.bitstrings[0].flatten()
== np.array([1, 0, 0, 0, 0, 0, 0, 0, 0, 0], dtype=np.int8)
)
assert len(output.bitstrings[0].flatten()) == 10


"""
Expand Down

0 comments on commit d57fe00

Please sign in to comment.