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
aac7f571
Commit
aac7f571
authored
Aug 25, 2020
by
Pengfei Zhou
Browse files
lnz
parent
8df41dbc
Changes
2
Hide whitespace changes
Inline
Side-by-side
args.py
View file @
aac7f571
...
...
@@ -10,6 +10,7 @@ parser.add_argument("-maxdim", type=int, default=30, help="maximum dimension of
parser
.
add_argument
(
"-bond"
,
type
=
int
,
default
=
2
,
help
=
"initial bond dimention of every dimention of tensor "
)
parser
.
add_argument
(
"-choice"
,
type
=
int
,
default
=
1
,
help
=
"choice to initialize the tensor,1 denote on node,2 denote on edge"
)
parser
.
add_argument
(
"-seed"
,
type
=
int
,
default
=
1
,
help
=
"seed"
)
parser
.
add_argument
(
'-cuda'
,
type
=
int
,
default
=
0
)
parser
.
add_argument
(
"-seed1"
,
type
=
int
,
default
=
2
,
help
=
'seed for initialize tensors'
)
parser
.
add_argument
(
"-seed2"
,
type
=
int
,
default
=-
1
,
help
=
"seed2"
)
parser
.
add_argument
(
"-graph"
,
type
=
str
,
default
=
'rrg'
,
help
=
"graph"
)
...
...
lnz.py
View file @
aac7f571
...
...
@@ -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.
4
2.05.g6'
,
args
.
which
)
args
.
n
,
edges
=
convert
(
'Generated_graphs.2
0
.05.g6'
,
args
.
which
)
print
(
args
.
n
)
args
.
graph
=
'rrg'
#print(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