The exact qpulse library below — same files you can pip-install — running
in your browser. The Taylor-series matrix exponential, the complex Jacobi
eigensolver for von Neumann entropy, the ANSI renderer: all of it executes in WebAssembly
and streams straight into this terminal.
Measurement collapses qubits 0–1 by sampling the exact marginal distribution. Post-selection projects onto even Hamming parity — a nonlocal filter that can raise the half-chain entropy, which is correct physics, not a bug.
Don't want to spin up a Python interpreter inside your browser like some kind of maniac? The scrubbable replay shows a recorded run (seed 7) with the measurement and post-selection collapse events marked on the timeline.
Open the replayThe whole library is pure Python standard library — no numpy, no scipy, no dependencies, nothing to break. Install straight from this site:
pip install https://halfretardedgenius.com/downloads/qpulse-1.0.0.zip
Then run qpulse-demo in any real terminal for the full-speed animated
version, or qpulse-demo --no-anim if you're piping it somewhere weird.
Python ≥ 3.9. MIT licensed.