Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

DiracMatrix

Guides

  • DiracMatrix

Symbols

  • CliffordBasis
  • CliffordCanonicalBasis
  • EuclideanGammaMatrices
  • FlatMetric
  • GammaMatrices
  • MetricVielbein
  • NumericZeroQ
  • RandomCurvedMetric
  • ToDiracBasis
  • ToWeylBasis
DiracMatrix
The DiracMatrix paclet constructs Dirac gamma matrices
μ
γ
that satisfy the Clifford anticommutation relation
{
μ
γ
,
ν
γ
}=2
μν
η
I
for an arbitrary real symmetric metric
η
in any dimension. The flat case uses the Brauer–Weyl (Pauli–Kronecker) construction; non-flat metrics are reached through a vielbein decomposition
g=
T

·η·e
. The package also provides basis transformations into the Dirac and Weyl (chiral) representations, and two implementations of the canonical graded Clifford operator basis: an explicit antisymmetrisation sum (pedagogically transparent) and an antisymmetric recursion (numerically stable, production-ready).
Gamma matrices
GammaMatrices
— n gamma matrices satisfying the Clifford relation for an arbitrary real symmetric metric in any dimension
EuclideanGammaMatrices
— flat Euclidean gamma matrices in the Brauer–Weyl (Pauli–Kronecker) representation
Metrics and vielbeins
FlatMetric
— diagonal flat metric of signature (p, q)
RandomCurvedMetric
— random real symmetric non-diagonal metric of given signature, with a controllable condition number
MetricVielbein
— vielbein decomposition
T

·η·e
of a real symmetric metric
Basis transformations
ToDiracBasis
— transform gamma matrices from the Brauer–Weyl basis to the Dirac basis (
0
γ
diagonal)
ToWeylBasis
— transform gamma matrices from the Brauer–Weyl basis to the Weyl (chiral) basis
Canonical Clifford operator basis
CliffordBasis
— graded Clifford operator basis built via an antisymmetric recursion – numerically stable, production-ready
CliffordCanonicalBasis
— graded Clifford operator basis built via the explicit antisymmetrisation sum – pedagogically transparent but combinatorially expensive
Numerical utilities
NumericZeroQ
— test whether every entry of an array is numerically zero, with a user-supplied tolerance
""

© 2026 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com