Simulation of a 1D quantum wire