Spaces:
Sleeping
Sleeping
Commit History
-
Initial commit: spinor library with SU(2) rotations, autograd and nn modules
Fixes from code review of the original draft: - Correct SU(2) matrix signs (off-diagonal ny terms were flipped); generator is now batched, broadcastable, dtype/device-aware and differentiable - generate_su2_rotation_from_axis_angle no longer raises on every input - contract imports inner_product and honours its indices argument - rotate promotes dtypes instead of crashing on complex64 spinors - add/sub/inner_product broadcast over batch dims - norm is real-valued; normalize is eps-guarded; outer_product conjugates - Spinor: unambiguous data/shape constructor, N-component support, safe __getitem__, operators and .norm() - New SpinorLinear and SU2Rotation nn modules - Restore the test suite (73 tests) and add packaging/README/.gitignore Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012kaJiQ4xX2zZnh578fQNJ751b20c8