diff --git a/tests/test_models_encodings.py b/tests/test_models_encodings.py index cd8994df3e..581d1b9e0e 100644 --- a/tests/test_models_encodings.py +++ b/tests/test_models_encodings.py @@ -119,11 +119,6 @@ def test_unary_encoder(backend, nqubits, architecture, kind): data = sampler.random(nqubits) data = backend.cast(data, dtype=data.dtype) unary_encoder(data, architecture="semi-diagonal") - if architecture == "tree": - with pytest.raises(ValueError): - data = sampler.random(nqubits + 1) - data = backend.cast(data, dtype=data.dtype) - unary_encoder(data, architecture=architecture) # sampling random data in interval [-1, 1] sampler = np.random.default_rng(1)