Hi Nur, I don't think you need to do anything inside the scattering region to modify the phase of the scattering matrix. Are you sure this is the problem? Best, Anton On Sun, Jan 24, 2016 at 6:04 PM, Fahriye Nur Gursoy <fahriyetortop@sabanciuniv.edu> wrote:

Hello all,

My question is about modifying the phase of wave functions. I want to calculate derivative of scattering matrix with respect to energy and they come out to be discontinuous because of the phases.

To remedy this I need to modify these phases. Following the suggestion of Anton Akhmerov in this mail group I understood how to modify the phase of modes in the leads.

But I also need to change the phase of wave functions in the scattering region to obtain continuous scattering matrices at different energies.

I wonder if there is an another way to call wave functions in the scattering region (apart from kwant.solvers.default.wave_function) or a method to modify these phases.

Thank you in advance.

Nur