mirror of
https://github.com/fjosw/pyerrors.git
synced 2025-05-14 19:43:41 +02:00
New submodule dirac
This commit is contained in:
parent
b5c9738d52
commit
e7efa822b0
4 changed files with 65 additions and 61 deletions
|
@ -6,7 +6,7 @@ np.random.seed(0)
|
|||
|
||||
|
||||
def test_gamma_matrices():
|
||||
for matrix in pe.npr.gamma:
|
||||
for matrix in pe.dirac.gamma:
|
||||
assert np.allclose(matrix @ matrix, np.identity(4))
|
||||
assert np.allclose(matrix, matrix.T.conj())
|
||||
assert np.allclose(pe.npr.gamma5, pe.npr.gamma[0] @ pe.npr.gamma[1] @ pe.npr.gamma[2] @ pe.npr.gamma[3])
|
||||
assert np.allclose(pe.dirac.gamma5, pe.dirac.gamma[0] @ pe.dirac.gamma[1] @ pe.dirac.gamma[2] @ pe.dirac.gamma[3])
|
Loading…
Add table
Add a link
Reference in a new issue