Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kwant
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Michael Wimmer
kwant
Commits
2de760a3
Commit
2de760a3
authored
Nov 02, 2015
by
Christoph Groth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tutorial example diff, removing unneeded hunk
parent
faa54f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
23 deletions
+3
-23
doc/source/images/ab_ring.py.diff
doc/source/images/ab_ring.py.diff
+3
-23
No files found.
doc/source/images/ab_ring.py.diff
View file @
2de760a3
...
...
@@ -8,27 +8,7 @@
from cmath import exp
from math import pi
@@ -40,12 +41,13 @@
sys[lat.shape(ring, (0, r1 + 1))] = 4 * t
sys[lat.neighbors()] = -t
- # In order to introduce a flux through the ring, we introduce a phase on
- # the hoppings on the line cut through one of the arms. Since we want to
- # change the flux without modifying the Builder instance repeatedly, we
- # define the modified hoppings as a function that takes the flux as its
- # parameter phi.
- def fluxphase(site1, site2, phi):
+ # In order to introduce a flux through the ring, we introduce a phase
+ # on the hoppings on the line cut through one of the arms
+
+ # since we want to change the flux without modifying Builder repeatedly,
+ # we define the modified hoppings as a function that takes the flux
+ # through the argument phi.
+ def fluxphase(site1, site2, phi=0):
return exp(1j * phi)
def crosses_branchcut(hop):
@@ -81,6 +83,50 @@
@@ -81,6 +82,50 @@
return sys
...
...
@@ -79,7 +59,7 @@
def plot_conductance(sys, energy, fluxes):
# compute conductance
@@ -90,18 +13
6
,31 @@
@@ -90,18 +13
5
,31 @@
smatrix = kwant.smatrix(sys, energy, args=[flux])
data.append(smatrix.transmission(1, 0))
...
...
@@ -116,7 +96,7 @@
# Finalize the system.
sys = sys.finalized()
@@ -111,6 +1
70
,17 @@
@@ -111,6 +1
69
,17 @@
for i in xrange(100)])
...
...
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