Re: [Kwant] Want to know more about bulid_discretized

2019-03-29 Thread Bas Nijholt
Oops, never mind my remark about the documentation being incorrect! It was just because discretize_symbolic returns a tuple which you fed as a first argument to build_discretized. On Fri, Mar 29, 2019 at 3:28 PM Bas Nijholt wrote: > It seems like the documentation here >

Re: [Kwant] Want to know more about bulid_discretized

2019-03-29 Thread Bas Nijholt
It seems like the documentation here is wrong because it expects a dictionary. I see that you do template = kwant.continuum.discretize_symbolic(hamiltonian) t =

Re: [Kwant] Want to know more about bulid_discretized

2019-03-29 Thread Bas Nijholt
Hi Naveen, In the documentation you can see that coords require a sequence of strings, so for example: coords = ('x',) # for 1D coords = ('x', 'y', 'z') # for 3D Best, Bas On Fri, Mar 29, 2019 at 12:59

[Kwant] Want to know more about bulid_discretized

2019-03-29 Thread Naveen Yadav
I want to know more about the builid_discretized(tb_hamiltonian, coords). I did not undersand what should be the syntax to write the coords.Could you please help me by sending an example code for writing coords? Thanks in Advance. Naveen Department of Physics & Astrophysics