You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0b61e86
Browse filesBrowse the repository at this point in the historyBrowse files
fix(python): raise IndexError for any out-of-range projection target
A target larger than usize::MAX passed the Python non-negativity check
and failed during PyO3 conversion with OverflowError, contradicting the
documented IndexError. Validate 0 <= target < n_qubits in the Python
wrapper before calling the native layer, covering negative, oversized,
and arbitrarily large integers. The native range check remains for Rust
callers.
Reported by Copilot review on #240.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments