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
2e2bf2c6
Commit
2e2bf2c6
authored
Nov 21, 2023
by
Fernando Pérez Panadero
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SU2fund small adjustments
parent
cb5bb84b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
5 deletions
+11
-5
src/Groups/AlgebraU2.jl
src/Groups/AlgebraU2.jl
+0
-1
src/Groups/FundamentalSU2.jl
src/Groups/FundamentalSU2.jl
+0
-4
src/Groups/SU2Types.jl
src/Groups/SU2Types.jl
+11
-0
No files found.
src/Groups/AlgebraU2.jl
View file @
2e2bf2c6
...
...
@@ -11,7 +11,6 @@ function antsym(a::SU2{T}) where T <: AbstractFloat
return
U2alg
{
T
}(
2.0
*
imag
(
a
.
t1
),
-
2.0
*
imag
(
a
.
t1
),
2.0
*
a
.
t2
)
end
Base
.:*
(
a
::
U2alg
{
T
},
b
::
SU2fund
{
T
})
where
T
<:
AbstractFloat
=
SU2fund
{
T
}(
im
*
a
.
u11
*
b
.
t1
+
a
.
u12
*
b
.
t2
,
-
conj
(
a
.
u12
)
*
b
.
t1
+
im
*
a
.
u22
*
b
.
t2
)
...
...
src/Groups/FundamentalSU2.jl
View file @
2e2bf2c6
struct
SU2fund
{
T
}
t1
::
Complex
{
T
}
t2
::
Complex
{
T
}
end
Base
.
zero
(
::
Type
{
SU2fund
{
T
}})
where
T
<:
AbstractFloat
=
SU2fund
{
T
}(
zero
(
T
),
zero
(
T
))
Random
.
rand
(
rng
::
AbstractRNG
,
::
Random
.
SamplerType
{
SU2fund
{
T
}})
where
T
<:
AbstractFloat
=
SU2fund
{
T
}(
complex
(
randn
(
rng
,
T
),
randn
(
rng
,
T
)),
complex
(
randn
(
rng
,
T
),
randn
(
rng
,
T
)))
...
...
src/Groups/SU2Types.jl
View file @
2e2bf2c6
...
...
@@ -53,3 +53,14 @@ Base.convert(::Type{M2x2{T}}, a::SU2{T}) where T = M2x2{T}(a.t1,a.t2,-conj(a.t2)
Random
.
rand
(
rng
::
AbstractRNG
,
::
Random
.
SamplerType
{
SU2alg
{
T
}})
where
T
<:
AbstractFloat
=
SU2alg
{
T
}(
randn
(
rng
,
T
),
randn
(
rng
,
T
),
randn
(
rng
,
T
))
Random
.
rand
(
rng
::
AbstractRNG
,
::
Random
.
SamplerType
{
SU2
{
T
}})
where
T
<:
AbstractFloat
=
exp
(
SU2alg
{
T
}(
randn
(
rng
,
T
),
randn
(
rng
,
T
),
randn
(
rng
,
T
)))
struct
SU2fund
{
T
}
t1
::
Complex
{
T
}
t2
::
Complex
{
T
}
end
Base
.
zero
(
::
Type
{
SU2fund
{
T
}})
where
T
<:
AbstractFloat
=
SU2fund
{
T
}(
zero
(
T
),
zero
(
T
),
zero
(
T
))
Random
.
rand
(
rng
::
AbstractRNG
,
::
Random
.
SamplerType
{
SU2fund
{
T
}})
where
T
<:
AbstractFloat
=
SU2fund
{
T
}(
complex
(
randn
(
rng
,
T
),
randn
(
rng
,
T
)),
complex
(
randn
(
rng
,
T
),
randn
(
rng
,
T
)))
\ No newline at end of file
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