Physics Relativistic Quantum Graphene & Klein Paradox WebGL GLSL

Klein Tunneling & Zitterbewegung at 60 FPS: Solving the 2D Relativistic Dirac Equation in Graphene via WebGL2


m = 0.00 (Massless Graphene) | V₀/E₀ = 1.60 | Normal Incidence T(0) = 100.0% | Click to launch Dirac spinor
Live 2D Relativistic Dirac Spinor Solver. At $m = 0.00$, a supercritical electrostatic barrier ($V_0 \gt E_0$) transmits 100% of normally incident fermions via electron-to-hole pseudospin conservation (the Klein Paradox). Increase Mass Gap $m v_F^2$ above $0.60$ to open a relativistic bandgap and watch the barrier reflect the wavepacket!

In Quantum Tunneling in Your Browser, we solved the non-relativistic 2D Schrödinger equation $i\hbar\partial_t\psi = (-\frac{\hbar^2}{2m}\nabla^2 + V)\psi$ and saw that whenever a potential barrier $V_0$ exceeds the wavepacket's kinetic energy $E_0$, the wavefunction inside the barrier becomes an evanescent exponential decay $e^{-\kappa x}$ whose transmission drops to zero as $V_0 \to \infty$.

In 1929, Oskar Klein discovered a shocking anomaly when replacing Schrödinger's second-order parabolic PDE with Paul Dirac's first-order relativistic wave equation: when an electrostatic barrier exceeds $V_0 \gt E_0 + mc^2$, the barrier stops decaying the wave and instead becomes transparent! In monolayer graphene (Katsnelson, Novoselov & Geim, 2006, arXiv:1106.3042; arXiv:2602.23650), low-energy electrons near the $K$ and $K'$ Dirac points obey the exact 2D massless Dirac equation ($m = 0$) with Fermi velocity $v_F \approx 10^6\,\text{m/s}$, turning a single RGBA16F WebGL texture into a real-time relativistic collider.


0. Packing a 2-Component Dirac Spinor into a Single RGBA16F Texture

2D Dirac Equation
$i\hbar\partial_t \Psi = \big(-i\hbar v_F(\sigma_x \partial_x + \sigma_y \partial_y) + m v_F^2 \sigma_z + V(\vec{x})I_2\big)\Psi$, where $\Psi = (\psi_A, \psi_B)^\top \in \mathbb{C}^2$ encodes amplitudes on graphene's $A$ and $B$ honeycomb sublattices.
RGBA16F Layout
Each texel packs $(\mathrm{Re}\,\psi_A,\, \mathrm{Im}\,\psi_A,\, \mathrm{Re}\,\psi_B,\, \mathrm{Im}\,\psi_B)$ across .rgba, advancing the coupled chiral spinor via 4th-order Runge-Kutta (RK4) stages.
Pseudospin Helicity
For $m = 0$, the helicity operator $\hat{h} = \frac{\vec{\sigma}\cdot\vec{p}}{|\vec{p}|}$ commutes with $\hat{H}_D$ at normal incidence ($\theta = 0$), forbidding backscattering from $k_x \to -k_x$ and forcing $T(\theta=0) \equiv 1$.
Zitterbewegung
A localized wavepacket overlapping both $+E(\vec{k})$ (electron) and $-E(\vec{k})$ (hole) Dirac cones exhibits rapid trembling interference at frequency $\omega_{\text{ZB}} = 2|E|/\hbar$.

1. Why Massless Dirac Fermions Cannot Backscatter at Normal Incidence

Writing out the Pauli matrices $\sigma_x = \bigl(\begin{smallmatrix}0&1\\1&0\end{smallmatrix}\bigr)$, $\sigma_y = \bigl(\begin{smallmatrix}0&-i\\i&0\end{smallmatrix}\bigr)$, and $\sigma_z = \bigl(\begin{smallmatrix}1&0\\0&-1\end{smallmatrix}\bigr)$ in natural units ($\hbar = v_F = 1$) couples the complex chiral derivatives $(\partial_x \mp i\partial_y)$ across sublattices $A$ and $B$:

Coupled 2D Dirac Spinor PDE & Klein Barrier Transmission $T(\phi)$ (Katsnelson et al., 2006)
$$i\frac{\partial}{\partial t}\begin{pmatrix}\psi_A \\ \psi_B\end{pmatrix} = \begin{pmatrix} V(\vec{x}) + m & -i\partial_x - \partial_y \\ -i\partial_x + \partial_y & V(\vec{x}) - m \end{pmatrix}\begin{pmatrix}\psi_A \\ \psi_B\end{pmatrix}$$ $$T(\phi) = \frac{\cos^2\phi \cos^2\theta}{\bigl[\cos(D q_x)\cos\phi\cos\theta\bigr]^2 + \sin^2(D q_x)\bigl(1 - s s'\sin\phi\sin\theta\bigr)^2} \;\xrightarrow{\phi \to 0}\; T(0) \equiv 1$$

Inside a supercritical barrier ($V_0 \gt E_0$, $s s' = -1$), the incident electron transitions smoothly into a positively charged valence-band hole with inverted wavevector $q_x = -\sqrt{(E_0 - V_0)^2 - k_y^2}$ but forward group velocity $v_g \gt 0$. Because pseudospin $\vec{\sigma}$ is locked to momentum $\vec{k}$, reflecting at $\phi = 0$ would require flipping pseudospin by $\pi$ – which a scalar electrostatic potential $V(x)I_2$ cannot do!

💻 GLSL: Single-Texture RGBA16F 2D Dirac Spinor Derivative KernelGLSL
// RGBA16F texel C = (Re psi_A, Im psi_A, Re psi_B, Im psi_B)
vec4 diracRHS(vec2 uv) {
    vec4 C  = texture2D(uSpinor, uv);
    vec4 dX = 0.5 * (texture2D(uSpinor, uv + vec2(uDx, 0.0)) - texture2D(uSpinor, uv - vec2(uDx, 0.0)));
    vec4 dY = 0.5 * (texture2D(uSpinor, uv + vec2(0.0, uDy)) - texture2D(uSpinor, uv - vec2(0.0, uDy)));
    float V = evalBarrierPotential(uv);
    float vPlus  = V + uMassM;
    float vMinus = V - uMassM;

    // dPsi/dt = (-sigma_x d_x - sigma_y d_y - i m sigma_z - i V) Psi
    return vec4(
        -dX.b - dY.a + vPlus  * C.g,
        -dX.a + dY.b - vPlus  * C.r,
        -dX.r + dY.g + vMinus * C.a,
        -dX.g - dY.r - vMinus * C.b
    );
}

2. Non-Relativistic Schrödinger vs. Relativistic Dirac Scattering

Quantum Property 2D Schrödinger (Previous Post) Massive 2D Dirac ($m \gt 0$, hBN-Graphene) Massless 2D Dirac ($m = 0$, Graphene Klein)
Dispersion Relation $E(\vec{k})$ Parabolic $E = \frac{\hbar^2 |\vec{k}|^2}{2m}$ Hyperbolic $E = \pm\sqrt{\hbar^2 v_F^2 |\vec{k}|^2 + m^2 v_F^4}$ Linear Dirac Cone $E = \pm \hbar v_F |\vec{k}|$
Supercritical Barrier ($V_0 \gt E_0$) Exponentially damped ($T \sim e^{-2\kappa D}$) Evanescent inside bandgap $|E - V_0| \lt m v_F^2$ Propagating hole wave ($T(\theta=0) \equiv 100\%$)
$p\text{–}n$ Junction Refraction Positive Snell angle ($n_{\text{eff}} \gt 0$) Dispersive positive/negative transition Exact Veselago negative refraction ($n_{\text{eff}} = -1$ at $V_0 = 2E_0$)