WIP: energy-conservation PoC analysis/transforms updates

This commit is contained in:
2026-07-01 13:58:44 +02:00
parent c627142135
commit 7b37b284f8
5 changed files with 325 additions and 339 deletions
+1 -1
View File
@@ -128,7 +128,7 @@ def test_energy_simplex_conservation():
def test_energy_simplex_roundtrip():
"""Encode → decode recovers energies whose lost part already sums to delta_e."""
rng = np.random.default_rng(12)
N = 500
N = 500000
pre_E = rng.uniform(1.0, 100.0, N).astype(np.float32)
post_E = (pre_E * rng.uniform(0.0, 1.0, N)).astype(np.float32)
delta_e = pre_E - post_E