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`
ToWeylBasis
​
ToWeylBasis[γ]
takes a list of gamma matrices in the Brauer-Weyl basis and returns them in the Weyl/chiral basis, in which the chirality operator is block-diagonal. For odd dimension there is no chiral decomposition and the Dirac basis is returned along with a ToWeylBasis::oddDim message.
​
Details and Options
​
Examples  
(4)
Basic Examples  
(1)
The Weyl/chiral basis on the four-dimensional Minkowski signature:
In[1]:=
ToWeylBasis

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

In the Weyl basis the chirality operator
γ
5
=i
0
γ
1
γ
2
γ
3
γ
is diagonal with eigenvalues
±1
:
In[2]:=
Moduleγ=
ToWeylBasis
@
GammaMatrices

FlatMetric
[1,3],​​Diagonal[IDot@@γ]
Out[2]=
{1,-1,-1,1}
Scope  
(1)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
GammaMatrices
 
▪
ToDiracBasis
 
▪
EuclideanGammaMatrices
RelatedGuides
▪
DiracMatrix
""

© 2026 Wolfram. All rights reserved.

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