test: Verify NotImplementedError for QuditCircuit with dim > 36#75
Conversation
Added a test case in `tests/test_quditcircuit.py` to verify that `QuditCircuit` raises `NotImplementedError` when initialized with a dimension greater than 36. This ensures the string-encoded IO limitation is properly enforced and tested. Co-authored-by: refraction-ray <35157286+refraction-ray@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|



This PR addresses a testing gap by adding a test case to verify that
QuditCircuitraisesNotImplementedErrorwhen initialized with a dimension greater than 36. This limitation exists because the current string-encoded IO only supports dimensions up to 36 (using digits 0-9 and A-Z).Changes
tests/test_quditcircuit.py: Added a new assertion intest_quditcircuit_set_dim_validationto check forNotImplementedErrorwhendim=37.Verification
pytest tests/test_quditcircuit.pyand confirmed all tests passed, including the new test case.ValueError, confirming the test is effective.PR created automatically by Jules for task 8065592887853955542 started by @refraction-ray