kwant.physics.
Bands
(sys, args=())¶Bases: object
Class of callable objects for the computation of energy bands.
Parameters: | sys :
args : tuple, defaults to empty
|
---|
Notes
An instance of this class can be called like a function. Given a momentum (currently this must be a scalar as all infinite systems are quasi-1-d), it returns a NumPy array containing the eigenenergies of all modes at this momentum
Examples
>>> bands = kwant.physics.Bands(some_sys)
>>> momenta = numpy.linspace(-numpy.pi, numpy.pi, 101)
>>> energies = [bands(k) for k in momenta]
>>> pyplot.plot(momenta, energies)
>>> pyplot.show()
Methods