From ca34060aac932c2e57341005568d999ea28b7922 Mon Sep 17 00:00:00 2001 From: Anurudh Peduri <7265746+anurudhp@users.noreply.github.com> Date: Thu, 1 Aug 2024 08:42:15 -0700 Subject: [PATCH] Re-enable test for `Split` (#1237) --- qualtran/bloqs/bookkeeping/split_test.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/qualtran/bloqs/bookkeeping/split_test.py b/qualtran/bloqs/bookkeeping/split_test.py index 4d5e45bfd..685d7664a 100644 --- a/qualtran/bloqs/bookkeeping/split_test.py +++ b/qualtran/bloqs/bookkeeping/split_test.py @@ -62,10 +62,8 @@ def test_classical_sim_dtypes(): assert isinstance(xx, np.ndarray) assert xx.tolist() == [1, 1, 1, 1, 1, 1, 1, 1] - # TODO: Re-enable when Split/Join have real data types - # https://github.com/quantumlib/Qualtran/issues/446 - # with pytest.raises(ValueError): - # _ = s.call_classically(reg=256) + with pytest.raises(ValueError): + _ = s.call_classically(reg=256) # with numpy types (xx,) = s.call_classically(reg=np.uint8(255)) @@ -77,7 +75,5 @@ def test_classical_sim_dtypes(): assert isinstance(xx, np.ndarray) assert xx.tolist() == [0, 0, 0, 0, 0, 0, 0, 0] - # TODO: Re-enable when Split/Join have real data types - # https://github.com/quantumlib/Qualtran/issues/446 - # with pytest.raises(ValueError): - # _ = s.call_classically(reg=np.uint16(256)) + with pytest.raises(ValueError): + _ = s.call_classically(reg=np.uint16(256))