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
Pengfei Zhou
GI based TN
Commits
d4cadcbf
Commit
d4cadcbf
authored
Aug 18, 2020
by
Pengfei Zhou
Browse files
args
parent
aa2c7e79
Changes
2
Hide whitespace changes
Inline
Side-by-side
args.py
View file @
d4cadcbf
...
...
@@ -16,6 +16,7 @@ parser.add_argument("-seed2", type=int, default=-1, help="seed2")
parser
.
add_argument
(
"-graph"
,
type
=
str
,
default
=
'rrg'
,
help
=
"graph"
)
parser
.
add_argument
(
"-Jij"
,
type
=
str
,
default
=
'ferro'
,
choices
=
[
'ferro'
,
'rand'
,
'randn'
,
'sk'
,
'binary'
])
parser
.
add_argument
(
"-which"
,
type
=
int
,
default
=
0
,
help
=
'choose which graph to calculate freeenergy'
)
parser
.
add_argument
(
"-field"
,
type
=
str
,
default
=
'zero'
,
choices
=
[
'one'
,
'rand'
,
'randn'
])
parser
.
add_argument
(
"-node"
,
type
=
str
,
default
=
'mps'
,
choices
=
[
'raw'
,
'mps'
],
help
=
"node representation, raw or mps"
)
...
...
lnz.py
View file @
d4cadcbf
...
...
@@ -97,7 +97,7 @@ if __name__ == '__main__':
graph
=
nx
.
complete_graph
(
args
.
n
)
edges
=
list
(
graph
.
edges
)
elif
args
.
graph
==
"read_from_file"
:
args
.
n
,
edges
=
convert
(
'Generated_graphs.20.03.g6'
,
1
)
args
.
n
,
edges
=
convert
(
'Generated_graphs.20.03.g6'
,
args
.
which
)
#print(args.n)
#print(edges)
#print(len(edges))
...
...
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