From e5bf213f066eddbb2d4e5c82916ed3280403b3f8 Mon Sep 17 00:00:00 2001 From: Joseph Weston <joseph.weston08@gmail.com> Date: Fri, 1 Dec 2017 11:56:20 +0100 Subject: [PATCH] correct sign and factor 2 in spin_potential_shape tutorial MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- doc/source/code/figure/spin_orbit.py.diff | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/source/code/figure/spin_orbit.py.diff b/doc/source/code/figure/spin_orbit.py.diff index ba32e812..649d8c4f 100644 --- a/doc/source/code/figure/spin_orbit.py.diff +++ b/doc/source/code/figure/spin_orbit.py.diff @@ -47,10 +47,10 @@ 4 * t * sigma_0 + e_z * sigma_z # hoppings in x-direction 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 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 #### Define the left lead. #### @@ -60,10 +60,10 @@ lead[(lat(0, j) for j in range(W))] = 4 * t * sigma_0 + e_z * sigma_z # hoppings in x-direction 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 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 #### Attach the leads and return the finalized system. #### -- GitLab