It should be noted that the anomalous electron g-2 is computable analytically (at least to very good approximation) which makes the theoretical value much less controversial. The anomalous muon g-2 however depends more heavily on interactions of quantum chromodynamics, which can only be computed using numerical lattice QCD simulations. This is notoriously hard and has only become practical in recent years, hence why theorists don't yet fully agree on the value.
Also, computing even just one part of this value is basically on the level of a theoretical particle physics dissertation. Don't expect to be able to do this without several years of research experience in this specific field.
Also, computing even just one part of this value is basically on the level of a theoretical particle physics dissertation. Don't expect to be able to do this without several years of research experience in this specific field.