Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
LGPU FPP
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fernando Pérez Panadero
LGPU FPP
Commits
84404f40
Commit
84404f40
authored
Apr 13, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed sing in gpmul for consistency with dmul
parent
ebd438fd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
24 deletions
+24
-24
src/Spinors/Spinors.jl
src/Spinors/Spinors.jl
+24
-24
No files found.
src/Spinors/Spinors.jl
View file @
84404f40
...
...
@@ -125,52 +125,52 @@ end
Returns ``(1+s
\\
gamma_N)a``.
"""
@inline
function
pmul
(
::
Type
{
Pgamma
{
4
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
4
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
+
a
.
s
[
3
]
r2
=
a
.
s
[
2
]
+
a
.
s
[
4
]
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
r1
,
r2
))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
4
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
4
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
-
a
.
s
[
3
]
r2
=
a
.
s
[
2
]
-
a
.
s
[
4
]
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
-
r1
,
-
r2
))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
1
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
1
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
+
imm
(
a
.
s
[
4
])
r2
=
a
.
s
[
2
]
+
imm
(
a
.
s
[
3
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
mimm
(
r2
),
mimm
(
r1
)))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
1
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
1
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
-
imm
(
a
.
s
[
4
])
r2
=
a
.
s
[
2
]
-
imm
(
a
.
s
[
3
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
imm
(
r2
),
imm
(
r1
)))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
2
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
2
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
+
a
.
s
[
4
]
r2
=
a
.
s
[
2
]
-
a
.
s
[
3
]
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
-
r2
,
r1
))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
2
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
2
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
-
a
.
s
[
4
]
r2
=
a
.
s
[
2
]
+
a
.
s
[
3
]
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
r2
,
-
r1
))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
3
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
3
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
+
imm
(
a
.
s
[
3
])
r2
=
a
.
s
[
2
]
-
imm
(
a
.
s
[
4
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
mimm
(
r1
),
imm
(
r2
)))
end
@inline
function
pmul
(
::
Type
{
Pgamma
{
3
,
-
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
pmul
(
::
Type
{
Pgamma
{
3
,
1
}},
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
a
.
s
[
1
]
-
imm
(
a
.
s
[
3
])
r2
=
a
.
s
[
2
]
+
imm
(
a
.
s
[
4
])
...
...
@@ -183,52 +183,52 @@ end
Returns ``g(1+s
\\
gamma_N)a``
"""
@inline
function
gpmul
(
::
Type
{
Pgamma
{
4
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
4
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
+
a
.
s
[
3
])
r2
=
g
*
(
a
.
s
[
2
]
+
a
.
s
[
4
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
r1
,
r2
))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
4
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
4
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
-
a
.
s
[
3
])
r2
=
g
*
(
a
.
s
[
2
]
-
a
.
s
[
4
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
-
r1
,
-
r2
))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
1
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
1
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
+
imm
(
a
.
s
[
4
]))
r2
=
g
*
(
a
.
s
[
2
]
+
imm
(
a
.
s
[
3
]))
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
mimm
(
r2
),
mimm
(
r1
)))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
1
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
1
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
-
imm
(
a
.
s
[
4
]))
r2
=
g
*
(
a
.
s
[
2
]
-
imm
(
a
.
s
[
3
]))
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
imm
(
r2
),
imm
(
r1
)))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
2
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
2
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
+
a
.
s
[
4
])
r2
=
g
*
(
a
.
s
[
2
]
-
a
.
s
[
3
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
-
r2
,
r1
))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
2
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
2
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
-
a
.
s
[
4
])
r2
=
g
*
(
a
.
s
[
2
]
+
a
.
s
[
3
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
r2
,
-
r1
))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
3
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
3
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
+
imm
(
a
.
s
[
3
]))
r2
=
g
*
(
a
.
s
[
2
]
-
imm
(
a
.
s
[
4
]))
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
mimm
(
r1
),
imm
(
r2
)))
end
@inline
function
gpmul
(
::
Type
{
Pgamma
{
3
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gpmul
(
::
Type
{
Pgamma
{
3
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
*
(
a
.
s
[
1
]
-
imm
(
a
.
s
[
3
]))
r2
=
g
*
(
a
.
s
[
2
]
+
imm
(
a
.
s
[
4
]))
...
...
@@ -240,52 +240,52 @@ end
Returns ``g^+ (1+s
\\
gamma_N)a``
"""
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
4
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
4
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
+
a
.
s
[
3
])
r2
=
g
\
(
a
.
s
[
2
]
+
a
.
s
[
4
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
r1
,
r2
))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
4
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
4
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
-
a
.
s
[
3
])
r2
=
g
\
(
a
.
s
[
2
]
-
a
.
s
[
4
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
-
r1
,
-
r2
))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
1
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
1
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
+
imm
(
a
.
s
[
4
]))
r2
=
g
\
(
a
.
s
[
2
]
+
imm
(
a
.
s
[
3
]))
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
mimm
(
r2
),
mimm
(
r1
)))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
1
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
1
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
-
imm
(
a
.
s
[
4
]))
r2
=
g
\
(
a
.
s
[
2
]
-
imm
(
a
.
s
[
3
]))
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
imm
(
r2
),
imm
(
r1
)))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
2
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
2
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
+
a
.
s
[
4
])
r2
=
g
\
(
a
.
s
[
2
]
-
a
.
s
[
3
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
-
r2
,
r1
))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
2
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
2
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
-
a
.
s
[
4
])
r2
=
g
\
(
a
.
s
[
2
]
+
a
.
s
[
3
])
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
r2
,
-
r1
))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
3
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
3
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
+
imm
(
a
.
s
[
3
]))
r2
=
g
\
(
a
.
s
[
2
]
-
imm
(
a
.
s
[
4
]))
return
Spinor
{
NS
,
G
}((
r1
,
r2
,
mimm
(
r1
),
imm
(
r2
)))
end
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
3
,
-
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
@inline
function
gdagpmul
(
::
Type
{
Pgamma
{
3
,
1
}},
g
,
a
::
Spinor
{
NS
,
G
})
where
{
NS
,
G
}
r1
=
g
\
(
a
.
s
[
1
]
-
imm
(
a
.
s
[
3
]))
r2
=
g
\
(
a
.
s
[
2
]
+
imm
(
a
.
s
[
4
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment