Electron transport in quantum devices is governed by discrete quantum
states due to electron confinement, A crucial requirement for the mode
ling of quantum devices is the the numerical identification and resolu
tion of these quantum states. We present an algorithm utilized in our
general purpose quantum device simulator (NEMO), where we locate the r
esonances of the system first and then generate the optimized grid use
d to integrate over the resonances. We find this algorithm important i
n the modeling of coherent transport involving ultrafine resonances an
d crucial for the modeling of incoherent transport.