Spaces:
Sleeping
Sleeping
Commit History
-
Prepare demos for public hosting on a Hugging Face Docker Space
Clamp every size parameter in the demo API (samples, spins, belt segments, stars, training points, steps per call) and reject request bodies over 64 KB, so a public server cannot be asked for unbounded work. Add a Dockerfile (CPU-only torch, non-root uid 1000, port 7860), a .dockerignore, and the Space front matter in README.md. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>dee8943 -
Add interactive three.js demos driven live by spinor_lib
A stdlib-only HTTP server (demos/server.py) routes POST /api/<name> to handlers in demos/api.py that call the library and return JSON; the browser pages under demos/web only render. Five scenes: Bloch sphere and the 720° double cover (with a precession cloud), Dirac's belt trick via a homotopy on unit quaternions, relativistic aberration of the sky through SL(2,C) acting on Weyl spinors, two-qubit entanglement via partial traces, and a QuaternionRotation learning a hidden rotation one Adam step at a time. Includes tests for the handlers (aberration checked against the textbook angle and Doppler formulas, concurrence and reduced Bloch lengths against closed forms) and a launch config for the preview server. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>cdf8b2d
-
updated
46bef6d -
done
e8b76db -
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