Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
GitLab will be unavailable Saturday, August 20, 2022, 7:00 - 8:00 pm, during planned maintenance.
Open sidebar
Davison, Jacob
tfimsrg
Commits
7cea9ccb
Commit
7cea9ccb
authored
Aug 08, 2019
by
Davison
Browse files
minimal changes
parent
9e89d286
Changes
2
Hide whitespace changes
Inline
Side-by-side
main.py
View file @
7cea9ccb
...
@@ -424,16 +424,19 @@ def test_refs(plots_dir):
...
@@ -424,16 +424,19 @@ def test_refs(plots_dir):
# print('{:2.4f} | {d}'.format(E_conv[i], d=refs_conv[i]))
# print('{:2.4f} | {d}'.format(E_conv[i], d=refs_conv[i]))
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
test_refs
(
'logs_refs
\\
'
)
#
test_refs('logs_refs\\')
# test_exact('plots_exact\\')
# test_exact('plots_exact\\')
# print(ci_matrix.exact_diagonalization(1.0, 0.5, 0.1))
# print(ci_matrix.exact_diagonalization(1.0, 0.5, 0.1))
# h = PairingHamiltonian2B(4,4)
h
=
PairingHamiltonian2B
(
4
,
4
)
# occt = OccupationTensors(h.sp_basis, h.reference)
occt
=
OccupationTensors
(
h
.
sp_basis
,
h
.
reference
)
# wg3b = WegnerGenerator3B(h, occt)
wg3b
=
WegnerGenerator3B
(
h
,
occt
)
# test = wg3b.calc_eta()
test
=
wg3b
.
calc_eta
()
# eta1B = test[0]
eta1B
=
test
[
0
]
# eta2B = test[1]
eta2B
=
test
[
1
]
# print(eta1B)
eta3B
=
test
[
2
]
# print(eta2B[0,1,4,5])
print
(
eta1B
)
print
(
eta2B
[
0
,
1
,
4
,
5
])
print
(
eta2B
[
4
,
5
,
0
,
1
])
print
(
eta3B
.
shape
)
oop_imsrg/__pycache__/generator.cpython-37.pyc
View file @
7cea9ccb
No preview for this file type
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