feynlag.dirac¶
Dirac / Clifford algebra layer.
Ported from bsm-calc/models/DLRSM1/dirac.py. Non-commutative symbolic
gamma matrices with a rule-based Clifford simplifier; chiral projectors with
their algebra baked into __mul__/__add__.
Changes with respect to the original:
the
diracPR = Noneforward-declaration wart is gone: projector algebra usesisinstancechecks against the singleton classes;no import-time dependency on the momentum function;
metric signature defaults to the house convention
'+---'(feynlag.conventions.METRIC_SIGNATURE).
Module Attributes
|
Symbolic metric tensor head used inside expressions: |
Functions
|
Dirac-conjugate Γ̄ = γ⁰ Γ† γ⁰ of a Bilinear middle slot Γ. |
|
Apply Clifford algebra rules to |
|
Sign |
|
Minkowski metric component |
Classes
|
Charge-conjugation matrix |
|
Dirac gamma matrix |
|
Dirac gamma matrix |
4x4 identity in Dirac space (singleton |
|
|
LaTeX printer that parenthesizes powers of gamma matrices. |
4x4 zero matrix in Dirac space (singleton |
|
|
Left-handed chiral projector |
|
Right-handed chiral projector |