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`
FlatMetric
​
FlatMetric[p,q]
returns the diagonal flat metric of signature
(p,q)
with
p
positive (+1) and
q
negative (-1) diagonal entries.
​
Details and Options
​
Examples  
(6)
Basic Examples  
(1)
The Minkowski metric in mostly-minus convention (1 time, 3 space):
In[1]:=
FlatMetric
[1,3]//MatrixForm
Out[1]=
1
0
0
0
0
-1
0
0
0
0
-1
0
0
0
0
-1
A four-dimensional Euclidean signature has no minus signs:
In[2]:=
FlatMetric
[4,0]//MatrixForm
Out[2]=
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
Scope  
(2)

Applications  
(1)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
RandomCurvedMetric
 
▪
MetricVielbein
 
▪
GammaMatrices
RelatedGuides
▪
DiracMatrix
""

© 2026 Wolfram. All rights reserved.

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