Spaces:
Sleeping
Sleeping
Commit History
-
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