---
title: Electromagnetic Duality Anomaly
url: https://www.emergentmind.com/topics/electromagnetic-duality-anomaly
type: topic
---

# Electromagnetic Duality Anomaly

Electromagnetic duality anomaly denotes the quantum failure, or more broadly the quantum reformulation, of the classical electric–magnetic rotation symmetry of Maxwell theory. In four-dimensional source-free electrodynamics, the classical equations admit continuous duality rotations; with a theta term, they extend to a classical \(SL_2(\mathbb{R})\) action on the complex coupling \(\tau\) and on the pair \((F,G)\). In the quantum literature, however, the phrase is used in several technically distinct senses: a local curved-spacetime anomaly of the duality current, a flux-quantization-induced reduction of classical \(SL_2(\mathbb{R})\) to \(SL_2(\mathbb{Z})\) that recent SymTFT work emphasizes is not an ’t Hooft anomaly, and a global anomaly of partition functions in nontrivial duality bundles. Recent work further recasts the classical \(U(1)\) stabilizer as a non-invertible symmetry and realizes duality anomalies through defects, condensates, and analogue-gravity systems [1812.08211], [2405.19218], [1905.08943].

## 1. Classical duality, helicity, and the \(SL_2(\mathbb{R})\) structure

In source-free Maxwell theory on a four-dimensional spacetime, the action
\[
S[A_\mu] \;=\; -\frac{1}{4}\int d^4x\,\sqrt{-g}\;F_{\mu\nu}F^{\mu\nu}
\]
is classically invariant, up to the standard Noether sense, under global electric–magnetic duality rotations
\[
F'_{\mu\nu} \;=\; F_{\mu\nu}\cos\theta \;+\; \tilde F_{\mu\nu}\sin\theta,\qquad
\tilde F'_{\mu\nu} \;=\; -F_{\mu\nu}\sin\theta \;+\; \tilde F_{\mu\nu}\cos\theta.
\]
Equivalently, in self-dual and anti-self-dual variables,
\[
F_\pm \equiv \frac{1}{2}\big(F \mp i\,\tilde F\big),\qquad F_\pm \to e^{\pm i\theta}F_\pm,
\]
so the duality acts as a \(U(1)\) phase rotation on the two chiral sectors of the spin-1 field [1810.08085].

The associated Noether charge is the optical helicity. Using a dual gauge potential \(C_\mu\) or, in Hamiltonian language, an “electric potential” \(\mathbf Z\), the current can be written as
\[
j_D^{\mu} \;=\; \frac{1}{2}\,\big(A_\nu\,\tilde F^{\mu\nu} \;-\; C_\nu\,F^{\mu\nu}\big),
\]
and the charge as
\[
Q_D \;=\; \frac{1}{2}\int d^3x\;\big(\mathbf{A}\cdot\mathbf{B}\;-\;\mathbf{Z}\cdot\mathbf{E}\big),
\]
with convention-dependent sign choices across the literature. In momentum space this charge measures the difference between right- and left-circularly polarized radiation, \(Q_D/\hbar=N_R-N_L\), so duality is simultaneously a symmetry of the equations of motion and a helicity symmetry [1812.08211].

With a theta term and coupling \(g\), classical Maxwell theory admits a larger continuous duality structure. Writing
\[
S = \frac{1}{2g^2}\int F\wedge *F - \frac{i\,\theta}{8\pi^2}\int F\wedge F,\qquad
\tau = \frac{\theta}{2\pi} + \frac{4\pi i}{g^2},
\]
and
\[
G = \frac{4\pi}{g^2} *F - \frac{\theta}{2\pi} F,
\]
the classical group \(SL_2(\mathbb{R})\) acts by
\[
\begin{pmatrix} F' \\ G' \end{pmatrix}
=
\begin{pmatrix} a & b \\ c & d \end{pmatrix}
\begin{pmatrix} F \\ G \end{pmatrix},\qquad
\tau' = \frac{a\tau+b}{c\tau+d}.
\]
For fixed \(\tau\) in the upper half-plane, the stabilizer inside \(SL_2(\mathbb{R})\) is a \(U(1)\) subgroup isomorphic to \(SO(2)\), corresponding to continuous duality rotations at fixed coupling [2405.19218].

| Usage of “electromagnetic duality anomaly” | Core statement | Representative source |
|---|---|---|
| Local curved-spacetime anomaly | \(\langle \nabla_\mu j_D^\mu\rangle\) is sourced by gravitational curvature | [1812.08211] |
| Quantization obstruction in flat Maxwell theory | classical \(SL_2(\mathbb{R})\) is reduced to \(SL_2(\mathbb{Z})\) by charge/flux quantization, not by inflow | [2405.19218] |
| Global anomaly in duality bundles | Maxwell partition functions acquire nontrivial phases in \(SL(2,\mathbb{Z})\) monodromy backgrounds | [1905.08943] |

## 2. Curved-spacetime quantum anomaly of the duality current

The most direct use of the term refers to the quantum non-conservation of the duality current in curved spacetime. In the spin-1 “Dirac-like” formulation, one quantizes the Maxwell field in terms of a first-order operator \(D=i\beta^\mu\nabla_\mu\), and the renormalized divergence of the duality current is obtained from the second DeWitt coefficient \(E_2(x)\) or, equivalently, from the Jacobian of a Fujikawa-type local duality rotation of the functional measure. The later papers in this line give the anomaly equation
\[
\big\langle \nabla_\mu j_D^{\mu} \big\rangle \;=\; -\,\frac{\hbar}{96\,\pi^2}\;R_{\mu\nu\rho\sigma}\,\tilde R^{\mu\nu\rho\sigma},
\]
with
\[
\tilde R^{\mu\nu\rho\sigma} \;=\; \frac{1}{2}\,\epsilon^{\rho\sigma\alpha\beta}\,R^{\mu\nu}{}_{\alpha\beta}.
\]
The anomaly is described there as one-loop, local, independent of the choice of quantum vacuum state, and entirely due to the renormalization that preserves gauge invariance and general covariance rather than duality invariance [1812.08211].

Integrating the anomaly between Cauchy surfaces gives
\[
\Delta Q_D
\;=\;
-\,\frac{\hbar}{96\,\pi^2}\int d^4x\,\sqrt{-g}\;
R_{\mu\nu\rho\sigma}\,\tilde R^{\mu\nu\rho\sigma},
\]
so spacetime regions with nonzero gravitational Chern–Pontryagin density produce a net change in optical helicity. In Ricci-flat backgrounds this reduces to the Weyl Pontryagin density, and the identity
\[
C_{\mu\nu\rho\sigma}\,\tilde C^{\mu\nu\rho\sigma}=16\,E_{ij}B^{ij}
\]
makes explicit that parity-odd curvature sources a right/left photon asymmetry. The backgrounds explicitly identified as having potentially nonzero integrated \(R\tilde R\) include rotating Kerr geometries, chiral gravitational-wave backgrounds, and dynamical strong-field processes such as collapses and compact-object mergers, whereas conformally flat Friedmann–Robertson–Walker spacetimes have vanishing Weyl tensor and hence no anomaly-induced helicity change [2411.11792].

The literature represented here is not uniform in its normalization statements. An earlier Fujikawa/heat-kernel presentation wrote
\[
\langle\nabla_\mu j_D^\mu\rangle = c\,R_{\mu\nu\rho\sigma}\tilde R^{\mu\nu\rho\sigma},
\qquad c=\frac{1}{24\pi^2},
\]
again interpreting the effect as the spin-1 analogue of the chiral anomaly for fermions [1607.08879]. A different earlier renormalization analysis on spatially flat FLRW backgrounds expressed the broken Ward identity through the local Ricci combination
\[
\langle\nabla_\mu j_D^\mu(x)\rangle
=
\frac{1}{2880\,\pi^2}\Big(-9R_{\alpha\beta}R^{\alpha\beta}+R^2+40\,\Box R\Big),
\]
and found unequal renormalized vacuum fluctuations of electric and magnetic fields even in a duality-invariant conformal vacuum [1409.6406]. The supplied literature therefore records a stable physical claim—quantum curved-spacetime non-conservation of optical helicity—together with multiple formulations of its local coefficient.

## 3. Flux quantization, charge lattices, and the reduction to \(SL_2(\mathbb{Z})\)

A distinct question concerns Maxwell theory quantized with a fixed lattice of line operators. In that setting, the classical \(SL_2(\mathbb{R})\) duality is not realized as an exact symmetry of a given quantum theory. Wilson and ’t Hooft lines carry integer electric and magnetic charges,
\[
W(\gamma)_{n_e} = \exp\!\big(i n_e \oint_\gamma A\big),\qquad
T(\lambda)_{n_m} = \exp\!\big(i n_m \oint_\lambda \tilde A\big),
\]
with \(d\tilde A = i*\!F\), so the dyonic charge lattice is \((n_e,n_m)\in\mathbb Z^2\). Under an \(SL_2(\mathbb{Z})\) element
\[
M=\begin{pmatrix} a&b\\ c&d \end{pmatrix},
\qquad a,b,c,d\in\mathbb Z,\ ad-bc=1,
\]
the charges transform as
\[
\begin{pmatrix} n'_e \\ n'_m \end{pmatrix}
=
\begin{pmatrix} a & b \\ c & d \end{pmatrix}
\begin{pmatrix} n_e \\ n_m \end{pmatrix},
\]
and integrality is preserved. Irrational duality rotations would typically map integer charges to non-integer ones, violating the charge lattice. The exact quantum duality group of a fixed integral Maxwell theory is therefore \(SL_2(\mathbb Z)\), not \(SL_2(\mathbb R)\) [2405.19218].

In this sense, the obstruction is not an ’t Hooft anomaly. The theory remains fully consistent; the point is instead that flux and charge quantization restrict the admissible duality action. The \(S\) and \(T\) generators act by
\[
S:\ \tau\to -1/\tau,\qquad (n_e,n_m)\to (n_m,-n_e),
\]
\[
T:\ \tau\to \tau+1,\qquad (n_e,n_m)\to (n_e+n_m,n_m),
\]
and these are exact invertible symmetries because they preserve the quantized lattice. The continuous \(U(1)\) stabilizer of a fixed \(\tau\) is therefore absent as an ordinary symmetry in the standard quantum theory not because of inflow, but because the line-operator spectrum furnishes a rigid integral global structure [2405.19218].

This distinction is central to the modern terminology. In curved spacetime, the duality current can be anomalous in the usual quantum-field-theoretic sense. In fixed-lattice Maxwell theory, by contrast, the “breaking” of classical continuous duality is attributed to quantization data. The two phenomena are related by subject matter but not by mechanism.

## 4. SymTFT, discrete gauging, and non-invertible restoration of the classical \(U(1)\)

The SymTFT construction of Maxwell theory provides a precise way to separate classical automorphisms from quantum realizability. The five-dimensional topological theory is a BF-like system
\[
S_{5d} = \frac{1}{2\pi}\int_{M_5} a\wedge db,
\]
with topological operators on 2-cycles \(M_2,N_2\subset M_5\),
\[
W(M_2)_\alpha = \exp\!\big(i\alpha \oint_{M_2} a\big),\qquad
V(N_2)_\beta = \exp\!\big(i\beta \oint_{N_2} b\big),
\]
obeying the Heisenberg relation
\[
W(M_2)_\alpha V(N_2)_\beta
=
e^{2\pi i\,\alpha\beta\,\langle M_2,N_2\rangle}\,
V(N_2)_\beta W(M_2)_\alpha.
\]
On the integrated variables \(x_{M_2}=\oint_{M_2}a\) and \(p_{N_2}=\oint_{N_2}b\), one has \([x_{M_2},p_{N_2}]=2\pi i\langle M_2,N_2\rangle\), and explicit generators \(T_a\), \(U_b\), and \(G_c\) act as \(SL_2(\mathbb R)\) automorphisms of this Heisenberg algebra [2405.19218].

The boundary conditions determine which quantum Maxwell theory is realized.

| Boundary variant | Boundary data | Duality behavior |
|---|---|---|
| \(R\)-Maxwell | Dirichlet for \(W_\alpha\), Neumann for \(V_\beta\) | full \(SL_2(\mathbb R)\) orbit |
| \(U(1)\)-Maxwell | only \(W_m\) and \(V_n\) with \(m,n\in\mathbb Z\) end on the boundary | \(SL_2(\mathbb Z)\) preserves integrality |

Within the \(U(1)\)-Maxwell variant, rational rescalings arise through discrete gauging of a non-anomalous subgroup \(\mathbb Z_{N_e}\times \mathbb Z_{N_m}\) of the \(U(1)^2\) 1-form symmetry. The partition function rescales as
\[
Z[\tau]/(\mathbb Z_{N_e}\times \mathbb Z_{N_m})
=
N_m^{\chi}\,
Z\!\big[\tfrac{N_m^2}{N_e^2}\tau\big],
\]
with \(\gcd(N_e,N_m)=1\) ensuring the absence of a 1-form anomaly. In operator language, the \(G_c\) automorphism with \(c=N_m/N_e\) reproduces this rescaling. More general irrational \(G_c\) operations are realized as limits of infinite sequences of rational gaugings, so the classical \(U(1)\) stabilizer can be “restored” only as a non-invertible symmetry [2405.19218].

The cost of this restoration is encoded in condensates. Fusing rational gauging defects produces condensates, and for a continuous rotation \(R_\theta\) the fusion with its opposite gives a “continuous condensate,” schematically
\[
R_\theta\,\overline{R}_\theta
=
C_{1/\sqrt{\tan\theta}}\,
C_{\sin\theta}\,
C_{\sqrt{\tan\theta}}.
\]
These condensates act as projectors on line operators: for a discrete condensate \(C_{\binom q n}\), a line survives only when its electric and magnetic charges satisfy the corresponding divisibility conditions. A continuous condensate is an infinite product of such projectors, and for any fixed line operator some factor eventually projects it out. In that condensed phase, all Wilson and ’t Hooft lines are trivialized. The SymTFT therefore makes precise a striking statement: the classical \(U(1)\) duality can re-emerge quantum mechanically, but only as a non-invertible structure whose implementation eliminates the very line operators that diagnose the original charge lattice [2405.19218].

## 5. Global duality anomalies, modular phases, and topological reformulations

A third use of the term concerns global anomalies of Maxwell partition functions in backgrounds with \(SL(2,\mathbb Z)\) monodromy. In this formulation, the issue is not the local divergence of \(j_D^\mu\) and not the fixed-lattice reduction of \(SL_2(\mathbb R)\), but the failure of the partition function to be single-valued when duality twists are turned on around nontrivial cycles. On a closed oriented 4-manifold \(M_4\), the Maxwell partition function transforms under \(\gamma=\begin{pmatrix}a&b\\c&d\end{pmatrix}\in SL(2,\mathbb Z)\) with modular weights determined by \(b_2^\pm\) and with a multiplier \(\mathcal M_\gamma(M_4)\) computed by a \(4{+}1\)-dimensional invertible bulk phase. The anomaly is characterized by
\[
\frac{1}{2\pi}\log Z_{\text{bulk}}(M_5)
=
-\frac{1}{4}\,\eta_{\text{signature}}(M_5;(\mathbb Z^2)_\rho)+(q),
\]
where \(\eta_{\text{signature}}\) is the twisted signature \(\eta\)-invariant and \((q)\) is an Arf invariant of a quadratic refinement on torsion cohomology [1905.08943].

The principal quantitative statement of that work is that the electromagnetic duality anomaly of 3+1-dimensional Maxwell theory is 56 times that of a Weyl fermion. Equivalently, in the spin–\(SL(2,\mathbb Z)\) bordism classification, the Maxwell class is 56 times the unit-charge Weyl-fermion class. This is presented both through \(4{+}1\)-dimensional inflow and through a compactification argument using the \(5{+}1\)-dimensional E-string theory, where the Higgs-branch description produces 56 Weyl fermions in four dimensions [1905.08943].

A related but broader topological reformulation appears for abelian \(p\)-forms on compact Euclidean manifolds. There the dual effective actions agree exactly in odd spacetime dimension, while in even dimension they differ by a term proportional to the Euler number:
\[
\log \frac{Z_p}{\tilde Z_{p'}}
=
(-1)^{p+1}\chi(M)\,
\log\!\left[\frac{\sqrt{q/\tilde q}}{\mu^{\,p+1-D/2}}\right].
\]
Despite this duality anomaly, the trace of the stress tensor agrees between dual descriptions, and the corresponding entanglement anomaly is identified with the duality anomaly of an edge-mode theory in two fewer dimensions [1611.05920].

These topological formulations sharpen an important conceptual point. In this setting, duality acts covariantly rather than strictly invariantly on the partition function. The anomaly is global, encoded by modular multipliers, bordism classes, or Euler-characteristic terms, and is naturally distinguished from both the local Pontryagin-density anomaly of curved-spacetime helicity non-conservation and the fixed-lattice reduction of \(SL_2(\mathbb R)\) to \(SL_2(\mathbb Z)\).

## 6. Analogue systems, defect realizations, and related anomaly structures

Recent work has pursued experimentally accessible and defect-theoretic realizations of duality anomaly physics. In an infinitely long cylindrical waveguide that starts at rest and is accelerated into simultaneous rotation and translation, the in/out mode decomposition becomes helicity dependent. Under duality-preserving boundary conditions, the late-time positive-frequency domains \(H_h^\pm\) differ between right- and left-handed sectors, producing a spectral asymmetry and hence a nonzero vacuum expectation value of the optical-helicity charge. The central result is that the net helicity produced from the vacuum is nonzero if and only if both the angular velocity and the longitudinal velocity are nonzero; a related estimate gives
\[
|\Delta N| \sim \left|\frac{R\,\Omega_0\, v_0}{\sqrt{1-v_0^2}}\right|,
\]
with \(\Delta N\sim 2\) photons in the illustrative regime \(|R\Omega_0|\approx 0.9\), \(|v_0|\approx 0.9\). The effect is presented as a laboratory analogue of the electromagnetic duality anomaly, realized through helicity-selective pair creation from the vacuum [2505.20409].

A subsequent analogue-gravity treatment emphasizes the same mechanism in terms of frame dragging of the polarization basis. In that description, rotating, accelerating waveguides induce opposite helicity-dependent phase shifts in right- and left-handed modes, and the resulting mode-counting asymmetry is explicitly compared to the Adler–Bell–Jackiw anomaly in \(1{+}1\) dimensions. The paper does not require the explicit local coefficient \(\kappa\) of the curved-spacetime anomaly equation; instead it tracks the anomaly through spectral asymmetry and net helicity production [2509.01718].

Beyond pure Maxwell theory, electromagnetic duality also reorganizes anomaly data in interacting systems. In four-dimensional \(U(1)\) gauge theory with massless fermions, the ABJ chiral anomaly is mapped covariantly under \(SL(2,\mathbb Z)\) duality: in the QED frame it is proportional to \(F'\wedge F'\), while in the dual frame it becomes a specific \(SL(2,\mathbb Z)\)-determined linear combination of \(F\wedge F\) and \(F\wedge *F\). The organizing structure is a conserved two-form current
\[
\star\hat j^{[2]}
=
\Big(c\,\frac{\theta}{2\pi}+d\Big)\frac{F}{2\pi}
-
c\,\frac{\star F}{e^2},
\]
and the duality transformation is described there as covariant rather than anomalous in itself: it reshuffles the mixed anomaly between chiral and one-form symmetries [2509.14395].

Defect-theoretic work extends the same theme to non-invertible duality defects and their endpoints. For rational couplings, codimension-1 non-invertible duality defects in 4d Maxwell theory can end on codimension-2 twist defects around which \(F\to *F\). The operator spectrum of the twist defect factorizes into a generalized free-field sector and a chiral current sector governed by a right-moving compact boson with \(U(1)_{2N_{\rm e}N_{\rm m}}\) current algebra, chiral central charge \(\bar c=1\), and a defect ’t Hooft anomaly involving a chiral \(O(2)\) symmetry. This realizes anomaly inflow locally on the endpoint of a non-invertible symmetry and ties electromagnetic duality anomaly to edge-mode physics of Chern–Simons type [2509.21279].

Taken together, these developments show that “electromagnetic duality anomaly” is not a single phenomenon but a family of quantum effects with distinct diagnostics. In curved spacetime it is a local failure of helicity conservation, usually written in terms of \(R\tilde R\). In fixed-lattice Maxwell theory it names the loss of continuous \(SL_2(\mathbb R)\) inside one quantum global variant, a loss attributed to charge quantization rather than inflow. In duality-twisted backgrounds it is a global modular anomaly with \(5\)-dimensional inflow. And in recent non-invertible and analogue-gravity constructions, it appears as condensate-induced trivialization of line operators, chiral defect modes, or helicity-selective vacuum pair creation.

Source: https://www.emergentmind.com/topics/electromagnetic-duality-anomaly