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

Linear-scaling algorithm for rapid computation of inelastic transitions in the presence of multiple electron scattering

간접 관련 화학·수지 · (21) 에폭시수지 (7) MEA(막전극접합체)(15) 디스플레이 패널재료

기본 정보

저자
  1. Hamish G. Brown — National Center for Electron Microscopy and Molecular Foundry, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
  2. Jim Ciston — National Center for Electron Microscopy and Molecular Foundry, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
  3. Colin Ophus — National Center for Electron Microscopy and Molecular Foundry, Lawrence Berkeley National Laboratory, Berkeley, California 94720, USA
DOI
10.1103/physrevresearch.1.033186
저널
Physical Review Research
발행년도
2019
발행기관
American Physical Society
피인용수
19
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1103/physrevresearch.1.033186
토픽
Electron and X-Ray Spectroscopy Techniques
OpenAlex ID
W2995344310

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(7) MEA(막전극접합체), (15) 디스플레이 패널재료
R&D 측면
분석·모델링
확신도
0.70
근거 용어
STEM-EELS, electron energy-loss spectroscopy, nanoscale chemical and elemental mapping, image simulations, multislice algorithm
판단 근거
본 논문은 주사 투과 전자 현미경(STEM-EELS)을 이용한 나노 스케일의 화학적/원소적 매핑 시뮬레이션 알고리즘을 다룹니다. 이는 코오롱인더스트리의 고분자 소재(에폭시, PEMFC 막 등)나 디스플레이 재료의 원자 단위 미세 구조 및 화학적 결합 상태를 분석하는 연구 기법에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
고분자 전해질 막(PEM)의 이온 전도성 관련 화학적 결합 분석이나, 차세대 디스플레이/반도체용 필름 소재의 원자 단위 결함 및 계면 분석을 위한 시뮬레이션 기술로 응용 가능합니다.
평가 입력
본문 53,739자 중 30,032자 발췌

초록

This paper introduces a new algorithm to improve on the computation time of simulations of multiple scattering in scanning transmission electron microscopy. The method is probed in the elemental map for a SrTiO3 crystal and also an Fe-Pt nanoparticle containing 6569 Fe atoms.

본문 53,739자

본문 펼치기
## Lawrence Berkeley National Laboratory ### LBL Publications Title Linear-scaling algorithm for rapid computation of inelastic transitions in the presence of multiple electron scattering Permalink <u>[https://escholarship.org/uc/item/18w8s03d](https://escholarship.org/uc/item/18w8s03d)</u> Journal Physical Review Research, 1(3) ISSN 2643-1564 Authors Brown, Hamish G Ciston, Jim Ophus, Colin Publication Date 2019-12-01 DOI 10.1103/physrevresearch.1.033186 Peer reviewed <u>[eScholarship.org](https://escholarship.org)</u> [Powered by the California Digital Library](http://www.cdlib.org/) A linear-scaling algorithm for rapid computation of inelastic transitions in the presence of multiple electron scattering Hamish G. Brown, <sup>1</sup> Jim Ciston, <sup>1,</sup> <sup>_∗_</sup> and Colin Ophus <sup>1,</sup> <sup>_†_</sup> 1 _National_ _Center_ _for_ _Electron_ _Microscopy,_ _Molecular_ _Foundry,_ _Lawrence_ _Berkeley_ _National_ _Laboratory,_ _California_ _94720,_ _USA_ <sup>_‡_</sup> (Dated: August 22, 2019) Strong multiple scattering of the probe in scanning transmission electron microscopy (STEM) means image simulations are usually required for quantitative interpretation and analysis of elemental maps produced by electron energy-loss spectroscopy (EELS). These simulations require a full quantum-mechanical treatment of multiple scattering of the electron beam, both before and after a core-level inelastic transition. Current algorithms scale quadratically and can take up to a week to calculate on desktop machines even for simple crystal unit cells and do not scale well to the nano-scale heterogeneous systems that are often of interest to materials science researchers. We introduce an algorithm with linear scaling that typically results in an order of magnitude reduction in compute time for these calculations without introducing additional error and discuss approximations that further improve computational scaling for larger scale objects with modest penalties in calculation error. We demonstrate these speed-ups by calculating the atomic resolution STEM-EELS map using the L-edge transition of Fe, for of a nanoparticle 80 <sup>˚</sup> A in diameter in 16 hours, a calculation that would have taken at least 80 days using a conventional multislice approach. I. INTRODUCTION The presence of even small numbers of dopant atoms in a material can have a disproportionate effect on that material’s properties, and thus characterization techniques that perform nanoscale chemical and elemental mapping are important investigative tools in materials science. Furthermore, the presence of extended, non-periodic defects, interfaces, and nanoscale precipitate phases either naturally occurring or engineered for functionality requires quantitative atomic resolution analysis of fields of view that are substantially larger than crystal unit cells [1–4]. In scanning transmission electron microscopy electron energy-loss spectroscopy (STEM-EELS) a focused probe, which can be smaller than the width of an atom in state-of-the-art instruments, is raster scanned across a material, and the energy-loss spectrum is recorded for each scan position of the probe. Integrating regions of the spectra that correspond to energy-losses characteristic of ionization of a particular atomic element allows for mapping the positions and concentrations of elements within the specimen [5]. Additionally, analysis of the fine structure of the energy loss spectrum can reveal modified valence state of the elements due to bonding [2, 6, 7]. A complicating factor for STEM-EELS interpretation is that strong multiple scattering of the electron probe before and after exciting an ionization event means that for quantitative work, such as measuring chemical _∗_ [jciston@lbl.gov](mailto:jciston@lbl.gov) _†_ [clophus@lbl.gov](mailto:clophus@lbl.gov) _‡_ [hamishbrown@lbl.gov](mailto:hamishbrown@lbl.gov) concentrations, STEM-EELS results often need to be interpreted by performing forward simulations of an assumed structure [8]. The simulations typically combine either multislice or Bloch wave simulations with inelastic scattering cross-sections for different elements of interest [8–11]. Currently, STEM-EELS image simulations of simple crystalline structures can require up to a week of calculation time, even using graphical processing unit (GPU) accelerated simulation codes [12, 13]. Algorithms with much faster run times that scale better with system size are required to simulate large objects, or those with more heterogenous chemical properties than simple crystals, such as samples containing dopants, extended defects, interfaces, or entire nanoparticles. Recent improvements in the readout speed of electron spectrometers adds additional impetus to efforts to speed up STEM-EELS simulations, as faster spectrometers allow for more routine imaging of much larger systems in STEM-EELS at atomic resolution. A recent innovation in the field of electron microscope image simulation is the development of the plane wave reciprocal-space interpolated scattering matrix (PRISM) algorithm [14]. Instead of the traditional approach of calculating the propagation of the beam for each scan position in a STEM raster independently, the PRISM method uses the multislice algorithm to calculate the scattering matrix for a particular electron microscope experiment and stores it in memory. The scattering matrix, which propagates components of the electron illumination through the imaging object, can then be rapidly applied to the illumination wave function for each scan position to compute the output wave [15]. In this paper, we extend the PRISM algorithm to the problem of STEM-EELS image simulation, and demonstrate substantial speed up in calculation time. This paper is structured as follows: in Section II the underlying physics of STEM-EELS simulation are reviewed and we discuss both the scattering matrix operator and the multislice algorithm for numerical simulation of STEM images. In Section III we detail algorithmic implementation of both the conventional multislice approach and our novel PRISM approach to STEM-EELS calculation and discuss the predicted scaling of the run-time of both algorithms with different parameters such as simulation grid size and specimen thickness. Section IV shows results simulated using the new method, and compares accuracy and speedup relative to the conventional multislice approach. Two further optimizations are discussed in this section: evaluating inelastic transitions on a cropped grid and using an inverse multislice operation to economize on the total number of multislice operations. These optimizations are shown to typically induce minimal errors while offering substantial reductions in compute time. This section is concluded with a calculation of the STEM-EELS image for an illustrative large heterogeneous object, in this case a FePT nanoparticle roughly 80 <sup>˚</sup> A in diameter [16]. II. THEORY In this section we briefly review the underlying physical theories behind the simulation of a relativistic electron propagating through a specimen of condensed matter. We introduce the transition potential to simulate the inelastic scattering of the probe electron due to the ionization of an electron bound to an atom within the specimen. Existing methods calculate the propagation of the electron probe to the plane of ionization and subsequent propagation of each inelastically scattered wave separately for each scan position and each inelastic transition of interest. We outline how we can calculate and store the scattering matrix operator that performs all of these steps and then rapidly apply it to all probes in the STEM raster. We begin with the Schr¨odinger equation in reciprocal space for a fast electron interacting with the electrostatic potential of a specimen of condensed matter [17], corrected) mass and wavelength of the electron, _e_ is the electron charge and _h_ is Planck’s constant. Equation (1) is a set of coupled linear equations for which the solution can be written as the matrix-vector product _e_ <sup>_−iπλzg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> <sup>+</sup> <sup>_iσ_</sup> <sup>ˆ</sup> <sup>_V_</sup> <sup>_g−h_</sup> <sup>_z_</sup> <sup>ˆ</sup> _ψ_ _h_ (0) _≡S_ ( _z_ ) _ψ_ (0) (2) _ψ_ ( _z_ ) = _h_ where _δ_ _gh_ is the Kronecker delta and the bold _ψ_ is a vector containing the Fourier coefficients of the illumination _ψ_ ˆ _h_ . For STEM the illumination is a coherent focused probe with functional form _ψ_ ˆ( _g_ _,_ 0) = _A_ ( _g_ ) _e_ <sup>_−iχ_</sup> <sup>(</sup> <sup>_g_</sup> <sup>)</sup> _._ (3) Here _A_ ( _g_ ) is the aperture function, a top-hat function with radius equal to the convergence semi-angle of the probe, and _χ_ ( _g_ ) is the aberration function which takes into account probe aberrations such as defocus, spherical aberration and astigmatism [18]. Efficient numerical calculation of Eq. (2) typically proceeds through diagonalisation of the scattering matrix _S_ (the Bloch wave method [19, 20]), or through a split-step evaluation of the action of _S_ on _ψ_, with the specimen first split into _n_ slices in the beam direction and the operator involving the propagation matrix elements _−πλg_ <sup>2</sup> _δ_ _gh_ _z/nz_ and that involving the specimen interaction matrix elements _σV_ <sup>ˆ</sup> _g−h_ _z/nz_ applied in alternating sequence: _ψ_ ( _z_ ) = _≈_ _e_ <sup>_−iπλzg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> <sup>_/nz_</sup> <sup>+</sup> <sup>_iσ_</sup> <sup>ˆ</sup> <sup>_V_</sup> <sup>_g−h_</sup> <sup>_z/nz_</sup> <sup>�</sup> <sup>_nz_</sup> _ψ_ (0) _,_ - _e_ <sup>_−iπλzg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> <sup>_/nz_</sup> _e_ <sup>_iσ_</sup> <sup>ˆ</sup> <sup>_V_</sup> <sup>_g−h_</sup> <sup>_z/nz_</sup> <sup>�</sup> <sup>_nz_</sup> _ψ_ (0) _._ (4) This is called the “multislice method” in the electron microscopy literature [17] and has become the most popular method of evaluation of Eq. (2). This is because the _e_ <sup>_iσ_</sup> <sup>ˆ</sup> <sup>_V_</sup> <sup>_g−h_</sup> <sup>_z/nz_</sup> operator (referred to as the transmission function) is diagonal in real space and a fast Fourier transform (an FFT, which we shall represent with the symbol _F_ <sup>ˆ</sup> r _→_ g and it’s inverse operation as _F_ ˆ <sup>_−_</sup> <sup>1</sup> g _→_ r )[21] can be used to efficiently transform between real and reciprocal space, - _nz_ _ψ_ (0) _._ (5) _ψ_ ( _z_ ) _≈_ - _e_ <sup>_−iπλz/nzg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> _F_ <sup>ˆ</sup> r _→_ h _e_ <sup>_iσV_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_z/nz_</sup> _F_ <sup>ˆ</sup> g <sup>_−_</sup> _→_ <sup>1</sup> r _<u>dψ</u>_ <sup>ˆ</sup> _<u>g</u>_ <u>(</u> _<u>z</u>_ <u>)</u> = _−_ _iπλg_ <sup>2 ˆ</sup> _ψ_ _g_ ( _z_ ) + _dz_ _h_ _iσV_ <sup>ˆ</sup> _g−h_ _ψ_ <sup>ˆ</sup> _h_ ( _z_ ) _._ (1) The two-dimensional FFT has a favourable 2 _N_ <sup>2</sup> log _N_ scaling, where _N_ is the number of Fourier coefficients _g_ included in the simulation. For brevity we will define the following operator as short hand for a single multislice iteration, _M_ (∆ _z_ ) _≡_ _e_ <sup>_−iπλz/nzg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> _F_ <sup>ˆ</sup> r _→_ h _e_ <sup>_iσV_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)</sup> <sup>_z/nz_</sup> _F_ <sup>ˆ</sup> g <sup>_−_</sup> _→_ <sup>1</sup> r <sup>_._</sup> (6) By comparison the Bloch wave approach, which solves Eq. (2) through diagonalisation of a matrix operator The _ψ_ <sup>ˆ</sup> _g_ ( _z_ ) are Fourier coefficients of the fast electron wave function as a function of depth _z_ in the specimen and Fourier space coordinates _g_ (magnitude _g_ ) and _h_ in the plane perpendicular to the direction of propagation. The Fourier coefficients of the electrostatic potential are denoted by _V_ <sup>ˆ</sup> _g_ . The interaction constant _σ_ = 2 _πmeeλ/h_ <sup>2</sup>, where _me_ and _λ_ are the (relativistically containing the coefficients within the exponent of Eq. (2), has the less favourable _N_ <sup>3</sup> scaling [22]. A more in-depth explanation of the multislice algorithm with details on it’s implementation may be found in Ref. [18]. A recent innovation in STEM image simulation is the PRISM (plane-wave reciprocal-space interpolated scattering matrix) algorithm, in which only the rows of the matrix operator _S_ ( _z_ ), from Eq. (2), corresponding to the Fourier coefficients present in the illumination vector _ψ_ _g_ are calculated using the multislice algorithm Eq. (5) and stored in memory. As will be explained in the next section, this approach can be used to accelerate the calculation of STEM-EELS images because the wavefunctions for the inelastically scattered electron can be rapidly propagated to the exit surface with the stored operator. This is instead of having to perform the multislice operation separately for each seperate probe position and inelastic scattering event in the conventional multislice approach. For an inelastic transition at depth _z_, the scattered wave function _ψn_ (r _, z_ ), where _n_ is shorthand for an excited quantum state, is given by the product of the elastic wavefunction _ψ_ 0(r _, z_ ) and an inelastic transition potential for ionization _Hn_ 0(r _, z_ ), _ψn_ ( _r_ _⊥, z_ ) = _Hn_ 0( _r_ _⊥_ ) _ψ_ 0( _r_ _⊥, z_ ) _._ (7) The inelastic transition potential is given by Ref. [23], 4 _πϵ_ 0 _|_ _r_ _−_ _r_ <sup>_′_</sup> _|_ <sup>_~~u~~_</sup> <sup>0(</sup> <sup>_r_</sup> <sup>_′_</sup> <sup>)</sup> <sup>_d_</sup> <sup>_r_</sup> <sup>_′_</sup> (8) _Hn_ 0( _r_ ) = _u_ <sup>_∗_</sup> _n_ _e_ <sup>2</sup> <sup>_∗_</sup> _n_ <sup>(</sup> <sup>_κ_</sup> <sup>_,_</sup> <sup>_r_</sup> <sup>_′_</sup> <sup>)</sup> 4 _πϵ_ 0 _|_ _r_ where _u_ 0( _r_ <sup>_′_</sup> ) is the wave function of an electron in a bound state of the specimen and _un_ ( _κ_ _,_ _r_ <sup>_′_</sup> ) is the wavefunction of that electron excited to a continuum (free) state with wave vector _κ_ . The wave function in the continuum state is typically expanded in a spherical harmonic basis, _un_ ( _κ_ _,_ _r_ ) = <sup><u>4</u></sup> <sup>_<u>π</u>_</sup> 2 _κr_ _∞_ _ℓ_ <sup>_′_</sup> =0 _×_ _i_ <sup>_ℓ′_</sup> _e_ <sup>_iδℓ′_</sup> _uκℓ′_ ( _r_ ) _ℓ_ <sup>_′_</sup> _Yℓ_ <sup>_∗′_</sup> _,mℓ′_ <sup>(ˆ</sup> <sup>_κ_</sup> <sup>)</sup> <sup>_Yℓ′,m_</sup> _ℓ_ <sup>_′_</sup> <sup>(ˆ</sup> <sup>_r_</sup> <sup>)</sup> (9) momenta basis for _u_ 0 and _un_ which is derived in Ref. [23], the numerical implementation of which is discussed in Ref. [24]. We may simulate a STEM-EELS image by then propagating the wave function for the inelastically scattered electron, _ψn_ from Eq. (8), to the exit surface using Eq. (2). We represent this process mathematically _ψ_ _n_ ( _r_ _, t_ ) = _S_ 1 _FHn_ 0 _F_ <sup>_−_</sup> <sup>1</sup> _S_ 2 _ψ_ 0(0) (10) _≡Sn_ _ψ_ 0(0) _._ (11) Here _Hn_ 0 is a matrix containing the values of _Hn_ 0( _r_ ) on its diagonals and the matrix operator _Sn_ we have defined in Eq. (11) for imaging of a single inelastic transition. Equation (10) must be solved for each inelastic transition of interest. Figure 1 is a diagramatic representation of Eq. (11), Fig. 1(a) shows how _S_ 1 maps Fourier coefficients of the probe wave function to wave functions at the depth of the inelastic transition (b) where we multiply these wave functions by the ionization transition potentials in Fig.1(c) and then propagate them using _S_ 2, Fig.1(d), to points within the EELS aperture in Fig.1(e). III. ALGORITHMS In this section we outline the details of the implementation of the simulation algorithms and write down estimates for the runtimes of each algorithm. We start with the algorithm for calculating STEM-EELS images using the multislice method: Loop over probe positions for _x_ =1 to _nx_ do for _y_ =1 to _ny_ do Initialise illumination wave function _ψ_ ( _g_ _,_ 0) = _A_ ( _g_ ) _e_ <sup>_−_</sup> <sup>2</sup> <sup>_πi_</sup> <sup>(</sup> <sup>_x,y_</sup> <sup>)</sup> <sup>_·_</sup> <sup>_k_</sup> Loop over slices of specimen for _iz_ = 1 to _nz_ _−_ 1 do Loop over inelastic transitions within slice _iz_ for _n_ = 1 to _n_ states _,i_ do Calculate inelastically scattered electron wavefunction _ψn_ ( _r_ _⊥, iz_ ) = _Hn_ 0( _r_ _⊥_ ) _ψ_ 0( _r_ _⊥, iz_ ) Propagate _ψn_ to exit surface of specimen for _i_ <sup>_′_</sup> _z_ <sup>=</sup> <sup>_iz_</sup> <sup>to</sup> <sup>_nz_</sup> <sup>do</sup> Multislice to advance _ψn_ one slice _ψn_ ( _g_ _, iz_ <sup>_′_</sup> ) = _M_ (∆ _z_ ) _ψn_ ( _h_ _, iz_ <sup>_′_</sup> _−_ 1) end for Integrate wavefunction over detector function _D_ ( _g_ ) and add contribution to STEM image _I_ ( _x, y_ ) = _I_ ( _x, y_ ) + - _|ψn_ ( _g_ _, nz_ ) _|_ <sup>2</sup> _D_ ( _g_ ) _d_ _g_ end for Multislice to advance _ψ_ 0 one slice _ψ_ ( _g_ _, iz_ + 1) = _M_ (∆ _z_ ) _ψ_ ( _h_ _, iz_ ) end for end for end for _ml′_ = _−ℓ_ <sup>_′_</sup> where the _Yℓ′,mℓ′_ are spherical harmonic functions, _ℓ_, _mℓ_, _ℓ_ <sup>_′_</sup> and _mℓ′_ are the angular momentum and azimuthal angular momentum quantum numbers of the bound and continuum states and _δℓ′_ is a phase factor determined by fitting to an asymptotic form of the free state [23, 24]. To a good approximation, only a small number of the different possible ( _ℓ_ <sup>_′_</sup> _, mℓ′_ ) need be included in a converged calculation [13]. The kernel in Eq. (8) is the Coulomb potential, which mediates interactions between the fast electron and the sample, and _ϵ_ 0 is the permittivity of free space. Calculations of Eq. (8) used in this paper are based on a solution using an angular x x (a) Probe-forming aperture (b) First scattering matrix (c) Ionization transition potentials (d) Scattering matrix to exit surface (e) EELS aperture FIG. 1. A diagramatic representation of the PRISM algorithm for STEM-EELS simulation that is encapsulated in Eq. (10). The first scattering matrix maps points in the probe-forming aperture (a) to complex output in the plane of the ionization (b). At this plane the output is multiplied by the ionization transition potentials of interest _Hn_ 0 which are shown in (c) and then by the output of the second scattering matrix (d) which propagates the resulting inelastically scattered wave to reciprocal space points inside the EELS aperture (e). Assuming a constant number of inelastic transitions _nstates_ at each slice, which is not true in general but is a useful assumption for estimating the computational complexity of the above algorithm, this algorithm requires Apply _Sn,iz_ to each illumination vector in the raster scan and add the resulting amplitude to the STEM image _I_ ( _x, y_ ) = _I_ ( _x, y_ ) + _|Sn,iz_ _ψ_ ( _g_ _, x, y_ ) _|_ <sup>2</sup> end for Advance _S_ 1 one slice _S_ 1( _iz_ +1) = _M_ (∆ _z_ ) _S_ 1( _iz_ ) Re-calculate _S_ 2, _S_ 2 = [ _M_ <sup>_T_</sup> (∆ _z_ )] <sup>_nz−iz_</sup> _I_ end for An important point to note is that, as defined here, the rows of _S_ 1 correspond to points in reciprocal space within the probe forming aperture and the columns correspond to real space points in the specimen plane, so _S_ 1 is generally a non-square matrix due to the different sampling of these two planes. Each column can be calculated by using multislice to propagate the plane wave components that fall withing the probe forming aperture through the specimen, as shown in Fig. 1 [14]. Conversely, the rows of _S_ 2 correspond to real space points in the specimen plane and the columns correspond to points within the EELS detector. The most efficient way to calculate _S_ 2 is to propagate plane wave components with transverse momenta within the EELS acceptance aperture _back_ through the specimen. This is formally the transpose of the multislice operation defined in Eq. (6), which is represented by a superscript <sup>_T_</sup> in the above algorithm description, and is given by _M_ <sup>_T_</sup> (∆ _z_ ) _≡_ _F_ <sup>ˆ</sup> r _→_ h _e_ <sup>_iσV_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)∆</sup> <sup>_z_</sup> _F_ <sup>ˆ</sup> g <sup>_−_</sup> _→_ <sup>1</sup> r <sup>_e−iπλ_</sup> <sup>∆</sup> <sup>_zg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> <sup>_._</sup> (14) _NMS_ = _nz−_ 1 - [ _n_ states( _nz_ _−_ _iz_ )] + _nz_ (12) _iz_ =0 = _n_ states _nz_ ( _nz_ _−_ 1) _/_ 2 + _nz_ (13) multislice operations for each probe position. The arithmetic sum identity <sup>�</sup> <sup>_n_</sup> _i_ =0 <sup>_−_</sup> <sup>1</sup> <sup>_i_</sup> <sup>=</sup> <sup>_n_</sup> <sup>(</sup> <sup>_n −_</sup> <sup>1)</sup> <sup>_/_</sup> <sup>2</sup> <sup>has</sup> <sup>been</sup> invoked in the above equation. In our proposed PRISM STEM-EELS algorithm we calculate two scattering matrices at each slice, the first to propagate the probe wave function to the slice of the inelastic transition and the second to propagate the wave function for the inelastically scattered electron to the exit surface. Initialize scattering matrices _S_ 1 = _I_ _S_ 2 = [ _M_ <sup>_T_</sup> (∆ _z_ )] <sup>_nz_</sup> for _iz_ = 1 to _nz_ do Loop through transitions within slice _iz_ for _n_ = 1 to _n_ states _,iz_ do Calculate Eq. (11) _Sn,iz_ = _S_ 2 _FHn_ 0 _F_ <sup>_−_</sup> <sup>1</sup> _S_ 1 0.6 0.4 0.2 0.0 FFT Array multiplication Array multiplication and addition 0 1000 2000 3000 4000 5000 6000 7000 8000 Grid side-length (pixels) FIG. 2. Scaling of FFT, array multiplication and array multiplication and addition operations in Matlab with the side length (pixels) of the square grid. The fitted scalings for these operations are plotted with dashed lines and the coefficients of the fit are given in the text. The PRISM STEM-EELS algorithm requires _nz_ _∗_ [ _N_ 1 + _N_ 2( _nz_ +1)] multislice operations where _N_ 1 is the number of rows in matrix _S_ 1, which correspond reciprocal space points in the illumination, and _N_ 2 is the number of columns in matrix _S_ 2, which correspond to reciprocal space points in the EELS detector. Since the PRISM STEM-EELS simulation algorithm is typically more economical with the required number of multislice iterations, the matrix multiplication step, evaluating Eq. (10), tends to be the rate limiting step. This means that although the calculation time is technically quadratic in _nz_, in many cases run time scaling is instead predominantly determined by the number of unique transitions. If we further assume that the number of transitions in each slice is roughly constant then the scaling will be roughly linear with the number of slices _nz_ . In the upcoming Sec. IV C, we will introduce an approximation that makes the scaling truly linear with _nz_ . Comparing the run time of the PRISM STEMEELS algorithm to the conventional multislice approach requires accounting for the relative speed of FFTs to array multiplication. To explore this question we make the approximation that the computation time of a two-dimensional FFT can be parametrized as _T_ FFT = _AN_ <sup>2</sup> log _N_ and that of an array multiplication (as used in the multislice operation) can be parametrized as _T_ mult = _BN_ <sup>2</sup> and that of an array multiplication and summation step (as would occur in a step of a matrix multiplication where a single row and column are multiplied and added to the final result) can be parametrized _T_ addmult = _CN_ <sup>2</sup> . Here _A_, _B_ and _C_ are constants and _N_ is the size of the (square) grid using in computation. Measurements of _T_ FFT, _T_ mult and _T_ addmult for different values of _N_ for Matlab are plotted in Fig. 2 for which values of _A_ = 1 _._ 0 _×_ 10 <sup>_−_</sup> <sup>9</sup>, _B_ = 9 _._ 0 _×_ 10 <sup>_−_</sup> <sup>9</sup> and _C_ = 3 _._ 8 _×_ 10 <sup>_−_</sup> <sup>9</sup> were fitted (fitted functions are plotted with dashed lines). However, for the most accurate estimates of the runtime of calculations at a specific pixel grid size _N_, in the examples provided in this paper we will simply measure _T_ FFT, _T_ mult and _T_ addmult at that pixel grid size _N_ . We also note that the platform and compiler can impact the relative speeds of different algorithms. We assume a simulation object measuring _L_ _×_ _L_ in the plane perpendicular to beam propagation and of thickness _z_, which we divide into _nz_ = _z/_ ∆ _z_ slice. This object would require a STEM scan with a Nyquist sampling of (4 _Lα_ ) <sup>2</sup> probe positions, where _α_ is the probe forming aperture in units of inverse length [12]. Assuming a constant number of ionization states at each slice, not true in general as atoms of the element of interest might be not be uniformly dispersed throughout the sample, but a useful approximation for the current timing estimates, the computation time for the conventional multislice approach will be given by _TMS_ _≈_ 2(4 _Lα_ ) <sup>2</sup> ( _n_ states _nz_ ( _nz_ _−_ 1) _/_ 2 + _nz_ ) ( _AN_ <sup>2</sup> log _N_ + _BN_ <sup>2</sup> ) _._ (15) The speed of the PRISM STEM-EELS calculation will depend on the size of the matrices used. For matrix _S_ 1, the number of rows will be depend on the sampling of the probe forming aperture function _A_ ( _q_ ) in Eq. (3) which covers a reciprocal space area of _πα_ <sup>2</sup> <sup>˚</sup> A <sup>_−_</sup> <sup>2</sup> . A simulation cell size of _L_ implies a natural reciprocal space sampling of _L_ pixels per unit of inverse length for the illumination [18] though this can be further reduced to _L/f_ by using a PRISM interpolation factor of _f_ an optimization described in detail in Ref. [14]. The number of rows in the scattering matrix will then be given by _πα_ <sup>2</sup> _L_ <sup>2</sup> _/f_ <sup>2</sup> . By similar reasoning, the second scattering _S_ 2 matrix, which propagates the inelastically scattered electrons from the plane of ionization to the EELS aperture, will have a number of columns equal to _πβ_ <sup>2</sup> _L_ <sup>2</sup> _/f_ <sup>2</sup> where _β_ is the diffraction space size of the EELS aperture. The time required for multislice iterations necessary for the PRISM algorithm is therefore given by _T_ PRISM _,_ multislice = 2( _πα_ <sup>2</sup> + 2 _∗_ ( _nz_ _−_ 1) _πβ_ <sup>2</sup> ) _L_ <sup>2</sup> _/f_ <sup>2</sup> _·nz_ ( _AN_ <sup>2</sup> log _N_ + _BN_ <sup>2</sup> ) _._ (16) The number of columns in _S_ 1 and the number of rows in _S_ 2 will be given by the square of half total number of pixels in the simulation cell ( _N/_ 2) <sup>2</sup> . These matrices need only have a side-length of _N/_ 2 since the output from a multislice calculation is bandwidth limited either to either 1/2 (as in the implementation used for this investigation) or 2/3 of the total array size and only spatial frequencies within this band-limit need be kept in the scattering matrix. For more detail on the need for this bandwidth limiting approach the reader is referred to Sec. 6.8 of Ref. [18]. With reference to the STEMEELS simulation using scattering matrices we must sum the computation times of the multislice iterations and the matrix multiplications, _T_ PRISM _≈_ _B_ ( _N/_ 2) <sup>2</sup> _πα_ <sup>2</sup> _L_ <sup>2</sup> _/f_ <sup>2</sup> + _C_ ( _N/_ 2) <sup>2</sup> _π_ <sup>2</sup> _α_ <sup>2</sup> _β_ <sup>2</sup> _L_ <sup>4</sup> _/f_ <sup>6</sup> + 4 _Cπ_ <sup>2</sup> _α_ <sup>4</sup> _β_ <sup>2</sup> _L_ <sup>6</sup> _/f_ <sup>6</sup> (17) Where the first term is the time required to calculate the matrix multiplication of _S_ 1 _Hn_ 0 in Eq. (10), the second term the time required to do the second matrix multiplication ( _S_ 1 _Hn_ 0) _S_ 2 in Eq. (10) and the third term the time required to do the matrix multiplication _Sn_ Ψ for each probe _ψ_ in the STEM raster in Eq. (11). In the following section we discuss a MATLAB implementation of the STEM-EELS simulation algorithms discussed show that the above expressions, Eqs. (15), (16) and (17), are correct estimators of the runtime of these calculations. Memory requirements for both algorithms also merit discussion. At a minimum the multislice algorithm requires only arrays containing the Fresnel free-space propagator, transmission function, probe and ionization transition potential, so 4 _N_ _× N_ complex valued arrays. If there is sufficient memory, as is the case for most simulations, the transmission functions for all the slices will also be stored rather than calculated on the fly an additional _nz_ _N_ _× N_ complex arrays. The PRISM STEM-EELS algorithm adds the requirement that two scattering matrices be stored in memory, an additional _πα_ <sup>2</sup> _/f_ <sup>2</sup> + _πβ_ <sup>2</sup> _/f_ <sup>2</sup> arrays of size _N/_ 2 _× N/_ 2. By way of example we discuss the requirements for simulation of the nanoparticle performed in the upcoming Sec. IV D. The object was sampled on a 1836 _×_ 1836 grid and partitioned depth wise into 45 slices. The minimum of 4 single-precision complex floating-point arrays for the conventional multislice approach would take up 107 MB of memory. Storing the transmission functions takes up a further 1.21 GB. The number of columns in the first scattering matrix _S_ 1 and the number of rows in the second scattering matrix _S_ 2 are both 325. Each of these S-matrix rows and columns has size equal to a 918 _×_ 918 grid so approximately 4.38 GB is required to store both matrices. This is a substantially greater amount of memory than is the case for the equivalent multislice calculation, though we note that with current technology most high-end graphics cards have 8 GB or greater of memory and this example calculation is for a larger simulation cell than has typically been attempted before. IV. RESULTS AND DISCUSSION A. Implementation of a scattering matrix based STEM-EELS simulation method In this sectio nwe report results from a Matlab implementation of the conventional multislice algorithm and the new PRISM algorithm. This implementation is included in the supplementary materials of this paper. It is included here to provide an accessible demonstration of the two algorithms introduced in the previous Sec. II; the code does not calculate the inelastic transition potentials _Hn_ 0 given by Eq. (10) but uses a single calculated _Hn_ 0 outputted from the _µ_ STEM code [10]. As a test case we calculate STEM-EELS images of a single transition ( _ℓ_ = 0 _, mℓ_ = 0) _→_ ( _ℓ_ <sup>_′_</sup> = 1 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>1)</sup> <sup>for</sup> <sup>ionization</sup> <sup>of</sup> <sup>the</sup> O 1s orbital (the K-edge) using both the conventional multislice method (red solid line) and the new PRISM approach (blue solid line) for thicknesses between 10 ˚A and 100 ˚A. A 2x2 tiling of the SrTiO3 unit cell (measuring 7.81 <sup>˚</sup> A _×_ 7.81 <sup>˚</sup> A) specimen and a 160x160 pixel grid was used, parameters which are likely to result in somewhat unconverged calculations but result in faster runtimes for both algorithms and so allow rapid comparison of results. For the purposes of simplifying comparison of conventional multislice and PRISM-EELS results thermal vibrations of the atoms where turned off for this calculation. The actual timings for each algorithm are compared in Fig. 3 with the relevant estimates from Eq. (15) for the multislice case using measured _T_ FFT, _T_ mult and _T_ addmult for a 160x160 pixel grid (red dashed line) and the sum of Eqs. (16) and (17) for the PRISM case (blue dashed line) showing that these equations give reasonable estimates of computation time for these simulations. Images for the PRISM and conventional multislice calculations are shown for the thicknesses 10, 50 and 80 <sup>˚</sup> A. We compare differences in the images using the following normalized root mean sum of squares error percentage error metric, These are tabulated in Fig. 4, both for the total image (Total error, _εT_ ) and in a 6 _×_ 6 pixel window centered on the Ti-O column (site error _εS_ ). Total error _εT_ is typically less than 0.01% and site error _εS_ is between 0.001% and 0.02%. This low a discrepancy confirms that both the PRISM and conventional multislice approaches indeed encapsulate the same scattering physics. The PRISM method is faster for all thicknesses and exhibits the pseudo-linear scaling predicted for this algorithm, whilst the scaling of the conventional multislice method is quadratic with thickness. B. Algorithm speed ups: calculating inelastic transitions on a cropped grid. Further speed-ups, with a modest penalty to accuracy, can be achieved by only evaluating the matrix multiplication in Eq. (11) in a fraction of the grid centered about the site location of the transition event _Hn_ 0( _r_ ) rather than over the whole simulation grid. To <u>1</u> _ε_ = 100 <u>(</u> <sup><u>�</u></sup> _<u>I</u>_ <u>MS(</u> _<u>R</u>_ <u>)</u> _<u>−</u>_ _<u>I</u>_ <u>PRISM)</u> <sup>2</sup> _._ (18) ( <sup><u>�</u></sup> _I_ MS( _R_ )) <sup>2</sup> (a)8 A <sup>˚</sup> (b)4 A <sup>˚</sup> (c)2 A <sup>˚</sup> 8 A <sup>˚</sup> (b)4 A <sup>˚</sup> (c)2 A <sup>˚</sup> 8 A <sup>˚</sup> (d) 4 A <sup>˚</sup> (c)2 A <sup>˚</sup> 8 A <sup>˚</sup> (d) _Hn_ 0( r ) 80 60 40 20 0 Multislice Multislice estimate PRISM PRISM estimate <u>1 hour</u> 0 20 40 60 80 100 Specimen thickness (Å) 2 A <sup>˚</sup> 1 A <sup>˚</sup> _εT_ = 4 _._ 6% _εS_ = 0 _._ 2% _εT_ = 27 _._ 9% _εS_ = 11 _._ 5% (e) Linescan of simulated STEM-EELS images 8 A <sup>˚</sup> 4 A <sup>˚</sup> 2 A <sup>˚</sup> Mn _−_ 3 _−_ 2 _−_ 1 0 1 2 3 Displacement ( A) <sup>˚</sup> (f) Calculation time of Eq. (10) 8 A <sup><u>˚</u></sup> 4 A <sup>˚</sup> 2 A <sup>˚</sup> 1 2 3 4 Cropping fraction FIG. 3. Scaling of computation time for standard multislice and PRISM approaches to the STEM-EELS image simulation with thickness for a SrTiO3 sample, calculation details are given in the text. <u>Thickness</u> <u>(</u> <sup>˚</sup> <u>A)</u> <u>Total</u> <u>error</u> <u>(</u> _<u>εT</u>_ <u>)</u> <u>Site</u> <u>error</u> <u>(</u> _<u>εS</u>_ <u>)</u> 20 0.00207 % 0.00186 % 50 0.00654 % 0.00855 % 80 0.00779 % 0.00783 % 100 0.01040 % 0.01580 % FIG. 4. Percentage error of PRISM calculation relative to multislice calculation for each thickness in Fig. ( 3) 1 _._ 00 0 _._ 75 0 _._ 50 0 _._ 25 0 _._ 00 1 _._ 5 1 _._ 0 0 _._ 5 0 _._ 0 demonstrate this optimization we simulate STEM-EELS images of a single Mn dopant occupying an Sr site midway through a 50 <sup>˚</sup> A thick SrTiO3 crystal. An Lshell transition for Mn is shown in Fig. 5 where Eq. (11) is (a) evaluated over the full grid (which has a side length of approximately 8 <sup>˚</sup> A), and in cropped regions with side-lengths measuring approximately (b) 4 <sup>˚</sup> A and (c) 2 ˚A. The size of these windows relative to the transition potential _Hn_ 0( _r_ ) is indicated in Fig. 5(d). Only the transitions ( _ℓ_ = 1 _, mℓ_ = 1) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>2)</sup> <sup>and</sup> ( _ℓ_ = 1 _, mℓ_ = _−_ 1) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>_−_</sup> <sup>2)</sup> <sup>for</sup> <sup>energy</sup> loses 1 eV over the ionization thrheshhold where included for the purpose of this demonstration. The percentage errors, relative to the image in Fig. 5(a), are written on images Fig. 5(b) and (c). Both the total image error _εT_ and error for the atomic site _εS_, which is evaluated only for a 1 <sup>˚</sup> A window around the Mn atomic position are indicated. The site error _εS_ is the most relevant metric for our purposes since elemental concentration mapping would typically proceed by integrating the STEM-EELS signal in a window centered on the atomic site and then relating the result to a pre-computed look-up table. A FIG. 5. The STEM-EELS image for a single L shell transition for a dopant Mn atom within a 100 <sup>˚</sup> A thick SrTiO3 crystal is calculated using different grids of side length (a) 8 <sup>˚</sup> A (b) 4 <sup>˚</sup> A and (c) 2 <sup>˚</sup> A to evaluate Eq. (11). The size of these windows is shown relative to the complex _Hn_ 0( _r_ ) transition potential in the rightmost panel of (d). (e) A linescan through the centre of the image, indicated with a red arrow in (c), shows differences in the tails of the image. (f) The time required to calculate Eq. (11) for each of the images in (a)-(c). site error of 0.2%, as in Fig. 5(b) is likely acceptable, though a site error of 11.4% as in Fig. 5(b) is likely too high, suggesting the cropping window chosen was too aggressive. Inspection of a linescan in Fig. 5(e) shows that in the image from Fig. 5(c) the long tails of the Mn transition potential _Hn_ 0 have been cropped out. Figure 5(f) details the significant speed up benefits of this approach. The speed ups are quadratic which is consistent with the array multiplication scaling quadratically with grid pixel size, as the calculation time of Eq. (11) is observed to roughly quarter with each halving of the window in Fig. 5(a). For this particular transition potential a cropping box with side length of 4 ˚A gives the best balance between calculation time speed up and loss of accuracy. <u>Thickness</u> <u>(</u> <sup>˚</sup> <u>A)</u> <u>Total</u> <u>error</u> <u>(</u> _<u>εT</u>_ <u>)</u> <u>Site</u> <u>error</u> <u>(</u> _<u>εS</u>_ <u>)</u> <u>Speed</u> <u>up</u> <u>(%)</u> 20 0.17 % 0.31 % 2.61 % 50 0.72 % 1.28 % 16.0 % 80 0.97 % 1.56 % 24.4 % <u>100</u> <u>1.00</u> <u>%</u> <u>1.53</u> <u>%</u> <u>21.3</u> <u>%</u> FIG. 6. Percentage errors in the PRISM STEMEELS calculations with the inverse multislice optimization relative to conventional multislice calculations as well as the percentage speed up relative to PRISM STEM-EELS calculations without the inverse multislice optimization. C. Algorithm speed ups: inverse multislice In the PRISM STEM-EELS algorithm described in Sec. IV A, the scattering matrix _S_ 2 which propagates the inelastically scattered electron wave _ψn_ from the depth at which ionization occurred to the exit surface is calculated from scratch for each thickness _iz_ . This is a duplication of work, since _S_ 2 was at some point calculated for all thicknesses in the initialization step _S_ 2 = ( _M_ ) <sup>_T_</sup> ) <sup>_nz_</sup> . One approach would be to store _S_ 2 for each slice, which is not practical for most calculations given the size of the scattering matrix (a complex numbered array of size _πα_ <sup>2</sup> _L_ <sup>2</sup> _/f_ <sup>2</sup> _×_ _N ×_ _N_ ). A second approach which sacrifices some accuracy at the expense of calculation time would be to perform the inverse of the multislice operation ( _M_ <sup>_−_</sup> <sup>1</sup> ) to retreat the scattering matrix _S_ 2 a single slice. The inverse multislice operation is defined _M_ <sup>_−_</sup> <sup>1</sup> (∆ _z_ ) _≡_ _F_ <sup>ˆ</sup> h _→_ r _e_ <sup>_−iσV_</sup> <sup>(</sup> <sup>_r_</sup> <sup>)∆</sup> <sup>_z_</sup> _F_ <sup>ˆ</sup> r _→_ g _e_ <sup>_iπλ_</sup> <sup>∆</sup> <sup>_zg_</sup> <sup>2</sup> <sup>_δ_</sup> <sup>_gh_</sup> _._ (19) Relative to the forward multislice operation defined in Eq. (6) the order of FFT, multiplication, inverse FFT and propagation steps has been reversed and the complexconjugate of the transmission function and propagation operators is used instead. This can introduce some error since a forward multislice iteration can cause electrons to scatter to high angles outside the bandwidth limit of the calculation and these electrons will not be recovered with an inverse operation. For the simulation of the SrTiO3 in Sec. IV A we report the percentage errors, both total error _εT_ and site error _εS_, in Fig. 6. For this case, the errors relative to conventional multislice calculations are found to be around 1%, which is small whilst the speed up is around 20% relative to PRISM calculations for some of the thicker cases considered without the inverse multislice optimization. D. Calculations for heterogeneous nanometer scale objects In Sec. IV A we showed that using the PRISM approach for STEM-EELS simulations resulted in computation times that scale more favourably with specimen thickness and that calculation time can be further reduced by evaluating the inelastic scattering cross section, Eq. (11), only in a fraction of the calculation grid centered on the transition of interest and using the inverse multislice optimization. In this section we demonstrate how these improvements, taken together, allow calculations of much larger objects than has previously been feasible, in this case a Fe-Pt nanoparticle that is approximately 80 <sup>˚</sup> A in diameter. The atomic coordinates for this nanoparticle were reconstructed from a STEM-HAADF tomography tilt series in Ref. [16] and the object contains 6,569 Fe atoms and 16,627 Pt atoms. The projected potential of the nanoparticle is plotted in Fig. 7(a) with Pt potential shown in blue and Fe atoms shown red. The potential resulting from only the Fe atoms is plotted seperately in Fig. 7(b). Both potentials have been convolved with a Gaussian function ( _σ_ = 2 pixels) to make viewing easier. We consider the ( _ℓ_ = 1 _, mℓ_ = 0) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ We consider the ( _ℓ_ = 1 _, mℓ_ = 0) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>1),</sup> ( _ℓ_ = 1 _, mℓ_ = 0) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>_−_</sup> <sup>1),</sup> <sup>(</sup> <sup>_ℓ_</sup> <sup>=</sup> <sup>1</sup> <sup>_, mℓ_</sup> <sup>=</sup> ( _ℓ_ = 1 _, mℓ_ = 0) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>_−_</sup> <sup>1),</sup> <sup>(</sup> <sup>_ℓ_</sup> <sup>=</sup> <sup>1</sup> <sup>_, mℓ_</sup> <sup>=</sup> 1) _→_ ( _ℓ_ <sup>_′_</sup> = 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>2)</sup> <sup>and</sup> <sup>(</sup> <sup>_ℓ_</sup> <sup>=</sup> <sup>1</sup> <sup>_, mℓ_</sup> <sup>=</sup> <sup>_−_</sup> <sup>1)</sup> <sup>_→_</sup> <sup>(</sup> <sup>_ℓ′_</sup> <sup>=</sup> 2 _, m_ <sup>_′_</sup> _ℓ_ <sup>=</sup> <sup>_−_</sup> <sup>2)</sup> <sup>transitions</sup> <sup>which</sup> <sup>between</sup> <sup>them</sup> <sup>account</sup> <sup>for</sup> just over 90% of total transitions for energy loses 1 eV over the ionization threshold Fe L edge. For the PRISMEELS calculation, we use a PRISM interpolation factor of 9, such that each individual probe will be effectively calculated on a 10 <sup>˚</sup> A _×_ 10 <sup>˚</sup> A grid, a probe step of 0.246 <sup>˚</sup> A (nyquist sampling) and evaluate the inelastic scattering cross section [Eq. (11)] on a 4 <sup>˚</sup> A _×_ 4 <sup>˚</sup> A grid (which was seen to give the best trade-off between calculation speed and accuracy in Fig. 5). Then, Eq. (16) and Eq. (17) estimate the run-time of such a calculation to be 2 days. The results of this PRISM STEM-EELS simulation, which in reality took 16 hours, are shown in Fig. 7(c). We also estimate the computation time of a conventional multislice simulation using Eq. (15) for the full nanoparticle with the same probe step size and 2 <sup>˚</sup> A slices along the beam direction. If further approximations are made to use only 1/9 of the grid for probe propagation and only evaluating transitions within 4 <sup>˚</sup> A of the probe (i.e. those that we deem to have a reasonable chance of being excited), multislice simulation could be run in about 87 days for a single frozen phonon pass [26]. The simulated image in Fig. 7(c) is qualitatively similar to the Fe potential Fig. 7(b) but artifacts due to strong scattering of the beam are evident. In particular, the center of the nanoparticle has a lower intensity than would be expected from the density of Fe, due to the strong high-angle scattering of the electron beam from the heavier Pt atoms. Close inspection of many of the Fe columns in this region reveals small regions of lower intensity, giving rise to a “donut” or “volcano” structure which is evident in the zoomed region shown in the bottom left hand corner of Fig. 7(c). These features result from inelastic scattering of beam electrons by the heavier Pt atoms, and to a smaller extent by the Fe atoms, to high angles outside the acceptance angle of (a) Projected potential (b) Fe Projected potential (c) Fe EELS Intensity (d) Fe EELS / BF Intensity Potential [kV·Å] 5 2 Pt Fe i nm (e) 0 0 Annular Dark Field (f) Bright Field [0-20 mrads] [>60 mrad] 0.1 1.0 Total Projected Potential 5 0.0 0.0 [kV·Å] 0 Fe Projected Potential [keV·Å) FIG. 7. (a) The projected electrostatic potential for the FePt nanoparticle reconstructed in Ref. [16] with Pt atoms indicated in blue and Fe atoms in red, the Fe projected potential is shown separately in (b). The STEM-EELS simulation of the structure in (c), which is corrected by dividing by an incoherent bright-field image in (d) as suggested in Ref. [25]. The annular dark field and incoherent bright-field images are shown in (e) and (f). Figures (g) and (h) plot the relationship between Fe Projected potential and STEM-EELS intensity, averaged in 5 _×_ pixel windows, for (c) and (d) respectively. the EELS detector when the beam is scanned atop an atomic column. Even if these scattered electrons do cause the ionization of an Fe atom they are unlikely to finally contribute toward the final STEM-EELS image. A detailed explanation of this phenomenon can be found in Ref. [25] along with a strategy to obtain an image more amenable to direct interpretation: dividing by a simultaneously recorded STEM incoherent bright field image with detector of equal angular extent to the EELS aperture. This image is displayed in Fig. 7(d) which is indeed observed to be a more faithful representation of the projected electrostatic potential due to Fe in Fig. 7(b). The STEM annular dark field image, formed with a detector of inner angle 60 mrad and the incoherent bright-field image are shown in Figs. 7(e) and (f) for reference. STEM-EELS simulations of objects of this size allow statistical analysis of STEM-EELS images as shown in Fig. 7(g), which plots the integrated potential just for the Fe atoms (a proxy for the projected Fe density) against the STEM-EELS intensity in for each 5 _×_ 5 pixel region in the image. The colour of each point in the scatter plot corresponds to the total projected potential from _both_ Fe and Pt with reference to the colorbar in the figure. The relationship between STEM-EELS intensity and projected Fe density is approximately linear. However there are noticeable systematic deviations with points falling below the trendline tending to be those with a higher total projected potential - a clear demonstration of how strong elastic and inelastic scattering of the beam complicates direct interpretation of the STEM-EELS maps. These systematic errors are mostly remedied by the division of the incoherent bright-field image, which gives an improvement in the Pearson correlation score from 0.935 to 0.976. This correlation value measures the quality of the fitted trendline, showing that there is less systematic deviation from the linear relationship of Fe density and EELS intensity after applying the BF correction step. This insight demonstrates how our faster STEM-EELS algorithm, by virtue of its better scalability to larger simulation grids, can give a valuable insights into interpretation of heterogenous nanoscale STEMEELS maps. V. CONCLUSION We have developed a new algorithm for simulating STEM-EELS results that economises on the number of multislice iterations required. This algorithm should run faster in general as the calculation time typically scales linearly with specimen thickness, whilst the conventional algorithm scales quadratically with specimen thickness. We have shown that with a some penalty to accuracy, even faster calculation times are possible. Finally, we have also shown that our algorithm can be used to simulate larger nanoscale objects than was previously the case. VI. ACKNOWLEDGMENTS The authors thank Les Allen and Scott Findlay for helpful discussions and proofreading during the preparation of this manuscript. Work at the Molecular [1] H. L. Xin, J. A. Mundy, Z. Liu, R. Cabezas, R. Hovden, L. F. Kourkoutis, J. Zhang, N. P. Subramanian, R. Makharia, F. T. Wagner, _et_ _al._, Atomic-resolution spectroscopic imaging of ensembles of nanocatalyst particles across the life of a fuel cell, Nano letters 12, 490 (2011). [2] J. A. Mundy, Q. Mao, C. M. Brooks, D. G. Schlom, and D. A. Muller, Atomic-resolution chemical imaging of oxygen local bonding environments by electron energy loss spectroscopy, Applied Physics Letters 101, 042907 (2012). [3] J. A. Mundy, Y. Hikita, T. Hidaka, T. Yajima, T. Higuchi, H. Y. Hwang, D. A. Muller, and L. F. Kourkoutis, Visualizing the interfacial evolution from charge compensation to metallic screening across the manganite metal–insulator transition, Nature communications 5, 3464 (2014). [4] R. R. Zamani, F. S. Hage, S. Lehmann, Q. M. Ramasse, and K. A. Dick, Atomic-resolution spectrum imaging of semiconductor nanowires, Nano letters 18, 1557 (2017). [5] R. F. Egerton, _Electron_ _energy-loss_ _spectroscopy_ _in_ _the_ _electron_ _microscope_ (Springer Science & Business Media, 2011). [6] D. A. Muller, Y. Tzou, R. Raj, and J. Silcox, Mapping sp <sup>2</sup> and sp <sup>3</sup> states of carbon at sub-nanometre spatial resolution, Nature 366, 725 (1993). [7] D. A. Muller, L. F. Kourkoutis, M. Murfitt, J. Song, H. Hwang, J. Silcox, N. Dellby, and O. Krivanek, Atomicscale chemical imaging of composition and bonding by aberration-corrected microscopy, Science 319, 1073 (2008). [8] M. Bosman, V. J. Keast, J. L. Garcia-Munoz, A. J. D’Alfonso, S. D. Findlay, and L. J. Allen, Twodimensional mapping of chemical information at atomic resolution, Physical Review Letters 99, 086102 (2007). [9] L. J. Allen, D. C. Bell, T. W. Josefsson, A. E. C. Spargo, and S. L. Dudarev, Inner-shell ionization cross sections and aperture size in electron energy-loss spectroscopy, Physical Review B 56, 9 (1997). [10] L. J. Allen, S. D. Findlay, _et_ _al._, Modelling the inelastic scattering of fast electrons, Ultramicroscopy 151, 11 (2015). [11] I. Lobato, S. Van Aert, and J. Verbeeck, Progress and new advances in simulating electron microscopy datasets using MULTEM, Ultramicroscopy 168, 17 (2016). [12] C. Dwyer, Simulation of scanning transmission electron microscope images on desktop computers, Ultramicroscopy 110, 195 (2010). [13] C. Dwyer, The role of symmetry in the theory of inelastic high-energy electron scattering and its application to Foundry was supported by the Office of Science, Office of Basic Energy Sciences, of the U.S. Department of Energy under Contract No. DE-AC02-05CH11231. All authors acknowledge additional support from the U.S. Department of Energy Early Career Research Program. VII. BIBLIOGRAPHY atomic-resolution core-loss imaging, Ultramicroscopy 151, 68 (2015). [14] C. Ophus, A fast image simulation algorithm for scanning transmission electron microscopy, Advanced structural and chemical imaging 3, 13 (2017). [15] A. Pryor, C. Ophus, and J. Miao, A streaming multi GPU implementation of image simulation algorithms for scanning transmission electron microscopy, Advanced structural and chemical imaging 3, 15 (2017). [16] Y. Yang, C.-C. Chen, M. C. Scott, C. Ophus, R. Xu, A. Pryor, L. Wu, F. Sun, W. Theis, J. Zhou, _et_ _al._, Deciphering chemical order/disorder and material properties at the single-atom level, Nature 542, 75 (2017). [17] D. Van Dyck, Image calculations in high-resolution electron microscopy: problems, progress, and prospects, in _Advances_ _in_ _electronics_ _and_ _electron_ _physics_, Vol. 65 (Elsevier, 1985) pp. 295–355. [18] E. J. Kirkland, _Advanced_ _computing_ _in_ _electron_ _microscopy_ (Springer Science & Business Media, 2010). [19] H. Bethe, Theorie der beugung von elektronen an kristallen, Annalen der Physik 392, 55 (1928). [20] C. J. Humphreys, The scattering of fast electrons by crystals, Reports on Progress in Physics 42, 1826 (1979). [21] We use the following convention, a forward Fourier transform is given by _ψ_ ˆ( _g_ ) = _F_ ˆ _r→g_ _ψ_ ( _r_ ) = - _ψ_ ( _r_ ) _e_ <sup>_−_</sup> <sup>2</sup> <sup>_πi_</sup> <sup>_r_</sup> <sup>_·_</sup> <sup>_g_</sup> _d_ _r_ and an inverse Fourier transform is given by _ψ_ ( _r_ ) = _F_ <sup>ˆ</sup> _g_ <sup>_−_</sup> _→_ <sup>1</sup> _r_ <sup>_ψ_</sup> <sup>ˆ(</sup> <sup>_r_</sup> <sup>) =</sup> - _ψ_ ˆ( _g_ ) _e_ 2 _πi_ _r_ _·_ _g_ _d_ _r_ . given by _ψ_ ( _r_ ) = _F_ <sup>ˆ</sup> _g_ <sup>_−_</sup> _→_ <sup>1</sup> _r_ <sup>_ψ_</sup> <sup>ˆ(</sup> <sup>_r_</sup> <sup>) =</sup> - _ψ_ ˆ( _g_ ) _e_ 2 _πi_ _r_ _·_ _g_ _d_ _r_ . [22] S. D. Findlay, L. J. Allen, M. P. Oxley, and C. J. Rossouw, Lattice-resolution contrast from a focused coherent electron probe. part II, Ultramicroscopy 96, 65 (2003). [23] D. K. Saldin and P. Rez, The theory of the excitation of atomic inner-shells in crystals by fast electrons, Philosophical Magazine B 55, 481 (1987). [24] M. P. Oxley and L. J. Allen, Delocalization of the effective interaction for inner-shell ionization in crystals, Physical Review B 57, 3273 (1998). [25] Y. Zhu, A. Soukiassian, D. G. Schlom, D. A. Muller, and C. Dwyer, Towards artifact-free atomicresolution elemental mapping with electron energyloss spectroscopy, Applied Physics Letters 103, 141908 (2013). [26] A full multislice calculation without these additional approximations is estimated to take 170 years for one frozen phonon pass. _g_ <sup>_−_</sup> _→_ <sup>1</sup> _r_ <sup>_ψ_</sup> <sup>ˆ(</sup> <sup>_r_</sup> <sup>) =</sup>

섹션 본문 54문단 · 36,464자

(제목 없음)

1Strong multiple scattering of the probe in scanning transmission electron microscopy (STEM) means image simulations are usually required for quantitative interpretation and analysis of elemental maps produced by electron energy-loss spectroscopy (EELS). These simulations require a full quantum-mechanical treatment of multiple scattering of the electron beam, both before and after a core-level inelastic transition. Current algorithms scale quadratically and can take up to a week to calculate on desktop machines even for simple crystal unit cells and do not scale well to the nano-scale heterogeneous systems that are often of interest to materials science researchers. We introduce an algorithm with linear scaling that typically results in an order of magnitude reduction in compute time for these calculations without introducing additional error and discuss approximations that further improve computational scaling for larger scale objects with modest penalties in calculation error. We demonstrate these speed-ups by calculating the atomic resolution STEM-EELS map using the L-edge transition of Fe, for of a nanoparticle 80Å in diameter in 16 hours, a calculation that would have taken at least 80 days using a conventional multislice approach.

2(Dated: May 7, 2022) Strong multiple scattering of the probe in scanning transmission electron microscopy (STEM) means image simulations are usually required for quantitative interpretation and analysis of elemental maps produced by electron energy-loss spectroscopy (EELS). These simulations require a full quantum-mechanical treatment of multiple scattering of the electron beam, both before and after a core-level inelastic transition. Current algorithms scale quadratically and can take up to a week to calculate on desktop machines even for simple crystal unit cells and do not scale well to the nano-scale heterogeneous systems that are often of interest to materials science researchers. We introduce an algorithm with linear scaling that typically results in an order of magnitude reduction in compute time for these calculations without introducing additional error and discuss approximations that further improve computational scaling for larger scale objects with modest penalties in calculation error. We demonstrate these speed-ups by calculating the atomic resolution STEM-EELS map using the L-edge transition of Fe, for of a nanoparticle 80Å in diameter in 16 hours, a calculation that would have taken at least 80 days using a conventional multislice approach.

I. INTRODUCTION

3The presence of even small numbers of dopant atoms in a material can have a disproportionate effect on that material's properties, and thus characterization techniques that perform nanoscale chemical and elemental mapping are important investigative tools in materials science.

4Furthermore, the presence of extended, non-periodic defects, interfaces, and nanoscale precipitate phases either naturally occurring or engineered for functionality requires quantitative atomic resolution analysis of fields of view that are substantially larger than crystal unit cells [1][2][3][4].

5In scanning transmission electron microscopy electron energy-loss spectroscopy (STEM-EELS) a focused probe, which can be smaller than the width of an atom in state-of-the-art instruments, is raster scanned across a material, and the energy-loss spectrum is recorded for each scan position of the probe. Integrating regions of the spectra that correspond to energy-losses characteristic of ionization of a particular atomic element allows for mapping the positions and concentrations of elements within the specimen [5]. Additionally, analysis of the fine structure of the energy loss spectrum can reveal modified valence state of the elements due to bonding [2,6,7].

6A complicating factor for STEM-EELS interpretation is that strong multiple scattering of the electron probe before and after exciting an ionization event means that for quantitative work, such as measuring chemical concentrations, STEM-EELS results often need to be interpreted by performing forward simulations of an assumed structure [8].

7The simulations typically combine either multislice or Bloch wave simulations with inelastic scattering cross-sections for different elements of interest [8][9][10][11]. Currently, STEM-EELS image simulations of simple crystalline structures can require up to a week of calculation time, even using graphical processing unit (GPU) accelerated simulation codes [12,13]. Algorithms with much faster run times that scale better with system size are required to simulate large objects, or those with more heterogenous chemical properties than simple crystals, such as samples containing dopants, extended defects, interfaces, or entire nanoparticles. Recent improvements in the readout speed of electron spectrometers adds additional impetus to efforts to speed up STEM-EELS simulations, as faster spectrometers allow for more routine imaging of much larger systems in STEM-EELS at atomic resolution.

8A recent innovation in the field of electron microscope image simulation is the development of the plane wave reciprocal-space interpolated scattering matrix (PRISM) algorithm [14]. Instead of the traditional approach of calculating the propagation of the beam for each scan position in a STEM raster independently, the PRISM method uses the multislice algorithm to calculate the scattering matrix for a particular electron microscope experiment and stores it in memory. The scattering matrix, which propagates components of the electron illumination through the imaging object, can then be rapidly applied to the illumination wave function for each scan position to compute the output wave [15].

9In this paper, we extend the PRISM algorithm to the problem of STEM-EELS image simulation, and demonstrate substantial speed up in calculation time. This paper is structured as follows: in Section II the underlying physics of STEM-EELS simulation are reviewed and we discuss both the scattering matrix operator and the multislice algorithm for numerical simulation of STEM images. In Section III we detail algorithmic implementation of both the conventional multislice approach and our novel PRISM approach to STEM-EELS calculation and discuss the predicted scaling of the run-time of both algorithms with different parameters such as simulation grid size and specimen thickness. Section IV shows results simulated using the new method, and compares accuracy and speedup relative to the conventional multislice approach. Two further optimizations are discussed in this section: evaluating inelastic transitions on a cropped grid and using an inverse multislice operation to economize on the total number of multislice operations. These optimizations are shown to typically induce minimal errors while offering substantial reductions in compute time. This section is concluded with a calculation of the STEM-EELS image for an illustrative large heterogeneous object, in this case a FePT nanoparticle roughly 80Å in diameter [16].

II. THEORY

10In this section we briefly review the underlying physical theories behind the simulation of a relativistic electron propagating through a specimen of condensed matter. We introduce the transition potential to simulate the inelastic scattering of the probe electron due to the ionization of an electron bound to an atom within the specimen. Existing methods calculate the propagation of the electron probe to the plane of ionization and subsequent propagation of each inelastically scattered wave separately for each scan position and each inelastic transition of interest. We outline how we can calculate and store the scattering matrix operator that performs all of these steps and then rapidly apply it to all probes in the STEM raster.

11We begin with the Schrödinger equation in reciprocal space for a fast electron interacting with the electrostatic potential of a specimen of condensed matter [17],

12Theψ g (z) are Fourier coefficients of the fast electron wave function as a function of depth z in the specimen and Fourier space coordinates g (magnitude g) and h in the plane perpendicular to the direction of propagation. The Fourier coefficients of the electrostatic potential are denoted byV g . The interaction constant σ = 2πm e eλ/h 2 , where m e and λ are the (relativistically corrected) mass and wavelength of the electron, e is the electron charge and h is Planck's constant. Equation (1) is a set of coupled linear equations for which the solution can be written as the matrix-vector product

13where δ gh is the Kronecker delta and the bold ψ is a vector containing the Fourier coefficients of the illuminationψ h . For STEM the illumination is a coherent focused probe with functional form

14Here A(g) is the aperture function, a top-hat function with radius equal to the convergence semi-angle of the probe, and χ(g) is the aberration function which takes into account probe aberrations such as defocus, spherical aberration and astigmatism [18].

15Efficient numerical calculation of Eq. (2) typically proceeds through diagonalisation of the scattering matrix S (the Bloch wave method [19,20]), or through a split-step evaluation of the action of S on ψ, with the specimen first split into n slices in the beam direction and the operator involving the propagation matrix elements −πλg 2 δ gh z/n z and that involving the specimen interaction matrix elements σV g−h z/n z applied in alternating sequence:

16This is called the "multislice method" in the electron microscopy literature [17] and has become the most popular method of evaluation of Eq. (2). This is because the e iσV g−h z/nz operator (referred to as the transmission function) is diagonal in real space and a fast Fourier transform (an FFT, which we shall represent with the symbolF r→g and it's inverse operation asF −1 g→r ) [21] can be used to efficiently transform between real and reciprocal space,

17The two-dimensional FFT has a favourable 2N 2 log N scaling, where N is the number of Fourier coefficients g included in the simulation. For brevity we will define the following operator as short hand for a single multislice iteration, M(∆z) ≡ e −iπλz/nzg 2 δ ghF r→h e iσV (r)z/nzF −1 g→r .

18By comparison the Bloch wave approach, which solves Eq. (2) through diagonalisation of a matrix operator containing the coefficients within the exponent of Eq. (2), has the less favourable N 3 scaling [22]. A more in-depth explanation of the multislice algorithm with details on it's implementation may be found in Ref. [18].

19A recent innovation in STEM image simulation is the PRISM (plane-wave reciprocal-space interpolated scattering matrix) algorithm, in which only the rows of the matrix operator S(z), from Eq. (2), corresponding to the Fourier coefficients present in the illumination vector ψ g are calculated using the multislice algorithm Eq. (5) and stored in memory. As will be explained in the next section, this approach can be used to accelerate the calculation of STEM-EELS images because the wavefunctions for the inelastically scattered electron can be rapidly propagated to the exit surface with the stored operator. This is instead of having to perform the multislice operation separately for each seperate probe position and inelastic scattering event in the conventional multislice approach.

20For an inelastic transition at depth z, the scattered wave function ψ n (r, z), where n is shorthand for an excited quantum state, is given by the product of the elastic wavefunction ψ 0 (r, z) and an inelastic transition potential for ionization H n0 (r, z),

21The inelastic transition potential is given by Ref. [23],

22where u 0 (r ) is the wave function of an electron in a bound state of the specimen and u n (κ, r ) is the wavefunction of that electron excited to a continuum (free) state with wave vector κ. The wave function in the continuum state is typically expanded in a spherical harmonic basis,

23where the Y ,m are spherical harmonic functions, , m , and m are the angular momentum and azimuthal angular momentum quantum numbers of the bound and continuum states and δ is a phase factor determined by fitting to an asymptotic form of the free state [23,24]. To a good approximation, only a small number of the different possible ( , m ) need be included in a converged calculation [13]. The kernel in Eq. (8) is the Coulomb potential, which mediates interactions between the fast electron and the sample, and 0 is the permittivity of free space. Calculations of Eq. (8) used in this paper are based on a solution using an angular momenta basis for u 0 and u n which is derived in Ref. [23], the numerical implementation of which is discussed in Ref. [24].

24We may simulate a STEM-EELS image by then propagating the wave function for the inelastically scattered electron, ψ n from Eq. (8), to the exit surface using Eq. (2). We represent this process mathematically

25Here H n0 is a matrix containing the values of H n0 (r) on its diagonals and the matrix operator S n we have defined in Eq. (11) for imaging of a single inelastic transition. Equation (10) must be solved for each inelastic transition of interest. Figure 1 is a diagramatic representation of Eq. (11), Fig. 1(a) shows how S 1 maps Fourier coefficients of the probe wave function to wave functions at the depth of the inelastic transition (b) where we multiply these wave functions by the ionization transition potentials in Fig.1(c) and then propagate them using S 2 , Fig.1(d), to points within the EELS aperture in Fig.1(e).

III. ALGORITHMS

26In this section we outline the details of the implementation of the simulation algorithms and write down estimates for the runtimes of each algorithm. We start with the algorithm for calculating STEM-EELS images using the multislice method: Loop over probe positions for x=1 to n x do for y =1 to n y do Initialise illumination wave function ψ(g, 0) = A(g)e −2πi(x,y)·k Loop over slices of specimen for i z = 1 to n z − 1 do Loop over inelastic transitions within slice i z for n = 1 to n states,i do Calculate inelastically scattered electron

27Propagate ψ n to exit surface of specimen for i z = i z to n z do Multislice to advance ψ n one slice ψ n (g, iz ) = M(∆z)ψ n (h, iz − 1) end for Integrate wavefunction over detector function D(g) and add contribution to STEM image I(x, y) = I(x, y) + |ψ n (g, n z )| 2 D(g)dg end for Multislice to advance ψ 0 one slice ψ(g, iz + 1) = M(∆z)ψ(h, iz) end for end for end for Assuming a constant number of inelastic transitions n states at each slice, which is not true in general but is a useful assumption for estimating the computational complexity of the above algorithm, this algorithm requires

28= n states n z (n z − 1)/2 + n z

29multislice operations for each probe position. The arithmetic sum identity n−1 i=0 i = n(n − 1)/2 has been invoked in the above equation.

30In our proposed PRISM STEM-EELS algorithm we calculate two scattering matrices at each slice, the first to propagate the probe wave function to the slice of the inelastic transition and the second to propagate the wave function for the inelastically scattered electron to the exit surface.

31Initialize scattering matrices

32Loop through transitions within slice i z for n = 1 to n states,iz do Calculate Eq. (11) S n,iz = S 2 FH n0 F −1 S 1 Apply S n,iz to each illumination vector in the raster scan and add the resulting amplitude to the STEM image I(x, y) = I(x, y) + |S n,iz ψ(g, x, y)| 2 end for

33An important point to note is that, as defined here, the rows of S 1 correspond to points in reciprocal space within the probe forming aperture and the columns correspond to real space points in the specimen plane, so S 1 is generally a non-square matrix due to the different sampling of these two planes. Each column can be calculated by using multislice to propagate the plane wave components that fall withing the probe forming aperture through the specimen, as shown in Fig. 1 [14]. Conversely, the rows of S 2 correspond to real space points in the specimen plane and the columns correspond to points within the EELS detector. The most efficient way to calculate S 2 is to propagate plane wave components with transverse momenta within the EELS acceptance aperture back through the specimen. This is formally the transpose of the multislice operation defined in Eq. (6), which is represented by a superscript T in the above algorithm description, and is given by The PRISM STEM-EELS algorithm requires n z * [N 1 + N 2 (n z +1)] multislice operations where N 1 is the number of rows in matrix S 1 , which correspond reciprocal space points in the illumination, and N 2 is the number of columns in matrix S 2 , which correspond to reciprocal space points in the EELS detector. Since the PRISM STEM-EELS simulation algorithm is typically more economical with the required number of multislice iterations, the matrix multiplication step, evaluating Eq. (10), tends to be the rate limiting step. This means that although the calculation time is technically quadratic in n z , in many cases run time scaling is instead predominantly determined by the number of unique transitions. If we further assume that the number of transitions in each slice is roughly constant then the scaling will be roughly linear with the number of slices n z . In the upcoming Sec. IV C, we will introduce an approximation that makes the scaling truly linear with n z .

34Comparing the run time of the PRISM STEM-EELS algorithm to the conventional multislice approach requires accounting for the relative speed of FFTs to array multiplication. To explore this question we make the approximation that the computation time of a two-dimensional FFT can be parametrized as T FFT = AN 2 log N and that of an array multiplication (as used in the multislice operation) can be parametrized as T mult = BN 2 and that of an array multiplication and summation step (as would occur in a step of a matrix multiplication where a single row and column are multiplied and added to the final result) can be parametrized T addmult = CN 2 .

35Here A, B and C are constants and N is the size of the (square) grid using in computation. Measurements of T FFT , T mult and T addmult for different values of N for Matlab are plotted in Fig. 2 for which values of A = 1.0 × 10 −9 , B = 9.0 × 10 −9 and C = 3.8 × 10 −9 were fitted (fitted functions are plotted with dashed lines). However, for the most accurate estimates of the runtime of calculations at a specific pixel grid size N , in the examples provided in this paper we will simply measure T FFT , T mult and T addmult at that pixel grid size N . We also note that the platform and compiler can impact the relative speeds of different algorithms.

36We assume a simulation object measuring L × L in the plane perpendicular to beam propagation and of thickness z, which we divide into n z = z/∆z slice. This object would require a STEM scan with a Nyquist sampling of (4Lα) 2 probe positions, where α is the probe forming aperture in units of inverse length [12]. Assuming a constant number of ionization states at each slice, not true in general as atoms of the element of interest might be not be uniformly dispersed throughout the sample, but a useful approximation for the current timing estimates, the computation time for the conventional multislice approach will be given by

37The speed of the PRISM STEM-EELS calculation will depend on the size of the matrices used. For matrix S 1 , the number of rows will be depend on the sampling of the probe forming aperture function A(q) in Eq. (3) which covers a reciprocal space area of πα 2Å−2 . A simulation cell size of L implies a natural reciprocal space sampling of L pixels per unit of inverse length for the illumination [18] though this can be further reduced to L/f by using a PRISM interpolation factor of fan optimization described in detail in Ref. [14]. The number of rows in the scattering matrix will then be given by πα 2 L 2 /f 2 . By similar reasoning, the second scattering S 2 matrix, which propagates the inelastically scattered electrons from the plane of ionization to the EELS aperture, will have a number of columns equal to πβ 2 L 2 /f 2 where β is the diffraction space size of the EELS aperture. The time required for multislice iterations necessary for the PRISM algorithm is therefore given by

38The number of columns in S 1 and the number of rows in S 2 will be given by the square of half total number of pixels in the simulation cell (N/2) 2 . These matrices need only have a side-length of N/2 since the output from a multislice calculation is bandwidth limited either to either 1/2 (as in the implementation used for this investigation) or 2/3 of the total array size and only spatial frequencies within this band-limit need be kept in the scattering matrix. For more detail on the need for this bandwidth limiting approach the reader is referred to Sec. 6.8 of Ref. [18]. With reference to the STEM-EELS simulation using scattering matrices we must sum the computation times of the multislice iterations and the matrix multiplications,

39Where the first term is the time required to calculate the matrix multiplication of S 1 H n0 in Eq. (10), the second term the time required to do the second matrix multiplication (S 1 H n0 )S 2 in Eq. (10) and the third term the time required to do the matrix multiplication S n Ψ for each probe ψ in the STEM raster in Eq. (11). In the following section we discuss a MATLAB implementation of the STEM-EELS simulation algorithms discussed show that the above expressions, Eqs. (15), (16) and (17), are correct estimators of the runtime of these calculations.

40Memory requirements for both algorithms also merit discussion. At a minimum the multislice algorithm requires only arrays containing the Fresnel free-space propagator, transmission function, probe and ionization transition potential, so 4 N × N complex valued arrays. If there is sufficient memory, as is the case for most simulations, the transmission functions for all the slices will also be stored rather than calculated on the flyan additional n z N × N complex arrays. The PRISM STEM-EELS algorithm adds the requirement that two scattering matrices be stored in memory, an additional πα 2 /f 2 + πβ 2 /f 2 arrays of size N/2 × N/2. By way of example we discuss the requirements for simulation of the nanoparticle performed in the upcoming Sec. IV D.

41The object was sampled on a 1836×1836 grid and partitioned depth wise into 45 slices. The minimum of 4 single-precision complex floating-point arrays for the conventional multislice approach would take up 107 MB of memory. Storing the transmission functions takes up a further 1.21 GB. The number of columns in the first scattering matrix S 1 and the number of rows in the second scattering matrix S 2 are both 325. Each of these S-matrix rows and columns has size equal to a 918×918 grid so approximately 4.38 GB is required to store both matrices. This is a substantially greater amount of memory than is the case for the equivalent multislice calculation, though we note that with current technology most high-end graphics cards have 8 GB or greater of memory and this example calculation is for a larger simulation cell than has typically been attempted before.

IV. RESULTS AND DISCUSSION

42A. Implementation of a scattering matrix based STEM-EELS simulation method

43In this sectio nwe report results from a Matlab implementation of the conventional multislice algorithm and the new PRISM algorithm. This implementation is included in the supplementary materials of this paper. It is included here to provide an accessible demonstration of the two algorithms introduced in the previous Sec. II; the code does not calculate the inelastic transition potentials H n0 given by Eq. (10) but uses a single calculated H n0 outputted from the µSTEM code [10]. As a test case we calculate STEM-EELS images of a single transition ( = 0, m = 0) → ( = 1, m = 1) for ionization of the O 1s orbital (the K-edge) using both the conventional multislice method (red solid line) and the new PRISM approach (blue solid line) for thicknesses between 10 A and 100Å. A 2x2 tiling of the SrTiO3 unit cell (measuring 7.81Å × 7.81Å) specimen and a 160x160 pixel grid was used, parameters which are likely to result in somewhat unconverged calculations but result in faster runtimes for both algorithms and so allow rapid comparison of results. For the purposes of simplifying comparison of conventional multislice and PRISM-EELS results thermal vibrations of the atoms where turned off for this calculation. The actual timings for each algorithm are compared in Fig. 3 with the relevant estimates from Eq. (15) for the multislice case using measured T FFT , T mult and T addmult for a 160x160 pixel grid (red dashed line) and the sum of Eqs. (16) and (17) for the PRISM case (blue dashed line) showing that these equations give reasonable estimates of computation time for these simulations. Images for the PRISM and conventional multislice calculations are shown for the thicknesses 10, 50 and 80Å. We compare differences in the images using the following normalized root mean sum of squares error percentage error metric, ε = 1 100

44These are tabulated in Fig. 4, both for the total image (Total error, ε T ) and in a 6 × 6 pixel window centered on the Ti-O column (site error ε S ). Total error ε T is typically less than 0.01% and site error ε S is between 0.001% and 0.02%. This low a discrepancy confirms that both the PRISM and conventional multislice approaches indeed encapsulate the same scattering physics. The PRISM method is faster for all thicknesses and exhibits the pseudo-linear scaling predicted for this algorithm, whilst the scaling of the conventional multislice method is quadratic with thickness.

45B. Algorithm speed ups: calculating inelastic transitions on a cropped grid.

46Further speed-ups, with a modest penalty to accuracy, can be achieved by only evaluating the matrix multiplication in Eq. (11) in a fraction of the grid centered about the site location of the transition event H n0 (r) rather than over the whole simulation grid. To demonstrate this optimization we simulate STEM-EELS images of a single Mn dopant occupying an Sr site midway through a 50Å thick SrTiO 3 crystal. An Lshell transition for Mn is shown in Fig. 5 where Eq. (11) is (a) evaluated over the full grid (which has a side length of approximately 8Å), and in cropped regions with side-lengths measuring approximately (b) 4Å and (c) 2 A. The size of these windows relative to the transition potential H n0 (r) is indicated in Fig. 5(d). Only the transitions ( = 1, m = 1) → ( = 2, m = 2) and ( = 1, m = −1) → ( = 2, m = −2) for energy loses 1 eV over the ionization thrheshhold where included for the purpose of this demonstration. The percentage errors, relative to the image in Fig. 5(a), are written on images Fig. 5(b) and (c). Both the total image error ε T and error for the atomic site ε S , which is evaluated only for a 1Å window around the Mn atomic position are indicated. The site error ε S is the most relevant metric for our purposes since elemental concentration mapping would typically proceed by integrating the STEM-EELS signal in a window centered on the atomic site and then relating the result to a pre-computed look-up table. A site error of 0.2%, as in Fig. 5(b) is likely acceptable, though a site error of 11.4% as in Fig. 5(b) is likely too high, suggesting the cropping window chosen was too aggressive. Inspection of a linescan in Fig. 5(e) shows that in the image from Fig. 5(c) the long tails of the Mn transition potential H n0 have been cropped out. Figure 5(f) details the significant speed up benefits of this approach. The speed ups are quadratic which is consistent with the array multiplication scaling quadratically with grid pixel size, as the calculation time of Eq. (11) is observed to roughly quarter with each halving of the window in Fig. 5(a). For this particular transition potential a cropping box with side length of 4 A gives the best balance between calculation time speed up and loss of accuracy. Percentage errors in the PRISM STEM-EELS calculations with the inverse multislice optimization relative to conventional multislice calculations as well as the percentage speed up relative to PRISM STEM-EELS calculations without the inverse multislice optimization.

C. Algorithm speed ups: inverse multislice

47In the PRISM STEM-EELS algorithm described in Sec. IV A, the scattering matrix S 2 which propagates the inelastically scattered electron wave ψ n from the depth at which ionization occurred to the exit surface is calculated from scratch for each thickness i z . This is a duplication of work, since S 2 was at some point calculated for all thicknesses in the initialization step S 2 = (M) T ) nz . One approach would be to store S 2 for each slice, which is not practical for most calculations given the size of the scattering matrix (a complex numbered array of size πα 2 L 2 /f 2 × N × N ). A second approach which sacrifices some accuracy at the expense of calculation time would be to perform the inverse of the multislice operation (M −1 ) to retreat the scattering matrix S 2 a single slice. The inverse multislice operation is defined M −1 (∆z) ≡F h→r e −iσV (r)∆zF r→g e iπλ∆zg 2 δ gh . (19) Relative to the forward multislice operation defined in Eq. (6) the order of FFT, multiplication, inverse FFT and propagation steps has been reversed and the complexconjugate of the transmission function and propagation operators is used instead. This can introduce some error since a forward multislice iteration can cause electrons to scatter to high angles outside the bandwidth limit of the calculation and these electrons will not be recovered with an inverse operation. For the simulation of the SrTiO 3 in Sec. IV A we report the percentage errors, both total error ε T and site error ε S , in Fig. 6. For this case, the errors relative to conventional multislice calculations are found to be around 1%, which is small whilst the speed up is around 20% relative to PRISM calculations for some of the thicker cases considered without the inverse multislice optimization.

D. Calculations for heterogeneous nanometer scale objects

48In Sec. IV A we showed that using the PRISM approach for STEM-EELS simulations resulted in computation times that scale more favourably with specimen thickness and that calculation time can be further reduced by evaluating the inelastic scattering cross section, Eq. (11), only in a fraction of the calculation grid centered on the transition of interest and using the inverse multislice optimization. In this section we demonstrate how these improvements, taken together, allow calculations of much larger objects than has previously been feasible, in this case a Fe-Pt nanoparticle that is approximately 80Å in diameter. The atomic coordinates for this nanoparticle were reconstructed from a STEM-HAADF tomography tilt series in Ref. [16] and the object contains 6,569 Fe atoms and 16,627 Pt atoms. The projected potential of the nanoparticle is plotted in Fig. 7(a) with Pt potential shown in blue and Fe atoms shown red. The potential resulting from only the Fe atoms is plotted seperately in Fig. 7(b). Both potentials have been convolved with a Gaussian function (σ = 2 pixels) to make viewing easier.

49We transitions which between them account for just over 90% of total transitions for energy loses 1 eV over the ionization threshold Fe L edge. For the PRISM-EELS calculation, we use a PRISM interpolation factor of 9, such that each individual probe will be effectively calculated on a 10Å × 10Å grid, a probe step of 0.246Å (nyquist sampling) and evaluate the inelastic scattering cross section [Eq. (11)] on a 4Å × 4Å grid (which was seen to give the best trade-off between calculation speed and accuracy in Fig. 5). Then, Eq. (16) and Eq. (17) estimate the run-time of such a calculation to be 2 days. The results of this PRISM STEM-EELS simulation, which in reality took 16 hours, are shown in Fig. 7(c). We also estimate the computation time of a conventional multislice simulation using Eq. (15) for the full nanoparticle with the same probe step size and 2Å slices along the beam direction. If further approximations are made to use only 1/9 of the grid for probe propagation and only evaluating transitions within 4Å of the probe (i.e. those that we deem to have a reasonable chance of being excited), multislice simulation could be run in about 87 days for a single frozen phonon pass [26].

50The simulated image in Fig. 7(c) is qualitatively similar to the Fe potential Fig. 7(b) but artifacts due to strong scattering of the beam are evident. In particular, the center of the nanoparticle has a lower intensity than would be expected from the density of Fe, due to the strong high-angle scattering of the electron beam from the heavier Pt atoms. Close inspection of many of the Fe columns in this region reveals small regions of lower intensity, giving rise to a "donut" or "volcano" structure which is evident in the zoomed region shown in the bottom left hand corner of Fig. 7(c). These features result from inelastic scattering of beam electrons by the heavier Pt atoms, and to a smaller extent by the Fe atoms, to high angles outside the acceptance angle of [16] with Pt atoms indicated in blue and Fe atoms in red, the Fe projected potential is shown separately in (b). The STEM-EELS simulation of the structure in (c), which is corrected by dividing by an incoherent bright-field image in (d) as suggested in Ref. [25]. The annular dark field and incoherent bright-field images are shown in (e) and (f). Figures (g) and (h) plot the relationship between Fe Projected potential and STEM-EELS intensity, averaged in 5× pixel windows, for (c) and (d) respectively.

51the EELS detector when the beam is scanned atop an atomic column. Even if these scattered electrons do cause the ionization of an Fe atom they are unlikely to finally contribute toward the final STEM-EELS image. A detailed explanation of this phenomenon can be found in Ref. [25] along with a strategy to obtain an image more amenable to direct interpretation: dividing by a simultaneously recorded STEM incoherent bright field image with detector of equal angular extent to the EELS aperture. This image is displayed in Fig. 7(d) which is indeed observed to be a more faithful representation of the projected electrostatic potential due to Fe in Fig. 7(b). The STEM annular dark field image, formed with a detector of inner angle 60 mrad and the incoherent bright-field image are shown in Figs. 7(e) and (f) for reference.

52STEM-EELS simulations of objects of this size allow statistical analysis of STEM-EELS images as shown in Fig. 7(g), which plots the integrated potential just for the Fe atoms (a proxy for the projected Fe density) against the STEM-EELS intensity in for each 5×5 pixel region in the image. The colour of each point in the scatter plot corresponds to the total projected potential from both Fe and Pt with reference to the colorbar in the figure.

53The relationship between STEM-EELS intensity and projected Fe density is approximately linear. However there are noticeable systematic deviations with points falling below the trendline tending to be those with a higher total projected potential -a clear demonstration of how strong elastic and inelastic scattering of the beam complicates direct interpretation of the STEM-EELS maps. These systematic errors are mostly remedied by the division of the incoherent bright-field image, which gives an improvement in the Pearson correlation score from 0.935 to 0.976. This correlation value measures the quality of the fitted trendline, showing that there is less systematic deviation from the linear relationship of Fe density and EELS intensity after applying the BF correction step. This insight demonstrates how our faster STEM-EELS algorithm, by virtue of its better scalability to larger simulation grids, can give a valuable insights into interpretation of heterogenous nanoscale STEM-EELS maps.

V. CONCLUSION

54We have developed a new algorithm for simulating STEM-EELS results that economises on the number of multislice iterations required. This algorithm should run faster in general as the calculation time typically scales linearly with specimen thickness, whilst the conventional algorithm scales quadratically with specimen thickness. We have shown that with a some penalty to accuracy, even faster calculation times are possible. Finally, we have also shown that our algorithm can be used to simulate larger nanoscale objects than was previously the case.

참고문헌 37건

  1. Delocalization in electron-impact ionization in a crystalline environment Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.47.2446
  2. Towards artifact-free atomic-resolution elemental mapping with electron energy-loss spectroscopy Applied Physics Letters · American Institute of Physics · 2013 10.1063/1.4823704
  3. Modelling the inelastic scattering of fast electrons Ultramicroscopy · Elsevier BV · 2014 10.1016/j.ultramic.2014.10.011
  4. <i>Electron Energy-Loss Spectroscopy in the Electron Microscope</i> Physics Today · AIP Publishing · 1987 10.1063/1.2820276
  5. Visualizing the interfacial evolution from charge compensation to metallic screening across the manganite metal–insulator transition Nature Communications · Nature Portfolio · 2014 10.1038/ncomms4464
  6. Inner-shell ionization cross sections and aperture size in electron energy-loss spectroscopy Physical review. B, Condensed matter · American Physical Society · 1997 10.1103/physrevb.56.9
  7. The role of symmetry in the theory of inelastic high-energy electron scattering and its application to atomic-resolution core-loss imaging Ultramicroscopy · Elsevier BV · 2014 10.1016/j.ultramic.2014.11.007
  8. The scattering of fast electrons by crystals Reports on Progress in Physics · IOP Publishing · 1979 10.1088/0034-4885/42/11/002
  9. Atomic-Resolution Spectroscopic Imaging of Ensembles of Nanocatalyst Particles Across the Life of a Fuel Cell Nano Letters · American Chemical Society · 2011 10.1021/nl203975u
  10. Chemically sensitive structure-imaging with a scanning transmission electron microscope Nature · Nature Portfolio · 1988 10.1038/336565a0
  11. Delocalization of the effective interaction for inner-shell ionization in crystals Physical review. B, Condensed matter · American Physical Society · 1998 10.1103/physrevb.57.3273
  12. Multislice theory of fast electron scattering incorporating atomic inner-shell ionization Ultramicroscopy · Elsevier BV · 2005 10.1016/j.ultramic.2005.03.005
  13. Advanced Computing in Electron Microscopy Springer eBooks · Springer Nature · 2020 10.1007/978-3-030-33260-0
  14. Local Inhomogeneity and Filamentary Superconductivity in Pr-Doped<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi>CaFe</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:msub><mml:mrow><mml:mi>As</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math> Physical Review Letters · American Physical Society · 2014 10.1103/physrevlett.112.047005
  15. Theorie der Beugung von Elektronen an Kristallen Annalen der Physik · Wiley · 1928 10.1002/andp.19283921704
  16. Simulation of scanning transmission electron microscope images on desktop computers Ultramicroscopy · Elsevier BV · 2009 10.1016/j.ultramic.2009.11.009
  17. Atomic-resolution chemical mapping using energy-dispersive x-ray spectroscopy Physical Review B · American Physical Society · 2010 10.1103/physrevb.81.100101
  18. Atomic-Scale Chemical Imaging of Composition and Bonding by Aberration-Corrected Microscopy Science · American Association for the Advancement of Science · 2008 10.1126/science.1148820
  19. Multiple elastic scattering of core-loss electrons in atomic resolution imaging Physical Review B · American Physical Society · 2008 10.1103/physrevb.77.184107
  20. Two-Dimensional Mapping of Chemical Information at Atomic Resolution Physical Review Letters · American Physical Society · 2007 10.1103/physrevlett.99.086102
  21. Mapping sp2 and sp3 states of carbon at sub-nanometre spatial resolution Nature · Nature Portfolio · 1993 10.1038/366725a0
  22. Lattice-resolution contrast from a focused coherent electron probe. Part I Ultramicroscopy · Elsevier BV · 2003 10.1016/s0304-3991(02)00380-7
  23. Atomic-resolution chemical imaging of oxygen local bonding environments by electron energy loss spectroscopy Applied Physics Letters · American Institute of Physics · 2012 10.1063/1.4737208
  24. The theory of the excitation of atomic inner-shells in crystals by fast electrons Philosophical Magazine B · Taylor & Francis · 1987 10.1080/13642818708217957
  25. Progress and new advances in simulating electron microscopy datasets using MULTEM Ultramicroscopy · Elsevier BV · 2016 10.1016/j.ultramic.2016.06.003
  26. Deciphering chemical order/disorder and material properties at the single-atom level Nature · Nature Portfolio · 2017 10.1038/nature21042
  27. A fast image simulation algorithm for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0046-1
  28. Resonant electron tunnelling assisted by charged domain walls in multiferroic tunnel junctions Nature Nanotechnology · Nature Portfolio · 2017 10.1038/nnano.2017.51
  29. A streaming multi-GPU implementation of image simulation algorithms for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0048-z
  30. Atomic-Resolution Spectrum Imaging of Semiconductor Nanowires Nano Letters · American Chemical Society · 2017 10.1021/acs.nanolett.7b03929
  31. Image Calculations in High-Resolution Electron Microscopy: Problems, Progress, and Prospects Advances in electronics and electron physics · Elsevier BV · 1985 10.1016/s0065-2539(08)60880-x
  32. Electron Energy-Loss Spectroscopy in the Electron Microscope Springer eBooks · Springer Nature · 2011 10.1007/978-1-4419-9583-4
  33. Lattice-resolution contrast from a focused coherent electron probe. Part II Ultramicroscopy · Elsevier BV · 2003 10.1016/s0304-3991(02)00381-9
  34. Atomic-Scale Chemical Imaging of Composition and Bonding by Aberration-Corrected Microscopy Springer eBooks · Springer Nature · 2009 10.1007/978-3-540-85156-1_174
  35. Advanced Computing in Electron Microscopy 2010 10.1007/978-1-4419-6533-2
  36. Advances in Electronics and Electron Physics Elsevier eBooks · Elsevier BV · 1985 10.1016/b978-0-12-014578-2.50001-1
  37. Atomic-Scale Chemical Imaging of Composition and Bonding by Aberration-Corrected Microscopy Science · American Association for the Advancement of Science · 2008 10.1126/science.1148820