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

VarRCWA: An Adaptive High-Order Rigorous Coupled Wave Analysis Method

간접 관련 필름·전자재료 · (13) 프리즘 필름 (11) 배리어 필름(15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Ziwei Zhu — Department of Computer Science, Columbia University, New York, New York 10027, United States
  2. Changxi Zheng — Department of Computer Science, Columbia University, New York, New York 10027, United States
DOI
10.1021/acsphotonics.2c00662
저널
ACS Photonics
발행년도
2022
발행기관
American Chemical Society
피인용수
1
라이선스
cc-by-nc-nd
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1021/acsphotonics.2c00662
토픽
Optical Coatings and Gratings
OpenAlex ID
W4295781734

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
(11) 배리어 필름, (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
photonic structures, metasurfaces, waveguides, Rigorous Coupled Wave Analysis, numerical simulation
판단 근거
이 논문은 광학 구조물(metasurfaces, waveguides 등)의 빛 전파를 수치적으로 시뮬레이션하는 고차 RCWA 알고리즘을 다룹니다. 이는 코오롱인더스트리의 광학 필름(13), 배리어 필름(11), 디스플레이 패널재료(15) 및 CPI(16) 설계 시 광학적 특성을 예측하고 최적화하는 시뮬레이션 도구로 활용될 수 있습니다.
R&D 활용 포인트
광학 필름 및 디스플레이용 기능성 소재 설계 시, 미세 구조에 따른 빛의 투과/반사/굴절 특성을 빠르고 정확하게 예측하는 시뮬레이션 모델링 기술로 활용 가능합니다.
평가 입력
본문 62,052자 중 30,032자 발췌

초록

Semianalytical methods, such as rigorous coupled wave analysis, have been pivotal in the numerical analysis of photonic structures. In comparison to other numerical methods, they have a much lower computational cost, especially for structures with constant cross-sectional shapes (such as metasurface units). However, when the cross-sectional shape varies even mildly (such as a taper), existing semianalytical methods suffer from high computational costs. We show that the existing methods can be viewed as a zeroth-order approximation with respect to the structure's cross-sectional variation. We derive a high-order perturbative expansion with respect to the cross-sectional variation. Based on this expansion, we propose a new semianalytical method that is fast to compute even in the presence of large cross-sectional shape variation. Furthermore, we design an algorithm that automatically discretizes the structure in a way that achieves a user-specified accuracy level while at the same time reducing the computational cost.

본문 62,052자

본문 펼치기
#### VarRCWA: An Adaptive High-Order Rigorous Coupled Wave Analysis Method Ziwei Zhu <sup>1</sup> and Changxi Zheng <sup>∗1</sup> 1Department of Computer Science, Columbia University, New York, New York 10027, USA February 1, 2022 Abstract Semi-analytical methods, such as rigorous coupled wave analysis, have been pivotal for numerical analysis of photonic structures. In comparison to other methods, they offer much faster computation, especially for structures with constant cross-sectional shapes (such as metasurface units). However, when the cross-sectional shape varies even mildly (such as a taper), existing semi-analytical methods suffer from high computational cost. We show that the existing methods can be viewed as a zeroth-order approximation with respect to the structure’s cross-sectional variation. We instead derive a high-order perturbative expansion with respect to the cross-sectional variation. Based on this expansion, we propose a new semi-analytical method that is fast to compute even in presence of large cross-sectional shape variation. Furthermore, we design an algorithm that automatically discretizes the structure in a way that achieves a user specified accuracy level while at the same time reducing the computational cost. ###### 1 Introduction Numerical simulation is a fundamental tool for understanding photonic structures. Among many popular methods, semi-analytical methods, such as rigorous coupled wave analysis (RCWA) [15], have been widely used for analyzing such devices as metasurfaces [6], gratings [14] and waveguides [24]. In comparison to other methods, such as finite-difference time-domain (FDTD) methods, semi-analytical methods often have much lower computational cost. This advantage stems from how semi-analytical methods discretize Maxwell’s equations. In contrast to other approaches (e.g., FDTD methods) that discretize the spatial domain fully (i.e., in all three dimensions) [23], semi-analytical methods discretize the spatial domain partially (e.g., in only _x_ - and _y_ -dimension but not _z_ -dimension). This is possible because many photonic structures have a primary light propagation direction (referred in this paper as _z_ -direction; see Fig. 2). In some cases, along the light propagation direction, the structure’s cross-sectional shape stays unchanged (e.g., a metasurface unit). Therefore, we do not have to discretize the structure along _z_ -direction; instead, light propagation in the structure can be viewed as superposition of individual propagating modes experiencing phase shifts. This is the fundamental view that enables semi-analytical methods to reduce computational cost (see 2.1 ). ∗cxz@cs.columbia.edu 1 (a) (b) (c) simulated structure RCWA discretization varRCWA discretization Figure 1: Discretization in conventional and our method. Provided a photonic structure with varying cross-sectional shape (a), conventional semi-analytical methods (such as RCWA) must discretize the structure along the wave propagation direction into many thin sections (b), leading to expensive computation. (c) Our method discretizes the structure adaptively into a much smaller number of sections, thanks to the use of higher-order perturbative expansions. The arrows indicate the incoming and outgoing direction of light waves. However, this view becomes unsound for many photonic structures wherein along the primary light propagation direction, the structure’s cross section varies [13, 17]. A common example is photonic waveguides (such as a taper; see Fig. 1-a). To simulate these photonic structures using semi-analytical methods, one has to further discretize the structure along _z_ -direction into a series of thin sections [9,11] (see Fig. 1-b). In each section, the cross-sectional shape is assumed unchanged, and thereby a semi-analytical method can be used to simulate that section. Yet, this approach requires a large number of sections, which in turn devastate the computational advantage of semi-analytical methods. Apart from the computational cost, it is often unclear how many discrete sections are needed to achieve certain accuracy. In practice, one has to rely on trail and error to choose a proper resolution for sufficient accuracy. Oftentimes, to obtain satisfactory results, multiple runs of the simulation method (each with a different resolution) are needed. In this work, we overcome these limitations. Our method requires no trial and error, thus much easier to use: provided a photonic structure and a user-specified accuracy level (i.e., a real number), our method automatically decides how to discretize the structure in _z_ -direction, aiming to reduce the overall computational cost while achieving the desired accuracy. To obtain simulation results of user-specified accuracy, only one run is needed. To this end, our core development is twofold: 1) We show that the conventional semianalytical methods (such as RCWA) are merely zeroth-order approximation with respect to the structure’s cross-sectional variation. Through a novel change of variable, we propose a highorder semi-analytical method, which allows the structure’s cross section to vary over _z_ -direction, without discretizing it into thin sections. 2) Leveraging this high-order method, we introduce an algorithm that automatically and adaptively discretizes the structure to achieve a user specified accuracy level. For regions where the cross section varies rapidly in _z_ -direction, our algorithm will slice the structure in fine resolution to ensure simulation accuracy; for regions with little cross-sectional variance, it will discretize them coarsely to save computational cost. We use our method to analyze various photonic structures, and compare it with conventional semi-analytical methods (such as RCWA). We show that our method, as a higher-order approach, indeed converges faster. As a result, to obtain the same level of accuracy, our method requires much less computational time and no resolution tuning at all. 2 ###### 2 Method We now present our core development. To understand the rationale behind our development, we start by briefly reviewing the limitations of widely used semi-analytical methods. 2.1 Established Semi-analytical Methods and Their Limitations Semi-analytical methods discretize the spatial domain of Maxwell’s equations in _x_ - and _y_ directions but not in _z_ -direction. In frequency domain, Maxwell’s equations become into _<u>∂∂z</u>_ _<u>e</u>_ <sup>=</sup> _k_ <sup>_<u>j</u>_</sup> 0 _P h_ and <sup>_<u>∂</u>_</sup> _∂z_ <sup>_<u>h</u>_</sup> <sup>_<u>∂</u>_</sup> _∂z_ <sup>_<u>h</u>_</sup> <sup>=</sup> _k_ <sup>_<u>j</u>_</sup> 0 _k_ 0 _Qe_ _,_ (1) where the vectors _e_ and _h_ are discrete representations of the electric and magnetic fields on an _xy_ -plane at a _z_ position, and the matrices _P_ and _Q_ encode the distributions of material permeability and permittivity on the _xy_ -plane at the same _z_ position. Depending on specific representations of _e_ and _h_, different semi-analytical methods emerge. The most widely used (e.g., for the analysis of metasurfaces [6], gratings [14] and waveguides [24]) is rigorous coupled wave analysis (RCWA) method, wherein _e_ and _h_ are discretized using 2D Fourier basis on the _xy_ -plane. In this paper, our development can be applied to semi-analytical methods in general (such as the method of lines [18]), although our implementation and numerical experiments focus in particular on the RCWA method. When the structure’s cross-sectional shape is fixed along _z_ -direction, both _P_ and _Q_ in (1) are constant matrices, and Eq. (1) can be solved through an eigenvalue decomposition, that is, _P Q_ = _W_ Λ <sup>2</sup> _W_ <sup>_−_</sup> <sup>1</sup> . The resulting _W_ and Λ allow us to express the solution of (1) as <sup><u>1</u></sup> 2 <sup>_W_</sup> _e_ <sup>Λ</sup> <sup>_z_</sup> _a_ _L_ + _e_ <sup>_−_</sup> <sup>Λ</sup> <sup>_z_</sup> _b_ _L_ for describing the and _h_ = <sup><u>1</u></sup> 2 <sup><u>1</u></sup> 2 <sup>_V_</sup> _e_ <sup>Λ</sup> <sup>_z_</sup> _a_ _L −_ _e_ <sup>_−_</sup> <sup>Λ</sup> <sup>_z_</sup> _b_ _L_ field, related _._ (2) the eigenvectors _e_ = <sup><u>1</u></sup> 2 Here _V_ is the basis for describing the cross-sectional magnetic field, related to the eigenvectors _W_ (i.e., the basis for electric field) through _V_ = _QW_ Λ <sup>_−_</sup> <sup>1</sup> ; _a_ L and _b_ L are vectors stacking the coefficients of the forward and backward light waves at the left end of the structure (see Fig. 2). In addition, from Eq. (2), we can define the structure’s _scattering_ _matrix_, which relates the output state of an optical wave after propagating through the structure with its input state, namely _a_ R _a_ L _T_ LR _R_ R = _S_ _,_ where _S_ = _,_ (3) _b_ L _b_ R _R_ L _T_ RL - - - - - where, corresponding to _a_ L and _b_ L, _a_ R and _b_ R describe the forward and backward waves at the right end (see Fig. 2). Once the scattering matrix is known, the structure’s optical performance (e.g., mode conversion efficiency and phase shift of a waveguide) can be directly computed. When the structure’s cross-sectional shape varies along _z_ -direction, one has to split the structure into a series of small sections so that every section can be approximated as having a fixed cross section (Fig. 1-b). Each section _i_ is then analyzed through the aforementioned process, from which one can compute its scattering matrix _S_ _i_ . Finally, by combining all the scattering matrices using Redheffer star product [19], the entire structure’s scattering matrix is obtained. Limitations. In semi-analytical methods, the assumption of having a fixed cross section can be viewed as a zeroth-order approximation of the structure (as derived in Sec. 2.2). To achieve sufficient accuracy, such a crude approximation must be remedied with small structure length. As a result, even mild cross-sectional variation requires a large number of discrete sections (Fig. 1b). For every section, an eigenvalue decomposition is needed, and thus its computational cost 3 _T_ LR _R_ R _R_ L _T_ RL _,_ (3) _a_ L _b_ R _,_ where _S_ = _b_ L = _S_ ### _z=r_ ###### P r, Q r P r, Q r (a) (b) Figure 2: Notation. Provided a photonic structure section, we model light wave propagation in four components: the incoming and outgoing waves at both the left and right ends, as shown by the orange arrows. (a) A section with constant cross-sectional shape has fixed material matrices _P_ _r_ and _Q_ _r_ . (b) When a section has a varying cross-sectional shape, we choose a specific position _z_ = _r_ (called reference position), and use the material matrices, _P_ _r_ and _Q_ _r_, at _z_ = _r_ to construct the basis for describing forward and backward waves. Our method treats such a section as a perturbation of a section with constant cross-sectional shape in (a), and leverages a perturbative expansion for numerical simulation. Here for visualization purpose, we cut through the section at _z_ = _r_ to reveal the cross-section at _z_ = _r_, which may differ from the cross-sectional shape at its two ends. is further scaled by the total number of sections. To reduce the computational cost, we need to reduce the total number of discrete sections (Fig. 1-c) while retaining simulation accuracy. This motivates us to seek a high-order semi-analytical method, one that accounts for the crosssectional variation in a long section and thereby reduces the total number of sections. 2.2 High-order Semi-analytical Methods Consider a section of photonic structure along _z_ -direction. Suppose its cross-sectional shape varies, that is, in Eq. (1), _P_ and _Q_ are not constant matrices; they change over _z_ . In this case, the solution of (1) is not as simple as (2). Now, our goal is to express the solution of (1) as a perturbative expansion with respect to cross-section variation (Fig. 2), and this expansion will serve as the core numerical recipe of our method. Na¨ıve solution. To understand the insight of our development, we start with a na¨ıve (but impractical) expansion form of the solution. First, inspired by Eq. (2), we use a set of basis vectors _W_ and _V_ to describe cross-sectional electric and magnetic fields respectively—the specific choice of _W_ and _V_ in presence of varying cross section will be described shortly. The crosssectional electric and magnetic fields, _e_ and _h_, are formed by light waves propagating forward and backward in the structure, with the relations: _a_ ( _z_ ) = _W_ <sup>_−_</sup> <sup>1</sup> _e_ ( _z_ ) + _V_ <sup>_−_</sup> <sup>1</sup> _h_ ( _z_ ) and _b_ ( _z_ ) = _W_ <sup>_−_</sup> <sup>1</sup> _e_ ( _z_ ) _−_ _V_ <sup>_−_</sup> <sup>1</sup> _h_ ( _z_ ) _,_ (4) where _a_ and _b_ are coefficients in the chosen basis for describing the forward and backward waves, respectively, and they vary over _z_ . Next, to establish a differential equation of _a_ (and _b_ ), we differentiate both sides of (4), and then using Maxwell’s equations (1), we obtain _<u>∂</u>_ _<u>a</u>_ <sup>_<u>∂</u>_</sup> _∂z_ <sup>_<u>e</u>_</sup> <sup>+</sup> <sup>_V_</sup> <sup>_−_</sup> <sup>1</sup> <sup>_<u>∂</u>_</sup> _∂z_ <sup>_<u>h</u>_</sup> _<u>∂∂z</u>_ _<u>a</u>_ <sup>=</sup> <sup>_W_</sup> <sup>_−_</sup> <sup>1</sup> <sup>_<u>∂</u>_</sup> _∂z_ <sup>_<u>e</u>_</sup> <sup>_<u>∂</u>_</sup> _∂z_ <sup>_<u>h</u>_</sup> <sup>=</sup> 2 _kj_ 0 _W_ <sup>_−_</sup> <sup>1</sup> _P V_ ( _a_ _−_ _b_ ) + _V_ <sup>_−_</sup> <sup>1</sup> _QW_ ( _a_ + _b_ ) _._ (5) - 4 Equivalently, we have the integral equation _W_ <sup>_−_</sup> <sup>1</sup> _P V_ + _V_ <sup>_−_</sup> <sup>1</sup> _QW_ �� _a_ ( _z_ <sup>_′_</sup> ) + _V_ <sup>_−_</sup> <sup>1</sup> _QW_ _−_ _W_ <sup>_−_</sup> <sup>1</sup> _P V_ _b_ ( _z_ <sup>_′_</sup> ) d _z_ <sup>_′_</sup> _,_ (6) _a_ ( _z_ ) = _a_ ( _zL_ )+ <sup>_<u>j</u>_</sup> 2 _k_ 0 _zL_ - _z_ where _zL_ is the starting _z_ position of the considered structure section. Note also that both _P_ and _Q_ vary over _z_, and a similar integral equation can be obtained for _b_ ( _z_ ). Equation (6), in theory, allows us to express _a_ ( _z_ ) as a perturbative expansion. This is achieved by recursively substituting _a_ ( _z_ <sup>_′_</sup> ) in the integrand with Eq. (6) itself up to a certain order (and similarly for _b_ ( _z_ )). For example, to obtain a first-order expansion, one can replace _a_ ( _z_ <sup>_′_</sup> ) and _b_ ( _z_ <sup>_′_</sup> ) in (6) with their zeroth-order approximations _a_ _L_ _≈_ _a_ ( _zL_ ) and _b_ _R_ _≈_ _b_ ( _zR_ ). To use this expansion for analyzing a long section (and thereby reduce the total number of sections), the norms of _W_ <sup>_−_</sup> <sup>1</sup> _P V_ and _V_ <sup>_−_</sup> <sup>1</sup> _QW_ must be sufficiently small—an intuitive explanation of this requirement is provided in Supplement 1. This requirement, however, is hardly satisfied in practice, as both _P_ and _Q_ depend on the cross-sectional material distribution, and their norms may become arbitrarily large. Nevertheless, the development of this expansion motivates a viable strategy: in order to obtain a stable perturbative expansion, we need to avoid using _P_ and _Q_ in an integral equation like (6); instead, we seek an expansion that involves only the variation of _P_ and _Q_ over _z_ . Preconditioned solution. Our proposed expansion starts with a change of variables. We introduce two variables: _a_ ˜ = _e_ <sup>_−_</sup> _k_ <sup>_<u>j</u>_</sup> _k_ <sup>_<u>j</u>_</sup> 0 <sup>Λ</sup> <sup>_z_</sup> _a_ and _b_ ˜ = _e_ _kj_ 0 <sup>Λ</sup> <sup>_z_</sup> _b_ _,_ (7) where Λ is the eigenvalue matrix resulted from eigen-decomposition _P_ _r_ _Q_ _r_ = _W_ Λ <sup>2</sup> _W_ <sup>_−_</sup> <sup>1</sup> . Here, _P_ _r_ and _Q_ _r_ are fixed matrices encoding the distribution of material permeability and permittivity at a particular _z_ = _r_ position. Ideally, the cross section at _z_ = _r_ is chosen to represent the “average” cross section over the entire section so that it can be used to construct the basis vectors _W_ and _V_ . We therefore refer to this position as the _reference_ _position_ of the section (see Fig. 2-b). While in theory one can choose any _r_ position, in practice we simply use the mid-point of the section. The resulting _W_ (and _V_ through _V_ = _QW_ Λ <sup>_−_</sup> <sup>1</sup> ) is used as the basis for describing forward and backward waves (recall Eq. (4)). This change of variables is the key to introduce the variation of _P_ and _Q_ in an integral equation similar to (6). By differentiating (7) and using Eq. (1), we obtain the following differential equations (see the derivation in Supplement 2): _<u>j</u>_ _e_ - _a_ ˜ _−_ 2 _k_ 0 <u>�</u> _−_ _k_ <sup>_<u>j</u>_</sup> 0 <u>�</u> _b_ ˜ _,_ _b_ ˜ _,_ _<u>∂</u>_ _<u>a</u>_ <u>˜</u> _−_ _k_ <sup>_<u>j</u>_</sup> _k_ <sup>_<u>j</u>_</sup> 0 <sup>Λ</sup> <sup>_z_</sup> _<u>∂</u>_ _<u>a</u>_ <u>˜</u> _<u>j</u>_ _∂z_ <sup>=</sup> 2 _k_ 0 _e_ _<u>∂</u>_ _<u>b</u>_ <sup>˜</sup> _<u>j</u>_ _∂z_ <sup>=</sup> 2 _k_ 0 _e_ _δ_ _A_ _e_ _kj_ 0 <sup>Λ</sup> <sup>_z_</sup> - <u>�</u> _k_ <sup>_<u>j</u>_</sup> 0 <sup>Λ</sup> <sup>_z_</sup> _δ_ _B_ _e_ _k_ <sup>_<u>j</u>_</sup> 0 <sup>Λ</sup> <sup>_z_</sup> _kj_ 0 <sup>Λ</sup> <sup>_z_</sup> _δ_ _B_ _e_ _kj_ 0 <sup>Λ</sup> <sup>_z_</sup> - _<u>j</u>_ _e_ - _a_ ˜ _−_ 2 _k_ 0 _kj_ 0 <sup>Λ</sup> <sup>_z_</sup> _δ_ _A_ _e_ _−_ _k_ <sup>_<u>j</u>_</sup> _−_ _k_ <sup>_<u>j</u>_</sup> 0 <u>�</u> _k_ <sup>_<u>j</u>_</sup> 0 <sup>Λ</sup> <sup>_z_</sup> where _δ_ _A_ and _δ_ _B_ are related to the material variation along _z_ -direction, namely, _δ_ _A_ ( _z_ ) = _W_ <sup>_−_</sup> <sup>1</sup> ( _P_ ( _z_ ) _−_ _P_ _r_ ) _V_ + _V_ <sup>_−_</sup> <sup>1</sup> ( _Q_ ( _z_ ) _−_ _Q_ _r_ ) _W_ _,_ _δ_ _B_ ( _z_ ) = _W_ <sup>_−_</sup> <sup>1</sup> ( _P_ ( _z_ ) _−_ _P_ _r_ ) _V_ _−_ _V_ <sup>_−_</sup> <sup>1</sup> ( _Q_ ( _z_ ) _−_ _Q_ _r_ ) _W_ _._ (8) (9) Next, we rewrite Eq. (8) in integral forms and replace _a_ ˜ and _b_ <sup>˜</sup> using Eq. (7). This leads to a 5 new set of integral equations of _a_ ( _z_ ) and _b_ ( _z_ ), ones that differ from (6): _zL_ - _z_ _e_ _z_ - _zR_ _zL_ <u>�</u> _z_ _zL_ _a_ ( _z_ ) = _e_ _b_ ( _z_ ) = _e_ _<u>j</u>_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z−zL_</sup> <sup>)</sup> _a_ _L_ + 2 _k_ 0 _<u>j</u>_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z_</sup> <sup>)</sup> _b_ _R −_ 2 _k_ 0 _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−z_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _a_ ( _z_ <sup>_′_</sup> )d _z_ <sup>_′_</sup> + _<u>j</u>_ 2 _k_ 0 _<u>j</u>_ _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z−z′_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _b_ ( _z_ <sup>_′_</sup> )d _z_ <sup>_′_</sup> _e_ _zL_ _<u>j</u>_ _<u>j</u>_ _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z−z′_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _a_ ( _z_ <sup>_′_</sup> )d _z_ <sup>_′_</sup> _−_ 2 _k_ 0 _z_ - _zR_ (10) _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−z_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _b_ ( _z_ <sup>_′_</sup> )d _z_ <sup>_′_</sup> _._ (11) Note that here the two equations are integrated from different directions. In Eq. (10), we use _a_ _L_ at the left end of the section as the initial value, and the integral is along the forward direction. On the contrary, Eq. (11) integrates along the backward direction, using _b_ _R_ as the initial value. In this way, all the propagation phase terms (i.e., _e_ <sup>_j_</sup> <sup>Λ</sup> <sup>∆</sup> <sup>_z/k_</sup> <sup>0</sup> ) become smaller than one, and thereby the numerical computation of these integrals stays stable. Now, we can construct perturbative expansions of the outgoing waves _a_ _R_ and _b_ _L_ . Similar to the construction of the na¨ıve expansions above, we substitute _a_ ( _z_ <sup>_′_</sup> ) and _b_ ( _z_ <sup>_′_</sup> ) in the integral terms with Eqs. (10) and (11) themselves, and this substitution is done recursively up to a certain order. These expansions offer a numerical recipe for analyzing how the structure interacts with propagating waves. For example, provided the input waves to the section, including the forward wave at the left end (described by _a_ _L_ ; see Fig. 2) and the backward wave at the right end (described by _b_ _R_ ), the outgoing waves at the right and left ends can be estimated using the following first-order expansions: _<u>j</u>_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−zL_</sup> <sup>)</sup> _a_ _L_ + 2 _k_ 0 _zL_ - _zR_ _zL_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−zL_</sup> <sup>)</sup> _a_ _L_ + _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _a_ _L_ _a_ _R_ _≈_ _e_ 2 _k_ 0 - _zLzR_ (12) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _a_ _L_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ _<u>j</u>_ _−_ 2 _k_ 0 _zL_ - _zR_ _zL_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _b_ _R,_ _e_ _<u>j</u>_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−zL_</sup> <sup>)</sup> _b_ _R_ + 2 _k_ 0 _zL_ - _zR_ _zL_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−zL_</sup> <sup>)</sup> _b_ _R_ + _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _b_ _R_ _b_ _L_ _≈_ _e_ 2 _k_ 0 - _zLzR_ (13) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _b_ _R_ _<u>j</u>_ _−_ 2 _k_ 0 _zL_ - _zR_ _zL_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _a_ _L._ _e_ Remarkably, these expansions do not involve _W_ <sup>_−_</sup> <sup>1</sup> _P V_ or _V_ <sup>_−_</sup> <sup>1</sup> _QW_ (unlike (6)). But rather, their integrands depend on _δ_ _A_ and _δ_ _B_ . Thus, Eqs. (12) and (13) can be viewed as a (first-order) perturbation solution of the outgoing waves. If the cross section is invariant, _δ_ _A_ = _δ_ _B_ = 0, and the integral terms in Eqs. (12) and (13) vanish. In this case, the expressions are precisely the same as the conventional semi-analytical methods, indicating that the conventional semianalytical methods are zeroth-order perturbation in presence of cross-sectional variation. If the cross section is slowly varying over _z_, the norms of _δ_ _A_ and _δ_ _B_ are small, and thereby the first-order perturbation converges even for a long section. This contrasts starkly to the na¨ıve expansions based on Eq. (6), whose reliance on _P_ and _Q_ drastically restricts the section length. If the cross section varies quickly, the norms of _δ_ _A_ and _δ_ _B_ may be large, and we have to use short section length to ensure convergence of our perturbation solution. Discussion: alternative approaches. Maxwell’s equation (1) may also be viewed as an initial value problem provided with the electric and magnetic fields at _z_ = _zL_ . Solution to this initial value problem can be expressed as a product integral that involves matrix exponentials [7, 21]: 1 0 _e_ ( _zL_ ) = lim exp _P_ _r_ ( _zi−_ 1 _→_ _zi_ ) _._ (14) - _he_ (( _zzRR_ ))� _N_ _→∞_ _i_ �= _N_ - _<u>j</u>_ <u>(</u> _<u>zi −k</u>_ 0 _<u>zi−</u>_ <u>1)</u> - _Q_ ( _zi−_ 1 _→_ _zi_ ) 0 ��� _h_ ( _zL_ )� = lim - _N_ _→∞_ 0 _P_ _r_ ( _zi−_ 1 _→_ _zi_ ) 0 - _Q_ ( _zi−_ 1 _→_ _zi_ ) _e_ ( _zL_ ) _h_ ( _zL_ ) ��� _._ (14) _k_ 0 - _<u>j</u>_ <u>(</u> _<u>zi −</u>_ _<u>zi−</u>_ <u>1)</u> _N_ _→∞_ 1 _i_ = _N_ exp _i_ = _N_ 6 In this expression, the structure is also discretized into a series of sections at _zi_, where _zL_ = _z_ 0 _<_ _z_ 1 _<_ _· · ·_ _<_ _zN_ = _zR_ ; and _P_ _r_ and _Q_ _r_ are permeability and permittivity matrices evaluated at the reference position of each section. Numerical evaluation of (14), however, is rather challenging. Prior works use a low-order Taylor expansion of the matrix exponentials to evaluate (14) [10,20]. But to use this expansion, section length must be excessively short (i.e., _zi −_ _zi−_ 1 _≤_ 0 _._ 1 _λ_ where _λ_ is the wavelength), and a large number of sections are needed. Another approach is to convert the product of matrix exponential into the exponential of _i_ <sup>_xi_</sup> <sup>)</sup> <sup>for</sup> <sup>scalar</sup> <sup>values</sup> <sup>_xi_</sup> <sup>.</sup> <sup>However,</sup> <sup>this</sup> <sup>is</sup> not straightforward because matrix multiplication is noncommutative. As a result, Magnus expansionmatrix summation,[1, 2, 8] andsimilarFer expansionto <sup>�</sup> exp ( _x_ [22] _i_ ) =haveexp (been <sup>�</sup> used to correct the use of exponential of matrix summation. In this vein, RCWA can be viewed as an approximation of Magnus expansion, as shown in [4]. Although a high-order approximation of Magnus expansion was introduced in [4], it still requires each discrete section to be short even with small cross-sectional variation. A more fundamental problem of this line of approaches stems from the treatment of initial value problem. Light propagating in photonic structures almost always scatters, resulting in forward and backward propagations. But treating it as an initial value problem implies that only a single direction is considered, thus causing the numerical integration unstable. It is this reason that our method, like conventional RCWA, separates the light waves into forward and backward going components, and integrate them along two separate directions (recall (10) and (11)). 2.3 Numerical Implementation with Adaptive Discretization Numerical integration. The integrals in Eqs. (12) and (13) can be numerically evaluated using a quadrature rule. In practice, we use the quadrature rule that samples three positions, at _zL_, <sup>_<u>zL</u>_</sup> <sup><u>+</u></sup> 2 <sup>_<u>zR</u>_</sup>, and _zR_, respectively, and the integral is estimated by weighted summation of the integrand values at the sampled positions. This quadrature rule involves only matrix multiplications, and thus can be computed at low cost; in practice, we implement it on a Graphics Processing Unit (GPU). Consequently, the major cost of evaluating wave propagation in a single section (using (12) and (13)) comes from the eigen-decomposition that computes _W_, Λ, and _V_ at the reference position. For a single structure section, the eigen-decomposition is also needed in conventional semi-analytical methods. Our perturbative expansion is more accurate at a trivial cost of the additional numerical integration. But when it comes to simulating an entire photonic structure, our expansion enables adaptively discretization of the structure along _z_ -direction, thereby reducing the overall computational cost and outperforming the conventional methods. Next, we describe our algorithm for simulating an entire structure. Adaptive discretization. We now consider the simulation of an entire photonic structure, not just a single section. We propose an algorithm that adaptively discretizes the structure in _z_ -direction and simulates wave propagation. Input to our algorithm is a photonic structure and a desired accuracy level (i.e., a real number). The goal here is to achieve the desired accuracy while reducing the overall computational cost. Our proposed algorithm is outlined in Algorithm 1. The key idea behind this algorithm is as follows: starting from the entire structure as a single section, it recursively subdivides a structure section into _M_ subsections (Line 5 in Algorithm 1). The subdivision occurs when an estimated simulation error of the current section is larger than the user specified accuracy level _α_ (Line 2 in Algorithm 1). Afterwards, all subsections are simulated individually, and they may be subdivided further in a recursive way (Line 9). For each subsection, we compute how the 7 <u>Algorithm</u> <u>1:</u> <u>Adaptive-Variant-RCWA(</u> _<u>z</u>_ <u>min,</u> _<u>z</u>_ <u>max,</u> _<u>α</u>_ <u>)</u> Input: Simulated region along z axis: [ _z_ min _, z_ max], error bound _α_ Output: Scattering matrix from _z_ min to _z_ max Data: Simulated Geometry _G_ 1 Evaluate high order scattering matrix _S_ according to Supplement 3 by sampling on _G_ 2 if _estimated_ _error_ _(see_ _Supplement_ _6)_ _< α_ then 2 if _estimated_ _error_ _(see_ _Supplement_ _6)_ _< α_ then 3 return _S_ 4 else 5 Subdivide this section into _M_ subsections ( _z_ 0 _, z_ 1), ( _z_ 1 _, z_ 2), _. . ._, ( _zM_ _−_ 1 _, zM_ ) 6 where _z_ min = _z_ 0 _< z_ 1 _< · · · < zM_ = _z_ max 7 Find a reference point for each subsection. 8 for _i_ = 1 _,_ _...,_ _M_ do 9 scattering matrix _Si_ ( _zi−_ 1 _→_ _zi_ ) _←_ Adaptive-Variant-RCWA( _zi−_ 1, _zi_, _α_ ) 10 Project the basis of _Si_ to match the basis of _Si−_ 1 (see Supplement 4) 11 return _S_ _<u>←</u>_ Redheffer star product of _S_ 1, ..., _SM_ . wave propagates using (12) and (13), and further compute this subsection’s scattering matrix (Line 1; see Supplement 3 for detailed formulas). Lastly, the scattering matrices of individual subsections are combined through Redheffer star product [19] to form the scattering matrix of the parent section (Line 11). We estimate the error by computing the discrepancy of asymptotic expansions in two consecutive orders (e.g., between zeroth order and first order) Supplement 6—such an error estimation has been used in other asymptotic expansions [3, 5]. In practice, when a section is subdivided, we subdivide it into three subsections (i.e., _M_ = 3). In this way, the eigen-decomposition needed for the parent section can be reused for simulating the central subsection (see Fig. 3-b). An alternative is to use binary subdivision (i.e., _M_ = 2), which we will compare in our numerical experiments in 3.2 . Through recursive subdivision, adaptive discretization on _z_ -direction naturally emerges: regions with rapidly varying cross-sections will be more subdivided, and thereby the algorithm automatically uses fine sections to ensure accuracy; meanwhile, in smoothly varying regions, it uses low resolution to save computation. ###### 3 Results We conduct numerical experiments to validate the accuracy of our method and compare its performance with conventional semi-analytical methods. Since there are different ways of implementing semi-analytical methods (depending on how _e_ and _h_ in (1) are represented), we adopt the most widely used representation, the RCWA method [15]. We implement both our method and the conventional RCWA in C++ programming language. Numerical computation in both methods, such as matrix multiplication and eigen-decomposition, can benefit from parallel computation. We therefore leverage CUDA [16] on Nvidia Graphics Processing Units (GPUs) to accelerate the computation in both methods. 8 P _r_ , Q _r_ P _r_ , Q _r_ subdivide subsection b subsection a subsection c section a (a) P _r_ , Q _r_ P _r_ , Q _r_ subsection a subsection b section a subdivide (b) Figure 3: (a) we choose the midpoint of each section as its reference point to evaluate _P_ _r_ and _Q_ _r_ . When subdividing one section, we subdivide it evenly into three subsections. In this way, the midpoint of the mid-section is the same as that of the parent section, and thus _P_ _r_ and _Q_ _r_ can be reused. (b) We also experimented with subdividing a section evenly into two subsections (i.e., _M_ = 2). This strategy is proper when we use the endpoint of a section as its reference point. (b) varRCWA-endpointRCWA-endpoint _w(p)_ 10 <sup>0</sup> varRCWA-midpointRCWA-midpoint 10 <sup>1</sup> (c) varRCWA-endpointRCWA-endpoint varRCWA-midpoint 10 <sup>0</sup> RCWA-midpoint 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> (c) (a) (b) 10 <sup>0</sup> 10 <sup>-1</sup> 1 0.5 0.3 0.2 0.1 0.05 _p_ 10 <sup>-6</sup> 1 4 16 64 number of sections Figure 4: (a) We use VarRCWA to analyze a waveguide whose cross-sectional shape changes linearly. The length of the waveguide is 1 _µ_ m. Its width on the right end is fixed at 2 _._ 6 _µ_ m, and we use a parameter _p_ to specify the width on the left end. When _p_ = 1, the left width is 3 _._ 7 _µ_ m, and when _p_ = 0, the left width is the same as the right end (i.e., 2 _._ 6 _µ_ m). (b) We simulate this waveguide with no _z_ -direction discretization (i.e., treating it as a single section), and measure the scattering matrix errors as _p_ changes. (c) We then increase the _z_ -direction resolution, and measure the scattering matrix errors as _p_ changes. In the legends, “midpoint” indicates the use of the middle position as the reference position to construct _P_ _r_ and _Q_ _r_ (see Fig. 3-a), and “endpoint” indicates the use of the end position of a section as the reference position (see Fig. 3-b). See Data File 1-2 for underlying values. 3.1 Validation To validate the accuracy of our method, we consider a trapezoid-shaped waveguide as shown in Fig. 4-a. This waveguide has a fixed 220nm thickness, and we use a parameter _p_ to control its cross-sectional variation from its left to right end (see Fig. 4 caption). First, we verify that our method has higher accuracy than the conventional method. To evaluate the accuracy, we first discretize the waveguide into 256 sections, and compute the entire waveguide’s scattering matrix _S_ <sup>_∗_</sup> using the conventional RCWA. This _S_ <sup>_∗_</sup> is then used as a 9 ground-truth to measure a max norm error, _∥_ _S_ _−_ _S_ <sup>_∗_</sup> _∥_ max, where _S_ is the scattering matrix resulted from either our method or the conventional RCWA. In both cases, we use a single section to simulate the entire waveguide for fair comparison. We measure the errors while the cross-sectional variation (controlled by _p_ ) changes. As shown in Fig. 4-b, when the cross-sectional variation is large (i.e., _p →_ 1), our method is more accurate than conventional RCWA, thanks to its higher-order approximation. When the variation becomes small (i.e., _p_ _→_ 0), both methods have comparable accuracy. Further, we evaluate the convergence of our method. We again consider the waveguide shown in Fig. 4 (with _p_ = 1), and evaluate the scattering matrix errors of our method and the conventional RCWA while the _z_ -direction resolutions (in both methods) increases. The results are reported in Fig. 4-c: our method converges faster; as the resolution becomes higher, our method is much more accurate. 3.2 Performance for Various Waveguides Next, we test the performance of our method for analyzing various photonic structures. The shapes of these structures are described in Fig. 5. For each structure, the ground-truth scattering matrix is computed using the conventional RCWA with a high resolution in _z_ -direction ( _N_ = 1024). Provided the ground-truth scattering matrix, we measure the performance-accuracy curve for our method and the conventional RCWA: for our method, we progressively reduce the error threshold (i.e., _α_ in Algorithm 1); and for each error threshold, we measure the resulting scattering matrix error and the computational cost. This allows us to plot a curve showing how the accuracy changes over the computation time. Similary, for conventional RCWA, we progressively increase the _z_ -direction resolution, and measure the scattering matrix error and computation time. All the timings are measured on a workstation with 8 Intel Xeon(R) E5-1620 CPUs running at 3.60GHz and an NVIDIA GeForce GTX 1080 GPU. The resulting performance-accuracy curves are shown in Fig. 5. Given a fixed accuracy level (indicated by the green horizontal line in Fig. 5), our method is significantly faster. For example, to compute the scattering matrix with an error around 10 <sup>_−_</sup> <sup>4</sup>, out method is at least 3 _._ 5 _×_ faster than the conventional RCWA for all test cases. In certain cases such as Fig. 5-e, our method is even an order of magnitude faster. In all cases, our method converges faster than the conventional RCWA, confirming that ours is a higher-order method. This means that as the speedup of our method will become more pronounced as the desired accuracy level increases. We also note that when the conventional RCWA is used for analyzing a particular photonic structure, there exists no guideline to determine the _z_ -direction resolution for a certain accuracy level. As a result, in practice, one has to rely on multiple trials to choose a proper resolution, and thus spend more time than what is reported in Fig. 5. Finally, we evaluate our method on two real-world examples shown in Fig. 6, namely a Yshaped waveguide and a frequency splitter. The former is smoothed out from our design of 90/10 splitter [25] using B´ezier curve and the latter is reported in [12]. Again, the ground-truth scattering matrices for both cases are obtained by the conventional RCWA, with 8192 discrete sections for the Y-shaped waveguide and 32768 sections for the frequency splitter, since the latter has more complex geometry. As shown in Fig. 6, our method converges faster, and for sufficiently high accuracy, our method has much lower computational cost. ###### 4 Conclusion In summary, we present a high-order semi-analytical method. Our method is best suited for simulating photonic structures whose cross-sectional shapes vary along the propagation direction. 10 (a) 10 <sup>0</sup> <u>varRCWA-endpoinRCWA-endpoint</u> t (b) 10 <sup>0</sup> <u>varRCWA-endpoinRCWA-endpoint</u> t varRCWA-midpoint RCWA-midpoint 10 <sup>1</sup> ~~varRCWA-endpoin~~ t RCWA-endpoint varRCWA-midpoint 10 <sup>0</sup> RCWA-midpoint 10 <sup>1</sup> ~~varRCWA-endpoin~~ t RCWA-endpoint varRCWA-midpoint 10 <sup>0</sup> RCWA-midpoint 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 3.6x 3.67x 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>4</sup> 10 <sup>5</sup> 10 <sup>-5</sup> 10 <sup>5</sup> 10 <sup>6</sup> 10 <sup>5</sup> time (ms) time (ms) (c) 10 <sup>0</sup> <u>varRCWA-endpoint</u> (d) 10 <sup>0</sup> <u>varRCWA-endpoinRCWA-endpoint</u> t varRCWA-midpoint RCWA-midpoint 10 <sup>0</sup> <u>varRCWA-endpoinRCWA-endpoint</u> t varRCWA-midpoint RCWA-midpoint 10 <sup>-1</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 3.6x 5.75x 10 <sup>-5</sup> 10 <sup>4</sup> 10 <sup>5</sup> 10 <sup>-5</sup> 10 <sup>4</sup> 10 <sup>5</sup> time (ms) time (ms) (e) 10 <sup>0</sup> <u>varRCWA-endpoint</u> (f) 10 <sup>0</sup> <u>varRCWA-endpoinRCWA-endpoint</u> t varRCWA-midpoint RCWA-midpoint 10 <sup>0</sup> ~~varRCWA-endpoin~~ t RCWA-endpoint varRCWA-midpoint 10 <sup>-1</sup> RCWA-midpoint 10 <sup>0</sup> ~~varRCWA-endpoin~~ t RCWA-endpoint varRCWA-midpoint 10 <sup>-1</sup> RCWA-midpoint 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 9.36x <u>3.5x</u> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>-5</sup> 10 <sup>5</sup> 10 <sup>6</sup> time (ms) 10 <sup>-6</sup> 10 <sup>5</sup> 10 <sup>6</sup> time (ms) Figure 5: Tests on various waveguide geometries. (a) a trapezoid waveguide. (b) a long waveguide of 10 _µ_ m length. (c-d) waveguides with exponential shape changes along one side. (e) a piecewise-linear waveguide. (f) a waveguide with a sinusoidal side variation. All waveguides except (b) are of length 1 _µ_ m. Their thicknesses are fixed at 0 _._ 22 _µ_ m. The speedup of our method over the conventional RCWA for the same accuracy level (i.e., 10 <sup>_−_</sup> <sup>4</sup> ) is marked in yellow color. See Data File 3-8 for underlying values. 11 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> (a) varRCWA-endpoint RCWA-endpoint varRCWA-midpoint RCWA-midpoint varRCWA-endpoint RCWA-endpoint varRCWA-midpoint RCWA-midpoint 10 <sup>0</sup> 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> (b) 10 <sup>-4</sup> 10 <sup>4</sup> 10 <sup>5</sup> 10 <sup>6</sup> time (ms) 10 <sup>-4</sup> 10 <sup>5</sup> 10 <sup>6</sup> 10 <sup>7</sup> time (ms) Figure 6: Tests on complex photonic structures. (a) a Y-shape waveguide. (b) a frequency splitter reported in [12]. See Data File 9-12 for underlying values. In comparison to conventional semi-analytical methods, our method is faster and more accurate. In addition, our method allows the user to specify an accuracy level, and adaptively discretizes the structure along _z_ -direction to achieve the desired accuracy. In future, this work can be extended in various directions. Currently, when subdivision of a section occurs, the section is subdivided into three subsections uniformly. It is also possible to subdivide non-uniformly, according to the local cross-sectional shape of the structure. Moreover, our implementation uses the first-order expansion that we derived, although we can easily extend it to use even higher order expansion by recursively substituting a lower-order expansion into (10) and (11). In practice, our method based on the first-order expansion already outperforms the conventional RCWA. Funding. National Science Foundation (1910839). Acknowledgments. We thank Utsav Dave and Michal Lipson for valuable suggestions. Disclosures. The authors declare no conflicts of interest. See Supplement 1 for supporting content. ###### References [1] Blanes, S., Casas, F., Oteo, J., and Ros, J. Magnus and fer expansions for matrix differential equations: the convergence problem. _Journal_ _of_ _Physics_ _A:_ _Mathematical_ _and_ _General_ _31_, 1 (1998), 259. [2] Blanes, S., Casas, F., Oteo, J.-A., and Ros, J. The magnus expansion and some of its applications. _Physics_ _reports_ _470_, 5-6 (2009), 151–238. [3] Chen, X., Zheng, C., Xu, W., and Zhou, K. An asymptotic numerical method for inverse elastic shape design. _ACM_ _Transactions_ _on_ _Graphics_ _(Proceedings_ _of_ _SIGGRAPH_ _2014)_ _33_, 4 (Aug. 2014). 12 [4] Chu, H. Finite difference approach to optical scattering of gratings. In _Advanced_ _Charac-_ _terization_ _Techniques_ _for_ _Optics,_ _Semiconductors,_ _and_ _Nanotechnologies_ (2003), vol. 5188, International Society for Optics and Photonics, pp. 358–370. [5] Cochelin, B. A path-following technique via an asymptotic-numerical method. _Computers_ _&_ _structures_ _53_, 5 (1994), 1181–1192. [6] Divitt, S., Zhu, W., Zhang, C., Lezec, H. J., and Agrawal, A. Ultrafast optical pulse shaping using dielectric metasurfaces. _Science_ _364_, 6443 (2019), 890–894. [7] Helton, J., and Stuckwisch, S. Numerical approximation of product integrals. _Journal_ _of_ _Mathematical_ _Analysis_ _and_ _Applications_ _56_, 2 (1976), 410–437. [8] Iserles, A., and Nørsett, S. P. On the solution of linear differential equations in lie groups. _Philosophical_ _Transactions_ _of_ _the_ _Royal_ _Society_ _of_ _London._ _Series_ _A:_ _Mathematical,_ _Physical_ _and_ _Engineering_ _Sciences_ _357_, 1754 (1999), 983–1019. [9] Jing, X., Jin, S., Tian, Y., Liang, P., Dong, Q., and Wang, L. Analysis of the sinusoidal nanopatterning grating structure. _Optics_ _&_ _Laser_ _Technology_ _48_ (2013), 160– 166. [10] Li, J., Shi, L. H., Ma, Y., Ran, Y., Liu, Y., and Wang, J. Efficient and stable implementation of rcwa for ultrathin multilayer gratings: T-matrix approach without solving eigenvalues. _IEEE_ _Antennas_ _and_ _Wireless_ _Propagation_ _Letters_ (2020). [11] Liu, V., and Fan, S. S4: A free electromagnetic solver for layered periodic structures. _Computer_ _Physics_ _Communications_ _183_, 10 (2012), 2233–2244. [12] Lumerical. GDS pattern extraction for inverse designed devices using contours method, 2021. [13] Miller, S. A., Chang, Y.-C., Phare, C. T., Shin, M. C., Zadka, M., Roberts, S. P., Stern, B., Ji, X., Mohanty, A., Gordillo, O. A. J., et al. Large-scale optical phased array using a low-power multi-pass silicon photonic platform. _Optica_ _7_, 1 (2020), 3–6. [14] Mohamad, H., Essaidi, S., Blaize, S., Macias, D., Benech, P., and Morand, A. Fast fourier factorization for differential method and rcwa: a powerful tool for the modeling of non-lamellar metallic diffraction gratings. _Optical_ _and_ _Quantum_ _Electronics_ _52_, 2 (2020), 1–13. [15] Moharam, M., and Gaylord, T. Rigorous coupled-wave analysis of planar-grating diffraction. _JOSA_ _71_, 7 (1981), 811–818. [16] NVIDIA, Vingelmann, P., and Fitzek, F. H. Cuda, release: 10.2.89, 2020. [17] Piggott, A. Y., Lu, J., Lagoudakis, K. G., Petykiewicz, J., Babinec, T. M., and Vuˇckovi´c, J. Inverse design and demonstration of a compact and broadband on-chip wavelength demultiplexer. _Nature_ _Photonics_ _9_, 6 (2015), 374–377. [18] Pregla, R., and Pascher, W. The method of lines. _Numerical_ _techniques_ _for_ _microwave_ _and_ _millimeter_ _wave_ _passive_ _structures_ _1_ (1989), 381–446. [19] Redheffer, R. Inequalities for a matrix riccati equation. _Journal_ _of_ _Mathematics_ _and_ _Mechanics_ (1959), 349–367. 13 [20] Roberts, C. M., and Podolskiy, V. A. Rigorous diffraction interface theory. _Applied_ _Physics_ _Letters_ _110_, 17 (2017), 171108. [21] Slav´ık, A. _Product_ _integration,_ _its_ _history_ _and_ _applications_ . Matfyzpress Prague, 2007. [22] Takegoshi, K., Miyazawa, N., Sharma, K., and Madhu, P. Comparison among magnus/floquet/fer expansion schemes in solid-state nmr. _The_ _Journal_ _of_ _chemical_ _physics_ _142_, 13 (2015), 134201. [23] Yee, K. Numerical solution of initial boundary value problems involving maxwell’s equa tions in isotropic media. _IEEE_ _Transactions_ _on_ _antennas_ _and_ _propagation_ _14_, 3 (1966), 302–307. [24] Zhu, Z., Dave, U. D., Lipson, M., and Zheng, C. Inverse geometric design of fabrication-robust nanophotonic waveguides. In _2020_ _Conference_ _on_ _Lasers_ _and_ _Electro-_ _Optics_ _(CLEO)_ (2020), IEEE, pp. 1–2. [25] Zhu, Z., Dave, U. D., Lipson, M., and Zheng, C. Ultra-broadband nanophotonics via adaptive inverse design. In _2021_ _Conference_ _on_ _Lasers_ _and_ _Electro-Optics_ _(CLEO)_ (2021), IEEE, pp. 1–2. 14 ### VarRCWA: An Adaptive High-Order Rigorous Coupled Wave Analysis Method: supplemental document February 1, 2022 ##### 1 Explanation of the requirement of the integrand in Eqn. (6) To use Eqn. (6) for a long section, the coefficients _W_ <sup>_−_</sup> <sup>1</sup> _P V_ and _V_ <sup>_−_</sup> <sup>1</sup> _QW_ should be small enough. We explain the intuition behind this requirement using a simple example, a scalar differential equation in a similar form of Eqn. (5) <u>d</u> d _z_ <sup>_y_</sup> <sup>(</sup> <sup>_z_</sup> <sup>) =</sup> <sup>_ay_</sup> <sup>(</sup> <sup>_z_</sup> <sup>)</sup> <sup>_,_</sup> (1) where _a_ is a constant, similar to _W_ <sup>_−_</sup> <sup>1</sup> _P V_ and _V_ <sup>_−_</sup> <sup>1</sup> _QW_ in Eqn. (5), and _y_ ( _z_ ) is similar to the vectors _a_ ( _z_ <sup>_′_</sup> ) and _b_ ( _z_ <sup>_′_</sup> ) therein. This equation can be written as an integral form similar to Eqn. (6): _y_ ( _z_ ) = _y_ ( _zL_ ) + _zL_ - _z_ _ay_ ( _z_ <sup>_′_</sup> )d _z_ <sup>_′_</sup> _._ (2) _zL_ By recursively substituting (2) into _y_ ( _z_ <sup>_′_</sup> ), we get _a_ d _z_ <sup>_′_</sup> �� : �� _a_ d _z_ <sup>_′_</sup> <sup>�</sup> _y_ ( _z_ ) = 1 + _a_ d _z_ <sup>_′_</sup> + <sup><u>1</u></sup> 2 + _· · ·_ �2 _y_ ( _zL_ ) _,_ (3) where the right-hand side is a Taylor expansion of exp : = 1 + _a_ d _z_ <sup>_′_</sup> + <sup><u>1</u></sup> 2 exp _a_ d _z_ <sup>_′_</sup> �� 2 _a_ d _z_ <sup>_′_</sup> �� <sup>_′_</sup> + _· · ·_ (4) �2 Although Taylor expansion of an exponential always converges for all _a_ d _z_ <sup>_′_</sup>, if we truncate this series to the first order, the residual, which is Although Taylor expansion of an exponential always converges for all (5) ����� _,_ 1 ����� _a_ d _z_ <sup>_′_</sup> �2 <sup>�</sup> ���� <u>1</u> 2 <sup>+</sup> <sup>_o_</sup> _a_ d _z_ <sup>_′_</sup> ���� �� ���� = _a_ d _z_ <sup>_′_</sup> �� Re = _a_ d _z_ <sup>_′_</sup> ����exp �� _−_ 1 _−_ scales with the magnitude of _a_ d _z_ <sup>_′_</sup> = _a_ ( _z −_ _zL_ ) = _aL_ . In order to increase the length _L_ of this integral while maintaining the same integral value _aL_ (hence the accuracy), _a_ should be small enough. Similarly _W_ <sup>_−_</sup> <sup>1</sup> _P V_ and _V_ <sup>_−_</sup> <sup>1</sup> _QW_ should be small enough to ensure plausible accuracy of the first order truncation. _W_ and _V_ do not scale with the section length as they are eigenvectors. Therefore, _P_ and _Q_ must have small enough norms, which unfortunately can not be guaranteed. ##### 2 Derivation of Eqn. (8) Note that the coefficients _P_ and _Q_, which depend on the cross-sectional material distribution, can be arbitrarily large, even if the section has a fixed cross section. We therefore wish to replace them by _δ_ _P_ and _δ_ _Q_, which depend only on the cross-sectional variation of the section. To this end, instead of differentiating _a_ and _b_, we scale _a_ and _b_ first in order to cancel out some terms and construct _δ_ _P_ and _δ_ _Q_ . In particular, let _a_ ˜ = _γ_ 1( _z_ ) _a_ ( _z_ ) (6) _b_ ˜ = _γ_ 2( _z_ ) _b_ ( _z_ ) (7) for some specific choices of _γ_ 1( _z_ ) and _γ_ 2( _z_ ). Inspired by [1] and the derivation of RCWA, after several trials, we find _γ_ 1( _z_ ) and _γ_ 2( _z_ ) in Eqs. (7). Firstly, we differentiate _a_ ˜ in the first part of Eqn. (7) as _<u>∂</u>_ _<u>a</u>_ <u>˜</u> _<u>∂∂z</u>_ _<u>a</u>_ <u>˜</u> <sup>=</sup> <sup>_−_</sup> _k_ <sup>_<u>j</u>_</sup> 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 Λ _z_ _∂z_ <sup>_._</sup> (8) - _<u>∂</u>_ _<u>a</u>_ _k_ 0 Λ _a_ ˜ + exp The first term _−_ _k_ <sup>_<u>j</u>_</sup> _k_ <sup>_<u>j</u>_</sup> 0 <sup>Λ</sup> <sup>_a_</sup> <sup>˜</sup> <sup>is</sup> <sup>emerged</sup> <sup>to</sup> <sup>construct</sup> <sup>_δ_</sup> <sup>_P_</sup> <sup>and</sup> <sup>_δ_</sup> <sup>_Q_</sup> <sup>.</sup> <sup>Now</sup> <sup>substitude</sup> <sup>Eqs.</sup> <sup>(5)</sup> <sup>in</sup> <sup>(8):</sup> _<u>∂</u>_ _<u>a</u>_ <u>˜</u> _<u>j</u>_ _∂z_ <sup>=</sup> 2 _k_ 0 exp _−_ _k_ <sup>_<u>j</u>_</sup> 0 Λ _z_ _−_ 2 Λ _a_ + _W_ <sup>_−_</sup> <sup>1</sup> _P V_ ( _a_ _−_ _b_ ) + _V_ <sup>_−_</sup> <sup>1</sup> _QW_ ( _a_ + _b_ ) �� From _P_ _r_ _Q_ _r_ = _W_ Λ <sup>2</sup> _W_ <sup>_−_</sup> <sup>1</sup> and _V_ = _Q_ _r_ _W_ Λ <sup>_−_</sup> <sup>1</sup>, we get the following relations: _._ (9) Λ = _V_ <sup>_−_</sup> <sup>1</sup> _Q_ _r_ _W_ = _W_ <sup>_−_</sup> <sup>1</sup> _P_ _r_ _V_ _._ (10) Next, by substituting Eqs. (10) into (9), we obtain _<u>∂</u>_ _<u>a</u>_ <u>˜</u> _<u>j</u>_ _∂z_ <sup>=</sup> 2 _k_ 0 exp _<u>j</u>_ = exp 2 _k_ 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 _k_ 0 _W_ <sup>_−_</sup> <sup>1</sup> ( _P_ _−_ _P_ _r_ ) _V a_ + _V_ <sup>_−_</sup> <sup>1</sup> ( _Q_ _−_ _Q_ _r_ ) _W a_ _−_ _W_ <sup>_−_</sup> <sup>1</sup> _P V b_ + _V_ <sup>_−_</sup> <sup>1</sup> _QW b_ �� _W_ <sup>_−_</sup> <sup>1</sup> _δ_ _P V a_ + _V_ <sup>_−_</sup> <sup>1</sup> _δ_ _QW a_ _−_ _W_ <sup>_−_</sup> <sup>1</sup> _P V b_ + _V_ <sup>_−_</sup> <sup>1</sup> _QW b_ �� _k_ 0 Λ _z_ Λ _z_ There are still _P_ and _Q_ in the coefficients of _b_ . But the signs of the coefficients are different, one is positive and the other one is negative. Therefore, we can add an extra zero term 2 ( Λ _−_ Λ ) _b_ to help with the cancellation: _<u>∂</u>_ _<u>a</u>_ <u>˜</u> _<u>j</u>_ _∂z_ <sup>=</sup> 2 _k_ 0 exp _<u>j</u>_ = exp 2 _k_ 0 _<u>j</u>_ = exp 2 _k_ 0 _<u>j</u>_ = exp 2 _k_ 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 _−_ _k_ <sup>_<u>j</u>_</sup> 0 _k_ 0 Λ _z_ Λ _z_ Λ _z_ Λ _z_ _k_ 0 - _<u>j</u>_ Λ _z_ _k_ 0 _δ_ _Aa_ _−_ _W_ <sup>_−_</sup> <sup>1</sup> _P V b_ + _V_ <sup>_−_</sup> <sup>1</sup> _QW b_ + ( Λ _−_ Λ ) _b_ �� _k_ 0 _δ_ _Aa_ _−_ _W_ <sup>_−_</sup> <sup>1</sup> _P V b_ + _V_ <sup>_−_</sup> <sup>1</sup> _QW b_ + �� _W_ <sup>_−_</sup> <sup>1</sup> _P_ _r_ _V_ _−_ _V_ <sup>_−_</sup> <sup>1</sup> _Q_ _r_ _W_ _k_ 0 ( _δ_ _Aa_ _−_ _δ_ _Bb_ ) _−_ _k_ <sup>_<u>j</u>_</sup> 0 _−_ _k_ <sup>_<u>j</u>_</sup> _δ_ _B_ exp _−_ _k_ <sup>_<u>j</u>_</sup> 0 _b_ - (11) _<u>j</u>_ _a_ ˜ _−_ 2 _k_ 0 exp Λ _z_ Λ _z_ _b_ ˜ _._ _δ_ _A_ exp Thanks to the symmetry of _a_ ˜ and _b_ <sup>˜</sup>, we can get the differentiation of _b_ <sup>˜</sup> the same way. ##### 3 Construction of the high order scattering matrix The matrix elements in Eqn.(3) can be extracted from Eqs. (12) and (13) as follows: _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−zL_</sup> <sup>)</sup> + _<u>j</u>_ 2 _k_ 0 _zL_ - _zR_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> (12) _T_ _LR_ = _e_ _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ _R_ _R_ = _−_ 2 _k_ <sup>_<u>j</u>_</sup> 0 _zL_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> (13) _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> (14) _<u>j</u>_ _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _e_ _<u>j</u>_ _e_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _e_ _R_ _L_ = _−_ 2 _k_ <sup>_<u>j</u>_</sup> 0 _zL_ - _zR_ _zL_ - _zR_ _zL_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−zL_</sup> <sup>)</sup> + _<u>j</u>_ 2 _k_ 0 _zL_ - _zR_ _T_ _RL_ = _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ _e_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _._ (15) ##### 4 Projection of scattering matrix Because the scattering matrix at a section _i_ in (given in Eqs. (23-26)) is expressed in the basis of eigenmodes at the reference position of section _i_ . If the eigenmodes are different from those of section ( _i −_ 1), we need to reproject the scattering matrix at section _i_ to match the eigenmodes of section ( _i_ _−_ 1) before using Redheffer star product to multiply them together. According to the continuity of the tangential fields at the interface between the two sections, if we denote the eigenmodes at section _i_ as _W_ _i_ and _V_ _i_, and we use the superscript ( _i −_ 1) to denote the vector is represented in the basis of section ( _i −_ 1), while the vectors without superscripts are in the basis of the section _i_ . From Eq. (2), we have = _W_ _i_ ( _a_ _L_ + _b_ _L_ ) = _V_ _i_ ( _a_ _L −_ _b_ _L_ ) _._ _W_ _i−_ 1 _V_ _i−_ 1 _a_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> _a_ <sup>(</sup> <sup>_i−_</sup> <sup>1)</sup> _a_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> + _b_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> _L_ _−_ _b_ <sup>(</sup> <sup>_i−_</sup> <sup>1)</sup> (16) _L_ _L_ 3 Now we denote <sup><u>1</u></sup> 2 _W_ <sup>_−_</sup> _i_ <sup>1</sup> <sup><u>1</u></sup> _X_ = <sup><u>1</u></sup> 2 _Y_ = <sup><u>1</u></sup> <sup>_−_</sup> _i_ <sup>1</sup> <sup>_W_</sup> <sup>_i−_</sup> <sup>1 +</sup> <sup>_V_</sup> <sup>_−_</sup> _i_ <sup>1</sup> <sup>_−_</sup> _i_ <sup>1</sup> <sup>_W_</sup> <sup>_i−_</sup> <sup>1</sup> <sup>_−_</sup> <sup>_V_</sup> _i_ <sup>_−_</sup> <sup>1</sup> _,_ <sup><u>1</u></sup> 2 _W_ <sup>_−_</sup> _i_ <sup>1</sup> <sup>_−_</sup> _i_ <sup>1</sup> <sup>_V_</sup> <sup>_i−_</sup> <sup>1</sup> _i_ <sup>_−_</sup> <sup>1</sup> <sup>_V_</sup> <sup>_i−_</sup> <sup>1</sup> which allow us to express _a_ _L_ and _b_ _L_ using (16), namely, _a_ _L_ = _Xa_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> _b_ _L_ = _Y a_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> _._ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> + _Y b_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> + _Xb_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> _L_ Meanwhile, according to the scattering matrix definition in Eq. (3), we have _b_ _L_ = _R_ _L_ _a_ _L_ + _T_ _RL_ _b_ _R_ (17) (18) (19) _L_ ( _X_ _−_ _R_ _L_ _Y_ ) _b_ <sup>(</sup> <sup>_i−_</sup> <sup>1)</sup> _L_ _L_ <sup>(</sup> <sup>_i−_</sup> <sup>1)</sup> = _−_ ( _Y_ _−_ _R_ _L_ _X_ ) _a_ <sup>(</sup> <sup>_i−_</sup> <sup>1)</sup> _L_ + _T_ _RL_ _b_ _R._ <sup>(</sup> <sup>_i−_</sup> <sup>1)</sup> By comparing (18) to (19), we obtain the recipe for reprojection of the scattering matrix: _R_ ˜ _L_ = _−_ ( _X_ _−_ _R_ _L_ _Y_ ) <sup>_−_</sup> <sup>1</sup> ( _Y_ _−_ _R_ _L_ _X_ ) _T_ ˜ _RL_ = ( _X_ _−_ _R_ _L_ _Y_ ) <sup>_−_</sup> <sup>1</sup> _T_ _RL._ Similarly, from We have (20) + _R_ _R_ _b_ _R,_ (21) (22) _a_ _R_ = _T_ _LR_ _Xa_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> + _T_ _LR_ _Y_ _R_ ˜ _L_ _a_ <sup>(</sup> _L_ <sup>_i−_</sup> <sup>1)</sup> + _T_ <sup>˜</sup> _RL_ _b_ _R_ _T_ ˜ _LR_ = _T_ _LR_ _X_ + _T_ _LR_ _Y_ _R_ ˜ _L_ _R_ ˜ _R_ = _T_ _LR_ _Y_ _T_ ˜ _RL_ + _R_ _R._ The projected scattering matrix elements _R_ <sup>˜</sup> _L_, _T_ <sup>˜</sup> _RL_, _T_ <sup>˜</sup> _LR_, _R_ <sup>˜</sup> _R_ can be left multiplied by the scattering matrix of section ( _i −_ 1). ##### 5 CPU Implementation We have also implemented our method on CPU. We choose the same structure as Fig. 5-a to run the experiments. As is shown in Fig 1, our method performs better no matter we choose the midpoint or endpoint as the reference point. However, because the program runs sequentially, the CPU implementation cannot parallelize the computation of matrix products, which is not so efficient. Therefore, matrix product still takes a noticeable amount of time (1 _/_ 20 per operation) compared to eigenvalue decomposition. Although both RCWA and our method running on CPU are slower, our method is still faster compared to conventional RCWA, although the speedup of our method is not as significant as on GPU. 4 <u>varRCWA-endpoint</u> 10 <sup>0</sup> <u>RCWA-endpoint</u> varRCWA-midpoint RCWA-midpoint 10 <sup>-1</sup> 10 <sup>-2</sup> 10 <sup>-3</sup> 10 <sup>-4</sup> 10 <sup>-5</sup> 10 <sup>4</sup> 10 <sup>5</sup> time (ms) Figure 1: CPU implementation of the experiments in Fig. 5(a). See Data File 13 for underlying values. ##### 6 Error Estimation When subdividing the waveguide, our algorithm checks if an estimated error meets the userprovided accuracy level _α_ . To estimate the error, we compare the scattering matrix of the _p_ th order and the ( _p −_ 1)th order. In our case, we subtract the results standard RCWA ( _p_ = 0) from the results in Eqs. (23-26) ( _p_ = 1), and get the following four difference matrices _<u>j</u>_ ∆ _T_ _LR_ = 2 _k_ 0 _zL_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> (23) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ ∆ _R_ _R_ = _−_ 2 _k_ <sup>_<u>j</u>_</sup> ∆ _R_ _L_ = _−_ 2 _k_ <sup>_<u>j</u>_</sup> _zL_ <u>�</u> _zR_ _zL_ _zL_ - _zR_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> (24) _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> (25) _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _B_ ( _z_ <sup>_′_</sup> ) _e_ 2 _k_ 0 _zL_ _e_ _e_ 2 _k_ 0 _zL_ _zL_ - _zR_ _zL_ - _zR_ _zL_ _<u>j</u>_ ∆ _T_ _RL_ = 2 _k_ 0 _zL_ _<u>j</u>_ _k_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_zR−z′_</sup> <sup>)</sup> d _z_ <sup>_′_</sup> _._ (26) _e_ _kj_ 0 <sup>Λ</sup> <sup>(</sup> <sup>_z′−zL_</sup> <sup>)</sup> _δ_ _A_ ( _z_ <sup>_′_</sup> ) _e_ We use the maximum value _ε_ of the max norms of the above four matrices as the estimated error, and compare _ε_ with user-provided _α_ . Although _ε_ is estimated, any error caused by higher order perturbations should be smaller than _ε_ . We have also compared this estimated error with the final error in the scattering 5 matrix for each experiments in Fig. 5. As is shown in Fig. 2, for each user-specified _α_, the real error is always smaller than _α_, which indicates it is a good overestimate. <u>Experiment (d)</u> Experiment (e) Experiment (f) 1 0.8 0.6 0.4 0.2 <u>Experiment (a)</u> Experiment (b) Experiment (c) 0 1 0.8 0.6 0.4 0.2 0 Figure 2: Real errors versus different _α_ s for experiments in Fig. 5. We rerun each experiment with different user-provided _α_ s ranging from 0 to 1. When the algorithm terminates, we compare each scattering matrix with the corresponding ground truth scattering matrix (running at a large number of sections _N_ = 1024) to get the _real_ _error_ (max norm of the difference between two matrices). It shows the real error of the scattering matrix is always bounded by _α_ . See Data File 14 for underlying values. ##### References [1] Iserles, A. On the method of neumann series for highly oscillatory equations. _Bit_ _Numerical_ _Mathematics_ _44_, 3 (2004), 473–488. 6

섹션 본문 63문단 · 31,111자

(제목 없음)

1Semianalytical methods, such as rigorous coupled wave analysis, have been pivotal in the numerical analysis of photonic structures.In comparison to other numerical methods, they have a much lower computational cost, especially for structures with constant cross-sectional shapes (such as metasurface units).However, when the cross-sectional shape varies even mildly (such as a taper), existing semianalytical methods suffer from high computational costs.We show that the existing methods can be viewed as a zeroth-order approximation with respect to the structure's cross-sectional variation.We derive a high-order perturbative expansion with respect to the cross-sectional variation.Based on this expansion, we propose a new semianalytical method that is fast to compute even in the presence of large crosssectional shape variation.Furthermore, we design an algorithm that automatically discretizes the structure in a way that achieves a user-specified accuracy level while at the same time reducing the computational cost.

■ INTRODUCTION

2Numerical simulation is a fundamental tool for understanding photonic structures.Among many popular methods, semianalytical methods, such as rigorous coupled wave analysis (RCWA), 1 have been widely used for analyzing such devices as metasurfaces, 2 gratings, 3 and waveguides. 4In comparison to other methods, such as finite-difference time-domain (FDTD) methods, semianalytical methods often have much lower computational costs.

3This advantage stems from how semianalytical methods discretize Maxwell's equations.In contrast to other approaches (e.g., FDTD methods) that discretize the spatial domain fully (i.e., in all three dimensions), 5 semianalytical methods discretize the spatial domain partially (e.g., in only x-and ydimensions, but not z-dimension).This is possible because many photonic structures have a primary light propagation direction (referred to in this paper as the z-direction; see Figure 1).In some cases, along the light propagation direction, the structure's cross-sectional shape stays unchanged (e.g., a metasurface unit).Therefore, we do not have to discretize the structure along the z-direction; instead, light propagation in the structure can be viewed as a superposition of individual propagating modes experiencing phase shifts.This is the fundamental view that enables semianalytical methods to reduce computational cost (see Solving Maxwell's Equations).

4However, this view becomes unsound for many photonic structures, wherein along the primary light propagation direction the structure's cross section varies. 6,7A common example is photonic waveguides (such as a taper; see Figure 1a).To simulate these photonic structures using semianalytical methods, one has to further discretize the structure along the z-direction into a series of thin sections. 8,9In each section, the cross-sectional shape is assumed unchanged (see Figure 1b), and thereby a semianalytical method can be used to simulate that section.Yet, this approach requires a large number of sections, which in turn devastates the computational advantage of semianalytical methods.Apart from the computational cost, it is often unclear how many discrete sections are needed to achieve certain accuracy.In practice, one has to rely on trial and error to choose a proper resolution for sufficient accuracy.Oftentimes, to obtain satisfactory results, multiple runs of the simulation method (each with a different resolution) are needed.

5In this work, we overcome these limitations.Our method requires no trial and error, thus much easier to use: provided a photonic structure and a user-specified accuracy level (i.e., a real number), our method automatically decides how to discretize the structure in z-direction, aiming to reduce the overall computational cost while achieving the desired accuracy.To obtain simulation results of user-specified accuracy, only one run is needed.

6To this end, our core development is 2-fold: (1) We show that the conventional semianalytical methods (such as RCWA) are merely zeroth-order approximation with respect to the structure's cross-sectional variation.Through a novel change of variable, we propose a high-order semianalytical method, which allows the structure's cross section to vary over zdirection, without discretizing it into thin sections.(2) Leveraging this high-order method, we introduce an algorithm that automatically and adaptively discretizes the structure to achieve a user-specified accuracy level.For regions where the cross section varies rapidly in z-direction, our algorithm will slice the structure in fine resolution to ensure simulation accuracy; for regions with little cross-sectional variance, it will discretize them coarsely to save computational cost.

7We use our method to analyze various photonic structures, and compare it with conventional semianalytical methods (such as RCWA) and the differential method. 10We show that our method, thanks to its higher-order approximation, indeed converges faster.As a result, to obtain the same level of accuracy, our method requires much less computational time and no resolution tuning at all.

■ SOLVING MAXWELL'S EQUATIONS

8We start by reviewing two widely used methods (namely, the differential method and RCWA) to solve Maxwell's Equations in spatial and temporal Fourier space.We then present our method, which can be viewed as a higher-order generalization of RCWA.The differences of these methods are summarized in Table 1 and illustrated in Figure 1.

9All these methods share the same starting point.They assume that there exists a primary light propagation direction (z-direction) in a photonic structure.Then, the electric and magnetic fields are only discretized on xy-plane and vary along z-direction.Under this setup, Maxwell's Equations become 10

10where the vectors e and h are discrete representations of the electric and magnetic fields (for example, in Fourier space) on an xy-plane at a z position.For simplicity of presentation, we assume that the material is isotropic and the permeability is uniform (μ = 1), resulting in vanishing diagonal blocks.The off-diagonal matrices P and Q encode the distributions of material permittivity on the xy-plane at the same z position.Differential Method.One way of solving eq 1, which differs from the FDTD method, is the differential method.It integrates eq 1 by the fourth-order Runge−Kutta method (RK4). 11This integral connects the field e L and h L at the left end with the field e R and h R at the right end:

11Yet, directly computing the T matrix using eq 2 is unstable.To overcome the instability, the T matrix is further converted into a modal scattering matrix 12 S through a change of variables a = W −1 e + V −1 h and b = W −1 e − V −1 h, where W and V are eigenmodes of electric and magnetic fields (more discussion later).As a result, a and b are related through the modal scattering matrix S:

12Still, numerical computation of the S matrix is unstable unless the integration length in eq 2 is small.In practice, we have to slice the structure into many sections, each of which stays shorter than 0.1 μm.This often leads to a large number of sections and thus expensive computation.

Rigorous Coupled Wave Analysis (RCWA).

13A widely used method for numerically analyzing such structures as metasurfaces, 2 gratings, 3 and waveguides 4 is the rigorous coupled wave analysis (RCWA), 1 one of the more general semianalytical methods.When the structure's cross-sectional shape is fixed along the z-direction, both P and Q in eq 1 are constant matrices, and eq 1 can be solved through an eigenvalue decomposition, that is, PQ = WΛ 2 W −1 and V = QWΛ −1 .In this case, we can directly construct the scattering matrix S in eq 3 without resorting to the T matrix in eq 2: The differential method divides the structure into multiple sections (gray boxes) and approximates light propagation by a numerical integral (dashed pink arrow) of the electromagnetic fields (e and h, blue circles) in each section.Lastly, the integrals are combined using the Redheffer star product (★).(b) RCWA directly simulates using modal coefficients (a and b, green circles) instead of e and h.It computes the effective wavenumber Λ/k 0 of each mode, assuming the waveguide's crosssection stays fixed.It then approximates the scattering matrix by propagating modes directly.(c) Since many waveguides have varying cross sections, varRCWA (our method), as a high-order method, takes into account cross-mode coupling (orange and yellow arrows) caused by the cross-sectional variation (δA and δB) from a cross section at the reference position P r and Q r .

14where k 0 is the wavenumber in vacuum.

15When the structure's cross-sectional shape varies along zdirection, we must split the structure into a series of small sections so that every section can be approximated as having a fixed cross section (Figure 1b).Each section i is then analyzed through the aforementioned process, from which one can compute its scattering matrix S i .Finally, the entire structure's scattering matrix is obtained by projecting all sections' scattering matrices to match the bases of vectors a and b (see details in Supporting Information, Section 2) and then combining them using the Redheffer star product. 13nlike the FDTD method, both the differential method and RCWA discretize eq 1 in Fourier space, and thereby directly predict the full scattering matrix.Our method is in the same vein, described as follows.

16Our Method (varRCWA).RCWA's requirement of a photonic structure having a fixed cross-sectional shape can be viewed as a zeroth-order approximation of the structure's material distribution along z-direction.A detailed derivation revealing this zeroth-order approximation is presented in Supporting Information, Section 1.4, where we further extend it into a higher-order approximation, one that takes into account cross-sectional shape change along z-direction.

17Leaving the derivation details in the Supporting Information, Section 1, here we present the first-order expansion of the scattering matrix S, although our derivation can produce the expansion of arbitrarily high order.The four sub-blocks of the S matrix are

18where we define transmission coupling matrix δA and reflection coupling matrix δB as follows:

19Here W, V, and Λ are obtained by solving an eigenvalue problem at a reference z-position (i.e., P r Q r = WΛ 2 W −1 ), the same as the conventional RCWA.Compare eq 5 with eq 4.

20The additional integral terms in eq 5 are to provide first-order correction of conventional RCWA.What the integrals account for is cross-mode coupling caused by the cross-sectional shape variation (see Figure 1c).It is also worth noting that in eq 5 the integrands depend on δA and δB, which, according to eq 6, indicate the difference of the cross-sectional shape from a reference shape (i.e., P − P r and Q − Q r ).This contrasts starkly to the integral in the differential method eq 2, which integrates over P and Q.When the cross section stays unchanged over z-direction, conventional RCWA should suffice.Indeed, in this case, δA = δB = 0, and eq 5 becomes identical to eq 4. If the cross section varies slowly over z, the norms of δA and δB are small, and thus the first-order expansion converges even for a long section, This allows us to discretize the entire structure into fewer sections, and thereby reduces computational cost.If the cross section varies quickly, the norms of δA and δB may be large, and we have to use short section length to ensure convergence of our first-order expansion or adopt a higher-order expansion of the S matrix.

21Discussion on Other Methods.Solution to Maxwell's equations (eq 1) can also be expressed as a product integral that involves matrix exponentials: 14,15 =

22Numerical evaluation of eq 7, however, is rather challenging.

23Prior works use a low-order Taylor expansion of the matrix exponentials to evaluate eq 7. 16,17 But to use this expansion, section length must be excessively short (i.e., z i − z i−1 ≤ 0.1λ, where λ is the wavelength), and a large number of sections are needed.Another approach is to convert the product of matrix exponential into the exponential of matrix summation, similar to ∏ i exp(x i ) = exp(∑ i x i ) for scalar values x i .However, this is not straightforward because matrix multiplication is noncommutative.As a result, Magnus expansion 18−20 and Fer expansion 21 have been used to correct the use of exponential of matrix summation.In this vein, RCWA can be viewed as an approximation of Magnus expansion, as shown in ref 22.

24Although a higher-order approximation of Magnus expansion was introduced in ref 22, it still requires each discrete section to be short, even with a small cross-sectional variation.These treatments all share the same stability issue as the differential method.Therefore, in our tests, we compare our method with the differential method and RCWA.

25■ NUMERICAL METHOD Numerical Integration.The integrals in eq 5 can be numerically evaluated using a quadrature rule.In practice, we use the quadrature rule that samples three positions at the left end, right end, and the middle point of a section, and the integral is estimated by weighted summation of the integrand values at the sampled positions.This quadrature rule involves only matrix multiplications and additions, and thus can be computed at low cost.In practice, we implement it both on CPU and Graphics Processing Unit (GPU).

26The major cost of evaluating wave propagation in a single section (using eq 5) comes from the eigen-decomposition that computes W, Λ, and V at the reference position.For a single structure section, the eigen-decomposition is also needed in conventional semianalytical methods.Our perturbative expansion is more accurate at a trivial cost of the additional numerical integration.But when it comes to simulating an entire photonic structure, our expansion enables adaptive discretization of the structure along z-direction, thereby reducing the overall computational cost and outperforming the conventional methods.Next, we describe our algorithm for simulating an entire structure.

27Adaptive Discretization.We now consider the simulation of an entire photonic structure, not just a single section.We propose an algorithm that adaptively discretizes the structure in z-direction and simulates wave propagation.Input to our algorithm is a photonic structure and a desired accuracy level (i.e., a real number).The goal here is to achieve the desired accuracy, while reducing the overall computational cost.

28Our proposed algorithm is outlined in Algorithm 1.The key idea behind this algorithm is as follows: starting from the entire structure as a single section, it recursively subdivides a structure section into M subsections (Line 6 in Algorithm 1).The subdivision occurs when an estimated simulation error of the current section is larger than the user-specified accuracy level α (Line 2 in Algorithm 1).Next, all subsections are simulated individually, and they may be subdivided further in a recursive way (Line 10).For each subsection, we compute its scattering matrix (Line 1) using eq 5. Lastly, the scattering matrices of individual subsections are combined through the Redheffer star product 13 to form the scattering matrix of the parent section (Line 13).

29We estimate the error by computing the discrepancy of asymptotic expansions in two consecutive orders (e.g., between zeroth order eq 4 and first order eq 5; see Supporting Information, Section 4), such an error estimation has been used in other asymptotic expansions. 23,24In practice, when a section is subdivided, we subdivide it into three subsections (i.e., M = 3), and use the midpoint of each section as the reference position (see Figure 1c).In this way, the eigendecomposition needed for the parent section can be reused for simulating the central subsection (see Supporting Information, Section 3).An alternative is to use binary subdivision (i.e., M = 2, endpoint reference position), which we will compare in our numerical experiments in Results.

30Through recursive subdivision, adaptive discretization in the z-direction naturally emerges: regions with rapidly varying cross sections will be more subdivided, and thereby the algorithm automatically uses fine sections to ensure accuracy; meanwhile, in smoothly varying regions, it uses low resolution to save computation.An example is given in Figure 2.

■ RESULTS

31We conduct numerical experiments to validate the stability and accuracy of our method and compare it with the differential method and RCWA.

32We implement the differential method, RCWA, and our method in C++ programming language.When implementing the differential method, we follow the recently proposed boundary treatment, 25 not the original paper, 12 to model an aperiodic system.Numerical computation in all the methods, such as matrix multiplication and solving linear systems, can benefit from parallel computation.Therefore, apart from a CPU implementation, we also implement these methods on Graphics Processing Units (GPUs) using NVIDIA's CUDA 26 library.

33Accuracy and Stability.Consider a trapezoidal-shaped waveguide as shown in Figure 3c.This waveguide has a fixed 220 nm thickness.We use two parameters to control its shape: L for its length and p for its cross-sectional variation from its left to right end (see Figure 3 caption).For RCWA and varRCWA, the choice of reference position is flexible, and thus we compare two specific choices: in the legends of the plots, "midpoint" indicates the use of the middle position as the reference position to construct P r and Q r (see Figure 1c), and "endpoint" indicates the use of the end position of a section as the reference position.The differential method does not require a choice of the reference position.

34To evaluate the accuracy, we first discretize the waveguide into 256 sections, and compute the entire waveguide's We also measure the scattering matrix errors as the cross-sectional shape changes.Its width on the right end is fixed at 2.6 μm, while its left width varies linearly from 2.6 to 3.7 μm as the parameter p changes from 0 to 1.The length L is fixed as 1 μm.(d) In addition, we measure the scattering matrix errors as the number of sections increases.

35scattering matrix S* using the conventional RCWA.Because RCWA converges as the resolution of discretization increases, this S* is then treated as a ground truth to measure a max norm error, ∥S − S*∥ max , where S is the scattering matrix resulting from one of the three methods.In addition, we also benchmark our method against the commercial FDTD software to ensure its accuracy.The results are shown in Supportion Information, Section 5.

36We then test the stability of the three methods against the waveguide length.We progressively increase the length of a waveguide L from 0.05 to 1 μm, while keeping its left-and right-end cross section unchanged.We plot how the accuracy of these methods changes with respect to L in Figure 3a, wherein we use a light blue dashed line to mark where the error equals to 1.As summarized in Table 1, for single section simulation, RCWA is always stable, regardless of the length of the waveguide.The differential method, however, can easily become unstable as the length increases.Our method in these tests remains stable as the length increases to 1 μm, especially when we use "midpoint" as the reference position.This is because our method scales as δPz instead of Pz.

37Next, we test the stability of methods against the variance of each section.We measure the scattering matrix errors as the cross-section varies (controlled by p).As shown in Figure 3b, when we simulate it using a single section, the integration length is as long as 1 μm, and the differential method is always unstable.It becomes stable only when the waveguide length is smaller than 0.1 μm (see Figure 3a).In contrast, RCWA and varRCWA are always stable as p changes from 0 to 1.Note that our method has smaller errors when p ∈ [0.1, 0.3], which implies it is a high-order method.When the variation is small (i.e., p → 0), both RCWA and varRCWA have comparable accuracy.This is because in this case the waveguide is more or less straight, which can be approximated well by the conventional RCWA.

38Further, we compare the accuracy of the three methods against z-direction resolution.Again consider the waveguide shown in Figure 3c (with L = 1 and p = 1).We evaluate the scattering matrix errors of the three methods while increasing the z-direction resolution.The results are reported in Figure 3d: our method converges faster; as the resolution becomes higher, our method is much more accurate.RCWA and the differential method have similar accuracy when the number of sections is large, although the differential method diverges for a small number of sections.The results also echo Table 1.

39Performance for Short Structures.Next, we test the performance of our method for analyzing short photonic structures.The shapes of these structures are described in Figure 4a,d.For each structure, the ground-truth scattering matrix is computed using the conventional RCWA with a high resolution in z-direction (N = 1024).We then use it to measure the accuracy-cost curve for all the methods: for our method, we progressively reduce the error threshold (i.e., α in Algorithm 1), and for each error threshold, we measure the resulting scattering matrix error and the computational time cost.This allows us to plot a curve showing how the accuracy changes over the computation time.Similarly, for the differential method and conventional RCWA, we progressively increase the z-direction resolution, and measure the scattering matrix error and computation time.All the timings are measured on a workstation with 8 Intel Xeon(R) E5−1620 CPUs running at 3.60 GHz and an NVIDIA GeForce GTX 1080 GPU, and we report the results on both the CPU and GPU implementation.

40The resulting accuracy-cost plots are shown in Figure 4. Given a fixed accuracy level (10 −4 ), our algorithm is the fastest on the CPU.Our algorithm with the "midpoint" reference position strategy is 2−3× faster than the differential method, and 3−8× faster than conventional RCWA.When implemented on GPUs, our algorithm is still much faster compared to conventional RCWA, but it has similar performance as the differential method, although the latter diverges when the resolution is too low.This is because the differential method only involves such operations as matrix multiplication and linear system solves, which can be easily parallelized on modern GPUs.But both RCWA and our method require eigenvalue decomposition, which is not fully GPU-friendly.

41Moreover, the "midpoint" version of both RCWA and varRCWA perform better than the "end point" version, because typically at the midpoint the cross-sectional shape better represents a section's overall shape than at its end points: the change with respect to the "midpoint" is often smaller than the change with respect to the "end point".

42We also highlight that when the differential method or conventional RCWA is used for analyzing a particular photonic structure, there exists no guideline to determine the z-direction resolution for a certain accuracy level.For the differential method, the resolution is even harder to determine as it is more prone to the stability issue.In practice, one has to rely on multiple trials to choose a proper resolution, and thus spend more time than what is reported in Figure 4.

43Performance for Long Waveguides.Our method is more advantageous when simulating long waveguides with length larger than 10 μm.In fact, many on-chip photonic devices are tens and hundreds of microns long. 4,27To simulate those long devices, a commercial software such as Lumerical on a quad-core CPU workstation takes up to several hours.In contrast, our method can finish in 10 min on the same workstation.

44We demonstrate the results using two devices, one linear taper with a length of 10 μm, and one exponential taper with a length of 20 μm.For a given accuracy level (10 −4 ).As shown in Figure 5, our method is 2−3× faster on CPU and 3−4× faster on GPU than the conventional RCWA.The differential method converges very slow for these long structures.Therefore, our method is more than 10× faster on CPU and 3−8× faster on GPU than differential method.

45Performance for Metasurface.Although our method is originally motivated to simulate on-chip nanophotonic devices, it can also speed up the simulation of metasurfaces, slanted gratings, and photonic crystals with varying cross sections.

46Here we use our method to simulate a 3D metasurface with a curved cross-sectional shape along one direction.The metasurface shape and simulation results are shown in Figure 6.In this case, we simulate a metasurface unit and use a periodic boundary condition, and the speedup is similar to that of short waveguides.Our algorithm is 3−4× faster than the differential method, and 6−7× faster than RCWA on CPU.On GPU, our performance is similar to the differential method, 6− 7× faster than RCWA.

47Real-World Applications.Finally, we evaluate our method on two photonic devices reported in literature, namely, a short c/o band splitter 28 and a long TE1−TE0 mode converter. 29Again, the ground-truth scattering matrices for both cases are obtained by the conventional RCWA with high resolution: 32768 discrete sections for the c/o band splitter and 8192 sections for the mode converter, since the former is more complex in shape.In practice, when the error is around 10 −4 , RCWA does not converge for Figure 7c.Therefore, a varRCWA simulation with error bound 5 × 10 −5 is chosen as the ground truth.

48Because of the complex geometry and short length (3 μm) in Figure 7c, differential method is often more suitable since high-order method assumes the smoothness of the geometry.Surprisingly, on CPU, our method performs better than The GPU performance and visualization of a TE1-TE0 mode converter. 29ifferential method, which is shown in Figure 7a.On GPU, because of the lack of parallelism of eigenvalue decomposition, our method (and RCWA) is slower for a large error (above 10 −3 ), but for a smaller error (10 −4 ), our method is still better (more than 7× faster; Figure 7b).Compared to RCWA, our method is more than 10× faster on CPU and more than 7× faster on GPU, as shown in Figure 7d.

49For the mode converter shown in Figure 7e, our method is always faster because it has better scaling for long waveguides (18.616 μm).Again for the same accuracy (10 −4 ), our method is 4× faster than RCWA and 3× faster than the differential method on GPU.

■ CONCLUSION

50In summary, we present a high-order semianalytical method, which is best suited for simulating photonic structures whose cross-sectional shapes vary along the propagation direction.In comparison to the differential method, our method is more stable.In comparison to conventional semianalytical methods, our method is also faster and more accurate.Our method also allows the user to specify an accuracy level, and adaptively discretizes the structure along z-direction to achieve the desired accuracy.

51In future, this work can be extended in various directions.Currently, when subdividing a section, we always divide it into three subsections uniformly.It is possible to subdivide nonuniformly, according to the local cross-sectional shape of the structure.Moreover, our implementation uses the firstorder expansion that we derived, although we can easily extend it to use an even higher order expansion according to the derivation in Supporting Information, Section 1.4.

52Lastly, although our high-order method works well for dielectric material, nonphysical field singularities can occur for metallic material� facing the same problem as the differential method and RCWA, 30 especially for simulating metallic gratings.Nonphysical field singularities have been resolved for the differential method 31 and for RCWA. 3 Combining the fast Fourier factorization with our high-order method to handle metallic gratings is beyond the scope of this work but an interesting future direction to explore.

* sı Supporting Information

53The Supporting Information is available free of charge at https://pubs.acs.org/doi/10.1021/acsphotonics.2c00662.

Detailed derivations and notes on the application of this technique (PDF)

54■

Figure 1 .

55Figure 1.Illustration of the three methods.(a)The differential method divides the structure into multiple sections (gray boxes) and approximates light propagation by a numerical integral (dashed pink arrow) of the electromagnetic fields (e and h, blue circles) in each section.Lastly, the integrals are combined using the Redheffer star product (★).(b) RCWA directly simulates using modal coefficients (a and b, green circles) instead of e and h.It computes the effective wavenumber Λ/k 0 of each mode, assuming the waveguide's crosssection stays fixed.It then approximates the scattering matrix by propagating modes directly.(c) Since many waveguides have varying cross sections, varRCWA (our method), as a high-order method, takes into account cross-mode coupling (orange and yellow arrows) caused by the cross-sectional variation (δA and δB) from a cross section at the reference position P r and Q r .

Figure 2 .

56Figure 2. Adaptive subdivision process of a waveguide.At each subdivision step, the rapidly varying region (estimated error ≥ α, red color) is subdivided into M = 3 sections, while the smoothly varying sections (blue color) remain unchanged.

Figure 3 .

57Figure 3. Stability and accuracy.We simulate a waveguide, visualized in (c), with no z-direction discretization (i.e., treating it as a single section).(a) We measure the resulting scattering matrix errors as length L increases.(b) We also measure the scattering matrix errors as the cross-sectional shape changes.Its width on the right end is fixed at 2.6 μm, while its left width varies linearly from 2.6 to 3.7 μm as the parameter p changes from 0 to 1.The length L is fixed as 1 μm.(d) In addition, we measure the scattering matrix errors as the number of sections increases.

Figure 4 .

58Figure 4. Performance for short waveguides.(a−c) The visualization, CPU performance, and GPU performance of a sinusoidal shape short waveguide.(d−f) The visualization, CPU performance, and GPU performance of a piecewise linear short waveguide.The length of waveguides is 1 μm.

Figure 5 .

59Figure 5. Performance for long waveguides.(a−c) The visualization, CPU performance, and GPU performance of a 10 μm long linear taper.(d−f) The visualization, CPU performance, and GPU performance of a 20 μm long exponential taper.

Figure 6 .

60Figure 6.Performance for metasurface with varied cross section along one direction.(a) The visualization of the geometry of the metasurface, with a period of 650 nm.(b) The performance of the tested algorithms on a CPU workstation and (c) a GPU.

Figure 7 .

61Figure 7. Real-world applications.(a−c) The CPU performance, GPU performance, and visualization of a frequency splitter. 28(d, e)The GPU performance and visualization of a TE1-TE0 mode converter.29

Table 1 .

62Comparison of Three Simulation Methods

634 How the section length z and permittivity distribution P scale to divergence.bError versus the number of sections.cItalso depends on Q; for simplicity, we only use P. d A high-order relation may depend on the integration scheme, for example, (Pz)4for RK4.Detailed discussions in Results.

참고문헌 28건

  1. On the solution of linear differential equations in Lie groups Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 1999 10.1098/rsta.1999.0362
  2. Inverse design and demonstration of a compact and broadband on-chip wavelength demultiplexer Nature Photonics · Nature Portfolio · 2015 10.1038/nphoton.2015.69
  3. Theory of conducting gratings and their applications to Optics Nouvelle Revue d Optique · IOP Publishing · 1974 10.1088/0335-7368/5/2/301
  4. S4 : A free electromagnetic solver for layered periodic structures Computer Physics Communications · Elsevier BV · 2012 10.1016/j.cpc.2012.04.026
  5. Finite difference approach to optical scattering of gratings Proceedings of SPIE, the International Society for Optical Engineering/Proceedings of SPIE · SPIE · 2003 10.1117/12.507464
  6. A path-following technique via an asymptotic-numerical method Computers & Structures · Elsevier BV · 1994 10.1016/0045-7949(94)90165-1
  7. The Magnus expansion and some of its applications Physics Reports · Elsevier BV · 2008 10.1016/j.physrep.2008.11.001
  8. Staircase approximation validity for arbitrary-shaped gratings Journal of the Optical Society of America A · Optica Publishing Group · 2002 10.1364/josaa.19.000033
  9. Waveguide confinement of cerenkov second-harmonic generation through a graded-index grating coupler: Electromagnetic optimization Journal of Modern Optics · Taylor & Francis · 1998 10.1080/09500349808231753
  10. Magnus and Fer expansions for matrix differential equations: the convergence problem Journal of Physics A Mathematical and General · Institute of Physics · 1998 10.1088/0305-4470/31/1/023
  11. Low-loss and fabrication tolerant silicon mode-order converters based on novel compact tapers Optics Express · Optica Publishing Group · 2015 10.1364/oe.23.011152
  12. Comparison among Magnus/Floquet/Fer expansion schemes in solid-state NMR The Journal of Chemical Physics · American Institute of Physics · 2015 10.1063/1.4916324
  13. An asymptotic numerical method for inverse elastic shape design ACM Transactions on Graphics · Association for Computing Machinery · 2014 10.1145/2601097.2601189
  14. Analysis of the sinusoidal nanopatterning grating structure Optics & Laser Technology · Elsevier BV · 2012 10.1016/j.optlastec.2012.10.008
  15. Modeling of plasmonic nanostructures using efficient three dimensional aperiodic rigorous coupled wave analysis 2011 10.1364/fio.2011.jwa41
  16. Rigorous coupled-wave analysis of planar-grating diffraction Journal of the Optical Society of America · Optica Publishing Group · 1981 10.1364/josa.71.000811
  17. Maxwell equations in Fourier space: fast-converging formulation for diffraction by arbitrary shaped, periodic, anisotropic media Journal of the Optical Society of America A · Optica Publishing Group · 2001 10.1364/josaa.18.002886
  18. Numerical approximation of product integrals Journal of Mathematical Analysis and Applications · Elsevier BV · 1976 10.1016/0022-247x(76)90053-6
  19. Numerical solution of initial boundary value problems involving maxwell's equations in isotropic media IEEE Transactions on Antennas and Propagation · IEEE Antennas & Propagation Society · 1966 10.1109/tap.1966.1138693
  20. Grating theory: new equations in Fourier space leading to fast converging results for TM polarization Journal of the Optical Society of America A · Optica Publishing Group · 2000 10.1364/josaa.17.001773
  21. Rigorous diffraction interface theory Applied Physics Letters · American Institute of Physics · 2017 10.1063/1.4982208
  22. Ultrafast optical pulse shaping using dielectric metasurfaces Science · American Association for the Advancement of Science · 2019 10.1126/science.aav9632
  23. Large-scale optical phased array using a low-power multi-pass silicon photonic platform Optica · Optica Publishing Group · 2019 10.1364/optica.7.000003
  24. Fast Fourier factorization for differential method and RCWA: a powerful tool for the modeling of non-lamellar metallic diffraction gratings Optical and Quantum Electronics · Springer Science+Business Media · 2020 10.1007/s11082-020-2240-y
  25. Product integration. Its history and applications 2007
  26. Bridging Between Si and Few-Mode Fiber Higher Order Modes Conference on Lasers and Electro-Optics · 2020 10.1364/cleo_si.2020.sm2o.6
  27. Efficient and Stable Implementation of RCWA for Ultrathin Multilayer Gratings: <i>T</i>-Matrix Approach Without Solving Eigenvalues IEEE Antennas and Wireless Propagation Letters · IEEE Antennas & Propagation Society · 2020 10.1109/lawp.2020.3041299
  28. Ultra-broadband Nanophotonics via Adaptive Inverse Design Conference on Lasers and Electro-Optics · 2021 10.1364/cleo_si.2021.sf2b.3