Quantum Theory of Functionally Graded Materials Michael J. Landry, Ryotaro Okabe, Chuliang Fu, Mingda Li Abstract Functionally graded materials (FGMs) are composites whose composition or microstructure varies continuously in space, producing position-dependent mechanical and functional properties. In recent years, FGMs have gained significant attention due to advances in additive manufacturing, which enable precise spatial control of composition and orientation. However, their graded, aperiodic structure breaks the assumptions of Bloch’s theorem, making first-principles electronic and electromagnetic calculations challenging. Here we develop an ab initio quantum theoretical framework for the electromagnetic properties of FGMs. Using a non-interacting electron model, we formulate a theory of modulated Bloch states, derive effective field equations, and solve them by proposing a generalized WKB (GWKB) method, an effective mass approximation, the Boltzmann equation, and numerical approaches. Our GWKB solution is not semiclassical but remains valid in the fully quantum regime. We show that effective observables such as conductivity, magnetic permeability, and electric permittivity generally do not admit a tensorial description in graded media, and that engineered orientational gradients enable precise control of Landau quantization. As a device example, we further develop a theory of graded p ​ – ​ n p–n junctions with enhanced electronic tunability. This framework lays the quantum foundation for predictive design of graded composite materials, enabling AI-accelerated discovery of next-generation functional architectures. I Introduction Functionally graded materials (FGMs) are composite systems characterized by spatially varying material properties, often realized through gradual changes in composition or microstructure Miyamoto et al. 2013 ; Bohidar et al. 2014 ; Naebe and Shirvanimoghaddam 2016 . Unlike ordinary composites, which typically involve abrupt interfaces between distinct phases, FGMs exhibit continuous gradients that mitigate interfacial stresses and enable novel behaviors that would otherwise be inaccessible in homogeneous media. While such systems have been proposed and experimentally implemented in various engineering contexts, a foundational theoretical framework for understanding their quantum mechanical properties remains underdeveloped. To translate this concept into practical applications, manufacturing methods play a significant role. Conventional techniques such as powder metallurgy Jin et al. 2005 ; Übeyli et al. 2014 , chemical or physical vapor deposition Sasaki and Hirai 1994 ; Dobrzański et al. 2008 , and thermal spraying Stewart et al. 2004 ; Shanmugavelayutham and Kobayashi 2007 have been employed in the fabrication of FGMs. However, these methods face significant challenges, including geometric limitations in terms of part size and structural complexity, constraints on achievable density, high energy consumption, and adverse environmental impact Mahamood et al. 2017 ; Reichardt et al. 2021 . Such drawbacks hindered the broader adoption and advancement of FGMs fabricated via traditional approaches. The recent emergence of additive manufacturing (AM) has been rapidly transforming this field Zhang et al. 2019 ; Reichardt et al. 2021 . Techniques such as directed energy deposition (DED) Singh et al. 2021 ; Feenstra et al. 2021 and powder bed fusion (PBF) Zhang et al. 2020 ; Ghanavati et al. 2025 allow precise control over the spatial distribution of materials during fabrication. These techniques make it possible to gradually vary composition, microstructure, or porosity across a part, enabling the production of complex three-dimensional gradients that were previously difficult to achieve. As a result, AM not only makes FGMs more feasible to fabricate but also revitalizes interest in their design, processing, and functional deployment. By overcoming the manufacturing barriers, AM is actively driving the development and renewed exploration of FGMs as a versatile class of advanced materials for structural, thermal, biomedical, and electrical applications. The potential applications of FGMs span numerous fields Van Doan et al. 2025 . The design of heterogeneous microstructures in metals and alloys with the help of AM can significantly improve the combination of strength and ductility compared to homogeneous counterparts Chen et al. 2024 . In aerospace engineering, they offer heat-resistant coatings that withstand extreme thermal gradients, which is also considered the origin of the FGM Koizumi 1997 . In thermal management applications, it provides the opportunity to design thermal rectifiers Zhang et al. 2025 and thermal expansion control to reduce thermal mismatch stress Khor and Gu 2000 . In biomedical implants, FGMs can provide tailored mechanical responses that improve compatibility with bone tissue Watari et al. 2004 ; Shi et al. 2021 . The functional gradient design is also applied in electrochemical devices such as batteries to enable stable cycling with high capacity and better electrochemical performance Zhang et al. 2022 ; Jiang et al. 2024 . In electronic or energy-converting devices, FGMs enable spatially varying band structures and carrier concentration that could enhance charge transport, optical, and energy-converting performance Mueller et al. 2003 ; Bharti et al. 2013 ; Hedegaard et al. 2014 ; Kumar et al. 2024 . Despite great progress on the engineering front, the theoretical tools for describing electromagnetic behavior in FGMs remain underdeveloped. Current theoretical approaches often rely on straightforward extensions of traditional solid-state physics techniques. One common such method involves perturbative expansions in which the gradient in material properties is treated as a small deviation from exact periodicity Luttinger 1951 ; Kohn 1959 ; Ashcroft and Mermin 1976 . A common approach that goes beyond perturbation theory involves adding on a slowly-varying potential to an underlying exactly-periodic Bloch potential Slater 1949 ; Slater and of Technology. Research Laboratory of Electronics. 1949 ; Slater 1951 ; Luttinger 1956 ; Sundaram and Niu 1999 . While effective in limited cases, these methods struggles to capture the full range of FGM behavior, which can include large changes to the periodicity itself. Another common class of approach is to treat the material as a continuous medium, only considering averaged properties Bensoussan et al. 1978 ; Kohn and Vogelius 1985 ; Milton et al. 2023 . While such homogenization methods simplify calculations, they often overlook the role of the microscopic structure of electronic states. Lastly, numerical methods such as finite element analysis provide detailed simulations but can be computationally expensive and may obscure underlying physical principles Zienkiewicz and Taylor 2000 ; Martin 2008 ; Payne et al. 1992 . Consequently, there is an urgent need for a robust and versatile analytic framework that can account for the complex and varied properties that characterize the rich field of FGMs. This work presents a quantum-mechanical theoretical framework, making use of first and second-quantized methods and the Boltzmann equation to give a comprehensive picture of FGMs and their electromagnetic properties. Treating the electrons as a non-interacting gas subject to a modulated Bloch potential, we formulate a general effective theory for the low-frequency behavior of the system. The resulting equations are simple and can be solved using generalizations of the WKB method and effective mass approximations, or using standard numerical techniques. We discuss easy-to-implement models that connect the parameters of the effective theory to the underlying FGM microstructure and discuss how density functional theory (DFT) can give more precise results in this correspondence, thereby creating a bridge between theory and manufacturing. In particular, we discuss how manufactured orientational order can give precise control over topological features pertaining to Landau levels, even in the absence of a magnetic field. Taking the results from this first-quantized theory, we use second quantization to derive new expressions for the electron, polarization, and current response functions. Lastly, taking the results of the first-quantized theory, we develop an FGM Boltzmann equation, which we use to investigate various material properties and develop a theory of graded diodes. Surprisingly, we find that the effective conductivity, magnetic permeability, and electric permittivity do not admit a tensorial description in FGMs, even when working in the linear regime. Our graded‑diode numerics recover the expected Shockley‑like forward‑bias behavior. Relative to an abrupt junction, grading preserves the built‑in potential while substantially reducing peak fields and spreading the field profile. Exploring alternative grading shapes indicates that deliberate profile design can further reduce field concentration. Unlike perturbative or homogenization methods, our approach naturally incorporates strong deviation from periodicity, while maintaining analytic control over observable quantities. Our results reveal that the graded structure of FGMs can be harnessed to enhance electronic and magnetic properties, offering new strategies for tailoring materials to meet specific performance goals. Figure 1: Illustration of the wave function ansatz used in the FGM theoretical framework. (a) The schematic depicts a spatially graded material where the periodicity and lattice parameters vary along the horizontal direction. (b) The wave function is decomposed into a fast-varying modulated Bloch component u_{\lambda(\bm{r})nK(\bm{r})}(\bm{r}) , and a slow-varying envelope function \phi(\bm{r}) , enabling the description of strongly aperiodic systems while retaining analytic control. Perturbative expansion in ratio \kappa of local lattice spacing to lattice-modulation scale allows for fully quantum mechanical effective description valid for strong aperiodicity. Leading-order effective equations for slow modes are given by Eq. ( 10 ). II Theoretical Framework There exist many tools for describing the nearly endless array of solid-state materials. When the inter-electron forces can be ignored and the nuclei are arranged in a periodic order, Bloch’s theorem dictates that the energy eigenstates take a very particular form, leading to a separated band structure Kittel and McEuen 2018 . By contrast, when the nuclei are arranged in a highly aperiodic order, various well-established mathematical methods can be used to treat such disordered systems ANDERSON 2005 ; Anderson 2016 . But what happens in the middle cases in which the lattice appears nearly periodic on short scales, yet the periodicity can change—sometimes quite drastically—over longer distances? In such cases, both Bloch’s theorem and disorder techniques fail. For situations in which the deviation from exact periodicity is sufficiently small, Bloch states paired with standard perturbation theory can give satisfactory results Kittel 2005 ; Luttinger and Kohn 1955 ; Belashchenko 2025 . But in more extreme cases of lattice modulation, the (approximate) lattice vectors in one location might be substantially different from those elsewhere. As a result, perturbation theory fails. Here new theoretical tools are needed. It is the aim of this section to develop such new tools. II.1 Effective theory Before moving on to the theory of FGMs, let us briefly review the results of Bloch’s theorem. Suppose non-interacting electrons occupy a periodic potential V(\bm{r}) that is invariant under spatial translations by lattice vectors \bm{R} , that is V(\bm{r}+\bm{R})=V(\bm{r}). (1) Then the resulting energy eigenstates are characterized by two quantum numbers: the band index n\in\mathbb{N} and the lattice momentum \bm{k} , belonging to the first Brillouin zone, yielding \psi_{n\bm{k}}(\bm{r})=u_{n\bm{k}}(\bm{r})e^{i\bm{k}\cdot\bm{r}}, (2) where u_{n\bm{k}}(\bm{r}+\bm{R})=u_{n\bm{k}}(\bm{r}) , such that \displaystyle\left[-{1\over 2m}(\bm{\nabla}+i\bm{k})^{2}+V(\bm{r})-\mathpzc{E}_{n\bm{k}}\right]u_{n\bm{k}}(\bm{r})=0, (3) with corresponding eigenenergy \mathpzc{E}_{n\bm{k}} . Denoting reciprocal lattice vectors by \bm{G} , which are defined such that e^{i\bm{G}\cdot\bm{R}}=1 for all lattice vectors \bm{R} , we may expand the Bloch function by u_{n\bm{k}}(\bm{r})=\sum_{\bm{G}}u_{n\bm{k},\bm{G}}e^{i\bm{G}\cdot\bm{r}}. (4) Now suppose that we have a parameterized family of periodic potentials V_{\lambda}(\bm{r}) with lattice vectors \bm{R}_{\lambda} ; \lambda is some generic parameter or set of parameters. The resulting Bloch wave functions then take the form \psi_{\lambda n\bm{k}}(\bm{r})=u_{\lambda n\bm{k}}(\bm{r})e^{i\bm{k}\cdot\bm{r}}, (5) with corresponding energy \mathpzc{E}_{\lambda n\bm{k}} . In the case of FGMs, we want a potential that appears approximately periodic on short distance scales, but whose periodicity can change on longer scales. The most general such potential can be obtained by promoting the parameter \lambda to a slowly varying function of position \lambda(\bm{r}) . Defining the FGM potential {\mathcal{V}}(\bm{r})\equiv V_{\lambda(\bm{r})}(\bm{r}) , we find that the Bloch wave function is no longer a solution to the eigenvalue equation. But in the limit that \lambda(\bm{r}) varies on much longer distance scales than the fundamental lattice vectors \bm{R}_{\lambda} , we might expect that a gently modulated Bloch function will yield a good approximation. We therefore suppose the wave function ansatz \psi_{\rm FGM}(\bm{r})=u_{\lambda(\bm{r})n\bm{K}(\bm{r})}(\bm{r})\phi(\bm{r}), (6) where we define \bm{K}(\bm{r}) to be the local lattice momentum. A schematic of FGM and the wave functions are shown in Fig. 1 . In principle, there could be coupling between different local Bloch states of the same energy but different \bm{k} or n , in which case our ansatz would need to be modified. However, the couplings between terms of different \bm{k} will be next-to-leading order in the gradient expansion, while coupling between terms of different n only occur near band crossings. We will leave such considerations for future work, focusing here on the leading-order dynamics for a single, isolated band. Letting the subscript PC (\bm{r}) indicate an integral over a single local primitive unit cell centered at \bm{r} , we postulate the self-consistent relations (see supplementary information) \displaystyle\bm{K}(\bm{r})=\bm{k}(\bm{r})+\bm{a}(\bm{r}) (7) \displaystyle\bm{k}(\bm{r})=-{i\over 2}\bm{\nabla}\log\phi(\bm{r}), (8) \displaystyle\bm{a}(\bm{r})\equiv\underset{{\rm PC}(\bm{r})}{\int}d^{3}\bm{x}\,\bar{u}_{\lambda(\bm{r})n\bm{K}(\bm{r})}(\bm{x}){1\over i}\overset{\leftrightarrow}{\bm{\nabla}}_{\bm{r}}u_{\lambda(\bm{r})n\bm{K}(\bm{r})}(\bm{x}), (9) where we use the notation f\overset{\leftrightarrow}{\bm{\nabla}}g\equiv{{\frac{1}{2}}}(g\bm{\nabla}f-f\bm{\nabla}g) . This expression for the local momentum is rather complicated, so its meaning may not be obvious. Do not fear—in the next subsection, we will make physical sense of it. For now, simply notice that in the limit in which \lambda is constant and exact periodicity is restored, \phi\to e^{i\bm{k}\cdot\bm{r}} , we recover the standard Bloch momentum \bm{K}(\bm{r})\to\bm{k} . We are interested only in the dynamics of the “slow” wave function \phi(\bm{r}) . It is convenient to decompose the wave function into amplitude and phase by \phi(\bm{r})=A(\bm{r})e^{iS(\bm{r})} . We assume a separation of scales: the small length scale is the characteristic lattice spacing \ell_{\rm latt} , while the large length scale is the modulation scale, namely the characteristic distance over which local lattice spacing changes, \ell_{\rm mod} . Letting \kappa=\ell_{\rm latt}/\ell_{\rm mod}\ll 1 , we work to order {{\mathcal{O}}}(\kappa^{0}) to obtain leading-order equations for the slow fields. This approximation scheme can be interpreted as a gradient expansion in which A and \bm{\nabla}S are considered to be zeroth order in derivatives. Implementing a coarse-graining procedure (see supplementary information), we find \begin{gathered}{{\mathcal{E}}}(\bm{K};r)=E,\quad\bm{\nabla}\cdot(A^{2}\bm{v})=0,\end{gathered} (10) where {{\mathcal{E}}}_{n}(\bm{K}(\bm{r});\bm{r})=\mathpzc{E}_{\lambda(\bm{r})n\bm{K}(\bm{r})} is the local Bloch energy and \bm{v}\equiv{\partial{{\mathcal{E}}}\over\partial\bm{K}} is the local electron velocity. Then the above pair of equations in conjunction with the ansatz Eq. ( 6 ) constitute the leading-order approximation to the FGM wave function in the small \lambda -gradient expansion. Notice that in assuming the gradients of \lambda are small (i.e. \kappa\ll 1 ), we are not assuming small deviations from periodicity. Indeed, the deviations from periodicity may be arbitrarily large on sufficiently large distance scales. It is standard in the literature James 1949 to consider a special subclass of potentials that take the form V_{\rm Bloch}+V_{\rm slow} , where V_{\rm Bloch} is an exactly periodic Bloch potential while V_{\rm slow} is a slowly-varying aperiodic potential. By contrast our set-up is far more general, allowing for arbitrary slow modulation of the Bloch potential in three dimensions, thereby characterizing the full range of FGMs. With Eq. ( 10 ) in hand, we have a complete set of equations that govern the slow part of the wave function \phi=Ae^{iS} at leading order in the gradient expansion. In principle, we could stop here and declare that our theory is complete; all that remains is to solve these equations. One could proceed numerically, but we would like to see how far we can get by analytic methods alone. To this end, we will shorty present two approaches that will enable us to find closed-form solutions to these equations: a generalized WBK (GWKB) method and an effective mass approximation. Before solving these equations, however, it is important to understand the nature of the emergent gauge symmetry. II.2 Emergent gauge symmetry The term gauge symmetry is a bit of a misnomer—when constructing physics theories, we ought to think of gauge “symmetries” as redundancies of description. There is no actual symmetry present. Any time there are two (or more) mathematical representations of the same physics, we call the transformation that takes us from one description to another a gauge transformation . With this in mind, let us proceed to discuss our FGM equations. The definition of \bm{K}(\bm{r}) is rather complicated, mathematically speaking. Fortunately, however, its decomposition into \bm{K}(\bm{r})=\bm{k}(\bm{r})+\bm{a}(\bm{r}) , admits a simple physical interpretation. We can interpret \bm{k}(\bm{r})=\bm{\nabla}S(\bm{r}) as the local lattice momentum of the slow wave function \phi(\bm{r}) , and \bm{a}(\bm{r}) as an emergent gauge field that quantifies how much the local lattice vectors vary, namely the position-space Berry connection. Then \bm{K}(\bm{r}) constitutes the local gauge-invariant lattice momentum . But why should there be a gauge symmetry for this coarse-grained theory when none exists in the microscopic description? The answer is that we created a gauge redundancy by decomposing the wave function according to Eq. ( 6 ). For any scalar function f(\bm{r}) , the full wave function \psi_{\rm FGM} —and hence any observable—is invariant under the simultaneous transformation \displaystyle\phi(\bm{r})\to e^{if(\bm{r})}\phi(\bm{r}), (11) \displaystyle u_{\lambda(\bm{r})n\bm{K}(\bm{r})}(\bm{r})\to e^{-if(\bm{r})}u_{\lambda(\bm{r})n\bm{K}(\bm{r})}(\bm{r}). (12) At the level of the microscopic wave function, this redundancy of description is utterly trivial: the phases simply cancel. At the level of the coarse-grained equations of motion, however, it appears as a standard (time-independent) U(1) gauge symmetry, with \bm{a}(\bm{r}) playing the role of the gauge connection, namely \phi(\bm{r})\to e^{if(\bm{r})}\phi(\bm{r}),\quad\bm{a}(\bm{r})\to\bm{a}(\bm{r})-\bm{\nabla}f(\bm{r}). (13) Importantly, this emergent gauge field measures the Berry phase. In general, non-zero Berry curvature arises from band crossings, so when just one band is at play, \bm{a} is removable by a gauge transformation. If however, a band intersection occurs, then Eq. ( 10 ) can be generalized and a non-trivial connection can emerge. The result is a pesudo-magnetic field \bm{b}=\bm{\nabla}\times\bm{a} . Although our derivation focuses on the single band case, we will investigate some possible consequences of pseudo-magnetic fields in FGM in subsequent sections. II.3 Generalized WKB (GWKB) solution We should like to solve the FGM equations for the slow wave function Eq. ( 10 ). Assuming only one band is relevant, we suppose \bm{b}=0 , in which case we can gauge-fix \bm{a}=0 . Then, supposing that the periodicity of the lattice only changes along the z -direction, the equations of motion simplify drastically. In particular, Bloch’s theorem now applies so long as we hold z constant. As such, A(\bm{r})=A(z),\quad S(\bm{r})=\bm{k}_{\perp}\cdot\bm{r}+\int^{z}dz^{\prime}k_{z}(z^{\prime}), (14) where \bm{k}_{\perp}\equiv(k_{x},k_{y},0) is constant. The equations of motion then reduce to ordinary differential equations, {{\mathcal{E}}}=E,\quad(A^{2}v_{z})^{\prime}=0, (15) where primes denote derivatives with respect to z . These simplified equations invite a generalized, WKB-type approach, which happens to give exact solutions to these leading-order equations. They are exact in the sense that the gradient expansion truncated at leading order already incorporates the assumption central to the WKB approximation, namely that derivatives of A and k_{z} are negligible. Our GWKB solution is therefore not a semi-classical approximation, but is rather a fully quantum mechanical solution given to leading order in the ratio of length scales, \kappa . As such, k_{z}(z) is given implicitly by {{\mathcal{E}}}(\bm{k}_{\perp},k_{z}(z);z)=E, (16) while the modulated amplitude is given by A\propto{1/\sqrt{v_{z}}} . Normalizing appropriately (see supplementary information), the slow wave function with energy E given by this GWKB solution is then \displaystyle\phi_{E}(\bm{r})={1\over\sqrt{\mathpzc}{V}}\sqrt{\bar{v}_{z}\over v_{z}(z)}e^{i\bm{k}_{\perp}\cdot r+i\int^{z}dz^{\prime}k_{z}(z^{\prime})}, (17) \displaystyle\bar{v}_{z}^{-1}\equiv{1\over\mathpzc{V}}\int d^{3}\bm{r}{1\over v_{z}(z)}, (18) where \mathpzc{V} is the volume of the FGM and \bar{v}_{z} is the average classical electron velocity. There is one important caveat in the above expression. If the wave function crosses into the forbidden region where k_{z}(z) develops a non-zero imaginary part, then the above expression for the wave function fails. Fortunately, there is a simple trick that can extend any such wave function to the forbidden region: simply analytically continue the energy to the complex plane E\to E\pm i{\epsilon} and take the symmetric limit (see supplementary information), \phi_{E}(\bm{r})\propto{{\frac{1}{2}}}\lim_{{\epsilon}\to 0^{+}}\left(\phi_{E+i{\epsilon}}(\bm{r})+\phi_{E-i{\epsilon}}(\bm{r})\right). (19) It is well-known that the conventional WKB wave function diverges at the turning points, which separate the classically allowed and forbidden regions. The reason is that at these points, v_{z}(z) diverges, and the gradient expansion breaks down. This analytic continuation trick can be used to artificially regulate these divergences by promoting {\epsilon}\to{\epsilon}(z) and keeping {\epsilon}(z)\neq 0 in the vicinity of any turning points. Lastly, we can use this GWKB solution to establish quantization conditions. Placing the FGM in a box of volume \mathpzc{V}=L^{3} , where L is the length of each side, we find that in the transverse directions, \bm{k}_{\perp}={\pi\bm{n}_{\perp}\over L},\quad\bm{n}_{\perp}\in\mathbb{N}^{2}, (20) while along the graded direction, in the absence of turning points, we have \int_{0}^{L}dz\,k_{z}(z)=\pi n_{z},\quad n_{z}\in\mathbb{N}. (21) We therefore find that, in a finite volume, states are labeled by quantum numbers \bm{n}=(\bm{n}_{\perp},n_{z}) . If turning points do exist, then the above quantization conditions must be modified. As a simple example, suppose that a{\mathcal{U}}(x) . For the sake of concreteness, suppose that x<0 is the classically allowed region, x>0 is forbidden and x=0 is the turning point. There are two possibilities for the wave function in the classically allowed region, namely \psi_{E;\pm}(x<0)={{\mathcal{N}}}_{\pm}(E-{\mathcal{U}}(x))^{-1/4}e^{\pm i\int^{0}_{x}\sqrt{(E-V(x))}}. (S.129) In most textbook treatments, the wave function in the forbidden region is connected to the above wave function via Airy’s patch functions; this is a rather cumbersome method. Here, we simply note that if we analytically continue the energy to the complex plane, then we never encounter any turning points. That is E-{\mathcal{U}}(x)=0 is only allowed if E is real (assuming that {\mathcal{U}}(x) is strictly real). There is, however, an ambiguity in how we might analytically continue: there are two possibilities, E\to E\pm i{\epsilon} , for small {\epsilon}>0 . We claim that the correct prescription for defining the wave functions of energy E on the full real axis is to take the symmetric limit, namely \psi_{E;\pm}(x)\equiv{{\frac{1}{2}}}\lim_{{\epsilon}\to 0^{+}}\sum_{\eta=\pm 1}\psi_{E+i\eta{\epsilon};\pm}(x). (S.130) The true wave function, which satisfies appropriate boundary conditions is given by some linear combination of these two wave functions \psi_{E}(x)=C_{+}\psi_{E;+}(x)+C_{-}\psi_{E;-}(x) . Using the fact that \lim_{{\epsilon}\to 0^{+}}(-1\pm i{\epsilon})^{-1/4}=e^{\mp{i\pi\over 4}} , the wave functions in the forbidden region are \displaystyle\psi_{E;\pm}(x>0)={{\frac{1}{2}}}({\mathcal{U}}-E)^{-1/4}\left[e^{\pm{i\pi\over 4}}e^{-\int_{0}^{x}dx^{\prime}\sqrt{2m({\mathcal{U}}(x^{\prime})-E)}}+e^{\mp{i\pi\over 4}}e^{+\int_{0}^{x}dx^{\prime}\sqrt{2m({\mathcal{U}}(x^{\prime})-E)}}\right]. (S.131) Imposing the boundary condition \psi_{E}(x\to\infty)=0 , we have C_{\pm}=e^{\mp{i\pi\over 4}}C_{0} , for some constant C_{0} . As such the full WKB wave function is \psi_{E}(x)=C_{0}\left\{\begin{array}[]{ll}2(E-{\mathcal{U}}(x))^{-1/4}\sin\left[\int_{0}^{x}dx^{\prime}\sqrt{2m(E-{\mathcal{U}}(x^{\prime}))}+{\pi\over 4}\right],&x<0\\ ({\mathcal{U}}(x)-E)^{-1/4}e^{-\int_{0}^{x}dx^{\prime}\sqrt{2m(E-{\mathcal{U}}(x))}},&x>0\end{array}\right., (S.132) which agrees with standard results Griffiths and Schroeter 2018 . We therefore see that the general prescription ( S.130 ) is correct. S4 Computing \Pi^{R}_{AB}(\omega) Consider second-quantized operators \displaystyle A(t)=\sum_{\alpha\beta}A_{\alpha\beta}(t)c_{\alpha}^{\dagger}c_{\beta},\quad B(t)=\sum_{\alpha\beta}B_{\alpha\beta}(t)c_{\alpha}^{\dagger}c_{\beta}, (S.133) and thermal density matrix \rho={1\over Z}e^{-({{\mathcal{H}}}-\mu)/T},\quad Z=\mathop{\rm tr}e^{-({{\mathcal{H}}}-\mu)/T},\quad{{\mathcal{H}}}=\sum_{\alpha}c^{\dagger}_{\alpha}c_{\alpha}. (S.134) Compute the expectation value \displaystyle\vev{[A(t),B(t^{\prime})]}_{\rho}=\sum_{\alpha\beta\gamma\delta}\vev{[c_{\alpha}^{\dagger}c_{\beta},c_{\gamma}^{\dagger}c_{\delta}]}_{\rho}e^{-i(E_{\alpha}-E_{\beta})t}e^{-i(E_{\gamma}-E_{\delta})t}. (S.135) Using the fact that [c_{\alpha}^{\dagger}c_{\beta},c_{\gamma}^{\dagger}c_{\delta}]={c_{\alpha}^{\dagger}c_{\delta}}\delta_{\beta\gamma}-{c_{\gamma}^{\dagger}c_{\beta}}\delta_{\delta\alpha} , we have \displaystyle\sum_{\alpha\beta\gamma\delta}A_{\alpha\beta}(t)B_{\gamma\delta}(t^{\prime})\left(\vev{c_{\alpha}^{\dagger}c_{\delta}}_{\rho}\delta_{\beta\gamma}-\vev{c_{\gamma}^{\dagger}c_{\beta}}_{\rho}\delta_{\delta\alpha}\right). (S.136) For Fermi-Dirac statistics, \vev{c^{\dagger}_{\alpha}c_{\beta}}_{\rho}=\delta_{\alpha\beta}n_{F}(E_{\alpha}) , so \displaystyle\Pi^{R}_{AB}(t-t^{\prime})=-i{\theta}(t-t^{\prime})\sum_{\alpha\beta}A_{\alpha\beta}(t)B_{\beta\alpha}(t)(n_{F}(E_{\beta})-n_{F}(E_{\alpha})). (S.137) The Fourier transform is then \Pi^{R}_{AB}(\omega)=\sum_{\alpha\beta}A_{\alpha\beta}B_{\beta\alpha}{n_{F}(E_{\beta})-n_{F}(E_{\alpha})\over\omega-E_{\alpha}+E_{\beta}+i0^{+}}. (S.138) S5 Effective conductivity Suppose boundary conditions for the electrical potential \phi(x,z=0)=V and \phi(x,z=L)=0 , and let the local conductivity scalar be \sigma(w) , for w=z\cos\theta+x\sin\theta . For z held fixed, assume that \sigma(w) varies slowly as a function of x , namely \partial_{w}\log\sigma(w)\ll 1/L\sin\theta . Then we can suppose the current flows only along the z -direction. As such, the steady-state condition \bm{\nabla}\cdot\bm{J}=0 implies J^{z}({\bm{r}})=J^{z}(x) , yielding J^{z}(x)=-\sigma(w)\partial_{z}\phi. (S.139) We can then integrate \partial_{z}\phi to find V=J^{z}(x)\int_{0}^{L}{dz\over\sigma(w)}={J^{z}(x)\over\cos\theta}\int_{x\sin\theta}^{L\cos\theta+x\sin\theta}{dw\over\sigma(w)}. (S.140) Define {{\mathcal{I}}}\equiv\int_{0}^{L}dx\int_{0}^{L}dyJ^{z}(x) and let A_{\perp} be the cross-sectional area. Solving for J^{z}(x) , and averaging over the x,y plane, we then have {{{\mathcal{I}}}\over A_{\perp}}={V\cos\theta}\int_{0}^{L}{dx\over L}\left[\int_{x\sin\theta}^{L\cos\theta+x\sin\theta}{dw\over\sigma(w)}\right]^{-1}. (S.141) Notice that as the validity of the approximation is determined by \partial_{w}\log\sigma(w)\ll 1/L\sin\theta , there are three distinct cases in which this approximation is valid: (1) \sigma(w) is arbitrary but {\theta} is small (2) {\theta} is arbitrary, but \sigma(w) varies slowly and (3) {\theta} is arbitrary; \sigma(w) may vary quickly but all deviations from its average value are small. If the condition \partial_{w}\log\sigma(w)\ll 1/L\sin\theta does not hold, then we must solve the full system of equations \bm{J}=-\sigma(w)\bm{\nabla}\phi,\quad\bm{\nabla}\cdot J=0, (S.142) subject to the boundary conditions \phi(x,z=0)=V and \phi(x,z=L)=0 . S6 Graded diodes The distribution functions for electrons in the conduction band f_{c} and in the valence band f_{v} are f_{c}(\bm{k},z)={1\over\exp\left\{H_{c}(\bm{k},z)-\mu_{c}\over k_{B}T\right\}+1},\quad f_{v}(\bm{k},z)={1\over\exp\left\{H_{v}(\bm{k},z)-\mu_{v}\over k_{B}T\right\}+1} (S.143) Define the hole distribution function by f_{h}\equiv 1-f_{v} . In the non-degenerate limit, we can expand about values of the energy near the energy minimum in the covalence band and near the maximum in the valence band f_{c}(\bm{k},z)\to\exp\left\{-{H_{c}(\bm{k},z)-\mu_{c}\over k_{B}T}\right\},\quad f_{h}(\bm{k},z)\to\exp\left\{H_{v}(\bm{k},z)-\mu_{v}\over k_{B}T\right\}, (S.144) where H_{c}(\bm{k},z)={\hbar^{2}k^{2}\over 2m_{c}^{*}(z)}+{\mathcal{U}}_{c}(z),\quad H_{v}(\bm{k},z)=-{\hbar^{2}k^{2}\over 2m_{v}^{*}(z)}+{\mathcal{U}}_{v}(z). (S.145) These potentials can be decomposed into the intrinsic potential energy arising from the gradations of the lattice and the electrostatic potential energy {\mathcal{U}}_{c}(z)=U_{c}(z)-q\varphi(z),\quad{\mathcal{U}}_{v}(z)=U_{v}(z)-q\varphi(z). (S.146) The particle and hole number densities are, respectively, n(z)=\int{d^{3}k\over(2\pi)^{3}}f_{c}(\bm{k},z) and p(z)=\int{d^{3}k\over(2\pi)^{3}}f_{h}(\bm{k},z) , which are given by direct computation to be \displaystyle n(z)=N_{c}(z)\exp\left\{\mu_{c}(z)+q\varphi(z)-U_{c}(z)\over k_{B}T\right\},\quad p(z)=N_{v}(z)\exp\left\{U_{v}(z)-\mu_{v}(z)-q\varphi(z)\over k_{B}T\right\}, (S.147) \displaystyle N_{c}(z)\equiv 2\left(m_{c}^{*}(z)k_{B}T\over 2\pi\hbar^{2}\right)^{3/2},\quad N_{v}(z)\equiv 2\left(m_{v}^{*}(z)k_{B}T\over 2\pi\hbar^{2}\right)^{3/2} (S.148) S6.1 Equilibrium It is helpful to define the intrinsic carrier density n_{i} , which is given by n_{i}^{2}=\bar{n}\bar{p} . The equilibrium values \bar{n} and \bar{p} are evaluated at \mu_{c}=\mu_{v}=E_{F} , where the Fermi energy E_{F} is constant. We have n_{i}^{2}(z)=N_{c}(z)N_{v}(z)\exp\left\{-{E_{g}(z)\over k_{B}T}\right\},\quad E_{g}(z)\equiv U_{c}(z)-U_{v}(z). (S.149) To find the equilibrium boundary conditions, suppose the p -region is on the left and the n -region is on the right. We suppose that the gradations only occur near the z\sim 0 region and that far from this region, the material parameters are constant (though they may be different constants to the right vs the left). Moreover, we will suppose that in the p -region, N_{d}(z\to-\infty)=0 , while in the n -region N_{a}(z\to+\infty)=0 . If each donor/ acceptor is fully ionize we may suppose, in the p -region, \bar{p}(-\infty)=N_{a}(-\infty)\implies\bar{n}(-\infty)={n_{i}^{2}(-\infty)\over N_{a}(-\infty)}, (S.150) while in the n -region \bar{n}(+\infty)=N_{d}(+\infty)\implies\bar{p}(+\infty)={n_{i}^{2}(+\infty)\over N_{d}(+\infty)}. (S.151) We can solve these to find \bar{\varphi}(+\infty)-\bar{\varphi}(-\infty)=V_{\rm bi}\equiv{k_{B}T\over q}\log\left\{{N_{d}(+\infty)N_{a}(-\infty)\over N_{c}(+\infty)N_{v}(-\infty)e^{-{U_{c}(+\infty)-U_{v}(-\infty)\over k_{B}T}}}\right\}. (S.152) V_{\rm bi} is the built-in potential. S6.2 Non-equilibrium We will now compute what happens in the presence of a voltage bias. We need to take into account non-equilibrium behavior, e.g. how particles and hole pairs can be annihilated. The electric current due to particles is (derived in the next subsection) \displaystyle J_{n}^{z}=qD_{n}\left(\partial_{z}n+{n\over k_{B}T}\partial_{z}\tilde{U}_{c}+{qn\over k_{B}T}E_{z}\right), (S.153) \displaystyle\tilde{U}_{c}\equiv U_{c}-k_{B}T\log N_{c},\quad D_{n}\equiv{\tau k_{B}T\over m_{c}^{*}},\quad E_{z}=-\partial_{z}\varphi. (S.154) while the electric current due to holes is \displaystyle J_{p}^{z}=qD_{p}(z)\left(-\partial_{z}p+{p\over k_{B}T}\partial_{z}\tilde{U}_{v}+{qp\over k_{B}T}E_{z}\right), (S.155) \displaystyle\tilde{U}_{v}\equiv U_{v}+k_{B}T\log N_{v},\quad D_{p}\equiv{\tau k_{B}T\over m_{v}^{*}}. (S.156) The equations of motion are then \partial_{z}J_{n}^{z}=q{\mathcal{R}},\quad\partial_{z}J_{p}^{z}=-q{\mathcal{R}},\quad\partial_{z}^{2}\varphi=-{q\over\varepsilon_{0}}\left(p-n+N_{d}-N_{a}\right), (S.157) where the recombination rate can be modeled by {\mathcal{R}}={1\over\tau_{\rm rec}}{np-n_{i}^{2}\over n+p},\quad n_{i}^{2}\equiv N_{c}N_{v}\exp\left\{-{U_{c}-U_{v}\over k_{B}T}\right\}. (S.158) In order to find a solution to these equations, we need to impose the correct boundary conditions. Suppose we want to impose a voltage bias V , where the voltage difference between the n region ( z\to+\infty ) and the p -region ( z\to-\infty ) is -V , we must impose the boundary conditions \displaystyle\varphi(+\infty)=-V+V_{\rm bi},\quad n(+\infty)=N_{d}(+\infty),\quad p(+\infty)={n_{i}^{2}(+\infty)\over N_{d}(+\infty)}, (S.159) \displaystyle\varphi(-\infty)=0,\quad p(-\infty)=N_{a}(-\infty),\quad n(-\infty)={n_{i}^{2}(-\infty)\over N_{a}(-\infty)}, (S.160) \displaystyle V_{\rm bi}\equiv{k_{B}T\over q}\log\left\{{N_{d}(+\infty)N_{a}(-\infty)\over N_{c}(+\infty)N_{v}(-\infty)e^{-{U_{c}(+\infty)-U_{v}(-\infty)\over k_{B}T}}}\right\}. (S.161) S6.3 Boltzmann equation Consider the time-independent Boltzmann equation in the relaxation time approximation {1\over\hbar}{\partial\hat{H}\over\partial k_{z}}{\partial{\mathfrak{f}}\over\partial z}-{1\over\hbar}{\partial\hat{H}\over\partial z}{\partial{\mathfrak{f}}\over\partial k_{z}}=-{\delta f\over\tau}, (S.162) where {\mathfrak{f}}=f+\delta f . Working to linear order in small quantities allows us to replace {\mathfrak{f}}\to f on the l.h.s. First consider electrons in the conduction band, where f_{c}=e^{-{H_{c}-\mu_{c}\over k_{B}T}} , and \hat{H}_{c}=H_{c}-q\delta\varphi , for \delta\varphi=\varphi-\bar{\varphi} . The l.h.s. terms of the Boltzmann equation become \displaystyle{1\over\hbar}{\partial f_{c}\over\partial H_{c}}\left[{\partial H\over\partial k_{z}}\left({\partial H_{c}\over\partial z}-{\partial\mu_{c}\over\partial z}\right)-\left({\partial H_{c}\over\partial z}-q{\partial\delta\varphi\over\partial z}\right){\partial H_{c}\over\partial k_{z}}\right]={\hbar\over k_{B}Tm^{*}_{c}(z)}k_{z}f_{c}\partial_{z}(\mu_{c}-q\delta\varphi). (S.163) The resulting electrical current carried by electrons in the conduction band is \displaystyle J_{n}^{z}=-2q\int{d^{3}k\over(2\pi)^{3}}\delta f_{c}v_{z}={q\tau\over m_{c}^{*}}n\partial_{z}(\mu_{c}-q\delta\varphi). (S.164) Using the identity n\partial_{z}(\mu_{c}-q\varphi)=k_{B}T\partial_{z}n+n\partial_{z}(U_{c}-q\varphi-k_{B}T\log N_{c}) , letting E_{z}=-\partial_{z}\varphi , we find \displaystyle J_{n}^{z}=qD_{n}\left(\partial_{z}n+{n\over k_{B}T}\partial_{z}\tilde{U}_{c}+{qn\over k_{B}T}E_{z}\right), (S.165) \displaystyle\tilde{U}_{c}\equiv U_{c}-k_{B}T\log N_{c},\quad D_{n}\equiv{\tau k_{B}T\over m_{c}^{*}}. (S.166) Going though a very similar derivation, the electric current carried by holes is \displaystyle J_{p}^{z}=qD_{p}(z)\left(-\partial_{z}p+{p\over k_{B}T}\partial_{z}\tilde{U}_{v}+{qp\over k_{B}T}E_{z}\right), (S.167) \displaystyle\tilde{U}_{v}\equiv U_{v}-k_{B}T\log N_{v},\quad D_{p}\equiv{\tau k_{B}T\over m_{v}^{*}}. (S.168) S7 Details of Numerical Simulations S7.1 Low-temperature limit of local conductivity We start from the semiclassical expression for the local conductivity tensor under the relaxation-time approximation: \sigma^{ij}(z,\omega)=\frac{e^{2}\tau}{1-i\omega\tau}\int\frac{d^{3}\bm{k}}{(2\pi)^{3}}\left(-\frac{\partial f^{0}}{\partial H}\right)v^{i}(\bm{k})v^{j}(\bm{k}), (S.169) where the local dispersion relation is assumed to be parabolic, H(\bm{k},z)=\frac{\hbar^{2}\bm{k}^{2}}{2m^{*}}+U(z), (S.170) and the velocity is given by v^{i}(\bm{k})=\frac{1}{\hbar}\frac{\partial H}{\partial k_{i}}=\frac{\hbar k_{i}}{m^{*}}. (S.171) In the low-temperature limit, the derivative of the Fermi-Dirac distribution approaches a Dirac delta function: -\frac{\partial f^{0}}{\partial H}\xrightarrow{T\to 0}2\delta\left(H(\bm{k},z)-E_{F}\right)=2\delta\left(\frac{\hbar^{2}k^{2}}{2m^{*}}+U(z)-E_{F}\right). (S.172) Defining the local Fermi energy as \epsilon(z)\equiv E_{F}-U(z),\quad k_{F}(z)=\sqrt{\frac{2m^{*}\epsilon(z)}{\hbar^{2}}}, (S.173) we restrict to the region where \epsilon(z)>0 , since otherwise no carriers contribute. We evaluate the zz -component of the conductivity. Using spherical coordinates, we write d^{3}\bm{k}=k^{2}\sin\theta\,dk\,d\theta\,d\phi,\quad v^{z}=\frac{\hbar k_{z}}{m^{*}}=\frac{\hbar k\cos\theta}{m^{*}}. (S.174) Thus the integrand becomes \left(v^{z}\right)^{2}=\left(\frac{\hbar k\cos\theta}{m^{*}}\right)^{2}=\frac{\hbar^{2}k^{2}\cos^{2}\theta}{(m^{*})^{2}}. Substituting into the expression, we obtain \displaystyle\sigma^{zz}(z,\omega) \displaystyle=\frac{2e^{2}\tau}{1-i\omega\tau}\int\frac{d^{3}\bm{k}}{(2\pi)^{3}}\delta\left(\frac{\hbar^{2}k^{2}}{2m^{*}}-\epsilon(z)\right)\cdot\frac{\hbar^{2}k^{2}\cos^{2}\theta}{(m^{*})^{2}} \displaystyle=\frac{2e^{2}\tau}{1-i\omega\tau}\cdot\frac{1}{(2\pi)^{3}}\cdot\int_{0}^{\infty}dk\,k^{2}\,\delta\left(\frac{\hbar^{2}k^{2}}{2m^{*}}-\epsilon(z)\right)\cdot\frac{\hbar^{2}k^{2}}{(m^{*})^{2}}\cdot\int_{0}^{\pi}d\theta\,\sin\theta\cos^{2}\theta\cdot\int_{0}^{2\pi}d\phi. (S.175) Evaluating the angular integrals: \int_{0}^{2\pi}d\phi=2\pi,\quad\int_{0}^{\pi}\sin\theta\cos^{2}\theta\,d\theta=\frac{2}{3}, so the total angular factor is \frac{4\pi}{3} . Now we handle the radial k -integral using the delta function: \delta\left(\frac{\hbar^{2}k^{2}}{2m^{*}}-\epsilon(z)\right)=\frac{m^{*}}{\hbar^{2}k_{F}(z)}\delta(k-k_{F}(z)), so the integral becomes \int_{0}^{\infty}dk\,k^{2}\delta(k-k_{F})\cdot\frac{\hbar^{2}k^{2}}{(m^{*})^{2}}\cdot\frac{m^{*}}{\hbar^{2}k}=\frac{k_{F}^{3}(z)}{m^{*}}. Putting everything together: \sigma^{zz}(z,\omega)=\frac{2e^{2}\tau}{1-i\omega\tau}\cdot\frac{1}{(2\pi)^{3}}\cdot\frac{4\pi}{3}\cdot\frac{k_{F}^{3}(z)}{m^{*}}=\frac{e^{2}\tau}{1-i\omega\tau}\cdot\frac{k_{F}^{3}(z)}{3\pi^{2}m^{*}}. (S.176) In terms of the local potential U(z) , this becomes: \sigma^{zz}(z,\omega)=\frac{e^{2}\tau}{1-i\omega\tau}\cdot\frac{1}{3\pi^{2}m^{*}}\left(\frac{2m^{*}}{\hbar^{2}}\right)^{3/2}\left(E_{F}-U(z)\right)^{3/2}\quad\text{for }E_{F}>U(z), (S.177) and \sigma^{zz}(z,\omega)=0 otherwise. Then we can impose the z -dependent U , m^{*} to get the final results numerically. S7.2 Numerical Solution of the Steady-State Conductivity Equation To compute the steady-state electric potential \phi(x,z) in a graded material with spatially varying local conductivity \sigma(w) , where w=x\sin\theta+z\cos\theta , we solve the following partial differential equation: \nabla\cdot\left[\sigma(x,z)\nabla\phi(x,z)\right]=0, (S.178) subject to Dirichlet boundary conditions \phi(x,z=0)=1,\qquad\phi(x,z=L)=0, (S.179) and homogeneous Neumann boundary conditions along the x -direction, \left.\frac{\partial\phi}{\partial x}\right|_{x=0}=\left.\frac{\partial\phi}{\partial x}\right|_{x=L_{x}}=0. (S.180) S7.2.1 Finite Difference Discretization We discretize the domain [0,L_{x}]\times[0,L_{z}] using a uniform Cartesian grid with N_{x} and N_{z} points in the x and z directions, respectively. The mesh spacings are given by \Delta x=L_{x}/(N_{x}-1) and \Delta z=L_{z}/(N_{z}-1) . We denote the discrete potential by \phi_{i,j}\equiv\phi(x_{i},z_{j}) . The conductivity is given by \sigma(x,z)=\sigma(w) , with w=x\sin\theta+z\cos\theta , and is evaluated at each grid point. The governing PDE is discretized using a five-point stencil with harmonic averaging of the conductivity at half-grid points. The discrete equation at interior points reads: \displaystyle\frac{1}{\Delta x^{2}}\left[\sigma_{i+\frac{1}{2},j}(\phi_{i+1,j}-\phi_{i,j})-\sigma_{i-\frac{1}{2},j}(\phi_{i,j}-\phi_{i-1,j})\right] \displaystyle+ \displaystyle\frac{1}{\Delta z^{2}}\left[\sigma_{i,j+\frac{1}{2}}(\phi_{i,j+1}-\phi_{i,j})-\sigma_{i,j-\frac{1}{2}}(\phi_{i,j}-\phi_{i,j-1})\right]=0, (S.181) where each \sigma_{i\pm\frac{1}{2},j} or \sigma_{i,j\pm\frac{1}{2}} is computed by averaging the values of \sigma at adjacent grid points: \sigma_{i+\frac{1}{2},j}=\frac{1}{2}[\sigma_{i,j}+\sigma_{i+1,j}],\quad\sigma_{i,j+\frac{1}{2}}=\frac{1}{2}[\sigma_{i,j}+\sigma_{i,j+1}]. (S.182) Dirichlet boundary conditions are imposed directly at z=0 and z=L , while Neumann conditions at x=0 and x=L_{x} are incorporated using one-sided finite differences. S7.2.2 Linear System and Solution The discrete equations are assembled into a sparse linear system A\vec{\phi}=\vec{b} , where \vec{\phi} contains the unknown nodal values \phi_{i,j} . The resulting system is solved using a direct sparse solver. S7.2.3 Current Density Evaluation Once the potential field \phi(x,z) is obtained, the current density is computed as: J_{x}=-\sigma(x,z)\frac{\partial\phi}{\partial x},\qquad J_{z}=-\sigma(x,z)\frac{\partial\phi}{\partial z}, (S.183) using central difference approximations at interior points. The resulting vector field \mathbf{J}(x,z) represents the local electrical current in the material. S8 Detailed Numerical Methodology for Graded Diode Simulations We solve the nonlinear Poisson equation for one-dimensional graded p-n junctions. This section details the governing equations, discretization and solution method, and the variable-bias and current-density formulation used for I-V curves. S8.1 Governing equations We solve the Poisson equation \frac{d^{2}\phi}{dz^{2}}=-\frac{q}{\epsilon}\left[p(z)-n(z)+N_{d}(z)-N_{a}(z)\right] (S.184) In the non-degenerate limit, carrier densities follow Boltzmann statistics: n(z)=N_{c}(z)\exp\left(\frac{E_{F}+q\phi(z)-U_{c}(z)}{k_{B}T}\right) (S.185) p(z)=N_{v}(z)\exp\left(\frac{U_{v}(z)-E_{F}-q\phi(z)}{k_{B}T}\right) (S.186) with \displaystyle N_{c}(z) \displaystyle=\text{prefactor}\times\left[m_{c}^{*}(z)k_{B}T\right]^{3/2} (S.187) \displaystyle N_{v}(z) \displaystyle=\text{prefactor}\times\left[m_{v}^{*}(z)k_{B}T\right]^{3/2} (S.188) The built-in potential is V_{bi}=\frac{k_{B}T}{q}\ln\left(\frac{N_{d}(+\infty)N_{a}(-\infty)}{N_{c}(+\infty)N_{v}(-\infty)\exp\left(-\frac{U_{c}(+\infty)-U_{v}(-\infty)}{k_{B}T}\right)}\right) (S.189) with boundary conditions: the left boundary (p-side) is \varphi(-L/2)=0 (reference potential) and the right boundary (n-side) is \varphi(+L/2)=V_{bi} (built-in potential). In the implementation, the computational grid is z\in[0,L] and a shifted coordinate z_{\rm eff}=z-L/2 is used; the solution is shifted so that \varphi(0)=0 for plotting. S8.2 Discretization and solution method The domain is discretized on a uniform grid with N=401 points and spacing \Delta z=L/(N-1) . Using the shifted coordinate z_{\rm eff} , we apply a central-difference scheme for the second derivative: \frac{d^{2}\phi}{dz^{2}}\bigg|_{z_{i}}\approx\frac{\phi_{i+1}-2\phi_{i}+\phi_{i-1}}{(\Delta z)^{2}} (S.190) This creates a tridiagonal system for the Laplacian operator. S8.2.1 Equilibrium (Newton solve) At equilibrium ( V_{\rm app}=0 ), we solve Poisson’s equation coupled to Boltzmann carrier statistics. A charge-neutrality analytic guess is used to initialize \phi , and Dirichlet boundary conditions are set from this guess. The nonlinear Poisson equation is solved by Newton–Raphson. At node i , R_{i}(\phi)=\frac{\phi_{i+1}-2\phi_{i}+\phi_{i-1}}{(\Delta z)^{2}}+\frac{q}{\epsilon}\left[N_{d,i}-N_{a,i}+p_{i}(\phi_{i})-n_{i}(\phi_{i})\right]=0. (S.191) The Jacobian is tridiagonal with diagonal entries J_{ii}=-\frac{2}{(\Delta z)^{2}}+\frac{q}{\epsilon}\left(\frac{dp_{i}}{d\phi_{i}}-\frac{dn_{i}}{d\phi_{i}}\right), (S.192) and off-diagonal entries J_{i,i\pm 1}=1/(\Delta z)^{2} , where dn_{i}/d\phi_{i}=n_{i}(q/k_{B}T) and dp_{i}/d\phi_{i}=-p_{i}(q/k_{B}T) . We solve J\Delta\phi=-R and update \phi\leftarrow\phi+\lambda\Delta\phi with a backtracking line search to ensure monotone residual decrease. The equilibrium convergence criterion is \|R\|_{\infty}<10^{-8} . S8.2.2 Non-equilibrium (Gummel iteration) For non-equilibrium, we solve Poisson and the electron/hole continuity equations self-consistently using a Gummel loop. At each bias V_{\rm app} , we iterate: (i) solve Poisson for \phi with n,p fixed; (ii) solve the electron continuity equation for n with \phi,p fixed; (iii) solve the hole continuity equation for p with \phi,n fixed. Bias-dependent Dirichlet boundary conditions are \phi(0)=0 and \phi(L)=V_{bi}-V_{\rm app} , and Ohmic contact carrier densities are enforced using the equilibrium relations at the contacts. S8.3 Variable bias and current density For I-V curve calculation, the applied voltage is swept from -0.5 to +0.5 V in steps of 0.01 V. We use a Gummel iteration (Poisson + continuity equations) with the equilibrium solution as initial guess at each bias. The I-V curve is obtained by plotting current versus voltage. The electron and hole continuity equations in steady state are \frac{dJ_{n}}{dz}=qR,\qquad-\frac{dJ_{p}}{dz}=qR, (S.193) with R the recombination rate (SRH in our implementation). For the continuity solves we use the drift–diffusion form with a Scharfetter–Gummel discretization, which preserves stability for large potential gradients. At each Gummel iteration, the electron and hole continuity equations are solved on the same mesh using the local potentials and band edges. The drift–diffusion currents are \displaystyle J_{n} \displaystyle=q\mu_{n}nE_{z}+qD_{n}\frac{\partial n}{\partial z}, (S.194) \displaystyle J_{p} \displaystyle=q\mu_{p}pE_{z}-qD_{p}\frac{\partial p}{\partial z}, (S.195) and are discretized using the Bernoulli function B(x)=x/(e^{x}-1) as J_{n}=\frac{qD_{n}}{\Delta z}\left[n_{i+1}B(-\Delta W_{n})-n_{i}B(\Delta W_{n})\right],\quad W_{n}=\frac{U_{c}-q\phi}{k_{B}T}-\ln N_{c} (S.196) and an analogous expression for J_{p} with W_{p}=\frac{q\phi-U_{v}}{k_{B}T}-\ln N_{v} . The total current is J_{\mathrm{total}}=J_{n}+J_{p} . At each bias point, the Gummel loop is iterated until the maximum change in \phi , n , and p falls below the tolerance, and the resulting current is evaluated at the device midpoint for the I–V curve.