Skip to content

Commit 8efb162

Browse files
Merge pull request #75 from tensorcircuit/test-quditcircuit-dim-limit-8065592887853955542
test: Verify NotImplementedError for QuditCircuit with dim > 36
2 parents 8c2d1a5 + 2201507 commit 8efb162

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_quditcircuit.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ def test_quditcircuit_set_dim_validation():
347347
tc.QuditCircuit(1, 2)
348348
with pytest.raises(ValueError):
349349
tc.QuditCircuit(1, 2.5) # type: ignore[arg-type]
350+
with pytest.raises(NotImplementedError):
351+
tc.QuditCircuit(1, 37)
350352

351353

352354
@pytest.mark.parametrize("backend", [lf("jaxb"), lf("tfb"), lf("torchb")])

0 commit comments

Comments
 (0)