fionn / feynman

Calculate allowed interactions in QED
9 stars 3 forks source link

We're not conserving leptons #3

Open fionn opened 6 years ago

fionn commented 6 years ago

Lepton numbers should be flavoured and this should be conserved across each vertex (or at least over the total interaction). Consider something like giving the Lepton base class electron, muon, tau properties, setting them all to zero and assigning values to the relevant particles. Then in Interaction._vertex_invariants we check if a particle is a Lepton and count lepton numbers appropriately.