Skip to content

Combining non-commuting objects with gamma matrices #193

Answered by vsht
jurajkl asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

in such cases I usually code some extra routines on top of FeynCalc that handle the splitting between Dirac matrices and other stuff. For example

DeclareNonCommutative[A, B]
X = A . GA[mu];
Y = B . GA[nu];
DiracSimplify[DiracTrace[Commutator[X, Y]]]
UnDeclareAllCommutators[];
Commutator[DiracGamma[x__], A] := 0;
Commutator[DiracGamma[x__], B] := 0;
Commutator[X, Y] // DotSimplify // ReplaceAll[#, DOT -> holdDOT] & // 
    ReplaceAll[#,
      holdDOT[r__, d__DiracGamma] /; FreeQ[{r}, DiracGamma] :> 
       holdDOT[r] holdDOT[d]
      ] & // ReplaceAll[#, holdDOT -> DOT] & // 
  DiracTrace // DiracSimplify
(*4 A . B Pair[LorentzIndex[mu], LorentzIndex[nu]] - 4 B . A Pair[LorentzIndex[…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jurajkl
Comment options

Answer selected by jurajkl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants