원시데이터 수집 시스템
선정목록으로

Majorana bound state engineering via efficient real-space parameter optimization

관련 모빌리티 소재 · (2) 샤무드(인공피혁)

기본 정보

저자
  1. Boutin, Samuel
  2. Lemyre, Julien Camirand
  3. Garate, Ion
DOI
10.48550/arxiv.1804.03170
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.1804.03170
토픽
Chemical and Physical Properties of Materials
OpenAlex ID
W6891907644

평가 내용

관련도
관련
사업분야
모빌리티 소재 · (2) 샤무드(인공피혁)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '모빌리티 소재 > 샤무드(인공피혁)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Recent progress toward the fabrication of Majorana-based qubits has sparked the need for systematic approaches to optimize experimentally relevant parameters for the realization of robust Majorana bound states. Here, we introduce an efficient numerical method for the real-space optimization of tunable parameters, such as electrostatic potential profiles and magnetic field textures, in Majorana wires. Combining ideas from quantum control and quantum transport, our algorithm, applicable to any noninteracting tight-binding model, operates on a largely unexplored parameter space and opens new routes for Majorana bound states with enhanced robustness. Contrary to common belief, we find that spatial inhomogeneities of parameters can be a resource for the engineering of Majorana bound states.

본문 89,904자

본문 펼치기
Majorana bound state engineering via efficient real-space parameter optimization Samuel Boutin, <sup>_∗_</sup> Julien Camirand Lemyre, and Ion Garate _Institut_ _quantique_ _et_ _D´epartement_ _de_ _Physique,_ _Universit´e_ _de_ _Sherbrooke,_ _Sherbrooke,_ _Qu´ebec_ _J1K_ _2R1,_ _Canada_ (Dated: December 21, 2018) Recent progress toward the fabrication of Majorana-based qubits has sparked the need for systematic approaches to optimize experimentally relevant parameters for the realization of robust Majorana bound states. Here, we introduce an efficient numerical method for the real-space optimization of tunable parameters, such as electrostatic potential profiles and magnetic field textures, in Majorana wires. Combining ideas from quantum control and quantum transport, our algorithm, applicable to any noninteracting tight-binding model, operates on a largely unexplored parameter space and opens new routes for Majorana bound states with enhanced robustness. Contrary to common belief, we find that spatial inhomogeneities of parameters can be a resource for the engineering of Majorana bound states. I. INTRODUCTION Majorana bound states (MBS) are spatially localized zero-energy modes that exhibit non-abelian exchange statistics. The recent discovery and characterization of MBS in solid-state devices has established their potential for future fault-tolerant quantum computers [1]. At present, the leading platform for the study of MBS is a strongly spin-orbit coupled semiconducting nanowire, proximity-coupled to a _s_ -wave superconductor and placed in a uniform magnetic field [2–5]. Alternative proposals replacing spin-orbit interactions with spiral magnetic textures generated by adatoms [6, 7] or arrays of micromagnets [8] are also promising and have been partially realized in experiments [9]. In spite of the aforementioned advances, the current state of knowledge for the realization of MBS is restricted to a small region of parameter space, comprised mainly of translationally-invariant wires. Systems with nonuniform parameters, such as superconducting gaps, magnetic fields and electrostatic potential profiles, are not analytically tractable beyond a few limiting periodic cases [10–17], and the existing numerical studies [18–22] have not been exhaustive. Thus, it would be desirable to chart the vast space of tunable experimental parameters beyond the known subregions, not only to find out if inhomogeneities could be a resource for MBS experiments, but also to provide new insights for improving Majorana-based qubits [23–25]. In this work, we introduce an optimization algorithm that undertakes an efficient search in parameter space for maximally robust MBS which are compatible with experimental constraints. The central finding of our work is that the engineering of spatial inhomogeneities increases the parameter space region for robust MBS and significantly enhances the degeneracy of Majorana zero-modes. Our optimization approach is inspired by the Gradient Ascent Pulse Engineering (GRAPE) algorithm [26] of quantum optimal control [27], which aims to find the best _∗_ [Samuel.Boutin@USherbrooke.ca](mailto:Samuel.Boutin@USherbrooke.ca) pulse shapes in time domain to perform a task, such as implementing a logical gate or reaching a desired ground state [28]. We draw an analogy between GRAPE and the Recursive Green’s function (RGF) method of quantum transport [29], which allows to transfer the insights of the former from time domain to real-space domain. This analogy turns out to be key to implement the efficient optimization of parameters for the creation of robust MBS in inhomogeneous quantum wires. II. REAL-SPACE ANALOG OF OPTIMAL CONTROL In quantum optimal control theory, one considers a system with a Hamiltonian _H_ = _H_ 0 + <sup>�</sup> _k_ <sup>_fk_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_Hk_</sup> <sup>,</sup> where _fk_ ( _t_ ) are some experimentally controllable timedependent parameters and _k_ = 1 _, . . ., p_ labels distinct control fields. The control problem can be stated as the maximization of a functional Φ[ _{fk_ ( _t_ ) _}_ ], known as a performance index, which defines the success in accomplishing a desired task. To make this optimization problem tractable, Khaneja _et al._ [26] discretized the control functions into piecewise-constant segments _fk_ ( _tj_ ). The gradient of Φ with respect to _{fk_ ( _tj_ ) _}_ can then be efficiently calculated by keeping in memory intermediate results of forward-in-time and backward-in-time propagator products computed iteratively (see Appendix A for a more detailed introduction to GRAPE). This insight at the core of GRAPE leads to a polynomial speedup (in the number of time steps) of numerical calculations compared to a finite-difference gradient calculation The piecewise constant approximation of time-domain functions in GRAPE is reminiscent of tight-binding models in condensed matter physics, where space is discretized into a lattice. Hence, it is natural to ask whether a real-space analog of GRAPE could be developed to optimize profiles of tunable static experimental parameters in one dimensional wires. In the following, we pursue this analogy for a wire with Hamiltonian _j_ <sup>_†_</sup> +1 <sup>_ujψj_</sup> <sup>+</sup> <sup>_ψ_</sup> _j_ <sup>_†_</sup> _j_ <sup>_†u†_</sup> _j_ <sup>_†_</sup> _j_ <sup>_ψj_</sup> <sup>+1</sup> - _ψj_ <sup>_†_</sup> _j_ <sup>_†hjψj_</sup> <sup>+</sup> <sup>_ψ_</sup> _j_ <sup>_†_</sup> _H_ = _j_ _,_ (1) 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> RGF with finite difference RGF-GRAPE 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> Number of sites ( _N_ ) FIG. 1. Power-law fits to the average computation time _TN_ for the performance index (Eq. (6)) and its gradient in a Majorana wire with _N_ sites. The RGF-GRAPE method (orange triangles, _TN_ _∝_ _N_ <sup>0</sup> <sup>_._</sup> <sup>98</sup> ) is polynomially faster than the finitedifference gradient approach (blue disks, _TN_ _∝_ _N_ <sup>1</sup> <sup>_._</sup> <sup>85</sup> ). See appendix C 3 for details. where _j_ is the site index. Each site contains _M_ degrees of freedom (spin, particle-hole pseudospin, transverse channel index, etc). Accordingly, onsite terms _hj_ and hopping terms _uj_ are _M_ _×M_ matrices, while _ψj_ <sup>(</sup> <sup>_†_</sup> <sup>)</sup> are column (row) vectors of fermion annihilation (creation) operators. We subdivide the system into a superconducting scattering region of _N_ sites ( _j_ = 1 _, ..., N_ ), coupled to normal metallic homogeneous leads on the left and on the right. To connect with optimal control, we consider an onsite Hamiltonian _hj_ = _h_ <sup>(0)</sup> _j_ + <sup>�</sup> _k_ <sup>_fkjHk_</sup> <sup>,</sup> <sup>where</sup> <sup>_h_</sup> _j_ <sup>(0)</sup> is fixed _k_ <sup>_fkjHk_</sup> <sup>,</sup> <sup>where</sup> <sup>_h_</sup> _j_ <sup>(0)</sup> <sup>(0)</sup> _j_ + <sup>�</sup> Hamiltonian _hj_ = _h_ <sup>(0)</sup> _j_ + <sup>�</sup> _k_ <sup>_fkjHk_</sup> <sup>,</sup> <sup>where</sup> <sup>_h_</sup> _j_ <sup>(0)</sup> is fixed and _k_ = 1 _, . . ., p_ labels different tunable and spatiallyvarying parameters _fkj_, such as the components of a magnetic field b _j_, an electrostatic potential _Vj_ or a superconducting gap ∆ _j_ . Our main goal is to perform an efficient numerical optimization of _fkj_ in quantum wires. For simplicity, we assume _uj_ to be fixed and uniform, but our method can be generalized to relax this assumption, e.g. to optimize an inhomogeneous spin-orbit coupling. Similarly to the GRAPE algorithm, which iteratively constructs products of propagators to describe the system at each time step, local observables of a tight-binding lattice can be described in terms of propagators (Green’s functions) obtained iteratively from the system’s left and right boundaries. This conceptual connection becomes concrete in the RGF method [29], where the retarded Green’s function at site _j_ and energy _E_ is written as In contrast, a naive finite difference approach for calculating _∂G_ <sup>ret</sup> _j_ <sup>_/∂fkj′_</sup> <sup>for</sup> <sup>_j′_</sup> <sup>=</sup> <sup>1</sup> <sup>_, . . ., N_</sup> <sup>would</sup> <sup>incur</sup> <sup>a</sup> <sup>total</sup> computational cost of _O_ ( _N_ <sup>2</sup> _M_ <sup>3</sup> ), which can rapidly become prohibitive with the length of the system. III. MAJORANA WIRE OPTIMIZATION A. Performance index definition In order to optimize _{fkj}_ for the realization of robust MBS, a performance index which is maximal for optimal spatial profiles is needed. A good index must have the following attributes: (i) it is smooth under variations of _fkj_ ; (ii) in the non-topological phase, the optimization process steers the system’s parameters towards a topological phase transition (via gap closing); (iii) in the topological phase, the optimization evolves towards maximizing the protection of the MBS (via gap opening). A simple performance index that meets the preceding criteria is Φ = _−_ ∆ _LQL −_ ∆ _RQR,_ (3) where ∆ _L_ ( _R_ ) _≥_ 0 is the local energy gap at the left (right) extremity of the scattering region and _QL_ ( _R_ ) is the corresponding “topological visibility” [30]. For quantum wires belonging to symmetry class D [31], the latter varies continuously between _±_ 1 and its sign gives the Z2 topological invariant of the superconducting wire segment (+ _/_ _−_ 1 in the trivial/topological phase). To benefit from the computational efficiency of the RGF method and the analogy to GRAPE, we express Φ in terms of Green’s functions. On the one hand, _QL_ ( _R_ ) is given by the determinant of the zero-energy reflection matrix at site _j_ = 0 ( _j_ = _N_ + 1) [32–34]. These matrices can be obtained (cf. Appendix C) from _G_ <sup>ret</sup> 0 <sup>(0)</sup> and _G_ <sup>ret</sup> _N_ +1 <sup>(0)</sup> <sup>via</sup> <sup>the</sup> <sup>Fisher-Lee</sup> <sup>relations</sup> <sup>[35–38].</sup> <sup>On</sup> the other hand, ∆ _L_ ( _R_ ) can be extracted from the spectral functions. However, this requires evaluating _G_ <sup>ret</sup> _j_ <sup>(</sup> <sup>_E_</sup> <sup>)</sup> for multiple energies, which is numerically costly and inefficient. Fortunately, for the purposes of optimization, the absolute value of the gap is not needed, but only a function that scales in the same way. Herein, we will construct an effective gap that is based solely on _G_ <sup>ret</sup> _j_ <sup>(0).</sup> To that end, we define the “ _center-of-mass_ ” (CM) of the left (L) and right (R) zero-energy states (Fig. 2a), _G_ <sup>ret</sup> _j_ <sup>(</sup> <sup>_E_</sup> <sup>) =</sup> - _E −_ _hj_ _−_ Σ <sup>_L_</sup> _j_ <sup>_L_</sup> _j_ _j−_ 1 <sup>_−_</sup> <sup>Σ</sup> <sup>_R_</sup> _j_ +1 - _−_ 1 _._ (2) Here, Σ <sup>_L_</sup> <sup>(</sup> <sup>_R_</sup> <sup>)</sup> _j±_ 1 <sup>is the left (right) hybridization function rep-</sup> resenting the influence of sites to the left (right) of site _j_ . These hybridization functions are obtained iteratively using the standard RGF recursion relations (cf. Appendix B). The recursive formalism shares two major advantages of GRAPE, in that it allows for a speedup of calculations through the reuse of intermediate results and it enables analytical expressions for the derivatives of propagators. As a result, the complexity of calculating a Green’s function and its derivatives is reduced to _O_ ( _NM_ <sup>3</sup> ) (Fig. 1). local density of states, while _NL_ = <sup>�</sup> _j_ <sup>_N/_</sup> =1 <sup>2</sup> <sup>_ρj_</sup> <sup>and</sup> <sup>_NR_</sup> <sup>=</sup> - _N_ _j_ = _N/_ 2 <sup>_ρj_</sup> <sup>are</sup> <sup>the</sup> <sup>total</sup> <sup>“masses”</sup> <sup>of</sup> <sup>the</sup> <sup>L</sup> <sup>and</sup> <sup>R</sup> <sup>states.</sup> In a superconducting wire weakly coupled to normal leads, zero-energy states from the leads leak in the superconducting region leading to _ρj̸_ = 0 in both the topological and trivial phase. Hence, the CM gives a smooth and _N_ _j_ = _N/_ 2 <u>1</u> _⟨xL⟩_ = _NL_ _N/_ 2 _j_ =1 <u>1</u> _jρj_ ; _⟨xR⟩_ = _NR_ _jρj,_ (4) �� _/_ (2 _π_ ) is the zero-energy - _G_ <sup>ret</sup> _j_ <sup>ret</sup> _j_ <sup>(0)</sup> where _ρj_ _≡−_ Im �Tr (b) 0 _._ 2 ~~0~~ _~~.~~_ ~~0~~ 0 10 20 (c) 380 390 400 0 _._ 2 0 _._ 0 _<u>−</u>_ <u>0</u> _<u>.</u>_ <u>2</u> 2 0 _−_ 2 (a) _R_ 2 _R_ Site index ( _j_ ) ~~(~~ d) 5 0 2 1 0 300 200 100 0 (a) (b) (c) _⟨xL⟩_ _⟨xR⟩_ Eigenvalue index ( _n_ ) Site index ( _j_ ) 0 _._ 2 (e) 0 _._ 0 _−_ 0 _._ 2 Eigenvalue index ( _n_ ) 1 _N/_ 2 _N_ Site index ( _j_ ) _ρj_ 10 <sup>2</sup> 10 <sup>0</sup> 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>4</sup> _−_ 1 0 1 _QL_ FIG. 2. (a) Zero-energy local density of states _ρj_ and the corresponding “centers-of-mass” (CM) _⟨xL⟩_ and _⟨xR⟩_ (cf. Eq. (4)) in a homogeneous wire with superconducting gap ∆ and Zeeman splitting _VZ_ . (b) Evolution of _ρj_, the two CM, and the topological visibility _QL_ (green curve) as a function of _VZ_ . The black dotted line indicates the _VZ_ value used in panel (a). At the topological phase transition (solid black line), _ρj_ is approximately uniform. (c) Evolution of _ρj_, the CM and _QL_ with successive iterations of the RGF-GRAPE optimization algorithm. quantitative measure of the localization of zero-energy states (Fig. 2b). Moreover, there is an inverse relation between the localization length of _E_ = 0 states and the _p−_ wave component of the superconducting gap [39]: the larger the latter is, the closer _⟨xL⟩_ and _⟨xR⟩_ get to 1 and _N_, respectively. With this in mind, we introduce the effective gaps _<u>N/</u>_ <u>2</u> _<u>N/</u>_ <u>2</u> ˜∆ _L_ _≡_ _⟨xL⟩−_ 1 <sup>;</sup> <sup>˜∆</sup> <sup>_R_</sup> <sup>_≡_</sup> _N_ _−⟨xR⟩_ <sup>_,_</sup> (5) which lead to a performance index ˜Φ = _−_ ˜∆ _LQL −_ ˜∆ _RQR._ (6) The effective gaps ˜∆ _L_ ( _R_ ) correlate closely with the _p−_ wave component of the superconducting gap. The optimization of Φ <sup>˜</sup> will accordingly converge towards maximally localized MBS, which is beneficial for the phase coherence of MBS-based qubits [25]. However, ∆ <sup>˜</sup> _L_ ( _R_ ) may be blind to localized non-topological subgap states that might appear at the extremities of the wire, insofar as these do not affect the localization length of the MBS. Though these subgap states can lead to a “soft” gap, their occupation does not flip the MBS-based qubit’s parity if the MBS are spatially well-separated [39, 40]. FIG. 3. Optimization of the electrostatic potential profile in a spin-orbit coupled superconducting wire with 400 sites and one subband. Blue (orange) curves are the results before (after) optimization. (a) Initial and final (optimized) gate potential textures. A period of _R_ = 10 sites (lattice constant _a_ = 10 nm) is enforced during the optimization. (b,c) MBS wave function amplitude. (d) Energy eigenvalues ( _En_ ) of the isolated superconducting region. (e) Energy spectrum near zero-energy. See Appendix D for parameters. B. Proof of concept of the optimization Our optimization algorithm, which we name RGFGRAPE, consists of the following steps: (i) propose an initial set of _{fkj}_ ; (ii) compute Φ and <sup>˜</sup> _∂_ Φ <sup>˜</sup> _/∂fkj_ adapting ideas from RGF and GRAPE (cf. Appendix C); (iii) update _{fkj}_ via gradient ascent; (iv) repeat steps (ii) and (iii) until a maximum of Φ <sup>˜</sup> is attained. These steps are applicable to an arbitrary single-particle tight-binding model of nanowire. The occurence of soft gaps can be reduced by running the algorithm with varying initial and optimization parameters and keeping the solution with the largest gap afterwards (cf. Appendices E and H). To confirm that the algorithm is working properly, we consider a superconducting wire in the single channel regime without spin-orbit coupling placed under an inhomogeneous magnetic field. Starting from a topologically trivial initial state (a superposition of two spiraling fields of different periods), successive iterations of the optimization algorithm adjust the magnetic texture and drive the wire into the topological regime (Fig. 2c). The final magnetic texture, shown in Appendix F, resembles a perfect spiral in the bulk of the wire, but departs from it within a superconducting coherence length from the boundaries. At a small loss for the topological gap, the departure from a uniform spiral renders the MBS significantly more localized, which lead to a MBS energy splitting reduced by more than an order of magnitude. This finding demonstrates that boundary engineering, appropriately done, can improve the MBS characteristics. It also shows that in inhomogeneous wires, unlike in uniform ones, the zeromode energy splitting can be suppressed without increasing the topological gap or the length of the wire. C. Optimization of potential profiles The electrostatic potential in realistic quantum wires is inevitably inhomogeneous and partially tunable by applying voltages on nearby gates. Recent studies [21, 41– 43] have concluded that inhomogeneities result in nontopological localized states with near-zero energy. Other authors [14] have analyzed the impact of (quasi)periodic gate potentials in the topological phase diagram. Yet, there are no explicit results about the optimal spatial profile that would lead to more robust MBS. In Fig. 3, we perform an optimization of the electrostatic potential profile. The precise relation between this potential and the gate voltage could be obtained by solving the Schrodinger-Poisson equation [44–47]. For simplicity, we constrain ourselves to smooth and periodic potentials along the wire axis. Non-periodic potentials are non-optimal in that they generically lead to soft gaps [21]. Smoothness can be achieved by imposing penalties in ˜Φ against rapid potential variations (cf. Appendix E). Through successive iterations of the optimization algorithm, the potential profile evolves from a uniform initial state to a harmonic final state. Unexpectedly, harmonic modulations strongly enhance the MBS localization, while preserving the initial energy gap (albeit with a larger density of states at the gap edge). The increased localization reduces the MBS energy splitting by three orders of magnitude. Such improvement could be crucial for extending coherence times in Majorana-based qubits, whose dephasing times are expected to be limited by the zero-mode energy splittings [25]. This result appears to be a counterexample to the common belief that inhomogeneous potentials are harmful for MBS. In view of the preceding result, one might question whether a spatially uniform superconducting gap is optimal or not. According to RGF-GRAPE, the answer turns out to be affirmative (not shown), this time in agreement with conventional wisdom [5, 48]. D. Optimization of magnetic textures Inhomogeneous magnetic fields produced by arrays of micromagnets constitute a tunable resource for the emergence and manipulation of MBS [49]. On the one hand, spiral fields lead to an artificial spin-orbit coupling that can induce topological superconductivity in weakly spinorbit coupled wires [8]. On the other hand, the combination of spiral and uniform magnetic fields can help attain MBS when neither of the fields alone would suffice [10]. However, once again little is known about the optimal magnetic texture conducive to more robust MBS. The RGF-GRAPE algorithm is well suited to explore this issue. We consider a superconducting wire without intrinsic spin-orbit coupling, subjected to a uniform magnetic field B 0 and a spiral-like magnetic field b _j_ . We assume the amplitude of b _j_ to be uniform and equal to _b_, while FIG. 4. Characteristics of Majorana wires with experimentally relevant parameters (cf. Appendix D) with (i) nonoptimized magnetic texture (combination of uniform and spiral fields with period _R_ = _N/_ 16 = 25) and (ii) optimized magnetic texture in the _b_ - _B_ 0 parameter space. For each point in parameter space, we take the outcome with the largest energy gap out of multiple optimizations with different optimization parameters (cf. Appendix E). The same optimized texture is used for all three rows. (a) Topological visibility _QL_ (red: trivial phase, blue: topological phase). The black dot-dashed line indicates _B_ 0 + _b_ = ∆, the expected minimal Zeeman energy to reach the topological phase. (b) Energy gap _δE_ in the topological phase (white regions indicate the trivial phase). Dotted black curves are the contours drawn in the panel to the left. Dashed (solid) curves denote energy gaps of 100 (200) mK. (c) Majorana zero-mode energy splitting _ϵM_ in the topological phase. its site-dependent orientation is optimized using RGFGRAPE. Figure 4 compares key attributes of Majorana wires between the case where b _j_ is a perfect spiral (column (i)) and the case where b _j_, along with a uniform chemical potential, are optimized (column (ii)). From the topological visibility in panel (a), one can see that the optimization reaches the topological phase as long as _B_ 0 + _b_ _>_ ∆. In addition, the constant topological gap contours in panel (b) show that the optimization allows to increase the parameter space area where the gap is larger than experimentally relevant temperatures. It is likewise clear that, for a fixed _b_, adding a modest uniform field augments the topological gap. This result offers a path to circumventing the problem of small g-factors, which has impeded the experimental realization of MBS in wires with weak intrinsic spin-orbit coupling. Finally, from the zero-mode energy splitting in panel (c), it ensues that the optimization allows to greatly enhance the zero-mode degeneracy, in particular in the low _B_ 0 region. These findings are useful for the realization of MBS using micromagnet arrays [8, 50], where _bj_ is limited to ≲ 1 T. <u>(i)</u> <u>Initial</u> <u>texture</u> (a) 1 _._ 0 0 _._ 5 0 _._ 0 (b) <u>(ii)</u> <u>Optimized</u> <u>texture</u> 0 _._ 0 0 _._ 5 1 _._ 0 _b_ [∆] 1 0 _−_ 0 _._ 16 0 _._ 3 0 _._ 0 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>_−_</sup> <sup>4</sup> 10 <sup>_−_</sup> <sup>6</sup> (c) 1 _._ 0 0 _._ 5 0 _._ 0 1 _._ 0 0 _._ 5 0 _._ 0 0 _._ 0 0 _._ 5 1 _._ 0 <u>(b)</u> 0 _R_ 2 _R_ Site index ( _j_ ) 0 _._ 5 0 _._ 0 _−_ 0 _._ 5 0 _._ 10 0 _._ 05 0 _._ 00 <u>(a)</u> 0 _R_ 2 _R_ Site index ( _j_ ) (c) 1 _N/_ 2 _N_ Site index ( _j_ ) _−_ 0 _._ 2 Eigenvalue index ( _n_ ) 0 _._ 2 0 _._ 0 (d) FIG. 5. Optimized magnetic textures for _B_ 0 = 0 _._ 53∆and _b_ = 0 _._ 8∆(black disks of Fig. 4). Blue (orange) curves correspond to initial (optimized) textures. (a,b) Components of the magnetic textures ( _R_ = _N/_ 16 = 25). (c) MBS wave function amplitude. (d) Energy spectrum near zero energy. Figure 5 gives a more detailed account of the optimization for a fixed amplitude of _B_ 0 and _b_ (the black disks in Fig. 4). In this case, the optimized texture results in a large enhancement of the topological gap (from less than 50 mK to 100 mK) and a large reduction of the MBS’ localization length that suppresses the MBS energy-splitting by more than two orders of magnitude. This finding suggests that small but judicious departures from simple textures can significantly improve the MBS attributes. IV. CONCLUSION We have introduced an efficient algorithm that optimizes real-space parameter profiles in superconducting quantum wires for the generation of robust Majorana bound states. The algorithm explores regions of parameter space where no intuitive (analytical) results are available and identifies new regimes for the emergence of MBS with strongly reduced energy splitting. Combined with realistic device simulations, our algorithm could provide detailed guidance for improved coherence in Majoranabased qubits. More generally, variations of the introduced RGF-GRAPE algorithm could be applied to characterize new topological phases in inhomogeneous low dimensional systems including photonic crystals where machine learning has recently been used for a similar purpose [51]. ACKNOWLEDGMENTS This work was funded by the Canada First Research Excellence Fund and by the National Science and Engineering Research Council. Numerical calculations were done with computer resources from Calcul Qu´ebec and Compute Canada. The authors benefited from fruitful discussions with P. Lopes, M. Pioro-Ladri`ere and S. Turcotte. The source code for this work is available at [52]. Appendix A: Gradient Ascent Pulse Engineering This appendix is a short self-contained introduction to the GRAPE algorithm [26], with a focus on its computational complexity. The goal is to make explicit the analogy between the GRAPE algorithm, the RGF method, and the RGF-based optimization algorithm introduced in Sec. II. For the sake of simplicity, we follow Ref. [53] and present the GRAPE algorithm for a specific optimal control problem: the optimization of a time-dependent Hamiltonian for the preparation of a target unitary transformation _V_ in a time _T_ . Given a time-dependent Hamiltonian _H_ ( _t_ ) = _H_ 0 + _p_ _k_ =1 _fk_ ( _t_ ) _Hk,_ (A1) this control problem can be stated as finding the _p_ control functions _{fk_ ( _t_ ) _}_ such that the propagator resulting from time-evolution, _U_ ( _T_ ), realizes the target transformation _V_ . One can quantify the success of a solution using the performance index Φ = Tr - _V_ <sup>_†_</sup> _U_ ( _T_ )�, which is the inner - _V_ <sup>_†_</sup> _U_ ( _T_ ) performance index Φ = Tr - _V_ <sup>_†_</sup> _U_ ( _T_ )�, which is the inner product between the realized and the target propagators [54]. One can find a solution to the control problem by maximizing this performance index. While optimization algorithms, such as gradient descent, are commonplace and independent of the problem, the GRAPE algorithm uses knowledge of the structure of the propagator to calculate efficiently the gradient of Φ, which can then be used by an optimization algorithm. In general, the propagator _U_ ( _T_ ) is complicated to calculate, as it involves a time-ordered exponential. However, the problem can be greatly simplified by considering the functions _fk_ ( _t_ ) as piecewise constant functions [26]. In this reduced optimization space, the propagator is _U_ ( _T_ ) = _UN_ _UN_ _−_ 1 _· · · U_ 2 _U_ 1 _,_ (A2) where, for timestep _tj_ of duration ∆ _t_ = _T/N_, the propagator of the locally time-independent Hamiltonian is _H_ 0 + �� _Uj_ = exp _−i_ ∆ _t_ _p_ _k_ =1 _fk_ ( _tj_ ) _Hk_ _._ (A3) By removing the time-ordering operator from the problem, the derivatives of the performance index with respect to the (now finite) set of control parameters _{fk_ ( _tj_ ) _}_ can be easily obtained using the linearity of the trace _<u>∂Uj</u>_ _∂fk_ ( _tj_ ) <sup>_Uj−_</sup> <sup>1</sup> <sup>_· · · U_</sup> <sup>1</sup> _<u>∂</u>_ <u>Φ</u> _∂fk_ ( _tj_ ) <sup>= Tr</sup> = Tr _V_ <sup>_†_</sup> _UN · · · Uj_ +1 _Pj_ <sup>_†_</sup> (A4) _<u>∂Uj</u>_ _∂fk_ ( _tj_ ) <sup>_Xj−_</sup> <sup>1</sup> _,_ (A5) where in the second line we have defined the forwardin-time string of propagators _Xj_ = _UjUj−_ 1 _· · · U_ 1 and the backward-in-time string of propagators _Pj_ = _Uj_ <sup>_†_</sup> +1 <sup>_· · · U_</sup> _N_ <sup>_†_</sup> <sup>_V_</sup> <sup>.</sup> <sup>These</sup> <sup>strings</sup> <sup>of</sup> <sup>propagators</sup> <sup>are</sup> <sup>at</sup> <sup>the</sup> _j_ <sup>_†_</sup> +1 <sup>_· · · U_</sup> _N_ <sup>_†_</sup> _Uj_ <sup>_†_</sup> +1 <sup>_· · · U_</sup> _N_ <sup>_†_</sup> <sup>_V_</sup> <sup>.</sup> <sup>These</sup> <sup>strings</sup> <sup>of</sup> <sup>propagators</sup> <sup>are</sup> <sup>at</sup> <sup>the</sup> origin of the computational advantage of the GRAPE algorithm over more naive finite-difference approaches. In brief, due to the recursive nature of these strings (e.g. _j_ <sup>_Pj_</sup> <sup>),</sup> <sup>the</sup> <sup>computational</sup> _Xj_ +1 = _Uj_ +1 _Xj_ and _Pj−_ 1 = _U_ <sup>_†_</sup> _j_ <sup>_Pj_</sup> <sup>),</sup> <sup>the</sup> <sup>computational</sup> _Xj_ +1 = _Uj_ +1 _Xj_ and _Pj−_ 1 = _U_ <sup>_†_</sup> cost of computing the final strings _XN_ and _P_ 1 is the same as computing all the strings if one simply keeps intermediate results in memory. Thus, for the computational cost of a single forward-in-time evolution (calculation of _XN_ ) and a single backward-in-time evolution (calculation of _P_ 1) one can compute the performance index and all of its derivatives. For concreteness, we summarize the GRAPE algorithm indicating, where appropriate, the computational cost of the step in brackets: 1. Choose initial vector of parameters _{fk_ ( _tj_ ) _}_ . 2. Calculate and store in memory all propagators _Uj_ [ _N_ matrix exponentials]. 3. Starting from _X_ 0 = 1, calculate and store in memory all forward propagator strings [ _N_ matrix products]. 4. Starting from _PN_ = _V_ calculate and store in memory all backward propagator strings [ _N_ matrix products]. 5. Calculate gradient of Φ with respect to _{fk_ ( _tj_ ) _}_ [2 _pN_ matrix products]. 6. Use gradient to update the parameter vector and return to step 2. Steps 2-5 are the core of the GRAPE algorithm, while step 1 and 6 are general steps of any gradient-based optimization algorithm. One can see that all steps are at most linear in _N_ . If one does not keep intermediate results in memory and computes each derivatives independently (as is usually the case in a finite-difference calculation), the complexity is _O_ ( _N_ <sup>2</sup> ). Thus, at the cost of an increased usage of memory, the GRAPE algorithm allows a polynomial speedup (in the number of timesteps) over a finite-difference approach. Appendix B: RGF-based optimization In this appendix, we give more details about the realspace optimization algorithm (which we name RGFGRAPE) based on the RGF method. After stating the useful recursive relations and their derivatives, we expand on its relation to the GRAPE algorithm and its computational complexity. 1. Recursive relations Following the notation set in Eq. (1), we consider a 1D tight-binding Hamiltonian with onsite terms _hj_ and nearest-neighbor hopping terms _uj_ . We assume there are M local degrees of freedom per site. As stated in Eq. (2), the RGF method [29] allows to write the retarded Green’s function of the system, projected onto site _j_, as a function of the hybridization function Σ <sup>_L_</sup> <sup>(</sup> <sup>_R_</sup> <sup>)</sup> _j±_ 1 <sup>which</sup> <sup>describres</sup> <sup>the</sup> influence on site _j_ of the sites to the left (right). These hybridization functions are defined as <sup>_R_</sup> _j_ <sup>=</sup> <sup>_u†_</sup> _j_ _j_ <sup>_Ruj−_</sup> <sup>1</sup> <sup>_,_</sup> (B1) Σ <sup>_L_</sup> _j_ <sup>_L_</sup> _j_ <sup>=</sup> <sup>_ujGL_</sup> _j_ <sup>_L_</sup> _j_ <sup>_u†_</sup> _j_ <sup>_†_</sup> _j_ <sup>;</sup> Σ <sup>_R_</sup> _j_ <sup>_†_</sup> _j−_ 1 <sup>_G_</sup> _j_ <sup>_R_</sup> where _G_ <sup>_L_</sup> _j_ <sup>(</sup> <sup>_R_</sup> <sup>)</sup> is the projection on site _j_ of the Green’s function of the system formed by site _j_ and all sites to its left (right). The exact expressions for these Green’s functions are obtained iteratively by using the following recursion relations (see e.g. Refs. [38, 55] for reviews): <sup>_L_</sup> _j_ <sup>= (</sup> <sup>_E −_</sup> <sup>_hj_</sup> <sup>_−_</sup> <sup>Σ</sup> <sup>_L_</sup> _j−_ <sup>_R_</sup> _j_ <sup>= (</sup> <sup>_E −_</sup> <sup>_hj_</sup> <sup>_−_</sup> <sup>Σ</sup> _j_ <sup>_R_</sup> _G_ <sup>_L_</sup> _j_ _G_ <sup>_R_</sup> _j_ <sup>_L_</sup> _j−_ 1 <sup>)</sup> <sup>_−_</sup> <sup>1</sup> _j_ <sup>_R_</sup> +1 <sup>)</sup> <sup>_−_</sup> <sup>1</sup> <sup>_._</sup> (B2) The initial left (right) lead hybridization function Σ <sup>_L_</sup> <sup>(</sup> <sup>_R_</sup> <sup>)</sup> 0( _N_ +1) <sup>,</sup> <sup>starting</sup> <sup>the</sup> <sup>recursion</sup> <sup>relation,</sup> <sup>can</sup> <sup>be</sup> <sup>calcu-</sup> lated using the translation invariance of the lead defined by the sites _j_ _≤_ 0 ( _j_ _≥_ _N_ + 1). Indeed, the translation symmetry in the semi-infinite leads implies the relations Σ <sup>_L_</sup> _j≤_ 0 <sup>= Σ</sup> 0 <sup>_L_</sup> <sup>and</sup> <sup>Σ</sup> <sup>_R_</sup> _j>N_ <sup>= Σ</sup> _N_ <sup>_R_</sup> +1 <sup>.</sup> <sup>In</sup> <sup>our</sup> <sup>numerics,</sup> these lead hybridization functions are calculated using the Kwant numerical package [56]. Before considering derivatives of Green’s functions and their use for efficient optimization, it is worth noting that, by itself, the RGF method has many similarities to the GRAPE algorithm. Indeed, both methods keep in memory intermediary results of recursive relations relating propagators to reduce computational complexity. The steps of the RGF algorithm for computing all lattice Green’s functions _G_ <sup>ret</sup> _j_ <sup>,</sup> <sup>including complexity in brackets,</sup> are: <sup>_L_</sup> _j≤_ 0 <sup>= Σ</sup> 0 <sup>_L_</sup> 0 <sup>_L_</sup> <sup>and</sup> <sup>Σ</sup> <sup>_R_</sup> _j>N_ <sup>= Σ</sup> _N_ <sup>_R_</sup> Before considering derivatives of Green’s functions and their use for efficient optimization, it is worth noting that, by itself, the RGF method has many similarities to the GRAPE algorithm. Indeed, both methods keep in memory intermediary results of recursive relations relating propagators to reduce computational complexity. The steps of the RGF algorithm for computing all lattice Green’s functions _G_ <sup>ret</sup> _j_ <sup>,</sup> <sup>including complexity in brackets,</sup> 1. Compute Σ <sup>_L_</sup> 0 <sup>_L_</sup> 0 and Σ <sup>_R_</sup> _N_ Compute Σ <sup>_L_</sup> 0 and Σ <sup>_R_</sup> _N_ +1 [Independent of _N_ : _O_ ( _M_ <sup>3</sup> )]. 2. Starting from Σ <sup>_L_</sup> 0 <sup>compute</sup> <sup>and</sup> <sup>store</sup> <sup>in</sup> <sup>memory</sup> all Σ <sup>_L_</sup> _j_ <sup>[</sup> <sup>_N_</sup> <sup>matrix</sup> <sup>inversions,</sup> <sup>2</sup> <sup>_N_</sup> <sup>matrix</sup> <sup>products:</sup> _O_ ( _NM_ <sup>3</sup> )]. 3. Starting from Σ <sup>_R_</sup> _N_ +1 <sup>compute</sup> <sup>and</sup> <sup>store</sup> <sup>in</sup> <sup>memory</sup> all Σ <sup>_R_</sup> _j_ <sup>[</sup> <sup>_N_</sup> <sup>matrix</sup> <sup>inversions,</sup> <sup>2</sup> <sup>_N_</sup> <sup>matrix</sup> <sup>products:</sup> _O_ ( _NM_ <sup>3</sup> )]. 4. Calculate all _G_ <sup>ret</sup> _j_ [ _N_ matrix inversions: _O_ ( _NM_ <sup>3</sup> )]. Steps 2-4 of this algorithm are analog to steps 3-5 of the GRAPE algorithm stated in Sec. A, where the timedomain propagators have been replaced by real-space lattice Green’s functions. To make even clearer the analogy between the RGF method and GRAPE, one can restate the recursive relations of Eq. (B2) as a string of enlarged matrix products using properties of the so-called Mobi¨us transformation [57]. Finally, from a computational complexity point-ofview, by keeping in memory all the hybridization functions Σ <sup>_L_</sup> _j_ <sup>,</sup> <sup>Σ</sup> <sup>_R_</sup> _j_ <sup>,</sup> <sup>one</sup> <sup>can</sup> <sup>compute</sup> <sup>with</sup> <sup>complexity</sup> _O_ ( _NM_ <sup>3</sup> ) all onsite lattice Green’s functions. This is a polynomial speedup over a naive inversion of the full Hamiltonian, which is an _O_ ( _N_ <sup>3</sup> _M_ <sup>3</sup> ) calculation. Such a speedup is possible due the nearest-neighbor hopping structure of the problem, which leads to a blocktridiagonal matrix representation of the single-particle Hamiltonian. 2. Derivatives of the RGF expressions Taking the onsite Hamiltonian to be _hj_ = _h_ <sup>(0)</sup> _j_ + _λjA_, with _A_ some local operator [58], we now calculate the derivative of the lattice Green’s function at site _j_ with respect to a local parameter of a possibly different site _λn_ . Using standard matrix algebra, this derivative is where _∂λ∂hnn_ <sup>=</sup> <sup>_A_</sup> <sup>and</sup> <sup>the</sup> <sup>Heaviside</sup> <sup>function</sup> <sup>is</sup> <sup>used</sup> <sup>to</sup> make explicit that, by definition, a left (right) hybridization function can not have a nonzero derivative with respect to a parameter to its right (left). The explicit definitions of the propagator strings in recursive form are _Xj,n_ <sup>_L_</sup> <sup>=</sup> - _ujG_ <sup>_L_</sup> _j_ - _ujG_ <sup>_L_</sup> _j_ - _· · ·_ - _unG_ <sup>_L_</sup> _n_ - _· · ·_ - _unG_ <sup>_L_</sup> _n_ = _X_ <sup>_L_</sup> �� _uj−_ 1 _G_ <sup>_L_</sup> _j_ - _unG_ <sup>_L_</sup> _n_ <sup>_L_</sup> _j−_ 1 _j,n_ +1 _n_ <sup>_†_</sup> _j−_ 1 _j_ _Pj,n_ <sup>_L_</sup> <sup>=</sup> = - _G_ <sup>_L_</sup> _n_ - _G_ <sup>_L_</sup> _n_ <sup>_L_</sup> _n_ <sup>_u†_</sup> _n_ <sup>_L_</sup> _n_ <sup>_u†_</sup> _n_ _n_ - _· · ·_ - _G_ <sup>_L_</sup> _j_ - _Pj,n_ <sup>_L_</sup> +1 - _P_ <sup>_L_</sup> _n_ <sup>_L_</sup> _j−_ 1 <sup>_u†_</sup> _j_ �� _G_ <sup>_L_</sup> _j_ <sup>_L_</sup> _j_ <sup>_u†_</sup> _j_ _j_ _j_ +1 _n_ (B9) _Xj,n_ <sup>_R_</sup> <sup>=</sup> - _u_ <sup>_†_</sup> _j_ <sup>_†_</sup> _j_ _j−_ 1 <sup>_GR_</sup> - _· · ·_ _u_ <sup>_†_</sup> _n_ �� _u_ <sup>_†_</sup> _j_ <sup>_†_</sup> _j_ <sup>_G_</sup> _j_ <sup>_R_</sup> <sup>_†_</sup> _n_ _n−_ 1 <sup>_GR_</sup> _n_ = _X_ <sup>_R_</sup> _j,n−_ 1 = _X_ <sup>_R_</sup> - _u_ <sup>_†_</sup> _n_ <sup>_†_</sup> _n_ _n−_ 1 <sup>_GR_</sup> _Pj,n_ <sup>_R_</sup> <sup>=</sup> = - _G_ <sup>_R_</sup> _n_ <sup>_un−_</sup> <sup>1</sup> - _G_ <sup>_R_</sup> _n_ <sup>_un−_</sup> <sup>1</sup> - _· · ·_ - _G_ <sup>_R_</sup> _j_ - _Pj,n_ <sup>_R_</sup> _j,n_ <sup>_R_</sup> _−_ 1 <sup>_._</sup> �� _G_ <sup>_R_</sup> _j_ <sup>_uj−_</sup> <sup>1</sup> <sup>_R_</sup> _j−_ 1 <sup>_uj−_</sup> <sup>2</sup> Similar recursive definitions can also be written for the _j_ index. 3. RGF-based real-space optimization Using the results of the previous subsections, one can now build an algorithm similar to GRAPE for the calculation of the derivative of lattice Green’s functions with respect to the real-space profile of parameters. To make the analogy to GRAPE clearer, we first consider a performance index which depends only on a single Green’s function. For example, when considering the Majorana wire optimization, this would be the case if close to the topological phase transition one considers directly the topological visibility as a performance index such that Φ = _−_ det( _r_ ) = _−F_ [ _G_ <sup>ret</sup> 0 <sup>],</sup> <sup>with</sup> <sup>_G_</sup> 0 <sup>ret</sup> the Green’s func tion projected on site 0, and _F_ a function defined in App. C 1. The RGF-GRAPE optimization algorithm can be summarized in a way very similar to the GRAPE algorithm. As in the previous sections, we state the main steps of the algorithm and their respective computational complexity: 1. Choose initial vector of parameters _{fk,j}_ . 2. Calculate _G_ <sup>ret</sup> _j_ using the RGF method and storing _<u>∂</u>_ _∂λn_ <sup>ret</sup> _j_ <sup>(</sup> <sup>_E_</sup> <sup>) =</sup> <sup>_G_</sup> _j_ <sup>ret</sup> <sup>_L_</sup> _j_ _j−_ 1 <sup>+ Σ</sup> <sup>_R_</sup> - <sup>�</sup> _G_ <sup>ret</sup> _j_ <sup>_,_</sup> - <sup>�</sup> _G_ <sup>ret</sup> _j_ _G_ <sup>ret</sup> _j_ _j_ _j_ +1 - _<u>∂</u>_ _δn,jA_ + _∂λn_ �Σ <sup>_L_</sup> _j_ (B3) which can be expanded using the definition of the left and right hybridization functions. These derivatives are given by <sup>_†_</sup> _j_ <sup>;</sup> (B4) _<u>∂</u>_ _∂λn_ _<u>∂</u>_ _∂λn_ <sup>_L_</sup> _j_ <sup>=</sup> <sup>_ujG_</sup> _j_ <sup>_L_</sup> Σ <sup>_L_</sup> _j−_ 1 Σ <sup>_L_</sup> _j_ _j_ _G_ <sup>_L_</sup> _j_ <sup>_L_</sup> _j_ <sup>_u†_</sup> _j_ <sup>;</sup> - _<u>∂</u>_ _δn,jA_ + _∂λn_ Σ <sup>_L_</sup> <sup>_R_</sup> _j_ <sup>=</sup> <sup>_u†_</sup> _j_ Σ <sup>_R_</sup> _j_ <sup>_†_</sup> _j−_ 1 <sup>_G_</sup> _j_ <sup>_R_</sup> _j_ _G_ <sup>_R_</sup> _j_ <sup>_uj−_</sup> <sup>1</sup> <sup>_._</sup> (B5) _G_ <sup>_R_</sup> _j_ - _<u>∂</u>_ _δn,jA_ + _∂λn_ Σ <sup>_R_</sup> _j_ +1 Σ <sup>_R_</sup> _j_ In order to implement these expressions in a computer program, it is useful to rewrite them as _<u>∂</u>_ _∂λn_ _<u>∂</u>_ _∂λn_ �� _uj−_ 1 _G_ <sup>_L_</sup> _j−_ 1 Σ <sup>_L_</sup> _j_ <sup>= Θ(</sup> <sup>_j −_</sup> <sup>_n_</sup> <sup>)</sup> Σ <sup>_L_</sup> _j_ - _ujG_ <sup>_L_</sup> _j_ - _ujG_ <sup>_L_</sup> _j_ - _· · ·_ (B6) <sup>_†_</sup> _j−_ 1 _j_ �� _G_ <sup>_L_</sup> _j_ - _· · ·_ - _G_ <sup>_L_</sup> _j_ _n_ - _G_ <sup>_L_</sup> _n_ <sup>_L_</sup> _n_ <sup>_u†_</sup> _n_ _×_ - _unG_ <sup>_L_</sup> _n_ - _unG_ <sup>_L_</sup> _n_ - _A_ <sup>_L_</sup> _j−_ 1 <sup>_u†_</sup> _j_ <sup>_L_</sup> _j_ <sup>_u†_</sup> _j_ _,_ _j_ _j_ +1 Σ <sup>_R_</sup> _j_ <sup>= Θ(</sup> <sup>_n −_</sup> <sup>_j_</sup> <sup>)</sup> Σ <sup>_R_</sup> _j_ - _u_ <sup>_†_</sup> _j_ <sup>_†_</sup> _j_ _j−_ 1 <sup>_GR_</sup> _· · ·_ (B7) �� _u_ <sup>_†_</sup> _j_ <sup>_†_</sup> _j_ <sup>_G_</sup> _j_ <sup>_R_</sup> _n_ _A_ - _G_ <sup>_R_</sup> _n_ <sup>_un−_</sup> <sup>1</sup> - _· · ·_ - _G_ <sup>_R_</sup> _j−_ 1 <sup>_uj−_</sup> <sup>2</sup> - _· · ·_ - _G_ <sup>_R_</sup> _j_ �� _G_ <sup>_R_</sup> _j_ <sup>_uj−_</sup> <sup>1</sup> �� _G_ <sup>_R_</sup> _j_ - _,_ 3. Starting from _Xj,j_ <sup>_L_</sup> _j,j_ <sup>_L_</sup> = _ujG_ <sup>_L_</sup> _j_ all _G_ <sup>_L_</sup> _j_ <sup>(</sup> <sup>_R_</sup> <sup>)</sup> in memory [ _O_ ( _NM_ <sup>3</sup> )]. _×_ - _u_ <sup>_†_</sup> <sup>_†_</sup> _n_ _n−_ 1 <sup>_GR_</sup> <sup>_L_</sup> _j_ <sup>,</sup> calculate _Xj,_ <sup>_L_</sup> where Θ is the Heaviside function with Θ( _j_ _≥_ 0) = 1. By analogy to the GRAPE algorithm, we now define strings of propagators, such that derivatives can be simply expressed as Starting from _j,j_ = _j_ <sup>,</sup> calculate _j,_ 1 storing intermediate results in memory ( _Xj,j_ <sup>_L_</sup> _−_ 1 <sup>,</sup> _Xj,j_ <sup>_L_</sup> _−_ 2 <sup>,. . . ).</sup> <sup>Similarly compute the strings of prop-</sup> agators for _Pj,n_ <sup>_L_</sup> <sup>,</sup> <sup>_X_</sup> _j,n_ <sup>_R_</sup> <sup>,</sup> <sup>and</sup> <sup>_P R_</sup> _j,n_ <sup>.</sup> [Calculating all strings requires 4 _N_ matrix products: _O_ ( _NM_ <sup>3</sup> )]. _j,n_ <sup>_L_</sup> <sup>,</sup> <sup>_X_</sup> _j,n_ <sup>_R_</sup> _j,n_ <sup>_R_</sup> <sup>,</sup> <sup>and</sup> <sup>_P R_</sup> _j,n_ _<u>∂</u>_ _∂λn_ _<u>∂</u>_ _∂λn_ Σ <sup>_L_</sup> _j_ <sup>_L_</sup> _j_ <sup>= Θ(</sup> <sup>_j −_</sup> <sup>_n_</sup> <sup>)</sup> <sup>_X_</sup> _j,n_ <sup>_L_</sup> _j,n_ _Pj,n_ <sup>_L_</sup> <sup>;</sup> _Pj,n_ <sup>_L_</sup> (B8) 4. Compute derivatives using Eqs. (B8) and (B3). 5. Use gradient to update the parameter vector and restart to step 2. Σ <sup>_R_</sup> _j_ <sup>_R_</sup> _j_ <sup>= Θ(</sup> <sup>_n −_</sup> <sup>_j_</sup> <sup>)</sup> <sup>_X_</sup> _j,n_ <sup>_R_</sup> _j,n_ _<u>∂hn</u>_ _∂λn_ _<u>∂hn</u>_ _∂λn_ _Pj,n_ <sup>_R_</sup> <sup>_,_</sup> _Pj,n_ <sup>_R_</sup> _m,α_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> <sup>_/_</sup> Comparing the GRAPE algorithm stated in App. A, one can see that the structure of the gradient calculation performed in steps 2-4 is very similar. This similarity extends to the computational complexity, such that the derivative of a lattice Green’s function at a given site _j_ (fixed) with respect to parameters on each site ( _n_ = 1 _, . . . N_ ) scales linearly with the number of sites in the scattering region. More precisely, it is the same as the RGF calculation: _O_ ( _NM_ <sup>3</sup> ). In the case of a finitedifference calculation, where one would perform the RGF calculation _N_ times in order to vary each parameter to be optimized, the complexity would be _O_ ( _N_ <sup>2</sup> _M_ <sup>3</sup> ). Thus, by using the above algorithm, one obtains a polynomial speedup over finite differences. If we now extend the above algorithm to a more general performance index, which requires the derivative of lattice Green’s functions at all sites, the complexity becomes _O_ ( _N_ <sup>2</sup> _M_ <sup>3</sup> ) (i.e., the same as for finite-difference). This is a consequence of the fact that, in that most general case, we need to vary both indices of the propagator strings defined in Eq. (B9), which requires more matrix products. In the GRAPE analogy, this would be equivalent to having a performance index that depends on the propagator at multiple times. Below, we consider in more detail the case of the LDOS-based performance index defined in Sec. III A for the study of Majorana wires. This index depends on multiple Green’s functions belonging to different sites. Nevertheless, by exploiting the structure of the performance index, the computational complexity of the gradient calculation can be made linear in _N_ . Appendix C: Performance index implementation In this appendix, we expand on the implementation of the LDOS-based performance index for Majorana wire optimization defined in Eq. (6). We first state the FisherLee relations used to relate the calculation of the topological visibility to lattice Green’s functions. Then, we discuss how to efficiently implement the gradient of the effective gaps defined in Eq. (5). Finally, we verify numerically the complexity of various gradient calculations. 1. Fisher-Lee relations and the topological visibility The scattering matrix can be obtained from the Green’s function using the Fisher-Lee relations generalized to account for the presence of a magnetic field [37]. Following the notation of Ref. [38], in the case of a scattering region of _N_ sites (site index _j_ = 1 _, . . ., N_ ) connected to a lead to the left (L) at site 0 and to a lead to the right (R) at site _N_ + 1, the matrix elements of the left reflection matrix _r_ <sup>_L_</sup> are given by with _φ_ <sup>˜(</sup> _m,α_ <sup>_l_</sup> <sup>)</sup> with _φ_ <sup>˜(</sup> _m,α_ <sup>_l_</sup> <sup>)</sup> <sup>=</sup> <sup>_φ_</sup> _m,α_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> <sup>_/_</sup> ~~�~~ ℏ _vm,α_ the current normalized wave functions of propagating modes _m_ in lead _l_ with mode velocity _vm,α_, and Γ _L_ = _i_ �Σ <sup>_L_</sup> 0 <sup>_−_</sup> <sup>(Σ</sup> <sup>_L_</sup> 0 <sup>)</sup> <sup>_†_</sup> <sup>�</sup> the skew-hermitian _<u>∂</u>_ <u>∆</u> <sup>˜</sup> _<u>L</u>_ _∂λn_ <sup>(</sup> _m,α_ <sup>_l_</sup> <sup>)</sup> <sup>=</sup> <sup>_φ_</sup> _m,α_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> = locity _vm,α_, and Γ _L_ = _i_ �Σ <sup>_L_</sup> 0 <sup>_−_</sup> <sup>(Σ</sup> <sup>_L_</sup> 0 <sup>)</sup> <sup>_†_</sup> <sup>�</sup> the skew-hermitian part of the surface self-energy of the first site of the left lead. A similar expression for _rmn_ <sup>_R_</sup> <sup>can be obtained under</sup> the index changes _L ↔_ _R_ and 0 _↔_ _N_ + 1. To lighten the notation, the energy dependence of _φ_ <sup>_L_</sup> _m,α_ <sup>,</sup> <sup>Γ</sup> <sup>_L_</sup> <sup>and</sup> <sup>_G_</sup> <sup>ret</sup> 0 �Σ <sup>_L_</sup> 0 <sup>_L_</sup> _m,α_ <sup>,</sup> <sup>Γ</sup> <sup>_L_</sup> <sup>and</sup> <sup>_G_</sup> <sup>ret</sup> 0 _m,α_ <sup>,</sup> <sup>Γ</sup> <sup>_L_</sup> <sup>and</sup> <sup>_G_</sup> 0 has been suppressed. The calculation of the Majorana wire performance index as defined in both Eq. (3) and Eq. (6) requires the calculation of the zero-energy reflection matrices _r_ <sup>_L_</sup> and _r_ <sup>_R_</sup> . These matrices are necessary to calculate the topological visibility _Qα_ = det _r_ <sup>_α_</sup> ( _α_ = _L, R_ ). For the numerical implementation of the gradient calculation, the derivative of the topological visibility is then computed using _<u>∂Qα</u>_ = _Qα_ Tr _∂fk,n_ �( _r_ <sup>_α_</sup> ) <sup>_−_</sup> <sup>1</sup> <sup>_<u>∂rα</u>_</sup> _∂fk,n_ _,_ (C2) which follows from Jacobi’s formula. This expression can be related to the derivative of a Green’s function using Eq. (C1) and noting that all lead quantities are independent of _fk,n_ . As this quantity depends on a single Green’s function, the computational cost of the gradient of the topological visibility scales linearly with the length of the scattering region. 2. Majorana performance index derivatives We now turn to the computation of the effective gaps defined in Eq. (5). As _ρj_, the zero-energy LDOS at site _j_, depends linearly on the retarded lattice Green’s function _G_ <sup>ret</sup> _j_ <sup>,</sup> <sup>one</sup> <sup>can</sup> <sup>use</sup> <sup>the</sup> <sup>RGF</sup> <sup>method</sup> <sup>to</sup> <sup>compute</sup> <sup>the</sup> <sup>effec-</sup> tive gap ∆ <sup>˜</sup> _L_ ( _R_ ) efficiently [complexity _O_ ( _NM_ <sup>3</sup> )]. Since these gaps depend on _ρj_ on multiple sites, the computational complexity of the derivatives is _a_ _priori_ not obvious. Hence, we look in more detail at the calculation of the effective gap for the left-half of the system ( ∆ <sup>˜</sup> _L_ ). By symmetry, the complexity analysis will be equally valid for the right-half ( ∆ <sup>˜</sup> _R_ ). The derivative of ∆ <sup>˜</sup> _L_ with respect to some local on-site parameter _λn_ is straightforward to calculate and given by _N/_ 2 _j_ =1 ( _⟨xL⟩−_ _j_ ) <sup>_<u>∂ρj</u>_</sup> _∂λn_ _<u>∂</u>_ <u>∆</u> <sup>˜</sup> _<u>L</u>_ _∂λn_ _<u>L</u>_ = <sup><u>2 ∆˜</u></sup> <sup>2</sup> _N_ _NL_ _._ (C3) Using the definition of _ρj_ (cf. below Eq. (4)), the preceding equation can be rewritten as a sum over derivatives of Green’s function  _N/_ 2  _j_ =1     <sup>_._</sup> Im <u>∆˜</u> <sup>2</sup> _<u>L</u>_ _NπNL_ <u>∆˜</u> <sup>2</sup>    <sup>Tr</sup> _<u>j</u>_ ( _j −⟨xL⟩_ ) <sup>_∂G_</sup> <sup>ret</sup> _∂λn_  _mn_ <sup>_L_</sup> <sup>=</sup> <sup>_φ_</sup> <sup>˜</sup> _m,_ <sup>_L†_</sup> (C4) _r_ <sup>_L_</sup> _m,_ <sup>_L†_</sup> out <sup>Γ</sup> <sup>_L_</sup> - _iG_ <sup>ret</sup> 0 <sup>Γ</sup> <sup>_L_</sup> <sup>_−_</sup> <sup>1</sup> - _φ_ ˜ _Ln,_ in <sup>_,_</sup> (C1) To lighten the notation and to make the analysis more general, we consider the efficient computation of the sum  _N_  _j_ =1 3. Performance of implementations To conclude this section, we supplement the previous algorithmic complexity analysis with a numerical comparison of different algorithms. As a performance benchmark we define _TN_, the average time used to compute the performance index and its gradient using a single core of a standard desktop computer. To this end, we have optimized a fixed amplitude magnetic texture in a wire without intrinsic spin-orbit coupling, using different implementations of the performance index and its gradient. The texture amplitude along the _z_ -axis is fixed such that the size of the optimization problem considered is _N_ . The average computation time has been obtained by dividing the total simulation time by the number of performance index evaluations carried out ( _∼_ 200). The optimization is driven by an implementation of the BroydenFletcher-Goldfarb-Shanno (BFGS) algorithm, where the performance index and its gradient are always computed together [60]. Since different methods can be implemented more or less efficiently, depending on computational details such as the programming language, one should not focus much on the absolute values of _TN_, but mainly on its scaling with _N_, the number of sites in the scattering region. To this end, one can consider this scaling quantitatively using a power-law fit to the numerical data such that 10 <sup>8</sup>   _,_ (C5) _Sn_ = Tr _γj_ _∂G_ <sup>ret</sup> _<u>j</u>_ _∂λn_ _∂G_ <sup>ret</sup> _<u>j</u>_ where any other bounds on the values of _j_, such as in Eq. (C4), can be implemented through the definition of _γj_ . Using Eq. (B3), the sum can be written as _G_ <sup>ret</sup> _j_ _n_   + Tr  - _γnG_ <sup>ret</sup> _n_ <sup>ret</sup> _n_ <sup>_AG_</sup> _n_ <sup>ret</sup> _Sn_ = Tr  _n_ - _−_ 1  _j_ =1 _γjG_ <sup>ret</sup> _j_ _γjG_ <sup>ret</sup> _j_ _∂_ Σ <sup>_R_</sup> _<u>j</u>_ <u>+1</u> _∂λn_ _∂_ Σ <sup>_R_</sup> _<u>j</u>_ _γjG_ <sup>ret</sup> _j_ _γjG_ <sup>ret</sup> _j_ _G_ <sup>ret</sup> _j_  _,_ (C6) + Tr   _N_ _∂_ Σ <sup>_L_</sup> _j_ = _n_ +1 _∂_ Σ <sup>_L_</sup> _<u>j−</u>_ <u>1</u> _∂λn_ where the bounds of the sums follow from the Heaviside function in Eq. (B8). Considering each of these three terms separately, such that _Sn_ = _Sn_ <sup>_R_</sup> <sup>+</sup> <sup>_S_</sup> _n_ <sup>0</sup> <sup>+</sup> <sup>_S_</sup> _n_ <sup>_L_</sup> <sup>,</sup> <sup>and</sup> _n_ <sup>_R_</sup> <sup>+</sup> <sup>_S_</sup> _n_ <sup>0</sup> _n_ <sup>0</sup> <sup>+</sup> <sup>_S_</sup> _n_ <sup>_L_</sup> terms separately, such that _Sn_ = _Sn_ <sup>_R_</sup> <sup>+</sup> <sup>_S_</sup> _n_ <sup>0</sup> <sup>+</sup> <sup>_S_</sup> _n_ <sup>_L_</sup> <sup>,</sup> <sup>and</sup> using the cyclic and linearity properties of the trace, one obtains _Sn_ <sup>_R_</sup> <sup>= Tr</sup> _Sn_ <sup>_R_</sup> - _Mn_ <sup>_RA_</sup> - _Mn_ <sup>_R_</sup> - ; (C7) - _G_ <sup>ret</sup> _n_ �2 _A_ - ; (C8) _Sn_ <sup>0</sup> <sup>= Tr</sup> _Sn_ <sup>0</sup> _γn_ - _G_ <sup>ret</sup> _n_ _Sn_ <sup>_L_</sup> <sup>= Tr</sup> _Sn_ <sup>_L_</sup> - _Mn_ <sup>_LA_</sup> - _Mn_ <sup>_L_</sup> - _,_ (C9) where, using Eq. (B8), we have defined the matrices �2 <sup>�</sup> _Xj_ <sup>_R_</sup> +1 _,n_ <sup>_,_</sup> (C10) �2 <sup>�</sup> _Xj_ <sup>_R_</sup> _γj_ - _G_ <sup>ret</sup> _j_ - _G_ <sup>ret</sup> _j_ _Mn_ <sup>_R_</sup> <sup>=</sup> _n_ - _−_ 1 _j_ =1 _Pj_ <sup>_R_</sup> +1 _,n_ _Pj_ <sup>_R_</sup> Diagonalization: Finite difference RGF: Finite difference RGF-GRAPE (v1) RGF-GRAPE (v2) - _G_ <sup>ret</sup> _j_ 10 <sup>6</sup> 10 <sup>4</sup> 10 <sup>2</sup> 10 <sup>0</sup> �2 <sup>�</sup> _Xj_ <sup>_L_</sup> _−_ 1 _,n_ <sup>_._</sup> (C11) _γj_ _Mn_ <sup>_L_</sup> <sup>=</sup> _N_ _j_ = _n_ +1 _P_ <sup>_L_</sup> _j−_ 1 _,n_ _P_ <sup>_L_</sup> Finally, using the definitions of the propagator strings in Eq. (B9), one notes the recursive relations - _G_ <sup>ret</sup> _n_ �2 <sup>�</sup> _un−_ 1 _G_ <sup>_L_</sup> _n−_ 1 <sup>;</sup> - _Mn_ <sup>_R_</sup> <sup>+</sup> <sup>_γn_</sup> - _Mn_ <sup>_L_</sup> <sup>+</sup> <sup>_γn_</sup> - _Mn_ <sup>_L_</sup> _n_ <sup>_L_</sup> _−_ 1 <sup>=</sup> <sup>_GL_</sup> _n−_ _n_ <sup>_R_</sup> +1 <sup>=</sup> <sup>_G_</sup> _n_ <sup>_R_</sup> _Mn_ <sup>_L_</sup> <sup>_†_</sup> _n−_ 1 - _G_ <sup>ret</sup> _n_ _n_ <sup>_R_</sup> +1 <sup>_,_</sup> �2 <sup>�</sup> _u_ <sup>_†_</sup> _n_ <sup>_†_</sup> _n_ <sup>_G_</sup> _n_ <sup>_R_</sup> _Mn_ <sup>_R_</sup> <sup>_L_</sup> _n−_ 1 <sup>_u†_</sup> _n_ _n_ <sup>_R_</sup> +1 <sup>_un_</sup> - _G_ <sup>ret</sup> _n_ (C12) 10 <sup>_−_</sup> <sup>2</sup> 10 <sup>2</sup> 10 <sup>3</sup> 10 <sup>4</sup> Number of sites ( _N_ ) FIG. 6. Average duration _TN_ (in seconds) for the calculation of the performance index and its gradient, as a function of the length of the Majorana wire. The performance index is calculated using either the topological minigap (blue crosses) or the effective _p_ -wave gap. The latter is evaluated in three different ways: (i) using the finite difference gradient (orange disks); (ii) using Eq. (C4) independently for each site index (green squares); (iii) using the recursive relation from Eq. (C12) (red triangles). The last method is clearly the most efficient. Dashed lines are power-law fits to the numerical data (see text). The dotted black vertical line indicates _N_ = 400, used in most of our calculations. The numerical parameters in the simulations are ∆= 0 _._ 0225 _t_, _b_ = 4∆ _/_ 3, B 0 = 0 (see Appendix D for more details on the model Hamiltonian). with boundary conditions _MN_ <sup>_L_</sup> _N_ <sup>_L_</sup> <sup>=</sup> <sup>0,</sup> <sup>and</sup> <sup>_M R_</sup> 1 with boundary conditions _MN_ <sup>_L_</sup> <sup>=</sup> <sup>0,</sup> <sup>and</sup> <sup>_M R_</sup> 1 <sup>=</sup> <sup>0.</sup> <sup>Since</sup> each recursion step requires a constant small number of matrix operations, calculating all the matrices _Mn_ <sup>_L_</sup> <sup>and</sup> _Mn_ <sup>_R_</sup> <sup>,</sup> <sup>and</sup> <sup>thus</sup> <sup>the</sup> <sup>sum</sup> <sup>_Sn_</sup> <sup>for</sup> <sup>all</sup> <sup>_n_</sup> <sup>,</sup> <sup>will</sup> <sup>have</sup> <sup>a</sup> <sup>compu-</sup> tational complexity of _O_ ( _NM_ <sup>3</sup> ). This is again a polynomial speedup over the _O_ ( _N_ <sup>2</sup> _M_ <sup>3</sup> ) complexity that would be expected from a direct calculation of Eq. (C4) independently for each value of the index _n_ . Since the essential element allowing this polynomial speedup is the cyclic property of the trace, this result is valid for any sum over the LDOS at different sites. Going back to the analogy with the GRAPE algorithm, our result for a space integral has the same structure as the efficient calculation of a performance index that includes a time integral [59]. _TN_ _∝_ _N_ <sup>_ξ_</sup> . The exponent _ξ_ should then be compared to the expected complexity [61]. Figure 6 compares _TN_ for 4 algorithms and performance indices as a function of _N_ . For each method, the dashed curve is the result of a power-law fit. The blue crosses are computing times for the optimization of the Majorana performance index Φ <sup>_′_</sup> = _−δEQL_ (used in Appendix G), where the minigap _δE_ is obtained through diagonalization of the isolated superconducting region Hamiltonian and the gradient is computed using finite difference [62]. The three other datasets are computing times for the effective performance index, Eq. (6), where we use the RGF method to compute the performance index. Three different methods were used to compute the gradient of the performance index : (i) finite difference (orange disks), (ii) Eq. (C4) independently for each site index (green squares, labeled RGF-GRAPE v1), and (iii) the recursive relations of Eq. (C12) (red triangles, labeled RGF-GRAPE v2). These three gradient calculation methods lead to the same gradient up to numerical precision. We now turn to the fit results. In the case of the diagonalization, we extract the exponent _ξ_ _≈_ 4 _._ 27, which is close to the expected complexity _O_ ( _N_ <sup>4</sup> ) [63]. For the RGF-based calculations, all obtained exponents are below 2 (respectively _ξ_ _≈_ 1 _._ 85 _,_ 1 _._ 83 _,_ and 0.98), showing that, independent of the details of the implementation of the gradient there is a clear advantage from the computational point-of-view to consider the effective gap instead of the minigap. In addition, these exponents are in agreement with the complexity analysis of Sec. B 3, which stated that the calculation of the gradient of a sum over _N_ sites should be at worst _O_ ( _N_ <sup>2</sup> ). Finally, we note that the use of the recursion relations of Eq. (C12) allows to reach a linear complexity, which is a polynomial speedup over finite difference. Finally, to put these results into perspective, one can also look at the actual computation times for the different methods. As an example, for _N_ = 400 (dotted black vertical line) the calculation times of the performance index and its gradient are _TN_ = 0 _._ 34 _,_ 0 _._ 91 _,_ 23 _,_ and 700 s. Although one should use caution when interpreting such results, since absolute timings are implementation-dependent, these numbers help to put in perspective the concrete advantage of reducing the complexity of the gradient calculation. Indeed, in the context of an optimization algorithm, which requires to repeat this calculation hundreds if not thousands of times, a speedup of the gradient calculation allows, for a fixed computation time, to consider either more realistic wire models, or more sophisticated optimization algorithms that get closer to a global maximum. Appendix D: Nanowire model and parameters Following the notation of Eq. (1), we consider in our calculations a noninteracting tight-binding model for a with _c_ <sup>(</sup> _j,σ_ <sup>_†_</sup> <sup>)</sup> <sup>,</sup> <sup>an</sup> <sup>operator</sup> <sup>annihilating</sup> <sup>(creating)</sup> <sup>a</sup> <sup>fermion</sup> at site _j_ with spin _σ_ . Denoting _τα_ ( _σα_ ) the Pauli matrices acting on the particle-hole (spin) sectors, the structure of the hopping matrices is _uj_ = _−tτz_ _−_ _iασyτz,_ (D2) where _t_ = ℏ <sup>2</sup> _/_ 2 _m_ <sup>_∗_</sup> _a_ <sup>2</sup> is the hopping amplitude with _m_ <sup>_∗_</sup> the effective mass and _a_ the lattice constant, and _α_ is the spin-orbit coupling amplitude. The onsite Hamiltonian reads _hj_ = (2 _t −_ _µj_ ) _τz_ + ( B 0 + b _j_ ) _·_ _σ_ + ∆ _jτx,_ (D3) where _µj_ is the effective local potential including both the local electrostatic gate voltage and the chemical potential, ∆ _j_ is the local proximity-induced superconducting gap, B 0 is a uniform magnetic field, and b _j_ is a possibly non-uniform local magnetic field. All prefactors relating the magnetic field to the Zeeman energy, including the _g_ -factor, are absorbed in the definitions of B 0 and b _j_ . Unless otherwise stated, in all numerics, we consider approximate parameters for a semiconductor with negligible intrinsic spin-orbit coupling ( _α_ = 0) [64]. We take a lattice constant _a_ = 10 nm ( _N_ = 200 then corresponds to a 2 _µ_ m long nanowire) and an effective mass _m_ <sup>_∗_</sup> = 0 _._ 2 _me_, where _me_ is the bare electron mass. Those parameters lead to a hopping amplitude _t_ = 1 _._ 9 meV. Based on the experimentally observed proximity-induced superconductivity in a GaAs two-dimensional electron gas [65], we take ∆= 0 _._ 0225 _t_ (43 _µ_ eV). For a _g_ -factor of 2, _|_ B 0 + b _|_ = 4∆ _/_ 3 _≈_ 0 _._ 03 _t_ corresponds to a magnetic field of 1 Tesla. In addition, we consider uniform metallic leads (∆= 0), with a large density of states ( _µ_ = 1 _._ 9 _t_ ) and strongly coupled to the superconducting region (no barrier at the interface). The same values of _t_, _α_ and B 0 are used in both the leads and the superconducting scattering region. The strong coupling to the leads was found to ensure a good convergence of the optimization algorithm. However, as illustrated by the results of diagonalization shown in the main text (see e.g. Fig 5(d)), which correspond to the regime of isolated wires, the final results appear to be robust with respect to the details of the lead couplings and parameters. Finally, to improve the numerical stability of recursive calculations, the zeroenergy Green’s functions are calculated at a small but finite imaginary energy _E/t_ = 10 <sup>_−_</sup> <sup>6</sup> _i_ . unidimensional wire (single subband) with a superconducting scattering region of _N_ sites ( _j_ = 1 _, . . . N_ ) coupled to semi-infinite metallic leads (sites _j_ = 0 _, −_ 1 _, . . ._ for the left lead and sites _j_ = _N_ + 1 _, N_ + 2 _, . . ._ for the right lead). In this case, the number of local degrees of freedom is _M_ = 4, and the spinors are taken in a Bogoliubov-de Gennes basis such that <sup>_†_</sup> _j,↓_ <sup>_, −cj,↓, cj,↑_</sup> _ψj_ <sup>_†_</sup> <sup>=</sup> - _c_ <sup>_†_</sup> <sup>_†_</sup> _j,↑_ <sup>_, c†_</sup> _j,_ _,_ (D1) FIG. 7. (a) the _x−_ and (b) the _y_ -components of the initial (dashed blue) and the optimized (solid orange) magnetic textures without penalties for smoothness. Appendix E: Regularization and parameter scaling In order to favor smooth spatial profiles, penalty functions can be added to the performance index. We refer the reader to Ref. [66] and references therein for example penalties used in time-domain optimizations. In the case of a scalar quantity such as the electrostatic gate voltage, we add a penalty function Φ _µ_ = _−βµ_ _N_ - _−_ 1 _j_ =1 ( _µj_ _−_ _µj_ +1) <sup>2</sup> _,_ (E1) where _βµ_ _>_ 0 is a parameter that weights the cost of spatial variations in the gate voltage. A large weight will favor a flat voltage profile independently of the problem. This type of penalty can be generalized to a vector profile. In the case of the fixed amplitude magnetic texture, we use the penalty FIG. 8. (a) the _x−_ and (b) the _y_ -components for the optimized (solid orange) magnetic textures. Dashed blue curves are a spiral texture obtained by a harmonic fit to the _x_ component of the optimized texture. (c) Wavefunction amplitude for the left and right MBS (solid and dashed curves, respectively). (d) Spectrum of the isolated superconducting scattering region close to zero energy. For all panels, the orange curves are results for the optimized texture, while the blue curves are results for a perfect spiral texture fitted to the optimized texture. are not known, it is useful to perform the optimization for a few different values. In particular, the results of Fig. 4 are obtained by considering the solution with the largest minigap _δE_ out of 8 optimizations. These 8 runs of the algorithm, all starting from the same initial spiral magnetic texture, differed by the choice of the optimization parameters _βb_ and _wµ_ which were taken to be the possible combinations of _wµ_ _∈_ �10 <sup>_−_</sup> <sup>2</sup> _,_ 10 <sup>_−_</sup> <sup>4�</sup> and _βb_ _∈{_ 0 _._ 01 _,_ 0 _._ 1 _,_ 0 _._ 5 _,_ 1 _}_ . Due to the variation of the problem landscape and the performance index amplitude, different parameters performed better in some regions of the ( _B_ 0, _b_ ) parameter space than others. These values were found sufficient to obtain improved MBS characteristics compared to the initial configuation in all region of parameter space. Appendix F: Proof of principle for the optimization algorithm and the role of boundaries In this appendix, we expand on the optimization results presented as a proof of concept in Fig. 2c. For this optimization, we consider a superconducting nanowire with _N_ = 200 sites, with neither intrinsic spin-orbit interaction ( _α_ = 0) nor external magnetic field ( B 0 = 0). We optimize both the local amplitude and orientation of a magnetic texture (with the constraints _bj_ _≤_ 0 _._ 03 _t_ = 4∆ _/_ 3 and b _j_ _·_ ˆ z = 0). No penalties for smoothness are added ( _βb_ = 0). In addition, we optimize the chemical potential in the superconducting region (though we _,_ (E2) Φ _b_ = _βb_ _N_ - _−_ 1 _j_ =1 - b ˆ _j_ _·_ ˆ b _j_ +1 _−_ 1 where b <sup>ˆ</sup> _j_ = b _j/|_ b _j|_ is a unit vector and _βb_ _>_ 0 is again a weight factor for the penalty. This penalty will favor a smooth and uniform magnetic texture, which should be more easily realizable experimentally. In the case of an optimization involving parameters with different units or scales, it can be useful to introduce a scaling parameter _w_ in order to control the relative weight of the different types of parameters in the gradient descent. In particular, in the case of Fig. 4 where the orientation of a fixed amplitude magnetic texture and a uniform chemical potential are optimized, a parameter _wµ_ is introduced in order to reduce the relative weight of the chemical potential in the optimization. This was found to reduce the risk of the optimizer (BFGS) declaring convergence too quickly following a large reduction of the gradient of the performance index with respect to only the chemical potential, without much change in the magnetic texture. The optimal value of the heuristic parameters _β_ and _w_ depends on the details of the problem. Since these <u>(b)</u> 0 _R_ 2 _R_ Site index ( _j_ ) (ii) Optimized texture 0 _._ 0 0 _._ 5 1 _._ 0 _b_ [∆] <u>(a)</u> 0 _R_ 2 _R_ Site index ( _j_ ) (c) 1 _N/_ 2 _N_ Site index ( _j_ ) _−_ 0 _._ 2 Eigenvalue index ( _n_ ) (a) (b) (i) Initial texture 1 _._ 0 0 _._ 5 0 _._ 0 1 _._ 0 0 _._ 5 0 _._ 0 0 _._ 0 0 _._ 5 1 _._ 0 1 0 _−_ 0 _._ 16 0 _._ 3 0 _._ 0 0 _._ 5 0 _._ 0 _−_ 0 _._ 5 0 _._ 10 0 _._ 05 0 _._ 00 0 _._ 2 0 _._ 0 (d) FIG. 9. (a,b) Topological visibility in a nanowire without spin-orbit coupling. (a) Initial spiral magnetic texture. (b) Magnetic textures optimized using Eq. (G1). (c,d) Energy minigap _δE_ . (c) Initial spiral magnetic texture. (d) Optimized magnetic texture. Purple dashed (solid green) curves denote minigaps _δE_ = 100(200) mK. Dotted black contours are a copy of the contours for the initial spiral texture (panel to the left). The dot-dashed black line indicates _B_ 0 + _b_ = ∆, the expected minimal Zeeman energy to reach the topological phase. restrict ourselves to a spatially uniform chemical potential). Figure 7 compares the initial magnetic texture to the optimized result. Starting from an initial texture consisting of a sum of two spirals of different periods, the optimization converges to a solution which is spiral-like in the bulk (panels a and b), with a uniform amplitude _bj_ = 4∆ _/_ 3 (the maximal value allowed by the imposed constraints). As shown in Fig. 2c, the system is initially in the trivial phase and the optimization drives the parameters through a topological phase transition. It is worth noting that the optimization naturally finds a smooth solution in the bulk even though no penalties were used in this optimization. By introducing such a penalty, discontinuities near the boundary can be reduced (not shown). In order to better understand the role of the boundaries of the optimized texture, we fit the _x_ -component of the optimized magnetic texture to an harmonic function b _j ·_ x ˆ = _A_ cos(2 _πj/R_ + _φ_ ) (with fit parameters _A_, _R_ and _φ_ ). Fig. 8 compares the optimized texture to a spiral texture built from the fit result. One can see that, while the spiral texture has a larger minigap (0.37 ∆compared to 0.29 ∆), the MBS in the case of the optimized texture is more localized. This smaller localization length leads to a reduced overlap of the Majorana wavefunctions and thus to a reduced zero-mode splitting from _ϵM_ = 1 _×_ 10 <sup>_−_</sup> <sup>3</sup> to _ϵM_ = 2 _×_ 10 <sup>_−_</sup> <sup>5</sup> . FIG. 10. Non-optimized (spiral, dashed blue) and optimized (solid orange) curves for (a) the _x−_ and (b) the _y_ -components of the magnetic texture. Optimization was performed for a fixed amplitude texture _|_ b _j|_ = 0 _._ 018 _t_ = 4∆ _/_ 5 and a uniform magnetic field B 0 _/t_ = 0 _._ 012 ˆ x (black dot in Fig. 9). (c) Solid (dashed) curves indicate the left (right) MBS’ wavefunctions. For all panels, blue curves are the results for the initial spiral texture, while the orange curves are the results for the optimized texture. (d) Spectrum of the isolated superconducting scattering region close to zero energy. Appendix G: Maximizing the topological minigap As a complement to the results of Sec. III D, we consider the same magnetic texture optimization, but using the performance index Φ <sup>_′_</sup> = _−δEQL,_ (G1) where _δE_ is the minigap obtained by diagonalization of the single-particle Hamiltonian [67]. Figure 9 presents optimization results for a grid of points in the ( _B_ 0 _, b_ ) parameter space. Panel (a) compares the topological visibility for an initial spiral texture (column (i)) to an optimized texture (column (ii)). As for Fig. 4, where the more numerically efficient performance index Φ <sup>˜</sup> is optimized, the area of the topological (blue) region of parameter space increases for the optimized texture. For both performance indices, the optimization leads to the topological phase almost independently of the position in parameter space, as long as the total Zeeman energy _B_ 0 + _b_ is larger than the superconducting gap ∆. Panel (b) presents the minigap _δE_ in the topological phase. Similarly to the optimization of Φ <sup>˜</sup> in Fig 4, the direct optimization of the minigap leads to constant gap contours enclosing a larger area of parameter space for the topological phase. Finally, we compare the optimization results for a point in parameter space (corresponding to the black disks in Fig. 9). Figure 10(a,b) shows the components of the optimized magnetic texture for two periods (solid orange curve) and compares them to the initial spiral texture (dashed blue curve). Figure 10(c,d) displays both the MBS’ wavefunction (panel c) and the spectrum for the 6 4 2 <u>(a)</u> 0 _−_ 45 _−_ 40 _−_ 35 _−_ 30 Initial Φ <sup>˜</sup> 75 50 25 0 0 _._ 30 0 _._ 26 (b) 0 5 10 15 20 Maximized Φ <sup>˜</sup> (c) 0 _._ 22 21 _._ 1 21 _._ 2 21 _._ 3 Maximized Φ <sup>˜</sup> FIG. 11. Statistics of convergence of the RGF-GRAPE algorithm for the optimization of a fixed amplitude magnetic texture starting from 100 different random texture realizations (see text). (a) Distribution of the initial value of the performance index. (b) Distribution of the final value of the performance index after running the BFGS optimization algorithm until convergence. (c) Scatter plot of the bulk gap (obtained through diagonalization) as a function of the final (maximized) value of the performance index. A uniform chemical potential in the wire is also optimized (initial value _µ_ = 10 <sup>_−_</sup> <sup>3</sup> _t_, _wµ_ = 10 <sup>_−_</sup> <sup>3</sup> ). The numerical parameters in the simulations are _N_ = 200, _b_ = 4∆ _/_ 3, ∆= 0 _._ 0225 _t_, _B_ 0 = _α_ = _βb_ = 0. superconducting region decoupled from the leads (panel d). The optimization leads to both an increased minigap and enhanced energy degeneracy between the left and right MBS. These optimization results are equivalent to the results obtained by the optimization of Φ <sup>˜</sup> presented [1] For recent experiments, see e.g. V. Mourik, K. Zuo, S. M. Frolov, S. Plissard, E. Bakkers, and L. Kouwenhoven, Science 336, 1003 (2012); M. T. Deng, S. Vaitiekenas, E. B. Hansen, J. Danon, M. Leijnse, K. Flensberg, J. Nyg˚ard, P. Krogstrup, and C. M. Marcus, _[ibid](http://dx.doi.org/10.1126/science.aaf3961)_ . 354, [1557](http://dx.doi.org/10.1126/science.aaf3961) (2016); J. Chen, P. Yu, J. Stenger, M. Hocevar, D. Car, S. R. Plissard, E. P. A. M. Bakkers, T. D. Stanescu, and S. M. Frolov, Science [Advances](http://advances.sciencemag.org/content/3/9/e1701476) 3, [e1701476](http://advances.sciencemag.org/content/3/9/e1701476) (2017); H. Zhang, C.-X. Liu, S. Gazibegovic, D. Xu, J. A. Logan, G. Wang, N. van Loo, J. D. S. Bommer, M. W. A. de Moor, D. Car, R. L. M. Op het Veld, P. J. van Veldhoven, S. Koelling, M. A. Verheijen, M. Pendharkar, D. J. Pennachio, B. Shojaei, J. S. Lee, C. J. Palmstrøm, E. P. A. M. Bakkers, S. D. Sarma, and L. P. Kouwenhoven, Nature [556](http://dx.doi.org/10.1038/nature26142), 74 (2018). in Fig. 5. Hence, similar results to the numerically costly exact optimization of the topological minigap can be obtained using the LDOS-based effective performance index Φ <sup>˜</sup> presented in Sec. III. Appendix H: Convergence statistics In this appendix, we present additional data related to the convergence of the RGF-GRAPE algorithm and the bulk gap of the optimization results. To this end, we performed 100 optimizations each starting from a different realization of a fixed-amplitude random magnetic texture. In each realization, the magnetic field at site _j_ is b _j_ ( _θj, φj_ ) = _b_ (sin _θj_ cos _φj_ x ˆ + sin _θj_ cos _φj_ ˆ y + cos _θj_ z ˆ), where _φj_ and _θj_ are uncorrelated random variables taken from a uniform distribution of width 2 _π_ respectively centered around 0 and _π/_ 2. Figure 11(a) presents the distribution of the initial value of the performance index. The negative values indicate that all initial textures are in the trivial phase. Panel (b) shows the distribution of the final performance index after performing an optimization using the BFGS algorithm where the gradient of Φ was calculated at each <sup>˜</sup> iteration using RGF-GRAPE. For 26 occurrences the optimization converged to a solution near the topological phase transition ( _|_ Φ <sup>˜</sup> _| <_ 2), where the performance index value is dominated by the topological visibility. In the remaining 74 cases the optimization converged deep in the topological phase. For these occurrences, panel (c) shows a scatter plot of the resulting bulk gap where we can see a relation between the value of the performance index and the bulk gap. For the 26 cases with _|_ Φ <sup>˜</sup> _|_ _<_ 2, the failure to find solutions deep in the topological phase might be explained by the presence of local minima in the high-dimensional optimization space. This standard problem of optimization can we be solved by using standard methods of global optimization such as the basin hopping method. [2] A. Y. Kitaev, [Physics-Uspekhi](http://stacks.iop.org/1063-7869/44/i=10S/a=S29) 44, 131 (2001). [3] Y. Oreg, G. Refael, [and F. von Oppen, Felix, Phys. Rev.](http://dx.doi.org/10.1103/PhysRevLett.105.177002) Lett. 105 [,](http://dx.doi.org/10.1103/PhysRevLett.105.177002) 177002 (2010). [4] For reviews, see e.g. F. Pientka, Y. Peng, L. Glazman, and F. von Oppen, Physica Scripta [2015](http://stacks.iop.org/1402-4896/2015/i=T164/a=014008), 014008 (2015); J. Alicea, Reports on Progress in Physics 75, 076501 (2012); [C. Beenakker, Annual Review of Condensed Mat-](http://dx.doi.org/10.1146/annurev-conmatphys-030212-184337) ter [Physics](http://dx.doi.org/10.1146/annurev-conmatphys-030212-184337) 4, 113 (2013); R. Aguado, La [Rivista](http://dx.doi.org/10.1393/ncr/i2017-10141-9) del Nuovo [Cimento](http://dx.doi.org/10.1393/ncr/i2017-10141-9) 40, 523–593 (2017). [5] R. Lutchyn, E. Bakkers, L. Kouwenhoven, P. Krogstrup, C. Marcus, and Y. Oreg, Nature Reviews Materials 3, 52 (2018). [6] T.-P. Choy, J. M. Edge, A. R. Akhmerov, and C. W. J. Beenakker, Phys. Rev. B [84](http://dx.doi.org/10.1103/PhysRevB.84.195442), 195442 (2011). [7] S. Nadj-Perge, I. K. Drozdov, B. A. Bernevig, and A. Yazdani, Phys. Rev. B [88](http://dx.doi.org/10.1103/PhysRevB.88.020407), 020407 (2013). [8] M. Kjaergaard, K. W¨olms, [and K. Flensberg, Phys. Rev.](http://dx.doi.org/10.1103/PhysRevB.85.020503) B 85, [020503](http://dx.doi.org/10.1103/PhysRevB.85.020503) (2012). [9] See e.g. S. Nadj-Perge, I. K. Drozdov, J. Li, H. Chen, S. Jeon, J. Seo, A. H. MacDonald, B. A. Bernevig, and A. Yazdani, Science 346, 602 (2014); M. Ruby, F. Pientka, Y. Peng, F. von Oppen, B. W. Heinrich, and K. J. Franke, Phys. Rev. Lett. [115](http://dx.doi.org/ 10.1103/PhysRevLett.115.197204), 197204 (2015); R. Pawlak, M. Kisiel, J. Klinovaja, T. Meier, S. Kawai, T. Glatzel, D. Loss, and E. Meyer, npj Quantum Information 2, [16035](http://dx.doi.org/10.1038/npjqi.2016.35) (2016); M. Ruby, B. W. Heinrich, Y. Peng, F. von Oppen, and K. J. Franke, Nano Letters [17](http://dx.doi.org/ 10.1021/acs.nanolett.7b01728), 4473 (2017). [10] J. Klinovaja, P. Stano, and D. Loss, Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevLett.109.236801) Lett. 109, [236801](http://dx.doi.org/10.1103/PhysRevLett.109.236801) (2012). [11] F. Pientka, L. I. Glazman, and F. von Oppen, [Phys.](http://dx.doi.org/10.1103/PhysRevB.88.155420) Rev. B 88 [,](http://dx.doi.org/10.1103/PhysRevB.88.155420) 155420 (2013). [12] D. Rainis, A. Saha, J. Klinovaja, L. Trifunovic, and D. Loss, Phys. Rev. Lett. [112](http://dx.doi.org/ 10.1103/PhysRevLett.112.196803), 196803 (2014). [13] P. Marra and M. Cuoco, Phys. Rev. B [95](http://dx.doi.org/10.1103/PhysRevB.95.140504), 140504 (2017). [14] W. DeGottardi, D. Sen, [and S. Vishveshwara, Phys. Rev.](http://dx.doi.org/10.1103/PhysRevLett.110.146404) Lett. 110 [,](http://dx.doi.org/10.1103/PhysRevLett.110.146404) 146404 (2013). [15] W. DeGottardi, M. Thakurathi, S. Vishveshwara, and D. Sen, Phys. Rev. B [88](http://dx.doi.org/10.1103/PhysRevB.88.165111), 165111 (2013). [16] M. P´erez and G. Mart´ınez, Journal of [Physics:](http://stacks.iop.org/0953-8984/29/i=47/a=475503) Condensed [Matter](http://stacks.iop.org/0953-8984/29/i=47/a=475503) 29, 475503 (2017). [17] S. Hoffman, J. Klinovaja, [and D. Loss, Phys. Rev. B](http://dx.doi.org/10.1103/PhysRevB.93.165418) 93, [165418](http://dx.doi.org/10.1103/PhysRevB.93.165418) (2016). [18] M. Tezuka and N. Kawakami, Phys. Rev. [B](http://dx.doi.org/10.1103/PhysRevB.85.140508) 85, 140508 [(2012).](http://dx.doi.org/10.1103/PhysRevB.85.140508) [19] K. P¨oyh¨onen, A. Weststr¨om, J. R¨ontynen, and T. Oja nen, Phys. Rev. B [89](http://dx.doi.org/10.1103/PhysRevB.89.115109), 115109 (2014). [20] [P. Zhang and F. Nori, New Journal of Physics](http://stacks.iop.org/1367-2630/18/i=4/a=043033) 18, 043033 [(2016).](http://stacks.iop.org/1367-2630/18/i=4/a=043033) [21] C. Moore, T. D. Stanescu, and S. Tewari, Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevB.97.165302) B 97, [165302](http://dx.doi.org/10.1103/PhysRevB.97.165302) (2018). [22] C.-X. Liu, J. D. Sau, and S. Das Sarma, Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevB.97.214502) B 97, [214502](http://dx.doi.org/10.1103/PhysRevB.97.214502) (2018). [23] S. Plugge, A. Rasmussen, R. Egger, and K. Flensberg, New Journal of [Physics](http://stacks.iop.org/1367-2630/19/i=1/a=012001) 19, 012001 (2017). [24] T. Karzig, C. Knapp, R. M. Lutchyn, P. Bonderson, M. B. Hastings, C. Nayak, J. Alicea, K. Flensberg, S. Plugge, Y. Oreg, C. M. Marcus, and M. H. Freedman, Phys. Rev. B [95](http://dx.doi.org/10.1103/PhysRevB.95.235305), 235305 (2017). [25] C. Knapp, T. Karzig, R. M. Lutchyn, and C. Nayak, Phys. Rev. B [97](http://dx.doi.org/10.1103/PhysRevB.97.125404), 125404 (2018). [26] N. Khaneja, T. Reiss, C. Kehlet, T. Schulte-Herbr¨uggen, and S. J. Glaser, Journal of [Magnetic](http://dx.doi.org/10.1016/j.jmr.2004.11.004) Resonance 172, [296](http://dx.doi.org/10.1016/j.jmr.2004.11.004) (2005). [27] For reviews, see e.g. S. J. Glaser, U. Boscain, T. Calarco, C. P. Koch, W. K¨ockenberger, R. Kosloff, I. Kuprov, B. Luy, S. Schirmer, T. Schulte-Herbr¨uggen, D. Sugny, and F. K. Wilhelm, The European Physical Journal D [69](http://dx.doi.org/10.1140/epjd/e2015-60464-1), 279 (2015); C. P. Koch, [Journal](http://stacks.iop.org/0953-8984/28/i=21/a=213001) of Physics: Condensed [Matter](http://stacks.iop.org/0953-8984/28/i=21/a=213001) 28, 213001 (2016); C. Brif, R. Chakrabarti, and H. Rabitz, New [Journal](http://stacks.iop.org/1367-2630/12/i=7/a=075008) of Physics 12, [075008](http://stacks.iop.org/1367-2630/12/i=7/a=075008) (2010). [28] See e.g. F. Motzoi, J. M. Gambetta, P. Rebentrost, and F. K. Wilhelm, Phys. Rev. Lett. [103](http://dx.doi.org/10.1103/PhysRevLett.103.110501), 110501 (2009); A. Rahmani, B. Seradjeh, and M. Franz, Phys. Rev. B 96, [075158](http://dx.doi.org/10.1103/PhysRevB.96.075158) (2017); G. J¨ager, D. M. Reich, M. H. Goerz, C. P. Koch, and U. Hohenester, Phys. [Rev.](http://dx.doi.org/ 10.1103/PhysRevA.90.033628) A 90, [033628](http://dx.doi.org/ 10.1103/PhysRevA.90.033628) (2014). [29] D. J. Thouless and S. Kirkpatrick, Journal of Physics C: Solid State [Physics](http://stacks.iop.org/0022-3719/14/i=3/a=007) 14, 235 (1981). [30] S. Das Sarma, A. Nag, and J. D. Sau, Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevB.94.035143) B 94, [035143](http://dx.doi.org/10.1103/PhysRevB.94.035143) (2016). [31] C.-K. Chiu, J. C. Y. Teo, A. P. Schnyder, and S. Ryu, Rev. Mod. Phys. [88](http://dx.doi.org/ 10.1103/RevModPhys.88.035005), 035005 (2016). [32] A. R. Akhmerov, J. P. Dahlhaus, F. Hassler, M. Wimmer, and C. W. J. Beenakker, Phys. Rev. [Lett.](http://dx.doi.org/10.1103/PhysRevLett.106.057001) 106, 057001 [(2011).](http://dx.doi.org/10.1103/PhysRevLett.106.057001) [33] I. C. Fulga, F. Hassler, A. R. Akhmerov, and C. W. J. Beenakker, Phys. Rev. B [83](http://dx.doi.org/10.1103/PhysRevB.83.155429), 155429 (2011). [34] I. C. Fulga, F. Hassler, [and A. R. Akhmerov, Phys. Rev.](http://dx.doi.org/10.1103/PhysRevB.85.165409) B 85, [165409](http://dx.doi.org/10.1103/PhysRevB.85.165409) (2012). [35] D. S. Fisher and P. A. Lee, Phys. Rev. B [23](http://dx.doi.org/10.1103/PhysRevB.23.6851), 6851 (1981). [36] A. D. Stone and A. Szafer, IBM Journal [of](http://dx.doi.org/10.1147/rd.323.0384) Research and [Development](http://dx.doi.org/10.1147/rd.323.0384) 32, 384 (1988). [37] H. U. Baranger and A. D. Stone, Phys. Rev. B 40, 8169 [(1989).](http://dx.doi.org/10.1103/PhysRevB.40.8169) [38] M. Wimmer, _Quantum_ _transport_ _in_ _nanostructures:_ _From_ _computational_ _concepts_ _to_ _spintronics_ _in_ _graphene_ _and_ _magnetic_ _tunnel_ _junctions_, Ph.D. thesis, Universit¨at Regensburg (2008). [39] A. C. Potter and P. A. Lee, Phys. Rev. [B](http://dx.doi.org/10.1103/PhysRevB.83.184520) 83, 184520 [(2011).](http://dx.doi.org/10.1103/PhysRevB.83.184520) [40] A. R. Akhmerov, Phys. Rev. B [82](http://dx.doi.org/10.1103/PhysRevB.82.020509), 020509 (2010). [41] E. Prada, P. San-Jose, [and R. Aguado, Phys. Rev. B](http://dx.doi.org/10.1103/PhysRevB.86.180503) 86, [180503](http://dx.doi.org/10.1103/PhysRevB.86.180503) (2012). [42] G. Kells, D. Meidan, and P. W. Brouwer, Phys. [Rev.](http://dx.doi.org/10.1103/PhysRevB.86.100503) B 86, [100503](http://dx.doi.org/10.1103/PhysRevB.86.100503) (2012). [43] [D. Bagrets and A. Altland, Phys. Rev. Lett.](http://dx.doi.org/10.1103/PhysRevLett.109.227005) 109, 227005 [(2012).](http://dx.doi.org/10.1103/PhysRevLett.109.227005) [44] A. Vuik, D. Eeltink, A. R. Akhmerov, and M. Wimmer, New Journal of [Physics](http://stacks.iop.org/1367-2630/18/i=3/a=033013) 18, 033013 (2016). [45] B. D. Woods, T. D. Stanescu, and S. Das Sarma, [Phys.](http://dx.doi.org/10.1103/PhysRevB.98.035428) Rev. B 98 [,](http://dx.doi.org/10.1103/PhysRevB.98.035428) 035428 (2018). [46] A. E. Antipov, A. Bargerbos, G. W. Winkler, B. Bauer, E. Rossi, and R. M. Lutchyn, Phys. Rev. [X](http://dx.doi.org/ 10.1103/PhysRevX.8.031041) 8, 031041 [(2018).](http://dx.doi.org/ 10.1103/PhysRevX.8.031041) [47] A. E. G. Mikkelsen, P. Kotetes, P. Krogstrup, and K. Flensberg, Phys. Rev. X 8 [,](http://dx.doi.org/10.1103/PhysRevX.8.031040) 031040 (2018). [48] S. Takei, B. M. Fregoso, H.-Y. Hui, A. M. Lobos, and S. Das Sarma, Phys. Rev. Lett. [110](http://dx.doi.org/ 10.1103/PhysRevLett.110.186803), 186803 (2013). [49] G. L. Fatin, A. Matos-Abiague, B. Scharf, and I. Zuti´c, <sup>ˇ</sup> Phys. Rev. Lett. [117](http://dx.doi.org/10.1103/PhysRevLett.117.077002), 077002 (2016). [50] L. N. Maurer, J. K. Gamble, L. Tracy, S. Eley, and T. M. Lu, ArXiv e-prints (2018), [arXiv:1801.03676](http://arxiv.org/abs/1801.03676) [[cond-mat.mes-hall].](http://arxiv.org/abs/1801.03676) [51] L. Pilozzi, F. A. Farrelly, G. Marcucci, and C. Conti, Communications [Physics](https://doi.org/10.1038/s42005-018-0058-8) 1, 57 (2018). [52] S. Boutin, J. Camirand Lemyre and I. Garate, [”Ma-](http://dx.doi.org/10.5281/zenodo.1486048) jorana bound state [engineering](http://dx.doi.org/10.5281/zenodo.1486048) via efficient realspace [parameter](http://dx.doi.org/10.5281/zenodo.1486048) optimization,” (2018), source code. [[http://doi.org/10.5281/zenodo.1486048].](http://doi.org/10.5281/zenodo.1486048) [53] B. Rowland and J. A. Jones, Philosophical Transactions of the Royal Society of [London](http://dx.doi.org/10.1098/rsta.2011.0361) A: Mathematical, Physical and Engineering [Sciences](http://dx.doi.org/10.1098/rsta.2011.0361) 370, 4636 (2012). [54] As Φ is in general a complex number, the actual per formance index should be _|_ Φ _|_ <sup>2</sup> [53]. While important in practice, this distinction does not influence the description of the algorithm and the analysis of its computational complexity. [55] [C. H. Lewenkopf and E. R. Mucciolo, Journal of Compu-](http://dx.doi.org/10.1007/s10825-013-0458-7) tational [Electronics](http://dx.doi.org/10.1007/s10825-013-0458-7) 12, 203 (2013). [56] C. W. Groth, M. Wimmer, A. R. Akhmerov, and X. Waintal, New Journal of [Physics](http://stacks.iop.org/1367-2630/16/i=6/a=063065) 16, 063065 (2014). [57] A. Umerski, Phys. Rev. B [55](http://dx.doi.org/10.1103/PhysRevB.55.5266), 5266 (1997). [58] Although we consider here a site-independent operator, our calculation naturally extends to site-dependent local operators with _A →_ _Aj_ . [59] S. Boutin, C. K. Andersen, J. Venkatraman, A. J. Ferris, and A. Blais, Phys. Rev. A [96](http://dx.doi.org/10.1103/PhysRevA.96.042315), 042315 (2017). [60] R. Fletcher, _Practical_ _Methods_ _of_ _Optimization_, A Wiley Interscience Publication (John Wiley & Sons, 2000); R. H. Byrd, P. Lu, J. Nocedal, and C. Zhu, SIAM Journal on Scientific [Computing](http://dx.doi.org/ 10.1137/0916069) 16, 1190 (1995). [61] As we consider a single subband nanowire, the number of local degree of freedoms is fixed to _M_ = 4 in all calculations. Hence, contrary to previous sections, we do not consider the value of _M_ in the complexity considerations. All methods considered should have a complexity _O_ ( _N_ <sup>_ξ_</sup> _M_ <sup>3</sup> ). [62] The minigap is defined as the lowest excitation energy of the Majorana wire decoupled from the leads. In the main text, we refer to it as the _topological_ _gap_ or simply the _energy_ _gap_ . [63] Matrix diagonalization is _O_ ( _N_ <sup>3</sup> ) and finite difference re quires to perform _N_ of them for the problem considered. [64] The exception is Fig. 3, where we take the parameters _α_ = 0 _._ 05 _t_, ∆= 0 _._ 0225 _t_ and B 0 _/t_ = 0 _._ 027ˆ x . [65] Z. Wan, A. Kazakov, M. J. Manfra, L. N. Pfeiffer, K. W. West, and L. P. Rokhinson, Nature communications 6, 7426 (2015). [66] N. Leung, M. Abdelhafez, J. Koch, and D. Schuster, Phys. Rev. A [95](http://dx.doi.org/ 10.1103/PhysRevA.95.042318), 042318 (2017). [67] We consider again a scattering region of length _N_ = 400, and constrain the optimization problem to textures with a periodicity of 25 sites and b _j_ _·_ ˆ z = 0.

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.