kwant.plotter.
sys_leads_sites
(sys, num_lead_cells=2)¶Return all the sites of the system and of the leads as a list.
Parameters: | sys : kwant.builder.Builder or kwant.system.System instance
num_lead_cells : integer
|
---|---|
Returns: | sites : list of (site, lead_number, copy_number) tuples
lead_cells : list of slices
|
Notes
Leads are only supported if they are of the same type as the original
system, i.e. sites of builder.BuilderLead
leads are returned with an
unfinalized system, and sites of system.InfiniteSystem
leads are
returned with a finalized system.