Towards realistic numerical simulations of Majorana devices https://www.nijho.lt/publication/phd_thesis/