Skip to content
Features
Business
Explore
Marketplace
Pricing
This repository
Sign in
or
Sign up
Watch
22
Star
73
Fork
60
ITensor
/
ITensor
Code
Issues
3
Pull requests
5
Projects
0
Insights
Pulse
Graphs
Lattice generation
#108
Merged
emstoudenmire
merged 1 commit into
ITensor
:
master
from
ybarlev
:
master
Aug 25, 2016
Conversation
1
Commits
1
Files changed
2
Changes from
all commits
Commits
Show all changes
1 commit
Select commit
22b60b2
periodic bond is not needed for Ny<=2
ybarlev
Aug 25, 2016
2 files
Jump to file
No files or symbols found.
+2
−0
square.h
itensor/mps/lattice/square.h
+2
−0
triangular.h
itensor/mps/lattice/triangular.h
+4
−0
Unified
Split
Show comments
View
2
itensor/mps/lattice/square.h
@@ -15,6 +15,8 @@ squareLattice(int Nx,
Args
const
& args = Args::global())
{
auto
yperiodic = args.
getBool
(
"
YPeriodic
"
,
false
);
+
//
Periodicity on y is meaningless for one dimensional chain or a ladder
+ yperiodic = yperiodic && (Ny >
2
);
auto
N = Nx*Ny;
auto
Nbond =
2
*N-Ny + (yperiodic ?
0
: -Nx);
LatticeGraph latt;
Show comments
View
2
itensor/mps/lattice/triangular.h
@@ -15,6 +15,8 @@ triangularLattice(int Nx,
Args
const
& args = Args::global())
{
auto
yperiodic = args.
getBool
(
"
YPeriodic
"
,
true
);
+
//
Periodicity on y is meaningless for one dimensional chain or a ladder
+ yperiodic = yperiodic && (Ny >
2
);
auto
N = Nx*Ny;
auto
Nbond =
3
*N-
2
*Ny + (yperiodic ?
0
: -
2
*Nx+
1
);
LatticeGraph latt;
Toggle all file notes
You can't perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.