Skip to content

Comments

test: Verify NotImplementedError for QuditCircuit with dim > 36#75

Merged
refraction-ray merged 1 commit intomasterfrom
test-quditcircuit-dim-limit-8065592887853955542
Feb 20, 2026
Merged

test: Verify NotImplementedError for QuditCircuit with dim > 36#75
refraction-ray merged 1 commit intomasterfrom
test-quditcircuit-dim-limit-8065592887853955542

Conversation

@refraction-ray
Copy link
Member

This PR addresses a testing gap by adding a test case to verify that QuditCircuit raises NotImplementedError when 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

  • Modified tests/test_quditcircuit.py: Added a new assertion in test_quditcircuit_set_dim_validation to check for NotImplementedError when dim=37.

Verification

  • Ran pytest tests/test_quditcircuit.py and confirmed all tests passed, including the new test case.
  • Verified that the test fails if the assertion is changed to ValueError, confirming the test is effective.

PR created automatically by Jules for task 8065592887853955542 started by @refraction-ray

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>
@google-labs-jules
Copy link
Contributor

👋 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 @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@sonarqubecloud
Copy link

@codecov
Copy link

codecov bot commented Feb 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@refraction-ray refraction-ray merged commit 8efb162 into master Feb 20, 2026
7 checks passed
@refraction-ray refraction-ray deleted the test-quditcircuit-dim-limit-8065592887853955542 branch February 20, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant