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`
ToDiracBasis
​
ToDiracBasis[γ]
takes a list of gamma matrices in the Brauer-Weyl basis and returns them in the Dirac basis (where
0
γ
is diagonal).
​
Details and Options
​
Examples  
(7)
Basic Examples  
(1)
The standard Dirac matrices in dimension 4:
0
γ
is diagonal
diag(1,1,-1,-1)
:
In[1]:=
ToDiracBasis

GammaMatrices

FlatMetric
[1,3]//Map[MatrixForm]
Out[1]=

1
0
0
0
0
1
0
0
0
0
-1
0
0
0
0
-1
,
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
0
0
1
0
0
-1
0
0
1
0
0
-1
0
0
0

The Clifford relation is preserved by the basis change:
In[2]:=
Moduleη=
FlatMetric
[1,3],γ,​​γ=
ToDiracBasis
@
GammaMatrices
[η];​​Outer[#1.#2+#2.#1&,γ,γ,1]​​2TensorProduct[η,IdentityMatrix[4]]
Out[2]=
True
Scope  
(3)

Applications  
(1)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
GammaMatrices
 
▪
ToWeylBasis
 
▪
EuclideanGammaMatrices
RelatedGuides
▪
DiracMatrix
""

© 2026 Wolfram. All rights reserved.

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