Dear all members of Kwant community: My objective is to write a Kwant coding for E-k dispersion relation of 2D electron gas. I have followed the relevant code of quantum well. But, I cannot insert the proper placing of the method" bands" in that code so that I can get the profile of: E=(H bar**2/2*m)*k(transverse)**2 + (H bar**2/2*m)*(n*pi/W)**2. Barrier height and well depth are synonymous I understand. Also, potential at the two extreme barriers are set to zero while that in the well is set to negative as I understand. I want to know the effect of varying the dimension of confinement direction on the energy; in addition the number of subbands also. Physics is understood but I cannot incorporate these properly in the code. I would benefited in my work with Kwant application if you please extend your wise knowledge. I send the code which I use. Thanks to all members. K.K.Ghosh kk_ghosh@rediffmail.com
Dear Kamal, I ran your code and got the following error: TypeError: Expecting an instance of InfiniteSystem. The reason is because you are passing a `FiniteSystem` (with leads attached) to `kwant.plotter.bands`, however `bands` expects an `InfiniteSystem`, i.e. *a finalized lead*. For example you could change your code to the following to plot the bands in lead 0: kwant.plotter.bands(sys.leads[0], show=False) Happy Kwanting, Joe
participants (2)
-
Joseph Weston
-
kamal ghosh