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

Automated all-functionals infrared and Raman spectra

간접 관련 화학·수지 · (21) 에폭시수지 (11) 배리어 필름(15) 디스플레이 패널재료(16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Lorenzo Bastonero — U Bremen Excellence Chair, Bremen Center for Computational Materials Science, and MAPEX Center for Materials and Processes, University of Bremen, D-28359, Bremen, Germany
  2. Nicola Marzari — Laboratory for Materials Simulations, Paul Scherrer Institut, 5232, Villigen PSI, Switzerland|||Theory and Simulation of Materials (THEOS), and National Centre for Computational Design and Discovery of Novel Materials (MARVEL), École Polytechnique Fédérale de Lausanne (EPFL), CH-1015, Lausanne, Switzerland|||U Bremen Excellence Chair, Bremen Center for Computational Materials Science, and MAPEX Center for Materials and Processes, University of Bremen, D-28359, Bremen, Germany
DOI
10.1038/s41524-024-01236-3
저널
npj Computational Materials
발행년도
2024
발행기관
Nature Portfolio
피인용수
22
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-024-01236-3
토픽
Solid-state spectroscopy and crystallography
OpenAlex ID
W4392862082

평가 내용

관련도
간접 관련
사업분야
화학·수지 · (21) 에폭시수지
부 분야
(11) 배리어 필름, (15) 디스플레이 패널재료, (16) CPI(투명 폴리이미드)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
Density-functional theory, Infrared and Raman spectra, vibrational spectroscopies, materials characterization, computational support
판단 근거
이 논문은 밀도범함수이론(DFT)을 이용해 물질의 적외선(IR) 및 라만(Raman) 분광 스펙트럼을 자동화하여 계산하는 방법론을 다룹니다. 이는 코오롱인더스트리의 고분자 필름, 에폭시, 아라미드 등 다양한 화학/전자재료의 미세 구조 및 분자 진동 특성을 분석하고 물성을 예측하는 R&D 기법에 간접적으로 활용될 수 있습니다.
R&D 활용 포인트
신규 고분자 소재(CPI, 배리어 필름, 에폭시 수지 등) 개발 시, 실험 전 이론적 계산을 통해 분자 구조, 결합 특성 및 광학적 성질을 예측하여 R&D 효율성을 높이는 데 활용 가능합니다.
평가 입력
본문 73,327자 중 30,032자 발췌

초록

Abstract Infrared and Raman spectroscopies are ubiquitous techniques employed in many experimental laboratories, thanks to their fast and non-destructive nature able to capture materials’ features as spectroscopic fingerprints. Nevertheless, these measurements frequently need theoretical and computational support in order to unambiguously decipher and assign complex spectra. Linear-response theory provides an effective way to obtain the higher-order derivatives needed, but its applicability to modern exchange-correlation functionals and pseudopotential formalism remains limited. Here, we devise an automated, open-source, user-friendly approach based on density-functional theory and the electric-enthalpy functional to allow seamless calculation from first principles of infrared absorption and reflectivity, together with zone-center phonons, static dielectric tensor, and Raman spectra. By employing a finite-displacement and finite-field approach, we allow for the use of any functional, as well as an efficient treatment of large low-symmetry structures. Additionally, we propose a simple scheme for efficiently sampling the Brillouin zone at different electric fields. To demonstrate the capabilities of the present approach, we study ferroelectric LiNbO 3 crystal as a paradigmatic example, and predict infrared and Raman spectra using various (semi)local, Hubbard corrected, and hybrid functionals. Our results also show how PBE0 and extended Hubbard functionals (PBEsol+U+V) yield for this case the best match in term of peak positions and intensities, respectively.

본문 73,327자

본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01236-3 # Automated all-functionals infrared and Raman spectra [Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-024-01236-3&domain=pdf) Lorenzo Bastonero 1 & Nicola Marzari 1,2,3 Infrared and Raman spectroscopies are ubiquitous techniques employed in many experimental laboratories, thanks to their fast and non-destructive nature able to capture materials’ features as spectroscopic fingerprints. Nevertheless, these measurements frequently need theoretical and computational support in order to unambiguously decipher and assign complex spectra. Linear response theory provides an effective way to obtain the higher-order derivatives needed, but its applicability to modern exchange-correlation functionals and pseudopotential formalism remains limited. Here, we devise an automated, open-source, user-friendly approach based on densityfunctional theory and the electric-enthalpy functional to allow seamless calculation from first principles of infrared absorption and reflectivity, together with zone-center phonons, static dielectric tensor, and Raman spectra. By employing a finite-displacement and finite-field approach, we allow for the use of any functional, as well as an efficient treatment of large low-symmetry structures. Additionally, we propose a simple scheme for efficiently sampling the Brillouin zone at different electric fields. To demonstrate the capabilities of the present approach, we study ferroelectric LiNbO3 crystal as a paradigmatic example, and predict infrared and Raman spectra using various (semi)local, Hubbard corrected, and hybrid functionals. Our results also show how PBE0 and extended Hubbard functionals (PBEsol+U+V) yield for this case the best match in term of peak positions and intensities, respectively. Vibrational spectroscopies are one of the most powerful, fast and reliable methodsformaterials’ structureidentificationandcharacterization.Among the different techniques probing atomic motions, infrared (IR) absorption and Raman experiments are widespread in most experimental setups, thanks to their low cost and precision in identifying microscopic features. Despite these advantages, data interpretation for many cases calls for theoretical and computational support. Density-functional theory (DFT) is most often employed as a reliable framework for accurate predictions of suchspectra,providinginprincipleexactestimatesofthesecond-andthirdorder derivatives of the energy functional that are needed to predict these vibrational spectra. Over the past decade, many techniques have been developed to efficiently obtain non-resonant spectra of insulating crystals, such as linear-response theory <sup>1–5</sup> for infrared absorption, second-order response of the density matrix <sup>6</sup> and the 2n + 1 theorem <sup>7</sup> for Raman couplings. While being elegant and attractive,these methods come at the cost of rather complex code implementations, limiting in practice applications to selected semi-local functionals and often only to norm-conserving pseudopotentials.Thisisespeciallythecaseforthethird-orderderivativesof the total energy, required for the Raman calculations. One common expedient for the latter is to resort to finite differences of the dielectric tensor upon atomic displacements, computed using density-functional perturbation theory (DFPT) <sup>8,9</sup> . However, this approach scales in general as 6Nat with the number of atoms Nat, a burden in low-symmetry systems, and becomes out of reach for the non-linear optical susceptibility tensor, which has been shown to be fundamental to achieve good agreement for Raman intensities both in single crystals <sup>10</sup> and powder spectra <sup>11</sup> . An alternative framework for carrying out such derivatives is the finite numerical differentiation of forces and polarization upon the application of a homogeneous electric field <sup>7,12–15</sup> . With this technique, along with finite displacements <sup>16</sup>, one can compute straightforwardly all the quantities needed for IR and Raman spectra, as well as allowing to use any functional (Hubbard corrected, hybrids, ...), and pseudopotential formalism (norm-conserving, ultrasoft, PAW) <sup>17</sup> with little effort. Furthermore, the use of finite fields overcomes the expensive computation and poor scaling of the finite dielectric tensor approach, allowing 1U Bremen Excellence Chair, Bremen Center for Computational Materials Science, and MAPEX Center for Materials and Processes, University of Bremen, D-28359 Bremen, Germany. <sup>2</sup> Theory and Simulation of Materials (THEOS), and National Centre for Computational Design and Discovery of Novel Materials (MARVEL), École Polytechnique Fédérale de Lausanne (EPFL), CH-1015 Lausanne, Switzerland. <sup>3</sup> Laboratory for Materials Simulations, Paul Scherrer Institut, 5232 Villigen PSI, Switzerland. [e-mail: lbastone@uni-bremen.de](mailto:lbastone@uni-bremen.de) ������� ϵq^ðωÞ - 1 ~~qf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f ������� ϵq^ðωÞ þ 1 for the study of complex materials such as amorphous and defective structures <sup>18–20</sup> . In fact, with the present approach, one would need to perform typically only 12 ground-state calculations in the presence of a homogeneous electric field (see Eq. (19) and related discussion). While appealing,thisavenuehasseenscarceapplicability,possiblyduetothemany steps and pitfalls related to the underlying algorithm, which can be highly non-trivial even for expert users. A key step forward is to streamline all of these operations through a modern workflow manager, adhering in passing to the FAIR <sup>21</sup> principles for data sharing, while being able of automatically submitting, parsing, and processing the outputs generated by multiple calculations. In this study, we present a comprehensive formulation for a unified finite-displacement and finite-field approach, along with efficient Brillouin zone sampling, and encode this formalism in a selfcontained Python package that operates within the AiiDA framework <sup>22,23</sup>, offering a scalable computational infrastructure for automated and reproducible workflows and data provenance. To showcase these capabilities, we demonstrate its effectiveness in predicting the infrared and Raman spectra of LiNbO3 using seven different functionals: LDA, PBE, PBEsol, PBEsol+U, PBEsol+U+V, PBE0, and HSE06. along a crystal optical axis q is RðωÞ ¼ qf f i f f i f f i f f i f f ϵq^ðωÞ f i f i f i f i f þ 1 ; ð4Þ ���� ~~�~~ �� where ϵq^ðωÞ ¼ ^q � ϵðωÞ � q^ and ^q is the versor of q. The Raman scattering intensities are instead, in the Placzek approximation <sup>26,27</sup> <sup>ν</sup> Raman <sup>/</sup> <sup><u>ω</u></sup> <u>S</u> <sup>4</sup> I <sup>ν</sup> <u>S</u> <sup><u>ω4</u></sup> ων ðnνðTÞ þ 1ÞjeS � α <sup>ν</sup> - eLj <sup>2</sup> ð5Þ for Stokes processes for which ωS = ωL − ων, and where eL,S represent the photon polarization vectors, orthogonal to their propagation vectors kL,S, and nν(T) is the Bose-Einstein occupation function; α <sup>ν</sup> is the Raman susceptibility tensor e <sup>ν</sup> ~~p~~ <u>I</u> ~~f~~ <u>;</u> f i ~~f~~ <u>k</u> f i ~~f~~ ; ð6Þ mI α <sup>ν</sup> ij <sup>¼</sup> pf f i f f X Ω I;k ∂χij ∂τI;k Results The finite-displacement and finite-field method Infrared and Raman spectroscopy are investigation methods probing the atomic vibrations of materials. In both techniques, a source of light shines on the sample, and the incident photons are either absorbed or scattered by the material. In IR experiments, peaks of the absorption spectra correspond to collective atomic motions in resonance with that frequency, corresponding to long-wavelength polar optical phonons. Raman spectroscopy records instead a scattered frequency ωS; in this case, the excited lattice vibration corresponds to the shift ± ων = ωL − ωS from the incoming laser frequency ωL, where the plust (minus) sign refers to (anti-)Stokes process for which a phonon is created (annihilated). Far from resonance the two phenomena can be captured by the change in polarization P and the change in susceptibility χ, for IR and Raman respectively, leading to different selection rules <sup>24</sup> for the activated phonon modes which ultimately provide a comprehensive fingerprint of the material. The former mechanism is coupled to the Born effective charge Z <sup>�</sup> I 5,25 of an atom I in where mI is the mass of the atom I and Ω the volume of the unit cell. In antiStokes processes, the prefactor (nν(T) + 1) must be replaced with nν(T), and ωS = ωL + ων. The ratio of Stokes and anti-Stokes peak intensities is therefore temperature dependent, and, interestingly, can be used as a microscopic thermometer <sup>30</sup> . In the harmonic approximation, the phonon normal modes are obtained from the interatomic force constants (IFCs) <u>∂</u> <sup>2</sup> <u>E</u> ΦIJ;ijða; bÞ ¼ ∂τ <sup>a</sup> I;i <sup>∂</sup> <sup>b</sup> J;j <sup>a</sup> I;i <sup>∂τb</sup> J;j ; ð7Þ mechanism is coupled to the Born effective charge Z <sup>�</sup> I 5,25 of an atom I in the unit cell, and the latter instead to the Raman tensor defined as dχ/ dτI in the Placzek approximation <sup>26–28</sup>, where χ is the electronic susceptibility tensor and τI the atomic displacement. In terms of these quantities, the absorption intensities in the infrared regime of a normal mode ν with angular frequency ων are: where E is the potential-energy surface, and a and b indicate the periodic images with respect to the origin (i.e., the unit cell). The IFCs can be written in terms of first-order derivative of atomic forces FI with respect to atomic displacements, and thus can also be obtained using a set of small displacement configurations in supercells, as discussed in the literature <sup>5,16</sup>, rather than the more efficient density-functional perturbation theory approach. One can exploit periodic-boundary conditions to conveniently Fourier transform the IFCs, and rewrite the latter as a function of the wavevector q; the mass-scaled of this Fourier transform is the dynamical matrix describing the harmonic ion dynamics <u>1</u> DIJ;ijðqÞ ¼ ~~pf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ mImJ I X b ΦIJ;ijð0; bÞe <sup>iq�ðR</sup> J <sup>b</sup> J <sup>b�R0</sup> I <sup>0</sup> I <sup>Þ</sup> ; ð8Þ I <sup>ν</sup> IR <sup>¼</sup> <sup><u>jZ�νj2</u></sup> I <sup>ν</sup> ων where R <sup>b</sup> J <sup>istheequilibriumpositionof atom</sup> <sup>J</sup> <sup>inthe</sup> <sup>l-th unitcellimage.The</sup> diagonalization of the dynamical matrix leads to the phonon frequencies and eigenvectors ; ð1Þ associated to the imaginary part of the complex dielectric function <sup>5,18,29</sup> <sup>ν</sup> I;i <sup>ðqÞ:</sup> ð9Þ DIJ;ijðqÞe <sup>ν</sup> J <sup>ν</sup> J;j <sup>ðqÞ ¼ ½ω</sup> ν <sup>ðqÞ�2eν</sup> I Z� <sup>ν</sup> <u>i</u> <sup>Z�</sup> <u>j</u> <sup>ν</sup> <sup>1</sup> ij <sup>þ</sup> <sup><u>4π</u></sup> Ω ϵijðωÞ ¼ ϵ <sup>1</sup> ij Ω X ν IR and Raman spectroscopies utilize photons which carry a negligible momentum q ≈ 0, thus only probing phonons in the vicinity of the zone center. For exactly q = 0, the phase factor in Eq. (8) becomes the unit, allowing for the calculation of the IFCs via finite-displacements in the primitivecellonly,asthedisplacementpatternsaredefineduniquelyinsuch cell. Nevertheless, the evaluation of the dynamical matrix in the longwavelength limit, i.e., when q → 0, in the case of polar materials requires a proper treatment of its non-analytical behavior <sup>4,5</sup>, accounting for the couplingbetweenphononpolarizationdensitiesandelectric fields,thatadds an extra cost for displacements that create a macroscopic electric field, absent in periodic-boundary calculations of the primitive cell only. The analytical shape of this coupling depends on the dimensionality of the X J;j <u>j</u> ω <sup>2</sup> ν <sup>�</sup> <u>j</u> ð2Þ <sup>2</sup> ν <sup>�</sup> <sup>ω2</sup> <sup>;</sup> which is connected to other measurable quantities, such as the energy loss function and reflectivity spectrum <sup>5,18,29</sup> (ϵ <sup>1</sup> ij <sup>is the high-frequency dielectric</sup> tensor). The amplitudes are defined via the polarization vector Z� <sup>ν</sup> i <sup>¼</sup> X I;k Z <sup>�</sup> I;ik e <sup>ν</sup> ~~p~~ <u>I</u> ~~f~~ <u>;</u> f i ~~f~~ <u>k</u> f i ~~f~~ ; ð3Þ mI where e <sup>ν</sup> I;k <sup>is</sup> <sup>the</sup> <sup>phonon</sup> <sup>eigenvector</sup> <sup>of</sup> <sup>the</sup> <sup>mode</sup> <sup>ν,</sup> <sup>describing</sup> <sup>the</sup> collective dynamics of atoms (index I) in space (index k). In particular, the relationship to the reflectivity RðωÞ of optical waves oriented perpendicularly to the surface and having their electric field material <sup>4,5,31,32</sup> and on the multipolar order <sup>33</sup> . At the dipolar level, the dynamical matrix in such limit reads DIJ;ijðq ! 0Þ ¼ DIJ;ijðq ¼ 0Þ þ D <sup>NA</sup> IJ;ij <sup>ðqÞ</sup> ð10Þ where the non-analytical contribution is For non-vanishing χ <sup>(2)</sup>, the Raman tensor in 3D solids is modified as follows <sup>10,11,42</sup> : ∂χij ðqÞ ¼ ∂τI;k ∂χij ∂τI;k - <sup><u>8π</u></sup> Ω P s;s <sup>0</sup> <sup>q</sup> s <sup>ϵ1</sup> ss <sup>0 q</sup> <u>l</u> <sup>q</sup> <u>l</u> <sup>Z</sup> <u>I</u> <sup>�</sup> <u>;</u> <sup>1</sup> ss <sup>0 q</sup> s <sup>0</sup> <u>l</u> <sup>q</sup> <u>l</u> <sup>Z</sup> <u>I</u> <sup>�</sup> <u>;lk</u> ~~P~~ X l <sup>0</sup> χ <sup>ð</sup> ijl <sup>20Þ ql0</sup> <sup>;</sup> ð17Þ χ <sup>ð</sup> ijl <sup>20Þ</sup> " ! X !# ql0 Z <sup>�</sup> J;l <sup>0</sup> j ; ð11Þ X l <u>1</u> D <sup>NA</sup> IJ;ij <sup>ðqÞ ¼</sup> ~~pf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ mImJ <u>W</u> <sup>d</sup> <u>ðqÞ</u> Ω qlZI <sup>�</sup> ;li qlZI <sup>�</sup> ;li ! X which gives a second q dependence contribution to the Raman spectra intensities (the first being given by the change in phonon eigenvectors and frequencies). Numerical differentiation The possibilityof consistently describing homogenoueselectric fields allows to access any derivative in atomic displacements and electric field, while being easily applicable to advanced functionals and pseudopotential formalisms <sup>15,17</sup> . We calculate here the tensors for infrared and Raman crosssections using a central derivative formulation. These derivatives are performed around E ¼ 0, which resembles the common experimental setup where an external electromagnetic source is negligible, either natural or artificial. Indicating (by dropping the indices) as A either a force or the electronic polarization, we calculate its m-th derivatives with a numerical accuracy of n-th order via the discretization formula: l <sup>0</sup> valid for q → 0 and where W <sup>d</sup> is the Coulomb screening whose shape depends on the dimensionality d (see e.g., refs. 31,32). The directional dependence of the polar optical phonon wavevector q of the dynamical matrix gives rise to a shift in frequency and a change in eigenvector compared to the transverse optical modes (i.e., Z <sup>�ν</sup> ðqÞ � q ¼ 0), giving rise to the well known splitting between the longitudinal optical (LO) and transverse optical (TO) modes <sup>25</sup> ; this shift is largest when Z <sup>�ν</sup> ðqÞ k q. Analogously to the IFCs, the Born effective charges and Raman tensors can also be defined as derivatives of forceswith respect to a macroscopic electric field E <sup>4</sup> . For the former we have: Xn=2 l¼�n=2 Z <sup>�</sup> I;ij <sup>¼</sup> ∂FI;j ∂Ei c <sup>m</sup> l <sup>m</sup> l <sup>A</sup> <sup>l �</sup> <sup>ΔE</sup> i where ΔEi>0 is the small electric field, which we refer to as the finite difference step, along the i-th Cartesian direction, and c <sup>m</sup> l <sup>are</sup> <sup>the</sup> <sup>central</sup> derivative coefficients that can be automatically found using the Fornberg’s algorithm <sup>43</sup> . The discretization is performed using uniform steps such that l ¼ � <sup><u>n</u></sup> 2 <sup>; .. . ; 0; . .. ;</sup> <sup><u>n</u></sup> 2 <sup>is always an integer number and the applied fields are</sup> evenly spaced (see Fig. 1a). This is at variance with the approach of calculating gradients for Bravais lattices with finite differences of ref. <sup>44</sup>, to use standard expressions for the higher-order and mixed derivatives. For mixed second-order derivatives of A, i.e., for the Raman and non-linear susceptibility tensors, we exploit a formula devised in ref. <sup>18</sup> to reduce the number of calculations: we assign Ei ¼ Ej ¼ λ and express the mixed derivative as: <u>∂</u> <sup>m</sup> <u>A</u> ∂E <sup><u>m</u></sup> i <u>∂</u> <sup>m</sup> <u>A</u> ∂E <sup><u>m</u></sup> i <u>1</u> ¼ ΔE <sup><u>m</u></sup> i <u>1</u> ¼ ΔE <sup><u>m</u></sup> i - <sup>l �</sup> <sup>ΔE</sup> i þ OðΔE <sup>n</sup> i <sup>n</sup> i <sup>Þ;</sup> ð18Þ while for the latter, the Raman tensor reads: ð12Þ : ð13Þ ∂χij ∂τI;k ¼ <sup><u>1</u></sup> Ω ∂ <sup>2</sup> FI;k ∂Ei∂Ej In a finite-difference scheme, this means that a small homogeneous electric field must be applied in order to carry out the numerical differentiation. In periodic-boundary conditions, this can be accomplished by extending the energy functional E[ψ] to include a term <sup>12,13,34</sup> accounting for the couplingof the electric field and the total polarization of the system (often referred as electric-enthalpy functional): F ½ψ; E�¼ E½ψ�� Ω E �½P <sup>ion</sup> þ P <sup>el</sup> ½ψ��; ð14Þ where P <sup>ion</sup> and P <sup>el</sup> are the ionic and electronic polarizations, respectively; the latter being described by the modern theory of polarization <sup>35,36</sup> . Such functional, while not bounded from below, admits local minima representing self-consistent stationary solutions <sup>12,13</sup>, if E is properly chosen. We note that in many implementations (such as the present one) the electric enthalpy functional is not directly minimized <sup>37,38</sup>, but it is recast in a nonlocal operator which couples neighboring k-points and which is solved selfconsistently among all k-points (see refs. <sup>39–41</sup> for details). The self-consistent solution of the functional guarantees the simultaneous evaluation of Hellmann-Feynman forces, and electronic polarization, at convergence. As a consequence, the electronic polarization (that comes for free) can be exploited to extract its first and second-order derivatives with respect to an electric field <sup>7,13,18</sup> . These correspond respectively to the high-frequency dielectric tensor ϵ <sup>∞</sup>, used to calculate the screened Coulomb interaction in Eq. (11) <sup>4,31,32</sup>, the full complex dielctric tensor (Eq. (4)), and the non-linear optical susceptibility χ <sup>(2)</sup>, key in non-centrosymmetric crystals where the Fröhlichcontribution(seeEq.(17))totheRamantensorcouldbesizable <sup>10,11</sup> . Their relationship with the electronic polarization derivatives is as follows: <u>∂</u> <sup>2</sup> <u>A</u> ∂Ei∂Ej <sup><u>1</u></sup> <u>∂</u> <sup>2</sup> <u>A</u> 2 ∂λ <sup>2</sup> " # ∂E <sup>2</sup> i i ¼ <sup><u>1</u></sup> <u>∂</u> <sup>2</sup> <u>A</u> ∂λ <sup>2</sup> <sup>�</sup> <sup><u>∂</u></sup> ∂ <sup>2</sup> E <sup><u>A2</u></sup> i ; ð19Þ - <sup><u>∂2A</u></sup> ∂E <sup>2</sup> j j <sup>1</sup> ij <sup>¼ δ</sup> ij <sup>þ</sup> <sup><u>4π</u></sup> Ω ϵ <sup>1</sup> ij Ω whereeachsecond-orderderivativeisevaluatedthroughEq.(18);thiscanbe visualized schematically in Fig. 1(a). For example, using a 2nd-order numerical accuracy, we would need only 12 self-consistent field (SCF) calculations with a non-zero electric (ΔE-SCF) field to determine all the tensors’ components needed both for IR and Raman spectra, even in lowsymmetry systems such as amorphous materials <sup>18,20</sup> ; this number can be reduced if one exploits the symmetries of the material. In fact, there could exist symmetries belonging to the point group of the crystal that transform an electric field direction into another. For example, if the crystal satisfies inversion symmetry, this is sufficient to reduce by a half the number of ΔE-SCF calculations needed, since forces and electronic polarization produced by ΔEi are connected by a similarity transformation to the one produced by �ΔEi; keeping the previous numerical example, we would needthenjust6 ΔE-SCFcalculations.Forhighly-symmetriccrystals,suchas cubic Si, only two independent electric field directions must be evaluated (e.g., along Z and the mixed direction XZ); in this case, the number of calculations reduces further to only 2. In general, the number of ΔE-SCF calculations needed scales with the numerical accuracy n of the central formula as N n ¼ 6 � n, not accounting for symmetries. Interestingly, it can be noticed from Fig. 1 that the evaluation of the numerical derivatives at n > 2providesautomaticallyderivativesatloweraccuracy n;thisishelpfulto <u>∂P</u> <sup>el</sup> <u>i</u> ∂Ej ; ð15Þ : ð16Þ ijk <sup>ð2Þ</sup> <sup>¼</sup> <sup><u>2π</u></sup> Ω <u>∂</u> <sup>2</sup> <u>P</u> <sup>el</sup> <u>i</u> χijk <sup>ð2Þ</sup> Ω <u>∂</u> <sup>2</sup> <u>P</u> <sup>el</sup> <u>i</u> ∂Ej∂Ek Fig. 1 | Illustration of the numerical derivative discretization and of the application of the directional sampling scheme applied to a simple lattice. a Schematic illustration of the discretization needed in Eqs. (18) and (19) for derivatives with respect to the electric field in the directions i = {x, y} and for mixed derivatives along (λ, λ). The black dots represent the applied electric fields used in the SCF calculations to evaluate the electric-field-dependent A (forces or polarization) used in Eqs. (18) and (19), while the dashed colored circles are associated to the accuracy n achieved in the numerical differentiation (here shown up to order n = 6). b, c Square reciprocal lattice showing possible k-point samplings (black dots) of the BZ generated via Eqs. (23)–(24) for the electric field E shown in crystal coordinates. b shows the case when the electric field is parallel to a lattice vector; in this scenario, more k-points are check the convergence a posteriori with respect to the finite step size ΔE. Some benchmarks and illustrations on a prototypical material are provided in the Supplementary Discussion. While this approach is advantageous, we also highlight that the choice of the field magnitude is restricted. As already stated before, the electricenthalpy functional (14) has no global minimum, and long-lived metastablestatesexistonlybelowacertaincritical field E <sup>c</sup>,whereZenertunneling issuppressed <sup>12,34</sup> .Anestimateofsuchcriticalvaluecanbeperformedusing <sup>12</sup> : ejE <sup>c</sup> - aij ’ Egap=N i ð20Þ where e is the electric charge, ai the lattice vectors defining the unit cell, Egap the electronic band gap, and Ni the number of k-points sampling the Brillouin zone in the i-th crystal direction. For semiconductors with small band gaps this critical field can be very small, limiting in practice the convergencedue to numerical noise. In these circumstances, a balance must be found; nevertheless, for the majority of cases this does not represent an actual limitation. The last subtlety lies in the choice of the logarithm branch when calculating the Berry-phase polarization; a detailed explanation of the issue along with practical solutions can be found in the Supplementary Methods. Directional sampling An additional subtle issue related to the Berry phase formalism used in the electric-enthalpy formulation is the dense sampling of the Brillouin zone required to achieve well converged values of the polarization. In fact, the polarization is a k-space integral of a Berry connection <sup>35,36</sup>, and the discretized formula for the gradient converges slowly with respect to the k-pointdistance <sup>14</sup> (seealsoSupplementaryDiscussion).Onecanexpressthe electronic polarization using the string-averaged discretized Berry phase formulation <sup>35,36</sup> along the direction of a reciprocal lattice vector bi as: generated along such direction, by using d∥, where the induced polarization is expected to be larger. The increased number of k-points in such direction improves the convergence of the calculated polarization via Eq. (21). A more accurate polarization can then be obtained by decreasing the value of d∥, which in this case turns to linearly increasing the number of k-points. c shows the special case pf f E~1 ¼ E~2 - E~= 2, where the induced polarization is expected along the mixed direction. Since the polarization is a sum of the polarization projected along b1 and b2, Eq. (22), then the k-points are increased along both directions by using d∥. The generated mesh is equivalent to a uniform mesh defined by a single k-point distance d ≡ d∥. In this case, when more accurate values are desired, the number of k-points will scale quadratically when decreasing d∥. Assigningmomentarily i = 1to bi asawayofexample,then N <sup>ð</sup> ? <sup>1Þ</sup> Assigningmomentarily i = 1to bi asawayofexample,then N <sup>ð</sup> ? <sup>1Þ</sup> <sup>¼ N</sup> 2 <sup>× N</sup> 3 is the number of k-point strings parallel to b1, each such string having N <sup>ð</sup> k <sup>1Þ</sup> <sup>¼ N</sup> 1 <sup>k-points defined as kð</sup> l; <sup>1</sup> j <sup>Þ</sup> <sup>¼ k</sup> l <sup>ð1Þ</sup> þ ðj=N 1Þb1, where kl <sup>ð1Þ</sup> belongs to the plane (b2, b3), corresponding to a slice of the full mesh N1 × N2 × N3, and is indexed by l. The total electronic polarization is then given by <sup>ð</sup> k <sup>1Þ</sup> <sup>¼ N</sup> 1 <sup>k-points defined as kð</sup> l; <sup>1</sup> j <sup>Þ</sup> <sup>ð</sup> l; <sup>1</sup> j <sup>Þ</sup> <sup>¼ k</sup> l <sup>ð1Þ</sup> l <sup>ð1Þ</sup> þ ðj=N 1Þb1, where kl <sup>ð1Þ</sup> P <sup>el</sup> ¼ <sup><u>1</u></sup> 2π X3 i¼1 aiðP <sup>el</sup> - biÞ; ð22Þ P <sup>el</sup> - bi ¼ <u>2e</u> l <sup>ð</sup> ; <sup>i</sup> j <sup>Þ</sup> þ1 <sup>Þ�:</sup> ð21Þ where ai are the direct lattice vectors. In this way, the calculation of the polarization in real space requires to evaluate Eq. (21) for each (reciprocal) lattice vector and on top of very dense meshes. Once the self-consistent electronic charge-density is found, hence the Kohn-Sham Hamiltonian is fixed, one can increase straightforwardly the amount of k-points needed for accuratepolarizationcalculations,bydiagonalizingnonself-consistentlythe Kohn-Sham Hamiltonian at the desired grid and thus avoiding the expensive self-consistent cycle. Yet, such diagonalization can be computationally demanding. A smart solution is to compute each P <sup>el</sup> ⋅ bi contribution at a different sampling, noticing that the right-hand side of Eq. (21) converges faster with respect to N ? <sup>ðiÞ,</sup> <sup>and</sup> <sup>consequently</sup> <sup>one</sup> can simply increase the number of k-points along bi, i.e., by increasing Ni only. This allows to scale linearly with the number of points in the string, instead of increasing all Ni (cubic scaling), at the price of performing three calculations instead of a single, overall more expensive, calculation on a very dense mesh. Importantly, one needs to carefully check convergence with respect to both the number of “orthogonal” k-points N? <sup>ðiÞ</sup> <sup>and the number of</sup> k-points per string N k <sup>ðiÞ</sup> <sup>¼ N</sup> i <sup>. Unfortunately, in the case of a finite electric</sup> field,anon-localoperatorwhichcouplesneighboringk-pointsisintroduced in the Hamiltonian <sup>39–41</sup> . This means that, on one hand, one cannot simply diagonalize in a post-processing step the Hamiltonian, and on the other hand, one is in principle not justified to split the calculation in three parts as formerly explained. We then seek a sampling strategy that can simultaneously alleviate the k-points scaling, and that can still provide accurate polarizations. The main idea is to perform a single calculation with a special k-point grid. We can exploit the fact that we are interested in calculating the induced polarization by an homogeneous electric field, contrary to other type of calculations where the direction of the induced polarization, e.g., due to atomic displacements, is less obvious (one can still NY <sup>ð</sup> k <sup>iÞ�1</sup> j¼0 det½Sðk <sup>ð</sup> l; <sup>i</sup> j <sup>Þ</sup> <sup>ð</sup> l; <sup>i</sup> j <sup>Þ; k</sup> l <sup>ð</sup> ; <sup>i</sup> j <sup>Þ</sup> N <sup>ð</sup> ? <sup>iÞ</sup> <sup>ð</sup> ? <sup>iÞΩ</sup> XN <sup>ð</sup> ? <sup>iÞ</sup> l¼1 Im ln Here, Snmðk; k <sup>0</sup> Þ ¼ hunkjumk0 i represents the scalar product between Bloch’s state of band n and k-point k, and state of band m and k-point k <sup>0</sup> . Fig. 2 | Schematic representation of the automated workflow for the calculation of infrared and Raman spectra. Computational workflow scheme of the IRamanSpectraWorckChain and of its sub-workflows, the DielectricWorkChain and the PhononWorkChain. The inputs can be easily, fully exploit the strategy proposed above, if an electric field is absent). Let’s assume that the induced polarization by an electric field is larger in the direction of the applied electric field, meaning we can focus on computing it more accurately along such direction, and mimic the strategy reported previously, but using a sole, electric field-dependent, directional k-point mesh. To explain this further, let E <sup>~</sup> ¼ ðE <sup>~</sup> 1; E <sup>~</sup> 2; E <sup>~</sup> 3Þ be the electric field in the lattice reference system. The product P <sup>el</sup> ⋅ bi is then expected to be larger where E <sup>~</sup> i is larger, and, as a consequence, one can increase Nk <sup>ðiÞ</sup> <sup>¼ N</sup> i weighted upon the relative value of E <sup>~</sup> i with respect to the the other components of E <sup>~</sup> . To automate the choice of Ni in a weighted manner, we start by defining two quantities: an orthogonal and a parallel k-point distance, d⊥ and d∥, respectively. The orthogonal distance represents a minimum distance between k-points in the BZ, thus usually producing small Ni - this quantity is used as a reference minimum for Ni in the unique mesh, resembling essentially Ni employed for orthogonal meshes in the three calculations strategy. The parallel distance instead is used to define a weighted Ni which should be greater than its reference minimum, defined previously by the orthogonal distance, when E <sup>~</sup> i is considered large enough (see Fig. 1b, c). To quantify the relative magnitude of E <sup>~</sup> i, and consequently choosing the weighting, we assign the following weights: defined via the get_builder_from_protocol while specifying only a StructureData and a Code. The black circles on top of boxes mean that the calculation starts using charge density and wavefunctions from a previous calculation. we can assign the number Ni of the mesh as: ( ) ; <sup><u>jbij</u></sup> d? N i ¼ max wi <u>jbij</u> dk : ð24Þ <u>jE</u> <sup>~</sup> <u>ij</u> wi ¼ maxfjE <sup>~</sup> 1j; jE <sup>~</sup> 2j; jE <sup>~</sup> 3jg ; ð23Þ This methodology is easy to implement and generates meshes that significantly reduce the number of k-points needed instead when using a uniform sampling, i.e., Ni = ∣bi∣/d, where d is a constant k-points distance (see Supplementary Discussion for detailed numerical experiments). This scheme allows for linear scaling of k-points with respect to 1/d∥ when the applied electric field is perfectly aligned along one of the lattice vectors, as it can be seen in the simple case of Fig. 1b. In orthorombic systems this is particularly convenient, as the three lattice vectors are parallel to the three Cartesian axis. In general, when the electric field direction is not parallel to one of the lattice vectors, the number of k-points scales asa power of 1/d∥.In the extreme case when E <sup>~</sup> 1 ¼ E <sup>~</sup> 2 ¼ E <sup>~</sup> 3, then the number of k-points will scale cubically with respect to the parallel distance, equivalent to a uniform mesh defined by a single k-point distance d ≡ d∥. This is schematically depicted in Fig. 1c for a simple case in 2D. Computational workflow Inthissection,we finallypresentthecomputationalworkflowsthatallowsto simulate the desired spectra—infrared, Raman, or both—in an automated fashion. We designed two main independent workflows as AiiDA WorkChains <sup>22</sup> :onecarryingoutsolelythe finitedisplacementcalculations aiming at increasing Ni for lattice directions where the electric field is larger, and where we expect the induced electric polarization to be greater. Finally, for phonon modes to evaluate the IFCs, which we called PhononWorkChain, and the other for the mixed total-energy derivatives via the homogeneous electric fields, the DielectricWorkChain. When joined together, the above two provide the IRamanSpectraWorkChain, as schematically outlined in Fig. 2. The IRamanSpectraWorkChain takes as inputs a structure, a code and other details on how to run the workflows (e.g., SCF parameters, wall-time, parallelization options, and so on). These information are then split and/or shared between the two sub-workflows. Both start running an initial SCF ground-state calculation, meant to produce the charge density ρ0 and wavefunctions {ψi} that will be used as a starting point for the next runs. We represent this restart throughout the flowchart of Fig. 2 using a rotating white arrow in a black circle, and we use the dashed arrows to indicate that the fileshavebeencopiedovertoafreshnewfolder.Whenthesecalculations are finished, the PhononWorkChain generates the structures with irreducible atomic displacements, using Phonopy <sup>16</sup>, and computes their forces. The latter are then used to produce the matrix of IFCs in the unit cell (although the PhononWorkChain is designed to compute the IFCs in a generic supercell), which are employed in a post-processing step to obtain the phonon frequencies and eigenvectors by diagonalizing the corresponding dynamical matrix, Eq. (10), for q → 0. In parallel, the DielectricWorkChain evaluates E <sup>c</sup> through a non-SCF calculation and extracts the numerical accuracy n and the electric field step ΔE, as follows: when the critical value is larger than 10 <sup>−4</sup> Ry a.u. (we use Rydberg atomic units; 1 Ry a.u. ≈ 36.3609 V/Å), a 4th-order numerical expansion is chosen, otherwise a 2nd order is used. The 4th-order allows to achieve a greater numerical accuracy for finite differences; thus, it is utilized whenever it is possibleto applyan electric field abovethreshold.If theelectric field that can be applied is smaller than 10 <sup>−4</sup> Ry a.u., a 2nd-order expansion is sufficient, thus avoiding calculations that would be affected by too much numerical noise <sup>28</sup> ; the amplitude of the electric field step in fact may result too small to produce significant digit changes in forces and polarization, hence possibly worsening the numerical derivatives even if adding extra points to the formula. The step ΔE is instead selected according to: <u>roundn</u> <u>ðE</u> <sup>c</sup> <u>;5Þ</u> if 10 <sup>�4</sup> <E <sup>c</sup> ≤ 10 <sup>�3</sup> ; <u>round ðE</u> <sup>c</sup> <u>;6Þ</u> if E <sup>c</sup> ≤ 10 <sup>�4</sup> ; n <u>ðE</u> <sup>c</sup> <u>;6Þ</u> if E <sup>c</sup> ≤ 10 <sup>�4</sup> ; ð25Þ ΔE ¼ 8 >>< >>: <u>10n</u> <sup>�3</sup> if E <sup>c</sup> >10 <sup>�3</sup> ; <u>round ðE</u> <sup>c</sup> <u>;5Þ</u> if 10 <sup>�4</sup> <E <sup>c</sup> ≤ 10 perform the numerical differentiation following Eqs. (18) and (19) to obtain the second- and third-rank tensors (12)-(13)-(15). As a final step, the IRamanSpectraWorkChain joins all the information in a unique AiiDA data type, named VibrationalData, able to efficiently store largearraysandinformationintheAiiDArepositoryanddatabase,andwith provenancegraphforfullreproducibility <sup>22</sup> .Thisdatatypeisaself-contained Python class, and it is provided with a number of post-processing methods and features that allow the user to compute powder and single-crystal polarized vibrational intensities and frequencies, along with the symmetry labels of the respective phonon modes. We also implemented an IntensitiesAverageWorkChain which performs the sphericalaverage spectra, important in Raman for non-centrosymmetric crystals <sup>11</sup> when in a polycrystalline powder form. As mentioned earlier, the inputs of these workflows can be fully customized further by the user. We do not report here the full list of these inputs, which can be explored through the usual command line interface of AiiDA <sup>22</sup> and [through the on-line documentation made available (https://](https://aiida-vibroscopy.readthedocs.io/en/latest/) [aiida-vibroscopy.readthedocs.io/en/latest/).](https://aiida-vibroscopy.readthedocs.io/en/latest/) However, we emphasize the possibility of fully defining the entire set of inputs required via a limited subset,asalreadydoneinotherAiiDApackages <sup>45</sup> :insimilarfashiontoref. <sup>45</sup>, we identify the fundamental inputs to be the code, i.e., the Quantum ESPRESSO <sup>46–48</sup> pw.x binary, associated with the computer, that runs the calculations,therelaxed structure andthe protocol,astringdefining in a general and user-friendly fashion the accuracy of the simulation. This minimal set, used through the get_builder_from_protocol method <sup>45</sup> designed for all the workchains, provides the user with a pre-filled builder (the main unit in AiiDA used to run workflows) ready to be submitted. This is adequate for non-experts in the field that might be interested in simulating spectra of a given structure with minimal computational knowledge, but is also very precious in the context of highthroughput searches or for teaching or testing. All-functionals LiNbO3 spectra We showcase the strength of this approach by studying the ferroelectric phase of LiNbO3 (space group R3c, no. 161) for which the vibrational spectra havelong been debated in the literature <sup>49–52</sup> and exhibit large LO-TO phonon splittings at Γ <sup>49</sup> that are ideal for exploring different exchangecorrelation functionals. We selected three commonly used local and semilocal functionals, LDA, PBE and PBEsol; Hubbard-corrected PBEsol in the standard and extended version, namely DFT+U <sup>53,54</sup> and DFT+U+V <sup>55–57</sup> ; and two of the most used hybrids functionals for inorganic crystalline materials, HSE06 <sup>58,59</sup> and PBE0 <sup>60</sup> . Through the use of the IRamanSpectraWorkChain, we carried outthesimulation of the vibrationalspectraforallthe functionals aboveand compare our results to experimental measurements from the literature <sup>11,51,52,61,62</sup> . In particular, we compare the simulations presented in Fig. 3 with different experimental Raman single-crystal polarization setups where LO modes are filtered out <sup>52</sup> ; in Fig. 4 with single-crystal and polycrystalline powder Raman spectra including the LO modes <sup>11,51,61</sup> ; and in Fig. 5 with single-crystal infrared absorption <sup>62</sup> and reflectivity spectra <sup>51</sup> . We make use of the Porto notation for Raman setups: the labels within the parenthesis refer to the polarization of light eL and eS, the external labels to the propagation of light kL and kS. When only TO modes are shown, the external labels are not specified. For spectra showing LO modes, we set q∥kL − kS in single crystals, while polycrystalline powder spectra are modeled via the spherical-average procedure, as outlined in ref. <sup>11</sup> . The conventional cell is used to define the Cartesian directions, aligning the Z axis along the c axis and the X axis along the a axis (Y is chosen to obtain a right-handed reference system). The single-crystal data of ref. <sup>52</sup>, reported in Fig. 3, allow us to compare directly the intensities (TO modes only). The experimental LO and TO frequencies were reported in ref. <sup>52</sup>, and are summarized,alongwiththetheoreticalpredictions,inSupplementaryTable <u>1. We ranked the spectra in the plots in function of the statistical estimator</u> jΔωj ¼ <sup>PN</sup> ν¼1 <sup>jω</sup> ν <sup>exp</sup> - ω <sup>theo</sup> ν j=N, where N is the number of active modes detected. All the functionals show good agreement with experiments and where the electric field units are again expressed in Ry a.u. and round(x,y) rounds the number x to the y digit after the decimal point. These choices should guarantee larger values of the finite step to reduce the numerical noise on forces and polarization, and at the same time higher accuracy to remove the step size dependence of the finite-difference formula, which can be verified a posteriori when n > 2 (see also Fig. 1a). We point out here that eventually the user can still enforce the accuracy n and/or the ΔE value that will be used in Eqs. (18) and (25). Once an electric field is chosen and the ground-state SCF calculation is finished, a symmetry analysis is performed to find the independent directions E <sup>^</sup> of the electric fields to apply, where E <sup>^</sup> is a versor. For each such independent direction a MP mesh is determined through Eq. (24) and a series of SCF calculations are then launched at E ¼ 0 withthecorrespondingmeshrestartingfromtheground-statedensityofthe previous SCF. The reason for computing SCF calculations at E ¼ 0 with these meshes is twofold: first, they provide the ground-state charge density and wavefunctions for the next finite electric field calculations, resulting in faster convergence of the self-consistent cycles, and, second, they guarantee the same level of convergence on forces and polarization for the finite differentiation. Once finished, electric-enthalpy calculations start for each independent direction E <sup>^</sup> at the smallest step value ΔE ¼ ΔE � E <sup>^</sup>, to provide an adiabatic switching of the perturbation. If the numerical accuracy n is greaterthan 2,furtherSCF calculationswith homogeneouselectric fields are run,restartingfromthepreviousstepstillthemaximumvalue ðn=2ÞΔE;this loop corresponds to increasing/decreasing the value of l in Eq. (18). At this point, the computed forces and polarizations are gathered together to Fig. 3 | Polarized single-crystal Raman spectra of ferroelectric LiNbO3 as obtained withseven different exchange-correlation functionals, andcompared to experimental measurements <sup>52</sup> . The scattering geometries are reported in parenthesis. The theoretical spectra are ordered according to the error jΔωj (shown in with the results of the literature <sup>49–52</sup> . PBEsol + Usc + Vsc, PBE, and the two hybrids show competitive results among each other, while PBEsol, PBEsol +Usc and LDA have quantitative larger discrepancies. In particular in Table 1 we report statistical estimators for the comparison of the theoretical and experimental phonon frequencies (LO and TO) and intensities (only TO, Fig. 3). These spectra setups allowed to accurately estimate the error of the intensities evaluated through the minimization of the relative error: f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i ffi PN 2 Table 1), from smallest (pink, PBE0) to largest (blue, LDA). Hubbard-corrected PBEsol + Usc and PBEsol + Usc + Vsc are labeled just Usc and Usc + Vsc, the subscript sc refers to the self-consistent calculation of U and V <sup>77,78</sup> . Theoretical intensities are smeared with a 8 cm <sup>−1</sup> wide Lorentzian. of the phonon frequencies due to the thermal expansion, which tends to soften the vibrational modes, all the theoretical spectra were performed at the experimental lattice geometry (see the Method section), meaning the systematic error is unrelated to this effect. While other thermal contributions should in principle be accounted for, their inclusion would require more sophisticated levels of theory <sup>63–65</sup> which go beyond the scope of the present work. Moreover, at the conditions of the experiments, such contributions are expected to produce only minor phonon shifts <sup>51</sup> . Given these points we might conclude in this case that such errors are intrinsic to the functionals. We proceed in the following with a more qualitative analysis of the other calculated spectra, as the experimental data we refer to come from different sources. In Fig. 4 we show the result of the complex interplay of long-range interactions, Eq. (11), and the non-linear dielectric response which renormalizes the Raman intensities, Eq. (17). It can be noted again that all functionals are able to describe well both the peak positions and the intensities of the different experimental measurements. In particular, the intensity of the LO mode at around 870 cm <sup>−1</sup> is reproduced correctly. The dashedlines in the figure highlight the error committed when neglecting the χ <sup>(2)</sup> contribution in Eq. (17), which is relevant for the accurate prediction of the intensity. As already found in ref. <sup>11</sup>, the spherical average employed to compute the spectra of the polycrystalline sample of Fig. 4c correctly reproduces the asymmetric lineshapes of the experimental peaks, which can be understood as an average of all the possible q → 0 splitting modes which the incident light happens to activate in a polycrystalline powder sample. The absorption and reflectivity infrared spectra reported in Fig. 5 show very ΔIðf Þ ¼ vf f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i f f i ffi uutPNν¼ ~~P~~ <u>1</u> N <sup><u>ðI</u></sup> <u>ν</u> <sup>theo</sup> <u>�</u> <u>fI</u> <sup>exp</sup> <u>ν</u> <sup><u>Þ</u></sup> 2 ð26Þ <u>ν¼1</u> <sup><u>ðI</u></sup> <u>ν</u> <sup>theo</sup> <u>¼1</u> <sup><u>ðI</u></sup> <u>ν</u> <sup>theo</sup> <u>�</u> <u>fI</u> <sup>exp</sup> <u>ν</u> <sup><u>Þ</u></sup> 2 ~~P~~ N ν¼1 <sup>ðfI</sup> ν <sup>exp</sup> <u>ν</u> <sup>theo</sup> <u>�</u> <u>fI</u> <sup>exp</sup> <u>ν</u> <sup><u>Þ</u></sup> ν <sup>expÞ2</sup> where f represents the unknown scaling factor between theoretical I <sup>theo</sup> and experimental I <sup>exp</sup> intensities, due to the use of arbitrary units <u>in</u> <u>the</u> experimental spectra. The smallest absolute error on frequencies <u>jΔωj</u> is provided by the PBE0 functional with 7.3 cm <sup>−1</sup>, and on intensities jΔIj by the PBEsol + Usc + <u>Vsc functional with 16%. It is to note that the latter also</u> shows a very good jΔωj of 10.7 cm <sup>−1</sup>, about 3 cm <sup>−1</sup> apart from the best performing functional for this material, whereas the former has 24% error for jΔIj, 8% more with respect to PBEsol + Usc + Vsc. We also report the renormalized absolute error jΔωj ~~�~~, for which the frequencies are shifted by the baremean error <u>Δω beforethemodulusaverage;thisgivessomeinsights</u> whether the discrepancy arises from a systematic error, e.g., due to the geometry used. Interestingly, after renormalization, most of the functionals get rather close error values. While this might be due to the renormalization Fig. 4 | Polarized single-crystal and powder Raman spectra of ferroelectric LiNbO3 as obtained with seven different exchange-correlation functionals, and compared to experimental measurements <sup>51,62</sup> . a, b Raman spectra of single-crystal polarized setups; the scattering geometry is reported in the Porto notation. c Raman spectra of polycrystalline powder sample; the theoretical spectra are computed using Fig. 5 | Absorption and reflectivity spectra in the IR regime of ferroelectric LiNbO3 as obtained with seven different exchange-correlation functionals, and compared to experimental measurements <sup>51,62</sup> . a Infrared absorption using polarized light for E (left panel) and A1 (right panel) symmetry modes. b Normal the spherical average formula <sup>11</sup> . In each panel, the dashed lines show the computed spectra when the second term in Eq. (17) is neglected. Theoretical intensities are smeared with a constant 12 cm <sup>−1</sup> broadened Lorentzian. The theoretical spectra are reported in order of decreasing error jΔωj, and Hubbard-corrected PBEsol are abbreviated only with their corrective parameters, as in Fig. 3. reflectivity spectra of Z-cut single crystal; upper and lower ticks for each panel correspond to 1 and 0, respectively. The order of theoretical spectra and the labels are as in Fig. 3. Theoretical intensities are smeared with a constant 12 cm <sup>−1</sup> broadening; a Lorentzian function is used for (a). Table 1 | Statistical error estimators between predictions and experiments <sup>52</sup> for E and A1 LO-TO modes <u><mark>LDA</mark></u> <u><mark>PBEsol+Usc</mark></u> <u><mark>PBEsol</mark></u> <u><mark>PBE</mark></u> <u><mark>PBEsol + Usc + Vsc</mark></u> <u><mark>HSE06</mark></u> <u><mark>PBE0</mark></u> jΔωj 22.2 15.1 15.1 11.0 10.7 7.9 7.3 Δω 22.2 14.1 15.1 10.5 10.6 5.7 5.2 jΔωjmax 45.4 44.3 35.4 38.8 28.7 27.1 24.8 jΔωj <sup><u>�</u></sup> 8.1 8.9 6.7 7.3 6.2 6.9 6.2 jΔIj 34 25 22 23 16 25 24 Statistical error estimators given in cm <sup>−1</sup> for frequencies ω and in percentage for the Raman intensities I (the intensities are compared for TO modes only; see Fig. 3 and Supplementary Discussion). The estimators are: jΔωj ¼ <sup>PN</sup> ν¼1 <sup>jΔω</sup> ν <sup>j=N is the mean absolute error; Δω</sup> <sup>¼ PN</sup> ν¼1 <sup>Δω</sup> ν <sup>=N is the mean error; jΔω</sup> max <sup>j is the absolute max difference; jΔωj�</sup> <sup>¼ PN</sup> ν¼1 <sup>jΔω</sup> ν <sup>�</sup> <sup><u>Δωj=N is the mean absolute error for</u></sup> frequencies shifted by their mean difference; jΔIj ¼ 100 � minf <sup>fΔIðfÞg represents the percentage error of the optimal scaled intensities; N is the number of considered modes and Δων is the difference between</sup> experimental and theoretical functional mode frequency. <sup>N</sup> ν¼1 <sup>jΔω</sup> ν <sup>j=N is the mean absolute error; Δω</sup> <sup>¼ PN</sup> ν <sup>N</sup> ν¼1 <sup>Δω</sup> ν <sup>=N is the mean error; jΔω</sup> max <sup>j is the absolute max difference; jΔωj�</sup> <sup>¼ PN</sup> ν Table 2 | Ordinary and extraordinary dielectric components of LiNbO3 from experiments and from seven different exchangecorrelation functionals <u><mark>LDA</mark></u> <u><mark>PBEsol+Usc</mark></u> <u><mark>PBEsol</mark></u> <u><mark>PBE</mark></u> <u><mark>PBEsol + Usc + Vsc</mark></u> <u><mark>HSE06</mark></u> <u><mark>PBE0</mark></u> <u><mark>Exp.</mark></u> <sup>51</sup> <u><mark>Exp.</mark></u> <sup>66</sup> ϵ <sup>o</sup> <u>0</u> 48.1 45.3 44.6 43.1 39.4 43.2 43.0 40.2 41.5 ϵ <sup>e</sup> <u>0</u> 29.6 31.8 27.7 26.3 24.3 25.6 25.7 23.7 26 Ordinary and extraordinary static dielectric components, ϵ <sup>o</sup> 0 <sup>and ϵ</sup> 0 <sup>e, as obtained with seven different functionals (ordered from left to right according the the mean average error shown in Table 1), and</sup> compared to the experimental results <sup>51,66</sup> . Other experimental values are reported in ref. <sup>51</sup> . good agreement with the experimental measurements <sup>51,62</sup> . For a more quantitative comparison, here we compare in Table 2 the static dielectric tensor ϵij(ω = 0) for the ordinary and extraordinary components, which can be measured from absorption measurements. The theoretical predictions are close to the experimental values. We note that it is difficult here to assess accurately the theoretical errors, as the experimental evaluation of this quantity is usually subject to deviations, as it can be seen in Table 2. Nonetheless, once again, PBE, PBEsol + Usc + Vsc and the two hybrids show a remarkable agreement with the experimental results reported <sup>51,66</sup> . Discussion In this paper, we have presented a comprehensive and efficient approach that utilizes finite displacements and finite fields to calculate seamlessly various vibrational spectra, ranging from absorption and normal reflectivity spectra in the infrared regime, to Raman spectra, including noncentrosymmetric crystals and fine-grained materials (spherical-average method), with any modern exchange-correlation functional and pseudopotential formulation (norm-conserving, ultrasoft, PAW). This approach requires 12 self-consistent electric field calculations for the prediction of Raman tensors, as opposite to 6 ⋅ Nat when taking the derivative of the dielectric tensor with respect to atomic displacements <sup>8,9</sup>, which remains impractical in large or low symmetry systems. The approach we employ becomes extremely useful when generating coupling tensors in lowsymmetry supercells, Eq. (6), to incorporate temperature and quantum effects <sup>64,65,67</sup>, or to train a tensorial machine-learning potential for molecular dynamics simulations. The formalism has been implemented as a highly optimized, automatic workflow package for the prediction of vibrational spectra. The technical and practical challenges have been successfully addressedwiththehelpoftheAiiDAinfrastructure <sup>22</sup>,whichempoweredthe design of fully reproducible, reusable, user-friendly workflows for one of the most important class of spectroscopic techniques for materials characterization. As such, we believe it will be broadly useful to both the computational community and the experimental community at large. Furthermore, we have shown that the workflows can effectively operate with state-of-theart functionals and can be employed for a comprehensive analysis of both single crystals and powder spectra. Importantly, all the code, workflows and the documentation are open and available to the community (see Code Availability). In conclusion, we believe that the present approach will be helpful for the computational and experimental community and will pave the way for accelerated materials characterization of materials displaying complex, challenging chemistry. Methods Computational details The infrared and Raman calculations were carried out using the workflows developed, relying on aiida-phonopy <sup>68</sup> for pre- and post-processing and aiida-quantumespresso <sup>22,23</sup>, having Quantum ESPRESSO <sup>46–48</sup> as DFT quantum engine. Before performing the vibrational spectra calculations, the positions of the atoms in the LiNbO3 primitive cell are optimized at fixed experimental lattice geometry <sup>69</sup> for all functionals until the total energy and forces acting on atoms are less than 10 <sup>−4</sup> Ry/atom and 5 ⋅ 10 <sup>−5</sup> Ry/Bohr, respectively. Norm-conserving pseudopotentials from the Pesudo-Dojo library <sup>70</sup> are used for the LDA and hybrid functionals, employing PBE pseudopotentials for the latter, and pseudopotentials from the SSSP PBE(sol) precision (version 1.1) <sup>70–76</sup> library for all other cases. A cutoff of 90 Ry is used for the wavefunctions; 4 and 12 times greater cutoffs are used for the charge density (respectively for Pseudo-Dojo and SSSP based pseudopotentials). The Brillouin zone is sampled uniformly with a 0.3 Å <sup>−1</sup> k-points distance, leading to a 5 × 5 × 5 mesh for the primitive cell containing 10 atoms. The Hubbard parameters are computed following the self-consistent procedureexploitingdensity-functionalperturbationtheory,asexplainedin refs. 77–79, using a q-point distance of 0.4 Å−1, orthogonalized atomic orbitals <sup>78,80</sup> for the occupation matrices, and with onsite (intersite) parameters converged within 0.01 (0.005) eV (a very conservative threshold). The hybrid calculations are performed using a 90 Ry cutoff and a single q-point mesh for the exact-exchange operator, and the adaptively compressed exchange (ACE) technique <sup>81</sup> is used to speed up the convergence of the calculations. Finally, finite differences are carried out using a 0.01 Å displacement distance and a denser k-point distance of 0.15 Å <sup>−1</sup> for the phonon calculations (in the PhononWorkChain), and an electric field step of 5 ⋅ 10 <sup>−4</sup> Ry a.u., a 2nd-order numerical accuracy, and a k-point distance of 0.15 Å <sup>−1</sup> in the parallel direction of the applied electric field for the electric-field derivatives (as carried out in the DielectricWorkChain). Data availability The data produced in this work can be found on the Materials Cloud Archive <sup>82</sup> . Code availability [The source code is made available open-source on GitHub (https://github.](https://github.com/bastonero/aiida-vibroscopy) [com/bastonero/aiida-vibroscopy).](https://github.com/bastonero/aiida-vibroscopy) It is also distributed as an installable [package through the Python Package Index (https://pypi.org/project/aiida-](https://pypi.org/project/aiida-vibroscopy/) [vibroscopy/). A live demonstration of the code is hosted on https://aiida-](https://pypi.org/project/aiida-vibroscopy/) [vibroscopy-demo.readthedocs.io/en/latest/index.html,](https://aiida-vibroscopy-demo.readthedocs.io/en/latest/index.html) whereas the full documentation with tutorials can be found at [https://aiida-vibroscopy.](https://aiida-vibroscopy.readthedocs.io/en/latest/) [readthedocs.io/en/latest/.](https://aiida-vibroscopy.readthedocs.io/en/latest/) Received: 28 July 2023; Accepted: 29 February 2024; References 1. Giannozzi, P., de Gironcoli, S., Pavone, P. & Baroni, S. Ab initiocalculation of phonon dispersions in semiconductors. Phys. Rev. B 43, 7231–7242 (1991). 2. Windl, W. et al. Second-order raman spectra of diamond fromab initiophonon calculations. Phys. Rev. B 48, 3164–3170 (1993). 3. Gonze, X. Adiabatic density-functional perturbation theory. Phys. Rev. A 52, 1096–1114 (1995). 4. Gonze, X. & Lee, C. Dynamical matrices, Born effective charges, dielectric permittivity tensors, and interatomic force constants from density-functional perturbation theory. Phys. Rev. B 55, 10355–10368 (1997). 5. Baroni, S., de Gironcoli, S., Corso, A. D. & Giannozzi, P. Phonons and related crystal properties from density-functional perturbation theory. Rev. Modern Phys. 73, 515–562 (2001). 6. Lazzeri, M. & Mauri, F. First-principles calculation of vibrational Raman spectra in large systems: signature of small rings in crystalline. Phys. Rev. Lett. 90, 036401 (2003). 7. Veithen, M., Gonze, X. & Ghosez, P. Nonlinear optical susceptibilities, Raman efficiencies, and electro-optic tensors from first-principles density functional perturbation theory. Phys. Rev. B 71, 125107 (2005). 8. Baroni,S. & Resta,R. Ab initio calculation of thelow-frequencyRaman cross section in silicon. Phys. Rev. B 33, 5969–5971 (1986). 9. Liang, Q., Dwaraknath, S. & Persson, K. A. High-throughput computation and evaluation of Raman spectra. Sci. Data 6, 135 (2019). 10. Calzolari, A. & Nardelli, M. B. Dielectric properties and Raman spectra of ZnO from a first principles finite-differences/finite-fields approach. Sci. Rep. 3, 2999 (2013). 11. Popov, M. N. et al. Raman spectra of fine-grained materials from first principles. npj Comput. Mater. 6, 121 (2020). 12. Souza, I., Íñiguez, J. & Vanderbilt, D. First-principles approach to insulators in finite electric fields. Phys. Rev. Lett. 89, 117602 (2002). 13. Umari, P. & Pasquarello, A. Ab initio molecular dynamics in a finite homogeneous electric field. Phys. Rev. Lett. 89, 157602 (2002). 14. Umari, P. & Pasquarello, A. Polarizability and dielectric constant in density-functional supercell calculations with discretek-point samplings. Phys. Rev. B 68, 085114 (2003). 15. Umari,P. & Pasquarello, A. Densityfunctionaltheorywith finite electric field. Int. J. Quantum Chem. 101, 666–670 (2005). 16. Togo, A. & Tanaka, I. First principles phonon calculations in materials science. Scr. Mater. 108, 1–5 (2015). 17. Zwanziger, J. et al. Finite homogeneous electric fields in the projector augmented wave formalism: applications to linear and nonlinear response. Comput. Mater. Sci. 58, 113–118 (2012). 18. Umari, P. & Pasquarello, A. Infrared and Raman spectra of disordered materials from first principles. Diamond Relat. Mater. 14, 1255–1261 (2005). 19. Umari, P. & Pasquarello, A. Fraction of boroxol rings in vitreous boron oxide from a first-principles analysis of Raman and NMR spectra. Phys. Rev. Lett. 95, 137401 (2005). 20. Niu, L. et al. First-principles calculation of vibrational Raman spectra of tetrahedral amorphous carbon. Phys. B: Condens. Matter 403, 3559–3562 (2008). 21. Wilkinson, M. D. et al. The FAIR guiding principles for scientific data management and stewardship. Sci. Data 3, 160018 (2016). 22. Huber,S.P. et al.AiiDA1.0,a scalablecomputational infrastructurefor automated reproducible workflows and data provenance. Sci. Data 7, 300 (2020). 23. Uhrin, M., Huber, S. P., Yu, J., Marzari, N. & Pizzi, G. Workflows in AiiDA: engineering a high-throughput, event-based engine for robust and modular computational workflows. Comput. Mater. Sci. 187, 110086 (2021). 24. El-Batanouny, M. & Wooten, F. Symmetry and Condensed Matter Physics (Cambridge University Press, 2008). 25. Max Born, K. H. Dynamical Theory of Crystal Lattices (Clarendon, Oxford, 1954). 26. Placzek, G. Rayleigh-streuung und Raman-effekt. in Hanbunch der Radiologie, vol. VI, 209–374 (ed Marx, E.) (Akademische Verlagsgesellschaft, Leipzig, 1934). 27. Brüesch, P. Phonons: Theory and Experiments II (Springer Berlin Heidelberg, 1986). 28. Porezag, D. & Pederson, M. R. Infrared intensities and Ramanscattering activities within density-functional theory. Phys. Rev. B 54, 7830–7836 (1996). 29. Gonze, X. First-principles responses of solids to atomic displacements and homogeneous electric fields: implementation of a conjugate-gradient algorithm. Phys. Rev. B 55, 10337–10354 (1997). 30. Tschannen, C. D. et al. Anti-stokes Raman scattering of single carbyne chains. ACS Nano 15, 12249–12255 (2021). 31. Sohier, T., Gibertini, M., Calandra, M., Mauri, F. & Marzari, N. Breakdownof opticalphonons’ splittingintwo-dimensionalmaterials. Nano Lett. 17, 3758–3763 (2017). 32. Rivano, N., Marzari, N. & Sohier, T. Infrared-active phonons in onedimensional materials and their spectroscopic signatures. npj Comput. Mater. 9, 194 (2023). 33. Royo, M., Hahn, K. R. & Stengel, M. Using high multipolar orders to reconstruct the sound velocity in piezoelectrics from lattice dynamics. Phys. Rev. Lett. 125, 217602 (2020). 34. Nunes, R. W. & Gonze, X. Berry-phase treatment of the homogeneous electric field perturbation in insulators. Phys. Rev. B 63, 155107 (2001). 35. Vanderbilt, D. & King-Smith, R. D. Electric polarization as a bulk quantity and its relation to surface charge. Phys. Rev. B 48, 4442–4455 (1993). 36. Resta, R. Macroscopic polarization in crystalline dielectrics: the geometric phase approach. Rev. Modern Phys. 66, 899–915 (1994). 37. Teter, M. P., Payne, M. C. & Allan, D. C. Solution of Schrödinger’s equation for large systems. Phys. Rev. B 40, 12255–12263 (1989). 38. Marzari,N., Vanderbilt, D.& Payne, M. C. Ensembledensity-functional theory for ab initio molecular dynamics of metals and finitetemperature insulators. Phys. Rev. Lett. 79, 1337–1340 (1997). 39. Souza, I., Íñiguez, J. & Vanderbilt, D. Dynamics of Berry-phase polarization in time-dependent electric fields. Phys. Rev. B 69, 085106 (2004). 40. Umari, P. & Pasquarello, A. Finite electric field in density functional calculations with periodic boundary conditions. Comput. Mater. Sci. 30, 116–119 (2004). 41. Umari, P., Willamson, A. J., Galli, G. & Marzari, N. Dielectric response of periodic systems from quantum monte carlo calculations. Phys. Rev. Lett. 95, 207602 (2005). 42. Johnston, W. D. Nonlinear optical coefficients and the Raman scattering efficiency of LO and TO phonons in acentric insulating crystals. Phys. Rev. B 1, 3494–3503 (1970). 43. Fornberg, B. Generation of finite difference formulas on arbitrarily spaced grids. Mathe. Comput. 51, 699–706 (1988). 44. Marzari, N. & Vanderbilt, D. Maximally localized generalized Wannier functions for composite energy bands. Phys. Rev. B 56, 12847–12865 (1997). 45. Huber, S. P. et al. Common workflows for computing material properties using different quantum engines. npj Comput. Mater. 7, 136 (2021). 46. Giannozzi, P. et al. Quantum ESPRESSO: a modular and open-source software project for quantum simulations of materials. J. Phys.: Condensed Matter 21, 395502 (2009). 47. Giannozzi, P. et al. Advanced capabilities for materials modelling with Quantum ESPRESSO. J. Phys.: Condensed Matter. 29, 465901 (2017). 48. Giannozzi, P. et al. Quantum ESPRESSO toward the exascale. J. Chem. Phys. 152, 154105 (2020). 49. Veithen, M. & Ghosez, P. First-principles study of the dielectric and dynamical properties of lithium niobate. Phys. Rev. B 65, 214302 (2002). 50. Hermet, P., Veithen, M. & Ghosez, P. First-principles calculations of the nonlinear optical susceptibilities and Raman scattering spectra of lithium niobate. J. Phys.: Condensed Matter 19, 456202 (2007). 51. Margueron, S. et al. Resolved E-symmetry zone-centre phonons in LiTaO3 and LiNbO3. J. Appl. Phys. 111, 104105 (2012). 52. Sanna, S. et al. Raman scattering efficiency in LiTaO3 and LiNbO3 crystals. Phys. Rev. B 91, 224302 (2015). 53. Himmetoglu, B., Wentzcovitch, R. M. & Cococcioni, M. Firstprinciples study of electronic and structural properties of CuO. Phys. Rev. B 84, 115108 (2011). 54. Himmetoglu, B., Floris, A., de Gironcoli, S. & Cococcioni, M. Hubbardcorrected DFT energy functionals: the LDA+U description of correlated systems. Int. J. Quantum Chem. 114, 14–49 (2013). 55. Campo Jr, V. L. & Cococcioni, M. Extended DFT+U+V method with on-site and inter-site electronic interactions. J. Phys.: Condensed Matter 22, 055602 (2010). 56. Cococcioni, M. & Marzari, N. Energetics and cathode voltages of LiMPO4 olivines (M=Fe, Mn) from extended Hubbard functionals. Phys. Rev. Mater. 3, 033801 (2019). 57. Timrov, I., Aquilante, F., Binci, L., Cococcioni, M. & Marzari, N. Pulay forces in density-functional theory with extended Hubbard functionals: from nonorthogonalized to orthogonalized manifolds. Phys. Rev. B 102, 235159 (2020). 58. Heyd, J., Scuseria,G. E. & Ernzerhof, M. Hybrid functionals based on a screened coulomb potential. J. Chem. Phys. 118, 8207–8215 (2003). 59. Heyd, J., Scuseria, G. E. & Ernzerhof, M. Erratum: “Hybrid functionals based on a screened coulomb potential”. J. Chem. Phys. 124, 219906 (2006). 60. Perdew, J. P., Ernzerhof, M. & Burke, K. Rationale for mixing exact exchange with density functional approximations. J. Chem. Phys. 105, 9982–9985 (1996). 61. Ridah, A., Bourson, P., Fontana, M. D. & Malovichko, G. The composition dependence of the Raman spectrum and new assignment of the phonons in LiNbO3. J. Phys.: Condensed Matter 9, 9687–9693 (1997). 62. Kojima, S., Kanehara, K., Hoshina, T. & Tsurumi, T. Optical phonons and polariton dispersions of congruent LiNbO3 studied by far-infrared spectroscopic ellipsometry and Raman scattering. Japanese J. Appl. Phys. 55, 10TC02 (2016). 63. Monacelli, L., Errea, I., Calandra, M. & Mauri, F. Pressure and stress tensor of complex anharmonic crystals within the stochastic selfconsistent harmonic approximation. Phys. Rev. B 98, 024106 (2018). 64. Monacelli, L. & Mauri, F. Time-dependent self-consistent harmonic approximation: anharmonic nuclear quantum dynamics and time correlation functions. Phys. Rev. B 103, 104305 (2021). 65. Monacelli, L. et al. The stochastic self-consistent harmonic approximation: calculating vibrational properties of materials with full quantum and anharmonic effects. J. Phys.: Condensed Matter 33, 363001 (2021). 66. Barker, A. S. & Loudon, R. Dielectric properties and optical phonons in LiNbO3. Phys. Rev. 158, 433–445 (1967). 67. Siciliano, A., Monacelli, L., Caldarelli, G. & Mauri, F. Wigner Gaussian dynamics: simulating the anharmonic and quantum ionic motion. Phys. Rev. B 107, 174307 (2023). 68. Bastonero, L. AiiDA-Phonopy code v1.0.0. [https://github.com/aiida-phonopy/aiida-phonopy (2022).](https://github.com/aiida-phonopy/aiida-phonopy) 69. Weigel, T. et al. X-ray diffraction using focused-ion-beam-prepared single crystals. J. Appl. Crystallogr. 53, 614–622 (2020). 70. van Setten, M. et al. The PseudoDojo: training and grading a 85 element optimized norm-conserving pseudopotential table. Comput. Phys. Commun. 226, 39–54 (2018). 71. Prandini, G., Marrazzo, A., Castelli, I. E., Mounet, N. & Marzari, N. Precision and efficiency in solid-state pseudopotential calculations. npj Comput. Mater. 4, 72 (2018). 72. Garrity, K. F., Bennett, J. W., Rabe, K. M. & Vanderbilt, D. Pseudopotentials for high-throughput DFT calculations. Comput. Mater. Sci. 81, 446–452 (2014). 73. Schlipf, M. & Gygi, F. Optimization algorithm for the generation of ONCV pseudopotentials. Comput. Phys. Commun. 196, 36–44 (2015). 74. Willand, A. et al. Norm-conserving pseudopotentials with chemical accuracy compared to all-electron calculations. J. Chem. Phys. 138, 104109 (2013). 75. Corso, A. D. Pseudopotentials periodic table: from H to Pu. Comput. Mater. Sci. 95, 337–350 (2014). 76. Topsakal, M.& Wentzcovitch, R.Accurateprojected augmentedwave (PAW) datasets for rare-earth elements (RE=La-Lu). Comput. Mater. Sci. 95, 263–270 (2014). 77. Timrov, I., Marzari, N. & Cococcioni, M. Hubbard parameters from density-functional perturbation theory. Phys. Rev. B 98, 085127 (2018). 78. Timrov, I., Marzari, N. & Cococcioni, M. Self-consistent Hubbard parameters from density-functional perturbation theory in the ultrasoft and projector-augmented wave formulations. Phys. Rev. B 103, 045141 (2021). 79. Timrov, I., Marzari, N. & Cococcioni, M. HP - A code for the calculation of Hubbard parameters using density-functional perturbation theory. Comput. Phys. Commun. 279, 108455 (2022). 80. Floris, A. et al. Hubbard-corrected density functional perturbation theory with ultrasoft pseudopotentials. Phys. Rev. B 101, 064305 (2020). 81. Lin, L. Adaptively compressed exchange operator. J. Chem. Theory Comput. 12, 2242–2249 (2016). 82. Bastonero, L. & Marzari, N. Automated all-functionals infrared and Raman spectra. Mater. Cloud Archive 2023.118 (2023). Acknowledgements We would like to thank (in alphabetic order) Marnik Bercx, Chiara Cignarella, Virginie de Mestral, Sebastiaan P. Huber, Michele Kotiuga, Eric Macke, Giovanni Pizzi, Norma Rivano, and Iurii Timrov for fruitful discussions. The authors gratefully acknowledge support from the Deutsche Forschungsgemeinschaft (DFG) underGermany’s ExcellenceStrategy(EXC 2077, No. 390741603, University Allowance, University of Bremen) and Lucio Colombi Ciacchi, the host of the “U Bremen Excellence Chair Program”, as well as computing time granted by the Resource Allocation Board and provided on the supercomputerLise and Emmy at NHR@ZIB and NHR@Göttingen as part of the NHR infrastructure. The calculations for this research were conducted with computing resources under the project hbc00053 and hbi00059. N.M. acknowledges support by the NCCR MARVEL, a National Centre of Competence in Research, funded by the Swiss National Science Foundation (grant number 205602). Author contributions L.B. designed and developed the code, wrote the first draft of the manuscript, ran and analysed the calculations. N.M. supervised the project, discussed the results, and contributed to the final version of the manuscript. Funding Open Access funding enabled and organized by Projekt DEAL. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-024-01236-3.](https://doi.org/10.1038/s41524-024-01236-3) Correspondence and requests for materials should be addressed to Lorenzo Bastonero. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this [licence, visit http://creativecommons.org/licenses/by/4.0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 53문단 · 33,142자

(제목 없음)

1Infrared and Raman spectroscopies are ubiquitous techniques employed in many experimental laboratories, thanks to their fast and non-destructive nature able to capture materials' features as spectroscopic fingerprints.Nevertheless, these measurements frequently need theoretical support in order to unambiguously decipher and assign complex spectra.Linear-response theory provides an effective way to obtain the higher-order derivatives needed, but its applicability to modern exchange-correlation functionals remains limited.Here, we devise an automated, open-source, user-friendly approach based on ground-state density-functional theory and the electric enthalpy functional to allow seamless calculations of first-principles infrared and Raman spectra.By employing a finite-displacement and finite-field approach, we allow for the use of any functional, as well as an efficient treatment of large low-symmetry structures.Additionally, we propose a simple scheme for efficiently sampling the Brillouin zone with different electric fields.To demonstrate the capabilities of our approach, we provide illustrations using the ferroelectric LiNbO 3 crystal as a paradigmatic example.We predict infrared and Raman spectra using various (semi)local, Hubbard corrected, and hybrid functionals.Our results also show how PBE0 and extended Hubbard functionals yield in this case the best match in term of peak positions and intensities, respectively.

INTRODUCTION

2Vibrational spectroscopies are one of the most powerful, fast and reliable methods for materials' structure identification and characterization.Among the different techniques probing atomic motions, infrared (IR) absorption and Raman experiments are widespread in most experimental set-ups, thanks to their low cost and precision in identifying microscopic features.Despite these advantages, data interpretation for many cases calls for theoretical support.Density-functional theory (DFT) is most often employed as a reliable framework for accurate predictions of such spectra, providing in principle exact estimates of the secondand third-order derivatives of the energy functional that are needed to predict vibrational spectra.Over the past decade, many techniques have been developed to efficiently obtain non-resonant spectra of insulating crystals, such as linear response theory [1,2] for infrared absorption, second-order response of the density matrix [3] and the 2n + 1 theorem [4] for Raman couplings.While being elegant and attractive, these methods come at the cost of rather complex code implementations, limiting in practice applications to selected semilocal functionals and often only to norm-conserving pseudopotentials.This is especially the case for the third-order derivatives of the total energy, required for the Raman calculations.

3One common expedient for the latter is to resort to finite differences of the dielectric tensor upon atomic displacements, computed using density-functional perturbation theory (DFPT) [5,6].However, this approach scales in general as 6N at with the number of atoms N at , a burden in low-symmetry systems, and becomes out of reach for the non-linear optical susceptibility tensor, which has been shown to be fundamental to achieve good agreement both in single crystals [7] and powder spectra [8].An alternative framework for carrying out such derivatives is the finite numerical differentiation of forces and polarization upon the application of a homogeneous electric field [4,[9][10][11][12].By this technique, along with finite displacements [13], one can compute straightforwardly all the quantities needed for IR and Raman spectra, as well as allowing to use any functional (Hubbard corrected, hybrids, ...), and pseudopotential formalism (norm-conserving, ultrasoft, PAW) with little effort.Furthermore, the use of finite fields overcomes the expensive computation and poor scaling of the variational dielectric tensor approach, allowing for the study of complex materials such as amorphous and defective structures [12,14].In fact, within this scheme, one would need to perform typically only 12 ground-state calculations in the presence of a homogeneous electric field (see Eq. 13 and related discussion).While appealing, this approach has seen scarce applicability, possibly due to the many steps and pitfalls related to the underlying algorithm, which can be highly non-trivial even for expert users.

4A key solution is to streamline all of these operations through a modern workflow manager, adhering in passing to the FAIR [15] principles for data sharing, while being able of automatically submitting, parsing, and processing the outputs generated by multiple calculations.In this study, we present a comprehensive formulation for a unified finitedisplacement and finite-field approach, along with efficient Brillouin zone sampling, and encode this formalism in a self-contained Python package that operates within the AiiDA framework [16,17], offering a scalable computational infrastructure for automated and reproducible workflows and data provenance.

5To showcase the capabilities of the approach, we demonstrate its effectiveness in predicting the infrared and Raman spectra of LiNbO 3 using seven different functionals: LDA, PBE, PBEsol, PBEsol+U, PBEsol+U+V, PBE0, and HSE06.

RESULTS

6The finite-displacement and finite-field method Infrared and Raman spectroscopy are investigation methods probing the atomic vibrations of materials.In both techniques, a source of light is shone on the sample, and the incident photons will be either absorbed or scattered by the material.In IR experiments, peaks of the absorption spectra correspond to collective atomic motions in resonance with that frequency, corresponding to long-wavelength polar optical phonons in crystals.Raman spectroscopy records instead a scattered frequency ω S ; in this case, the excited lattice vibration corresponds to the shift from the incoming laser frequency ω L .Far from resonance the two phenomena are described as the change in polarization P and the change in polarizability χ, for IR and Raman respectively, leading to different selection rules for the activated phonon modes which ultimately provide a comprehensive fingerprint of the material.The former mechanism is coupled to the Born effective charge Z * I [1,18] of an atom I in the unit cell, and the latter instead to the Raman tensor defined as dχ/dτ I in the Placzek approximation [19][20][21], where χ is the electronic susceptibility tensor and τ I the atomic displacement.

7In terms of these quantities, the scattering intensities of a normal mode ν are

8for infrared spectra, and

9for Raman Stokes processes (i.e. when the scattered light frequency is lower than the incident one).The tensors defining these amplitudes are defined via the polarization vector

10and the Raman susceptibility tensor

11where ω ν and e ν are the frequency and the eigenvector of the phonon ν, n ν (T ) is the Bose-Einstein occupation function, m I the mass of the atom I, and Ω the volume of the unit cell

12In the harmonic approximation, the phonon normal modes at zone center are obtained from the interatomic force constants (IFCs)

13where E is the potential energy surface.The IFCs can be written in terms of first-order derivative of atomic forces F I with respect to atomic displacements, and thus it can be obtained using a set of small displacement configurations, as discussed in the literature [1,13].The diagonalization of the mass-scaled IFCs, describing the harmonic ion dynamics, gives the phonon frequencies and eigenvectors:

14While the IFCs extend over an arbitrary (but decaying) number of unit cells, these photon spectroscopies utilize photons which carry a negligible momentum q ≈ 0, thus only probing phonons in the vicinity of the zone center, and justifying the evaluation via finite displacements in the primitive cell only.The Born effective charges and Raman tensors can also be defined as derivatives of forces with respect to a macroscopic electric field E [4,12].For the former we have:

15while for the latter, the Raman tensor reads:

16In a finite-difference scheme, this means that a small homogeneous electric field must be applied in order to carry out the numerical differentiation.In periodic-boundary conditions, this can be accomplished by extending the energy functional E[ψ] to include a term [9,10,22] accounting for the coupling of the electric field and the total polarization of the system (often referred as electric-enthalpy functional):

17where P ion and P el are the ionic and electronic polarizations, respectively; the latter being described by the modern theory of polarization [23,24].Such functional, while not bounded from below, admits local minima representing self-consistent stationary solutions [25,26],

18if E is properly chosen; this guarantees the simultaneous evaluation of forces and electronic polarization at convergence.As a consequence, the electronic polarization (that comes for free) can be exploited to extract its first and second-order derivatives with respect to an electric field [4,10].These correspond respectively to the high-frequency dielectric tensor ϵ ∞ , used to account for the non-analytical contribution to the IFCs [2], and the non-linear optical susceptibility χ (2) , key in non-centrosymmetric crystals where the Frölich contribution to the Raman tensor could be sizable [7,8].Their relationship with the electronic polarization derivatives is as follows:

Numerical differentiation

19The possibility of consistently describing homogenoues electric fields allows to access any derivative in atomic displacements and electric field, while being easily extensible to advanced functionals and pseudopotential formulations [12].We calculate here the tensors for infrared and Raman cross-sections using a central derivative formulation.These derivatives are performed around E = 0, which resembles the common experimental setup where an external electromagnetic source is negligible, either natural or artificial.Indicating (by dropping the indices) a computed quantity as A, either a force or the electronic polarization, we calculate its m-th derivatives with a numerical accuracy of n-th order via the discretization formula:

20where ∆E i > 0 is the small electric field, which we refer to as the finite difference step, along the i-th Cartesian direction, and c m l the central derivative coefficients that can be automatically found using the Fornberg's algorithm [27].The discretization is performed using uniform steps such that l = − n 2 , . . ., 0, . . ., n 2 is always an integer number and the applied fields are evenly spaced (see Fig. 1(a)).For mixed second-order derivatives of A, i.e.

21for the Raman and non-linear susceptibility tensors, we exploit a formula devised in [12] to reduce the number of calculations.We assign E i = E j = λ and express the mixed derivative as:

22where each second-order derivative is evaluated through Eq. 12; this can be visualized schematically in Fig. 1(a).For example using a 2 nd order numerical accuracy, we would need only 12 self-consistent field (SCF) calculations with a non-zero electric (∆E-SCF) field to carry out all the needed tensors both for IR and Raman spectra, even in low-symmetry systems such as amorphous materials [12,14]; this number can be reduced if one exploits the symmetries of the material.In fact, there could exist symmetries belonging to the point group of the crystal that transform an electric field direction into an other.For example, if the crystal satisfy inversion symmetry, this is sufficient to reduce by a half the number of ∆E-SCF calculations needed, since forces and electronic polarization produced by ∆E i are connected by a similarity transformation to the one produced by −∆E i ; keeping the previous numerical example, we would need then just 6 ∆E-SCFs.For highly-symmetric crystals, such as cubic Si, only two electric field directions must be evaluated; in this case, the number of calculations reduces further to only 2. In general, the number of ∆E-SCF calculations needed scales with the numerical accuracy n of the central formula as

23where

24While this approach is advantageous, we also highlight that the choice of the field magnitude is restricted.As already stated before the electric enthalpy functional 9 has no global minima, and long-lived meta-stable states exist only below a certain critical field E c , where the Zener tunneling is suppressed [9,22].An estimate of such critical value can be performed using [9]:

25where e is the electric charge, a i the lattice vectors defining the unitcell, E gap the electronic band gap, and N i the number of k-points sampling the Brillouin zone in the i-th crystal direction.For very small band gap semiconductors this critical field can be very small, limiting in practice the convergence due to numerical noise.In these circumstances, a balance must be found; nevertheless, for the majority of cases this does not represent an actual limitation.

Directional sampling

26A subtle issue related to the Berry phase formalism used in the electric-enthalpy formulation is the dense sampling of the Brillouin zone required to achieve well converged values of the polarization, needed to carry out the numerical derivatives.In fact, one can write the electronic polarization using the string-averaged discretized Berry phase formulation [23] along the direction of a primitive reciprocal lattice vector b i as:

27Here S nm (k, k ′ ) = ⟨u nk |u mk ′ ⟩ represents the overlap matrix between Bloch's states u lk belonging to occupied bands l, and

28⊥ is the number of strings (i.e. the number of k-points orthogonal to b i ), each having N (i) ∥ k-points.Thus, when we apply a static electric field along lattice vectors, an electronic polarization is induced according to the field direction, properly sampled by increasing the number of k-points within each string N (i) ∥ .While the derivatives can be performed in the crystal reference system [28], we describe in the following some possible implementations using a Cartesian reference system (the one employed in the code).In this coordinates system one can follow two approaches, namely either performing an orthogonal transformation of the lattice to have the chosen field direction along one of the new basis vectors, or generalise Eq. 15 to a generic reciprocal vector.It is clear it is more convenient to choose the latter, as it requires only to modify Eq. 15 to account for different

29⊥ , while the former would require in general large supercells to accomodate the rotated crystal.Nevertheless, many codes use automatically generated Monkhorst-Pack (MP) meshes, and it is not intuitive how to properly choose a regular grid that samples correctly an arbitrary direction.To automate the choice of such grids, we propose here the concept of directional sampling targeting the increase of the number of k-points in any desired direction and crystal lattice, while still retaining a regular MP mesh.

30The main idea is to define the BZ mesh by two quantities: an orthogonal and a parallel k-point distance, d ⊥ and d ∥ respectively.The orthogonal distance represents a minimum distance between k-points in the BZ that are commonly used to achieve convergence of total energies and forces, thus usually producing rather sparse meshes -this quantity is then used as a reference minimum for the generation of the grid.The parallel distance instead is used to define a denser number of k-points in the desired direction, which in our case is referring to the applied electric field.To do so, we transform the electric field direction in crystal coordinates.This step allows us to assign weights for the sampling in reciprocal space.Let Ẽ = ( Ẽ1 , Ẽ2 , Ẽ3 ) be the electric field in the lattice reference system, we then define the weights as:

31aiming at maximizing the sampling for lattice directions where the electric dipole is expected to be more relevant.Finally, we can assign the number of k-points N i of an MP mesh as:

32This methodology is easy to implement and generates meshes that better sample the direction where the induced polarization is expected, significantly reducing the number of k-points needed instead when using a constant distance to define the entire MP grid.

33We point out that the parallel distance defined may not resemble the true distance among k-points within strings along a defined direction.This is easily understood with a trivial example reported in Fig. 1 substituted with generalised MP grids [29] that can be ad hoc fine tuned for effective and inexpensive samplings.However, this is far from being a trivial task and thus out of scope for the present work.The black circles on top of boxes mean that the calculation starts using charge density and wavefunctions from a previous calculation.

Computational workflow

34In this section, we finally present the computational workflows that allow to simulate the desired spectra, which can be infrared, Raman, or both, in an automated fashion.We designed two main independent workflows as AiiDA WorkChains [16]: one carrying out solely the finite displacement calculations for the phonon modes to evaluate the IFCs, which we called PhononWorkChain, and the other for the mixed total-energy derivatives via the homogeneous electric fields, the DielectricWorkChain.When joined together, the above two provide the IRamanSpectraWorkChain, as schematically outlined in Fig. 2.

35The IRamanSpectraWorkChain takes as inputs a structure, a code and other details on how to run the workflows (e.g.SCF parameters, wall-time, parallelization options, and so on).These information are then split and/or shared between the two sub-workflows.Both start running an initial SCF ground-state calculation, meant to produce the charge density ρ 0 and wavefunctions {ψ i } that will be used as a starting point for the next runs.We generally represent this restart throughout the flowchart of Fig. 2 by a curved white arrow in a black circle, and we use the dashed arrows to indicate that the files have been copied over to a fresh new folder.When these are finished, the PhononWorkChain generates the structures with irreducible atomic displacements and computes their forces.The latter are then used to produce the matrix of IFCs, which will be employed in a post-processing step to obtain the phonon frequencies and eigenvectors.In parallel, the DielectricWorkChain evaluates E c through a non-SCF calculation and extracts the numerical accuracy n and the electric field step ∆E, as follows: when the critical value is larger than 10 −4 (Ry)a.u.

36(Rydberg atomic units; 1 (Ry)a.u.≈ 36.3609V/ Å), a 4 th order numerical expansion is chosen, otherwise a 2 nd order is used.The 4 th order allows to achieve a greater numerical accuracy for the finite differences, thus it is utilized whenever it is possible to apply an electric field above threshold.In cases the electric field that can be applied is smaller than 10 −4 (Ry)a.u., a 2 nd order expansion is sufficient, thus avoiding calculations that would be affected by too much numerical noise [21]; the amplitude of the electric field step in fact may result too small to produce significant digit changes in forces and polarization, hence possibly worsening the numerical derivative even if adding extra points to the formula.The step ∆E is instead selected according to:

37where the electric field units are again expressed in (Ry)a.u. and round(x,y) rounds the number x to the y digit after the decimal point.These choices should guarantee larger values of the finite step to reduce the numerical noise on forces and polarization, and at the same time higher accuracy to remove the step size dependence of the finite difference formula, which can be verified a posteriori when n > 2 (see also Fig. 1(a)).We point out here that eventually the user can still enforce the accuracy n and/or the ∆E value that will be used in Eqs. 12 and 18.Once an electric field is chosen and the ground-state SCF calculation is finished, a symmetry analysis is performed to find the inequivalent directions Ê of the electric fields to apply, where Ê is a versor.For each such inequivalent direction an MP mesh is determined through Eq. 17 and a series of SCF calculations are then launched at E = 0 with the corresponding mesh restarting from the ground-state density of the previous SCF.The reason for computing the SCF at E = 0 with these meshes is twofold: first, it is crucial to evaluate the polarization operator, set up in following finite electric-field calculations at the corresponding mesh reference, and, second, it guarantees the same level of convergence on forces and polarization for the finite differentiation.In fact, Ê and − Ê produce the same k-point meshes (as can be verified via Eqs.[16][17], hence all the calculated values, at E = 0 included, employed in the finite formula 12 have the same level of convergence with respect to the particular k-point grid.Once finished, electric-enthalpy calculations start for each inequivalent direction Ê at the smallest step value ∆E = ∆E • Ê.If the numerical accuracy n is greater than 2, further SCF calculations with homogeneous electric fields are run, restarting from the previous steps till the maximum value (n/2)∆E; this loop corresponds to increasing/decresaing the value of l in Eq. 12.At this point, the computed forces and polarizations are gathered together to perform the numerical differentiation according to Eqs. 12 and 13 for achieving second and third rank tensors 7-8-10.As a final step, the IRamanSpectraWorkChain joins all the information in a unique AiiDA data type, named VibrationalData, able to efficiently store large arrays and information in the AiiDA repository and database, and with provenance graph for full reproducibility [16].This data type is a self-contained Python class, and it is provided with a number of post-processing methods and features that allow the user to compute powder and single crystal polarized vibrational intensities and frequencies, along with the symmetry labels of the respective phonon modes.We also implemented an IntensitiesAverageWorkChain which performs the spherical average spectra, important in Raman for non-centrosymmetric crystals [8].

38As mentioned earlier, the inputs of these workflows can be fully customized by the user.

39We do not report here the full list of these inputs, which can be explored through the usual command line interface of AiiDA [16] and through the on-line documentation made available.However, we would like to emphasize the possibility of fully defining the entire set of inputs via a limited set of them, as already been done in other AiiDA packages [17].

40In similar fashion to Ref. [17], we identified the fundamental inputs to be the code, i.e.

41the Quantum ESPRESSO [30][31][32] pw.x binary, associated with the computer, that runs the calculations, the relaxed structure and the protocol, a string defining in a general and user-friendly fashion the accuracy of the simulation.This minimal set, used through the get builder from protocol method [17] designed for all the workchains, provides the user with a pre-filled builder (the main unit in AiiDA used to run workflows) ready to be submitted.This is adequate for non experts in the field that might be interested in simulating their structure's spectra with minimal knowledge, but also in the context of high-throughput searches or for teaching or testing.

42All-functionals LiNbO 3 spectra

43We demonstrate the power of this approach studying the ferroelectric phase of LiNbO 3 (space group R3c, no.161) for which the vibrational spectra have been long debated in the literature [33][34][35][36] and exhibit large LO-TO phonon splitting at Γ [33] that are ideal for exploring different functional flavours.We selected three commonly used local and semilocal funcationals, LDA, PBE and PBEsol, then Hubbard-corrected PBEsol in the standard and extended version, namely DFT+U [37,38] and DFT+U+V [39][40][41], and two of the most used hybrids functionals for inorganic crystalline materials, HSE06 [42,43] and PBE0 [44].

44Through the use of the IRamanSpectraWorkChain, we carried out the simulation of the vibrational spectra for all the functionals above and we compare our results to experimental measurements from the most recent literature [8,35,36].In particular, we compare our simulations in Fig. 3 to (a) different Raman single-crystal polarization setups [35] and (b) two polarized infrared absorption spectra [36], and in Fig. 4 to polycristalline Raman powder spectra [8] for which we use the spherical average procedure accounting for the χ (2) contribution, as outlined in Ref. [8].The single-crystal data allowed us to compare directly the frequencies and, in the case of Raman, the intensities.In intensities for Fig. 3(a).These spectra setups allowed to accurately estimate the error of the intensities evaluated through the minimization of the relative error:

45where f represents the unknown scaling factor between theoretical I theo and experimental FIG. 4. Raman powder spectra using the spherical average formula [8] and accounting for the Frölich term to reproduce the characteristic asymmetric line shapes.Theoretical intensities are smeared with a constant 14 cm −1 broadened Lorentzian.The theoretical spectra are reported in order of decreasing error |∆ω|, and Hubbard-corrected PBEsol are abbreviated only with their corrective parameters, as in Fig. 3 I exp intensities, due to the use of arbitrary units in the experimental spectra.The smallest absolute error on frequencies |∆ω| is provided by the PBE0 functional with 8.9 cm −1 , and on intensities |∆I| by the PBEsol+U sc +V sc functional with 15%.It is to note that the latter also shows a remarkable |∆ω| of 9.7 cm −1 , less than 1 cm −1 apart from the best performing functional for this material, whereas the former has 25% error for |∆I|, 10% more with respect to PBEsol+U sc +V sc .We also reported the renormalized absolute error |∆ω| * , for which the frequencies are shifted by the bare mean error ∆ω before the modulus average; this gives some insights whether the discrepancy arises from a systematic error, e.g.due to the geometry used.Interestingly, after renormalization, most of the functionals get rather close error values.While this might be due to the renormalization of the phonon frequencies due to the thermal expansion which tends to soften the vibrational modes, all the theoretical spectra were performed at constrained experimental lattice (see the Method section), meaning the systematic error is unrelated to this effect.While other thermal contributions should in principle be accounted for, their inclusion would require more sophisticated level of theory [47][48][49] which goes beyond the scope of the present work.Moreover, at the experimental conditions of our references, such contributions are expected to produce only minor phonon shifts.Given these points we might conclude in this case that such errors are intrinsic to the functionals.

DISCUSSION

46In this paper, we have presented a comprehensive and efficient approach that utilizes finite displacements and finite fields to calculate infrared and Raman spectra with any modern exchange-correlation functional and pseudopotential formulation (norm-conserving, ultrasoft, PAW).Our approach overcomes the current expensive alternative of the variational dielectric tensor technique [6] for Raman coupling calculations, which remains impractical in large or low symmetry systems.This is also very relevant when generating coupling tensors in low-symmetric supercells to incorporate temperature and quantum effects [48][49][50], or to train a tensorial machine-learning potential useful for molecular dynamics simulations.

47The formalism has been implemented as a highly optimized, automatic workflow package for the prediction of vibrational spectra.The technical and practical challenges have been successfully addressed with the help of the AiiDA infrastructure [16], which empowered the design of fully reproducible, reusable, user-friendly workflows for one of the most important class of spectroscopic techniques for materials characterisation.As such, we believe it will be broadly useful to both the computational community and the experimental community at large.Furthermore, we have shown that the workflows can effectively operate with state-of-theart functionals and can be employed for a comprehensive analysis of both single crystals and powder spectra.In conclusion, we believe that the present approach will pave the way for accelerated materials characterization of materials displaying complex, challenging chemistry.

METHODS

48The infrared and Raman calculations were carried out using the workflows developed, relying on aiida-phonopy [51] for pre-and post-processing and aiida-quantumespresso [16,17], having Quantum ESPRESSO [30][31][32] as DFT quantum engine.Before performing the vibrational spectra calculations, the positions of the atoms in the LiNbO 3 primitive cell are optimized at fixed experimental lattice geometry [52] for all functionals until the total energy and forces acting on atoms are less than 10 −4 Ry/atom and 5 • 10 −5 Ry/Bohr, respectively.

49Norm-conserving pseudopotentials from the Pesudo-Dojo library [53] are used for the LDA and hybrid functionals, employing PBE pseudopotentials for the latter, and pseudopotentials from the precision SSSP (version 1.1) [53][54][55][56][57][58][59] library for the others.A cutoff of 90 Ry is used for the wavefunctions; 4 and 12 times greater cutoffs are used for the charge density (respectively for Pseudo-Dojo and SSSP based pseudopotentials).The Brillouin zone is sampled uniformly with a 0.3 Å−1 k-points distance.The Hubbard parameters are computed following the self-consistent procedure exploiting density-functional perturbation theory, as explained in [45,46,60], using a q-point distance of 0.4 Å−1 , orthogonalized atomic orbitals [46,61] for the occupation matrices, and with onsite (intersite) parameters converged within 0.01 (0.005) eV (a very conservative threshold).The hybrid calculations were performed using a 90 Ry cutoff and a single q-point mesh for the exact exchange operator, and the adaptively compressed exchange (ACE) technique [62] was used to speed up the convergence of the calculations.Finally, finite differences were carried out using a 0.01 Å displacement distance and a denser k-point distance of 0.15 Å−1 for the phonon calculations (in the

FIG. 1 .

50FIG. 1.(a) Schematic illustration of the central discretization formula 12 and 13 for derivatives with respect to the electric field in the directions i = {x, y, λ = (x, y)}.The black dots represent the applied electric fields l∆E i used in the SCF calculations to evaluate the electric-field-dependent forces and polarization to employ in 12 and 13, while the different coloured circles are associated to the numerical accuracy n achieved in the numerical differentiation (here shown up to n = 6).It can be noticed that the evaluation of the numerical derivative at n > 2 provides automatically derivatives at lower accuracy n; this is helpful to check the convergence a posteriori in respect to the finite step size ∆E.(b) Square reciprocal lattice showing a shifted regular k-points sampling (black dots) of the BZ generated via Eqs.16-17 for the shown electric field Ẽ in reciprocal coordinates.The strings of k-points are indicated by straight black lines, and are only shown on part of the BZ for clarity.In this particular case Ẽ1 = Ẽ2 , hence w 1 = w 2 = 1 from Eq. 16, meaning the generated mesh via Eq.17 have k-points along b 1 and b 2 equally spaced by d ∥ , indicated on the figure by an horizontal arrow.It can be seen that this introduced distance differs from the actual distance d true ∥

− 1 )FIG. 3 .

51FIG. 3. Raman and IR spectra of ferroelectric LiNbO 3 as obtained with seven different functional, and compared to experimental measurements.(a) Raman single-crystals spectra for different polarization setups (reported in paranthesis) for pure TO modes corresponding to E and A 1 symmetries.(b) Infrared absorption using polarized light for E (upper panel) and A 1 (lower panel) symmetry modes.The theoretical spectra are ordered according to the error |∆ω| (shown in Tab.I), from smallest (pink, PBEsol+U sc +V sc ) to largest (blue, LDA).Hubbard-corrected PBEsol+U sc and PBEsol+U sc + V sc are labeled just U sc and U sc + V sc , the subscript sc refers to the self-consistent calculation of U and V [45, 46].Theoretical intensities are smeared with a constant 8 cm −1 broadened Lorentzian.

cm − 1

52for frequencies ω and in percentage for the intensities I.The estimators are: |∆ω| = N ν=1 |∆ω ν |/N is the mean absolute error; ∆ω = N ν=1 ∆ω ν /N is the mean error; |∆ω max | is the absolute max difference; |∆ω| * = N ν=1 |∆ω ν − ∆ω|/N is the absolute error for frequencies shifted by their mean difference; |∆I| = 100 • min f {∆I(f )} represents the percentage error of the optimal scaled intensities; N is the number of considered modes and ∆ω ν is the difference between experimental and theoretical functional mode frequency.

TABLE I .

53.LDA PBEsol+U sc PBEsol PBE PBEsol+U sc +V sc HSE06 PBE0 Statistical error estimators between functional predictions and experiments, given in

참고문헌 78건

  1. First principles phonon calculations in materials science Scripta Materialia · Elsevier BV · 2015 10.1016/j.scriptamat.2015.07.021
  2. Phonons and related crystal properties from density-functional perturbation theory Reviews of Modern Physics · American Physical Society · 2001 10.1103/revmodphys.73.515
  3. Optimization algorithm for the generation of ONCV pseudopotentials Computer Physics Communications · Elsevier BV · 2015 10.1016/j.cpc.2015.05.011
  4. Finite homogeneous electric fields in the projector augmented wave formalism: Applications to linear and nonlinear response Computational Materials Science · Elsevier BV · 2012 10.1016/j.commatsci.2012.01.028
  5. First-principles study of the dielectric and dynamical properties of lithium niobate Physical review. B, Condensed matter · American Physical Society · 2002 10.1103/physrevb.65.214302
  6. Dielectric Properties and Optical Phonons in LiNb<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:mrow><mml:msub><mml:mrow><mml:mi mathvariant="normal">O</mml:mi></mml:mrow><mml:mrow><mml:mn>3</mml:mn></mml:mrow></mml:msub></mml:mrow></mml:math> Physical Review · American Institute of Physics · 1967 10.1103/physrev.158.433
  7. Generation of finite difference formulas on arbitrarily spaced grids Mathematics of Computation · American Mathematical Society · 1988 10.1090/s0025-5718-1988-0935077-0
  8. Resolved E-symmetry zone-centre phonons in LiTaO3 and LiNbO3 Journal of Applied Physics · American Institute of Physics · 2012 10.1063/1.4716001
  9. Solution of Schrödinger’s equation for large systems Physical review. B, Condensed matter · American Physical Society · 1989 10.1103/physrevb.40.12255
  10. Dielectric properties and Raman spectra of ZnO from a first principles finite-differences/finite-fields approach Scientific Reports · Nature Portfolio · 2013 10.1038/srep02999
  11. First-Principles Approach to Insulators in Finite Electric Fields Physical Review Letters · American Physical Society · 2002 10.1103/physrevlett.89.117602
  12. Second-order Raman spectra of diamond from<i>ab initio</i>phonon calculations Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.48.3164
  13. First-principles responses of solids to atomic displacements and homogeneous electric fields: Implementation of a conjugate-gradient algorithm Physical review. B, Condensed matter · American Physical Society · 1997 10.1103/physrevb.55.10337
  14. Polarizability and dielectric constant in density-functional supercell calculations with discrete<i>k</i>-point samplings Physical review. B, Condensed matter · American Physical Society · 2003 10.1103/physrevb.68.085114
  15. Density functional theory with finite electric field International Journal of Quantum Chemistry · Wiley · 2004 10.1002/qua.20324
  16. <i>Ab initio</i>Molecular Dynamics in a Finite Homogeneous Electric Field Physical Review Letters · American Physical Society · 2002 10.1103/physrevlett.89.157602
  17. Rationale for mixing exact exchange with density functional approximations The Journal of Chemical Physics · American Institute of Physics · 1996 10.1063/1.472933
  18. Nonlinear Optical Coefficients and the Raman Scattering Efficiency of LO and TO Phonons in Acentric Insulating Crystals Physical review. B, Solid state · American Physical Society · 1970 10.1103/physrevb.1.3494
  19. Accurate projected augmented wave (PAW) datasets for rare-earth elements (RE=La–Lu) Computational Materials Science · Elsevier BV · 2014 10.1016/j.commatsci.2014.07.030
  20. Nonlinear optical susceptibilities, Raman efficiencies, and electro-optic tensors from first-principles density functional perturbation theory Physical Review B · American Physical Society · 2005 10.1103/physrevb.71.125107
  21. Berry-phase treatment of the homogeneous electric field perturbation in insulators Physical review. B, Condensed matter · American Physical Society · 2001 10.1103/physrevb.63.155107
  22. Infrared and Raman spectra of disordered materials from first principles Diamond and Related Materials · Elsevier BV · 2005 10.1016/j.diamond.2004.12.007
  23. Pseudopotentials periodic table: From H to Pu Computational Materials Science · Elsevier BV · 2014 10.1016/j.commatsci.2014.07.043
  24. Electric polarization as a bulk quantity and its relation to surface charge Physical review. B, Condensed matter · American Physical Society · 1993 10.1103/physrevb.48.4442
  25. Infrared intensities and Raman-scattering activities within density-functional theory Physical review. B, Condensed matter · American Physical Society · 1996 10.1103/physrevb.54.7830
  26. Fraction of Boroxol Rings in Vitreous Boron Oxide from a First-Principles Analysis of Raman and NMR Spectra Physical Review Letters · American Physical Society · 2005 10.1103/physrevlett.95.137401
  27. Dynamical matrices, Born effective charges, dielectric permittivity tensors, and interatomic force constants from density-functional perturbation theory Physical review. B, Condensed matter · American Physical Society · 1997 10.1103/physrevb.55.10355
  28. First-principles study of electronic and structural properties of CuO Physical Review B · American Physical Society · 2011 10.1103/physrevb.84.115108
  29. <i>Ab initio</i>calculation of the low-frequency Raman cross section in silicon Physical review. B, Condensed matter · American Physical Society · 1986 10.1103/physrevb.33.5969
  30. Norm-conserving pseudopotentials with chemical accuracy compared to all-electron calculations The Journal of Chemical Physics · American Institute of Physics · 2013 10.1063/1.4793260
  31. First-principles calculation of vibrational Raman spectra of tetrahedral amorphous carbon Physica B Condensed Matter · Elsevier BV · 2008 10.1016/j.physb.2008.05.026
  32. Erratum: “Hybrid functionals based on a screened Coulomb potential” [J. Chem. Phys. 118, 8207 (2003)] The Journal of Chemical Physics · American Institute of Physics · 2006 10.1063/1.2204597
  33. Adiabatic density-functional perturbation theory Physical Review A · American Physical Society · 1995 10.1103/physreva.52.1096
  34. Hybrid functionals based on a screened Coulomb potential The Journal of Chemical Physics · American Institute of Physics · 2003 10.1063/1.1564060
  35. Finite electric field in density functional calculations with periodic boundary conditions Computational Materials Science · Elsevier BV · 2004 10.1016/j.commatsci.2004.01.018
  36. First-Principles Calculation of Vibrational Raman Spectra in Large Systems: Signature of Small Rings in Crystalline<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline"><mml:msub><mml:mrow><mml:mi mathvariant="normal">S</mml:mi><mml:mi mathvariant="normal">i</mml:mi><mml:mi mathvariant="normal">O</mml:mi></mml:mrow><mml:mn>2</mml:mn></mml:msub></mml:math> Physical Review Letters · American Physical Society · 2003 10.1103/physrevlett.90.036401
  37. QUANTUM ESPRESSO: a modular and open-source software project for quantum simulations of materials Journal of Physics Condensed Matter · IOP Publishing · 2009 10.1088/0953-8984/21/39/395502
  38. Dynamics of Berry-phase polarization in time-dependent electric fields Physical Review B · American Physical Society · 2004 10.1103/physrevb.69.085106
  39. Ensemble Density-Functional Theory for<i>Ab Initio</i>Molecular Dynamics of Metals and Finite-Temperature Insulators Physical Review Letters · American Physical Society · 1997 10.1103/physrevlett.79.1337
  40. Macroscopic polarization in crystalline dielectrics: the geometric phase approach Reviews of Modern Physics · American Physical Society · 1994 10.1103/revmodphys.66.899
  41. Pseudopotentials for high-throughput DFT calculations Computational Materials Science · Elsevier BV · 2013 10.1016/j.commatsci.2013.08.053
  42. Maximally localized generalized Wannier functions for composite energy bands Physical review. B, Condensed matter · American Physical Society · 1997 10.1103/physrevb.56.12847
  43. Dielectric Response of Periodic Systems from Quantum Monte Carlo Calculations Physical Review Letters · American Physical Society · 2005 10.1103/physrevlett.95.207602
  44. Phonons: Theory and Experiments II Springer series in solid-state sciences · Springer Nature · 1986 10.1007/978-3-642-52263-5
  45. Adaptively Compressed Exchange Operator Journal of Chemical Theory and Computation · American Chemical Society · 2016 10.1021/acs.jctc.6b00092
  46. The FAIR Guiding Principles for scientific data management and stewardship Scientific Data · Nature Portfolio · 2016 10.1038/sdata.2016.18
  47. <i>Ab initio</i>calculation of phonon dispersions in semiconductors Physical review. B, Condensed matter · American Physical Society · 1991 10.1103/physrevb.43.7231
  48. Optical phonons and polariton dispersions of congruent LiNbO<sub>3</sub> studied by far-infrared spectroscopic ellipsometry and Raman scattering Japanese Journal of Applied Physics · Institute of Physics · 2016 10.7567/jjap.55.10tc02
  49. Breakdown of Optical Phonons’ Splitting in Two-Dimensional Materials Nano Letters · American Chemical Society · 2017 10.1021/acs.nanolett.7b01090
  50. Raman scattering efficiency in<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>LiTaO</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:math>and<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:msub><mml:mi>LiNbO</mml:mi><mml:mn>3</mml:mn></mml:msub></mml:math>crystals Physical Review B · American Physical Society · 2015 10.1103/physrevb.91.224302
  51. The PseudoDojo: Training and grading a 85 element optimized norm-conserving pseudopotential table Computer Physics Communications · Elsevier BV · 2018 10.1016/j.cpc.2018.01.012
  52. Pressure and stress tensor of complex anharmonic crystals within the stochastic self-consistent harmonic approximation Physical review. B./Physical review. B · American Physical Society · 2018 10.1103/physrevb.98.024106
  53. Precision and efficiency in solid-state pseudopotential calculations npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0127-2
  54. Hubbard parameters from density-functional perturbation theory Physical review. B./Physical review. B · American Physical Society · 2018 10.1103/physrevb.98.085127
  55. Energetics and cathode voltages of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>Li</mml:mi><mml:mi>M</mml:mi><mml:msub><mml:mi>PO</mml:mi><mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:math> olivines (<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>M</mml:mi><mml:mo>=</mml:mo><mml:mi>Fe</mml:mi></mml:mrow></mml:math>, Mn) from extended Hubbard functionals Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.033801
  56. Hubbard-corrected DFT energy functionals: The LDA+U description of correlated systems International Journal of Quantum Chemistry · Wiley · 2013 10.1002/qua.24521
  57. High-throughput computation and evaluation of raman spectra Scientific Data · Nature Portfolio · 2019 10.1038/s41597-019-0138-y
  58. Hubbard-corrected density functional perturbation theory with ultrasoft pseudopotentials Physical review. B./Physical review. B · American Physical Society · 2020 10.1103/physrevb.101.064305
  59. AiiDA 1.0, a scalable computational infrastructure for automated reproducible workflows and data provenance Scientific Data · Nature Portfolio · 2020 10.1038/s41597-020-00638-4
  60. Using High Multipolar Orders to Reconstruct the Sound Velocity in Piezoelectrics from Lattice Dynamics Physical Review Letters · American Physical Society · 2020 10.1103/physrevlett.125.217602
  61. X-ray diffraction using focused-ion-beam-prepared single crystals Journal of Applied Crystallography · Wiley · 2020 10.1107/s1600576720003143
  62. Q<scp>uantum</scp> ESPRESSO toward the exascale The Journal of Chemical Physics · American Institute of Physics · 2020 10.1063/5.0005082
  63. Workflows in AiiDA: Engineering a high-throughput, event-based engine for robust and modular computational workflows Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.110086
  64. Raman spectra of fine-grained materials from first principles npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-00395-3
  65. AiiDA 1.0, a scalable computational infrastructure for automated reproducible workflows and data provenance Scientific Data · Nature Portfolio · 2020 10.1038/s41597-020-00638-4
  66. Pulay forces in density-functional theory with extended Hubbard functionals: From nonorthogonalized to orthogonalized manifolds Physical review. B./Physical review. B · American Physical Society · 2020 10.1103/physrevb.102.235159
  67. Symmetry and Condensed Matter Physics 2008 10.1017/cbo9780511755736
  68. Advanced capabilities for materials modelling with Quantum ESPRESSO Journal of Physics Condensed Matter · IOP Publishing · 2017 10.1088/1361-648x/aa8f79
  69. Energetics and cathode voltages of <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>Li</mml:mi><mml:mi>M</mml:mi><mml:msub><mml:mi>PO</mml:mi><mml:mn>4</mml:mn></mml:msub></mml:mrow></mml:math> olivines ( <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML"><mml:mrow><mml:mi>M</mml:mi><mml:mo>=</mml:mo><mml:mi>Fe</mml:mi></mml:mrow></mml:math> , Mn) from extended Hubbard functionals Physical Review Materials · American Physical Society · 2019 10.1103/physrevmaterials.3.033801
  70. Self-consistent Hubbard parameters from density-functional perturbation theory in the ultrasoft and projector-augmented wave formulations Physical review. B./Physical review. B · American Physical Society · 2021 10.1103/physrevb.103.045141
  71. Time-dependent self-consistent harmonic approximation: Anharmonic nuclear quantum dynamics and time correlation functions Physical review. B./Physical review. B · American Physical Society · 2021 10.1103/physrevb.103.104305
  72. The stochastic self-consistent harmonic approximation: calculating vibrational properties of materials with full quantum and anharmonic effects Journal of Physics Condensed Matter · IOP Publishing · 2021 10.1088/1361-648x/ac066b
  73. Anti-Stokes Raman Scattering of Single Carbyne Chains ACS Nano · American Chemical Society · 2021 10.1021/acsnano.1c03893
  74. Common workflows for computing material properties using different quantum engines npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00594-6
  75. HP – A code for the calculation of Hubbard parameters using density-functional perturbation theory Computer Physics Communications · Elsevier BV · 2022 10.1016/j.cpc.2022.108455
  76. Infrared-active phonons in one-dimensional materials and their spectroscopic signatures npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01140-2
  77. Wigner Gaussian dynamics: Simulating the anharmonic and quantum ionic motion Physical review. B./Physical review. B · American Physical Society · 2023 10.1103/physrevb.107.174307
  78. Automated all-functionals infrared and Raman spectra npj Computational Materials · Nature Portfolio · 2024 10.1038/s41524-024-01236-3