Quantum point contact, Transfer matrix and scattering matrix method - IPython