I am a PhD student of Hong Kong University of Science and Technology. I
want to use KWANT to caculate Hall resistance of a Hall bar structure.We
can get the conductance between 6 electrodes, but how to get hall
resistance? Can you give me some help? Thank you very much.
I am using Kwant to study a system with both spins and electron and hole,
so the hopping matrix is 4X4. Now I want to know how to separate the spins,
electron and hole. I study this through the "2.6. Superconductors: orbital
degrees of freedom, conservation laws and symmetries"
smatrix = kwant.smatrix(syst, energy)
data.append(smatrix.submatrix((0, 0), (0, 0)).shape
-smatrix.transmission((0, 0), (0, 0)) +smatrix.transmission((0, 1), (0, 0)))
I do not find more information about this for kwant.
For my system, if I have 3 leads, and the hopping and onsite energy is set
in this order:
(e↑,0,0,0)- spin up electron,first row of the 4X4matrix
(0,e↓,0,0)- spin down electron,second row of the 4X4matrix
(0,0, h↑ ,0)- spin up hole,third row of the 4X4matrix
(0,0, 0, h ↓ )- spin down hole,fourth row of the 4X4matrix
I want to obtain the transmissions from 0 →2.
smatrix = kwant.smatrix(syst, energy)
The transmission from h↑ to e↑ is: smatrix.transmission((2, 1), (0, 2))
The transmission from h ↓ to e↑ is: smatrix.transmission((2, 1), (0, 3))
Is my understanding correct?
Thanks very much in advance!
I'm trying to calculate the Berry curvature. Is there a way to get access to the eigenvectors of H (k) for different k values just diagonalizing the following hamiltonian H_k?
wrapped = kwant.wraparound.wraparound(sys).finalized()
def ham(sys,k_x,k_y=None, **params):
k= momentum_to_lattice(sys, [k_x] if k_y is None else [k_x,k_y])
Thanks for your time and help!
I am trying to plot the density on top of the plot of the current. I use for that "ax" to combine the two plots. I kind of noticed that the two plots do not have the same size (although the system is the same!)
I know that when "ax" is not None, "figsize" is disabled.
Is there a way to fix the size of the two plots to be the same such that they can be combined?
I am modeling a graphene lattice that is rectangular in shape.
graphene = kwant.lattice.general([(1, 0), (sin_30, os_30)],
[(0, 0), (0, 1 / sqrt(3))])
When you attach the leads (with symmetry parallel to the rectangle edges), extra lattice sites get added. I want to avoid this and my thinking is that you define a seperate lattice for the leads, such that it is a unit cell translatable like a square lattice, which in this case would be something like:
lattice_lead = kwant.lattice.general([(1, 0), (0, 2*cos_30)],
[(0, 0), (0, l(1 / sqrt(3))),(0.5,((1/sqrt(3))+(tan_30*0.5))),(0.5,((2/sqrt(3))+(tan_30*0.5)))])
My question is firstly, is this the way to go about it? And secondly, how does this interplay with the sublattices and thier hoppings?
I have set up a system in which I want to define hoppings in a lead between sites that originate from two sublattices: LatticeA has sublatices a and b, LatticeB has sublattices c and d. Currently, I believe I am achieving this via:
for site in lead2.sites():
(x,y) = site.pos
if str(site.family) == "<Monatomic lattice e0>":
lead2[c(x,y),a(x,y)] = Delta
if str(site.family) == "<Monatomic lattice e1>":
lead2[d(x,y),b(x,y)] = Delta
and thereby connecting sublattices c and a, and d and b.
Is this accurate? Can this be done with HoppingKind? And is there a way for me to list all the hoppings created to check if this was successful?
I'm confused by some problem when doing time-dependent spin related transport calculations by tkwant. Let me briefly introduce what the main problem is. I'm now considering a 1D chain model with some magnetic spin moment on some of the sites. By applying a voltage to one lead, I want to know how the spin accumulate near the other lead. My problem is that in my code the calculated spin density and charge density near the second lead are always same which I believe should not be true because this means that only one spin channel is always occupied and the other is always empty! My code is as follows:
from matplotlib import pyplot as plt
from math import pi, sqrt, cos, sin
from cmath import atan
import numpy as np
############ spin matrix #############
lat = kwant.lattice.general([(5,0,0),(0,5,0),(0,0,1)],
return abs(x-2.5)<=1 and abs(y-2.5)<=1 and z>=0 and z<=length-1
return abs(x-2.5)<=1 and abs(y-2.5)<=1 and z<=-1 and z>=-l_M
return abs(x-2.5)<=1 and abs(y-2.5)<=1 and z>=length and z<=length+l_M-1
syst[lat.shape(scattering_region, (2.5, 2.5, 0))]=0*s0
syst[lat.shape(mag_region0, (2.5, 2.5, -1))]=M*sz
syst[lat.shape(mag_region1, (2.5, 2.5, length))]=M*sz
for i in range (length+2*l_M-1):
return abs(x-2.5)<=1 and abs(y-2.5)<=1
Vb, tau= 0.6, 20
if time > tau:
return Vb*time - Vb*tau/2
def current_cut(site_to, site_from):
return site_from.pos<=length-1 and site_to.pos>length-1
return site.pos>=length and site.pos<=length+l_M-1
print('make up of state ...')
for time in times:
print('%.4f percent ...' % (100*times.index(time)/len(times)))
Does anyone know where the problem is?