Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Davison, Jacob
tfimsrg
Commits
86d29447
Commit
86d29447
authored
Aug 05, 2019
by
Davison
Browse files
working on 2B generator
parent
de0e07fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
oop_imsrg/generator.py
View file @
86d29447
...
...
@@ -309,4 +309,16 @@ class WegnerGenerator3B(WegnerGenerator):
eta1B
=
0.25
*
sum4_1b
+
(
1
/
12
)
*
sum5_1b
# Calculate 2B generator
# fourth term
# occA_2 =
sum4_2b_1
=
np
.
matmul
(
-
1
*
np
.
transpose
(
occA
),
fod
)
sum4_2b_2
=
np
.
matmul
(
-
1
*
np
.
tranpose
(
occA
),
fd
)
sum4_2b_3
=
ncon
([
Wd
,
sum4_2b_1
],
([
0
,
-
1
,
-
2
,
1
,
-
3
,
-
4
],
[
1
,
0
])).
numpy
()
sum4_2b_4
=
ncon
([
Wod
,
sum4_2b_2
],
([
0
,
-
1
,
-
2
,
1
,
-
3
,
-
4
],
[
1
,
0
])).
numpy
()
sum4_2b
=
sum4_2b_3
-
sum4_2b_4
#fifth term
sum5_2b_1
=
ncon
([
occG
,
God
],
([],
[])).
numpy
()
return
eta1B
Write
Preview
Supports
Markdown
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