Dear Joe, Thanks, I have searched the two questions in the Kwant documentation and found the answers. I am learning Kwant through examples in the tutorials, and I will pay attention to the documentation. Best Hosein Khani
On Thu, Jul 6, 2017 at 8:48 PM, Joseph Weston <[email protected]> wrote: > Dear Hosein, > > > > How to define the number of orbitals when constructing the site > > families? In tutorial2.7, it is defined using: lat = > > kwant.lattice.square(norbs=2). For a new defined lattice with spin > > degree included, how to define the number of orbitals. For example, > > graphene = kwant.lattice.general([(1, 0), (sin_30, cos_30)], > > [(0, 0), (0, 1 / sqrt(3))]) > > a, b = graphene.sublattices > > How to declare the number of orbitals in the program? > > > > > My second question is: > > I used the += operator in my program: > > lead0+=lead_U > > lead0+=lead_D > > it works well when i used kwant 1.2, but I got error messages in kwant > > 1.3. It shows: The += operator of builders is deprecated. Use > > 'Builder.update()' instead. How to fix this? > > Both of these questions can be answered simply by looking at the Kwant > documentation, > notably the reference documentation for 'lattice.general' and > 'builder.Builder.update'. > > Please try looking at the Kwant documentation before asking a question > on the mailing list. > > Happy Kwanting, > > Joe > > > > >
