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`
RandomCurvedMetric
​
RandomCurvedMetric[p,q]
returns a random real symmetric non-diagonal metric of signature
(p,q)
with default condition number spread
∼
4
10
.
​
​
RandomCurvedMetric[p,q,a]
uses
a
as the spread exponent — eigenvalues of the diagonal core
Λ
are drawn as
±
r
10
with
r∈[-a,a]
uniform.
​
​
RandomCurvedMetric[p,q,a,s]
additionally multiplies the diagonal core by
2
s
, scaling typical metric components.
​
Details and Options
​
Examples  
(6)
Basic Examples  
(1)
A random non-diagonal Minkowski-like metric, signature (1, 3):
In[1]:=
SeedRandom[42];
RandomCurvedMetric
[1,3,0.5,1]//Chop//MatrixForm
Out[1]=
0.0335904
-0.414892
1.01876
-0.328768
-0.414892
-0.335259
-0.364962
0.225464
1.01876
-0.364962
0.763638
-0.301305
-0.328768
0.225464
-0.301305
-0.449997
Confirm the signature is preserved by checking the signs of the eigenvalues:
In[2]:=
SeedRandom[42];Sign@Eigenvalues@
RandomCurvedMetric
[1,3,0.5,1]
Out[2]=
{1,-1,-1,-1}
Scope  
(2)

Applications  
(1)

Possible Issues  
(1)

Neat Examples  
(1)

SeeAlso
FlatMetric
 
▪
MetricVielbein
 
▪
GammaMatrices
RelatedGuides
▪
DiracMatrix
""

© 2026 Wolfram. All rights reserved.

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