Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
diamond chain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hélène Spring
diamond chain
Commits
80dc9e6a
Commit
80dc9e6a
authored
4 years ago
by
Hélène Spring
Browse files
Options
Downloads
Patches
Plain Diff
Add symmetry analysis and explore symmetries of model
parent
2e5b4c14
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
code/testing_ground.py
+20
-11
20 additions, 11 deletions
code/testing_ground.py
notes/diamond_chain.pptx
+0
-0
0 additions, 0 deletions
notes/diamond_chain.pptx
notes/~$diamond_chain.pptx
+0
-0
0 additions, 0 deletions
notes/~$diamond_chain.pptx
with
20 additions
and
11 deletions
code/testing_ground.py
+
20
−
11
View file @
80dc9e6a
...
...
@@ -2,6 +2,7 @@
import
kwant
import
numpy
as
np
import
matplotlib.pyplot
as
plt
import
kwant.qsymm
as
kwant_qsymm
from
modules.diamond_chain
import
diamond_chain_system
from
modules.analysis_funcs
import
ldos_from_kpm
,
ldos_modes_from_leads
...
...
@@ -9,25 +10,23 @@ from modules.analysis_funcs import ldos_from_kpm, ldos_modes_from_leads
# -
system_params
=
dict
(
mu_a_pos
=
0.
4
,
mu_a_neg
=
-
0.
2
,
mu_b_pos
=
-
0.
3
,
mu_b_neg
=
0.
3
,
mu_c_pos
=
0.
1
,
mu_a_pos
=
0.
3
,
mu_a_neg
=
-
0.
1
,
mu_b_pos
=
0.
,
mu_b_neg
=
-
0.
,
mu_c_pos
=
0.
3
,
mu_c_neg
=
-
0.1
,
j2
=
1
,
j3
=
1
,
phi
=
np
.
pi
/
2
,
phi_d
=
0.
3
phi_d
=
0.
)
inf_chain
=
diamond_chain_system
(
5
,
system_params
,
semi_infinite
=
True
)
fin_chain
=
diamond_chain_system
(
5
,
system_params
,
semi_infinite
=
False
)
# o = kwant.plot(fin_chain)
# +
# ldos_modes_from_leads(fin_chain.finalized(), system_params) #doesn't work for flat bands
# -
# ## LDOS
o
=
ldos_from_kpm
(
fin_chain
.
finalized
(),
system_params
,
vmax
=
10
,
energy
=
0
)
...
...
@@ -35,7 +34,11 @@ o = ldos_from_kpm(fin_chain.finalized(), system_params, vmax = 1, energy = 2*sys
o
=
ldos_from_kpm
(
fin_chain
.
finalized
(),
system_params
,
vmax
=
10
,
energy
=
2
*
np
.
sqrt
(
2
)
*
system_params
[
'
j2
'
]
)
kwant
.
plotter
.
bands
(
inf_chain
.
finalized
(),
momenta
=
np
.
linspace
(
-
np
.
pi
,
np
.
pi
,
1000
))
# ## Spectrum
p
=
kwant
.
plotter
.
bands
(
inf_chain
.
finalized
(),
momenta
=
np
.
linspace
(
-
np
.
pi
,
np
.
pi
,
1000
))
# ## Eigenvalues
ham
=
fin_chain
.
finalized
().
hamiltonian_submatrix
()
...
...
@@ -45,6 +48,12 @@ ev
plt
.
plot
(
ev
,
marker
=
'
o
'
,
lw
=
0
)
np
.
exp
(
1j
*
np
.
pi
/
2
).
imag
# ## Symmetries
# +
symmetries
=
kwant_qsymm
.
find_builder_symmetries
(
inf_chain
,
params
=
system_params
,
sparse
=
True
,)
symmetries
# -
This diff is collapsed.
Click to expand it.
notes/diamond_chain.pptx
+
0
−
0
View file @
80dc9e6a
No preview for this file type
This diff is collapsed.
Click to expand it.
notes/~$diamond_chain.pptx
deleted
100644 → 0
+
0
−
0
View file @
2e5b4c14
File deleted
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment