Re: [Kwant] conservation law

2018-06-19 Thread Tómas Örn Rosdahl
Dear KS Chan The conservation law feature can handle degenerate eigenvalues. The number of blocks is equal to the number of distinct eigenvalues of the conservation law, and the degeneracy of each eigenvalue gives the size of the block. So in your example, the Hamiltonian will indeed be block diag

Re: [Kwant] conservation law in the case of a spinfull Nambu basis

2017-12-08 Thread Tómas Örn Rosdahl
Hi Tibor, The number of projectors is the same as the number of distinct eigenvalues in the specified conservation law. Note that the eigenvalues themselves are not important, only the order in which they appear and whether they are distinct or not. In your case, you could set conservation_law = n

Re: [Kwant] Regarding smatrix and spin

2017-01-08 Thread Tómas Örn Rosdahl
Dear Camilla, For a Hamiltonian with degeneracies due to a conservation law, the scattering states will in general not have a definite value of the conservation law. In your case, Kwant returns scattering states that are arbitrary linear combinations of spin up and down, so it is not possible to l

Re: [Kwant] Plotting Hamiltonian for overlapping lattices

2016-11-08 Thread Tómas Örn Rosdahl
result looks completely random. > > > > I hope my explanation was understandable. > > > > Best, > > Camilla > > > """ This modules extends kwant.system.InfiniteSystem and kwant.solvers.common.SMatrix, to allow for the construction of lead mod