aien-architecture-mv
Canonical architecture for the AIEN ecosystem: flows, boundaries, ADRs, and the map from design to implementation repositories.
Brought by drakestapleton
aien-architecture-mv / evidence / QUANTUM_EFFICIENCY / 2026-10-22 / checks.wl
| 1 | (* L581: symbolic/cost checks, not timing predictions. Stateless kernel. *) |
| 2 | ClearAll[hh,ww,xx,rr,theta,vectors]; |
| 3 | hh={{1,1},{1,-1}}/Sqrt[2]; ww={{3,2},{-1,4}}; xx={x1,x2}; |
| 4 | ExportString[<| |
| 5 | "basis_identity_residual" -> Simplify[(ww.Transpose[hh]).(hh.xx)-ww.xx], |
| 6 | "orthogonality" -> Simplify[Transpose[hh].hh], |
| 7 | "nonlinearity_does_not_commute" -> ToString[Simplify[(hh.xx)^2-hh.(xx^2)],InputForm], |
| 8 | "four_orbital_hybrid_orthogonality" -> Simplify[With[{tt=KroneckerProduct[{{1,1},{1,-1}},{{1,1},{1,-1}}]/2},tt.Transpose[tt]]], |
| 9 | "interference_probability" -> ToString[FullSimplify[Abs[(1+Exp[I theta])/2]^2,Element[theta,Reals]],InputForm], |
| 10 | "expert_matrix_entries" -> 2048*512, |
| 11 | "rank64_entry_ratio" -> N[64*(2048+512)/(2048*512)], |
| 12 | "rank64_bf16_vs_fp8_byte_ratio_no_metadata" -> N[2*64*(2048+512)/(2048*512)], |
| 13 | "rank_break_even_equal_precision" -> ToString[Reduce[rr*(2048+512)<2048*512 && rr>0,rr,Integers],InputForm], |
| 14 | "rank_break_even_bf16_vs_fp8" -> ToString[Reduce[2*rr*(2048+512)<2048*512 && rr>0,rr,Integers],InputForm], |
| 15 | "hadamard2048_add_sub_count_excluding_normalization" -> 2048*Log2[2048], |
| 16 | "complex128_state_GiB" -> Table[{nn,16*2^nn/2^30},{nn,{30,32,33}}], |
| 17 | "uniform_independent_eight_slot_expert_union_ASSUMPTION" -> N[256*(1-(1-8/256)^8)], |
| 18 | "rotation_relative_weight_error_reduction_percent" -> (100*(1-#)& /@ {0.8443305493994437,0.9776014339729382,0.9022996024413539}), |
| 19 | "rank64_relative_weight_error_percent" -> 100*{0.6085668140383202,0.8560844464246313,0.7771349973363622}, |
| 20 | "rank204_relative_weight_error_percent" -> 100*{0.15022797722044212,0.5998930960862606,0.49053763737893785}, |
| 21 | "selected_first_expert_zero_channel_fraction" -> N[280/512], |
| 22 | "selected_first_expert_zero_weight_payload_bytes" -> 280*2048*3, |
| 23 | "selected_first_expert_total_weight_payload_bytes" -> 512*2048*3, |
| 24 | "amdahl_halving_80percent_EXAMPLE" -> N[1/(1-4/5+(4/5)/2)], |
| 25 | "amdahl_halving_20percent_EXAMPLE" -> N[1/(1-1/5+(1/5)/2)] |
| 26 | |>,"RawJSON"] |