Suppose an infinite-long thin wire is placed along $z$ axis in 3D space, with current density $\textbf{J}$ and static magnetic field $\textbf{H}$ satisfying the Ampère's law: $\nabla\times\textbf{H}=\textbf{J}$. By integrating both sides of the equation over surface $z=0$, we have \begin{equation} \int_{z=0}dxdy~\nabla\times\textbf{H}=\int_{z=0}dxdy~\textbf{J}. \end{equation} With finite magnetic field, the left-hand side of the equation is mathematically zero (think about the Fourier transform), leading to the right-hand side—the current flux—be zero as well. In this sense, there should be no current in this thin wire.
One interesting point is the infinite inductance of the wire: \begin{equation} L=\frac{2~\text{magnetic energy}}{\text{current flux}^2}=\frac{\int_\text{3D space} dV~\mu_0 |\textbf{H}|^2}{|\int_{z=0}dxdy~\textbf{J}|^2}=\frac{\text{non-zero value}}{0}=+\infty \end{equation} Perhaps explaining $L$ can help understanding.
Afterall, it is merely a thought experiment to transport electrons endlessly through the universe. But I am still wondering which setting is unphysical in this scenario: is it the infinite long wire, infinite large magnetic field, or others?
Supplementary:
The $\textbf{k}$-component of 2D Fourier transform of $\textbf{H}(\textbf{x})$ is $\tilde{\textbf{H}}(\textbf{k})=\int dxdy~\textbf{H}(\textbf{x}) e^{i\textbf{k}\cdot\textbf{r}}$. As $\textbf{k}=\text{0}$, $\tilde{\textbf{H}}(\textbf{0})=\int dxdy~\textbf{H}(\textbf{x})$. Fourier transform has the rule: $\frac{d}{dx}f(x) \rightarrow ik\tilde{f}(k)$, so $\nabla\times\textbf{H}(\textbf{x}) \rightarrow i\textbf{k}\times \tilde{\textbf{H}}(\textbf{k})$. Substitute $\textbf{k}=\textbf{0}$, then LHS of the first equation is $\textbf{0}\times\tilde{\textbf{H}}(\textbf{0})$. If $\tilde{\textbf{H}}(\textbf{0})$ is a bounded value, then LHS = 0.
"The left-hand side is mathematically zero" Why do you think this? The Fourier transform has nothing to do with this. It is not zero but equals total current flowing through the surface $z=0$.
– Ján Lalinský Mar 13 '23 at 02:37