Advanced Computing Platform for Theoretical Physics
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lei Wang
disometry
Commits
8b448682
Commit
8b448682
authored
Jan 01, 2020
by
Lei Wang
Browse files
double layer
parent
cb8d30a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
taurg_sweep_3d.py
View file @
8b448682
...
...
@@ -75,8 +75,9 @@ class Ising(torch.nn.Module):
lnZ
+=
2
**
(
-
n
)
*
torch
.
log
(
f
)
T
=
T
/
f
T
=
torch
.
einsum
(
'xabcdx->abcd'
,
(
T
))
#trace
#
T = torch.einsum('xabcdx->abcd', (T)) #trace
#T = symmetrize(T)
T
=
torch
.
einsum
(
'xabcdy,xefghy->aebfcgdh'
,
(
T
,
T
)).
contiguous
().
view
(
self
.
D
**
2
,
self
.
D
**
2
,
self
.
D
**
2
,
self
.
D
**
2
)
lnZ
+=
ctmrg
(
T
,
self
.
chi
,
self
.
nctmrg
)
/
2.0
**
self
.
nxtrg
return
lnZ
...
...
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