Skip to content
Snippets Groups Projects
Commit e5bf213f authored by Joseph Weston's avatar Joseph Weston
Browse files

correct sign and factor 2 in spin_potential_shape tutorial

For a spin-orbit term of the form '-iασ_y∂_x' the hopping
for 'HoppingKind((1, 0), lat)' (*from* 'x' *to* 'x + a')
is 'iασ_y/2'.

Closes #175.
parent 7c802539
No related branches found
No related tags found
No related merge requests found
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
4 * t * sigma_0 + e_z * sigma_z 4 * t * sigma_0 + e_z * sigma_z
# hoppings in x-direction # hoppings in x-direction
syst[kwant.builder.HoppingKind((1, 0), lat, lat)] = \ syst[kwant.builder.HoppingKind((1, 0), lat, lat)] = \
-t * sigma_0 - 1j * alpha * sigma_y -t * sigma_0 + 1j * alpha * sigma_y / 2
# hoppings in y-directions # hoppings in y-directions
syst[kwant.builder.HoppingKind((0, 1), lat, lat)] = \ syst[kwant.builder.HoppingKind((0, 1), lat, lat)] = \
-t * sigma_0 + 1j * alpha * sigma_x -t * sigma_0 - 1j * alpha * sigma_x / 2
#HIDDEN_END_uxrm #HIDDEN_END_uxrm
#### Define the left lead. #### #### Define the left lead. ####
...@@ -60,10 +60,10 @@ ...@@ -60,10 +60,10 @@
lead[(lat(0, j) for j in range(W))] = 4 * t * sigma_0 + e_z * sigma_z lead[(lat(0, j) for j in range(W))] = 4 * t * sigma_0 + e_z * sigma_z
# hoppings in x-direction # hoppings in x-direction
lead[kwant.builder.HoppingKind((1, 0), lat, lat)] = \ lead[kwant.builder.HoppingKind((1, 0), lat, lat)] = \
-t * sigma_0 - 1j * alpha * sigma_y -t * sigma_0 + 1j * alpha * sigma_y / 2
# hoppings in y-directions # hoppings in y-directions
lead[kwant.builder.HoppingKind((0, 1), lat, lat)] = \ lead[kwant.builder.HoppingKind((0, 1), lat, lat)] = \
-t * sigma_0 + 1j * alpha * sigma_x -t * sigma_0 - 1j * alpha * sigma_x / 2
#HIDDEN_END_yliu #HIDDEN_END_yliu
#### Attach the leads and return the finalized system. #### #### Attach the leads and return the finalized system. ####
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment