Wolfram Language Paclet Repository
Community-contributed installable additions to the Wolfram Language
Generalized Dirac gamma matrices for arbitrary real symmetric metrics in any dimension.
Contributed by: Mads Bahrami
DiracMatrix constructs Dirac gamma matrices satisfying the Clifford anticommutation relation {γ^μ, γ^ν} = 2 η^{μν} 𝕀 for an arbitrary real symmetric metric η in any dimension. Flat metrics use the Brauer–Weyl (Pauli–Kronecker) construction; non-flat metrics are reached through a vielbein decomposition g = e^T . η . e. The package also provides transformations into the Dirac and Weyl (chiral) bases, and the canonical graded Clifford operator basis built via a numerically stable antisymmetric recursion.
To install this paclet in your Wolfram Language environment,
evaluate this code:
PacletInstall["WolframQuantumComputation/DiracMatrix"]
To load the code after installation, evaluate this code:
Needs["WolframQuantumComputation`DiracMatrix`"]
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= | ![]() |
| Out[2]= |
The canonical graded Clifford operator basis on an n-dimensional metric has Binomial[n,k] elements at grade k. For the 4-dimensional Minkowski metric the grade dimensions are {1,4,6,4,1}:
| In[3]:= |
| Out[3]= |
Wolfram Language Version 13.0