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
WolframQuantumComputation`DiracMatrix`
GammaMatrices
​
GammaMatrices[n]
returns the n Euclidean gamma matrices of dimension
⌊n/2⌋
2
(equivalent to EuclideanGammaMatrices[n]).
​
​
GammaMatrices[η]
returns gamma matrices satisfying the Clifford relation
{
μ
γ
,
ν
γ
}=2
μν
η
I
for any real symmetric metric
η
; for a flat signed-diagonal metric the result is
i
μ
Γ
on time-like indices and
μ
Γ
on space-like indices; for a general metric a vielbein decomposition is used.
​
Details and Options
​
Examples  
(10)
Basic Examples  
(1)
The four-dimensional Minkowski (1, 3) gamma matrices:
In[1]:=
GammaMatrices

FlatMetric
[1,3]//Map[MatrixForm]
Out[1]=

0
0
1
0
0
0
0
-1
1
0
0
0
0
-1
0
0
,
0
0
1
0
0
0
0
-1
-1
0
0
0
0
1
0
0
,
0

0
0

0
0
0
0
0
0

0
0

0
,
0
1
0
0
-1
0
0
0
0
0
0
1
0
0
-1
0

Verify the Clifford anticommutation relation:
In[2]:=
Moduleη=
FlatMetric
[1,3],γ,​​γ=
GammaMatrices
[η];​​Outer[#1.#2+#2.#1&,γ,γ,1]​​2TensorProduct[η,IdentityMatrix[4]]
Out[2]=
True
Scope  
(4)

Applications  
(3)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
EuclideanGammaMatrices
 
▪
FlatMetric
 
▪
RandomCurvedMetric
 
▪
MetricVielbein
 
▪
ToDiracBasis
 
▪
ToWeylBasis
 
▪
CliffordBasis
 
▪
CliffordCanonicalBasis
 
▪
NumericZeroQ
RelatedGuides
▪
DiracMatrix
""

© 2026 Wolfram. All rights reserved.

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