Correction to: Nature https://doi.org/10.1038/s41586-022-04609-0 Published online 1 June 2022

In the version of this article initially published online, there was an error in the first sentence of the second paragraph of the “Non-Hermitian Aharonov–Bohm effect” subsection, where the start of the expression now beginning “(Hamiltonian, HSD = \({{\boldsymbol{\eta }}}_{{\bf{1}}}{{\bf{e}}}^{{\bf{i}}{{\boldsymbol{\theta }}}_{{\bf{1}}}}{{\boldsymbol{a}}}_{{\bf{1}}}^{{\bf{2}}}/{\bf{2}}{\boldsymbol{+}}\))” was duplicated. Also, in the HTML version of the article, spurious text appeared in Equation (2) preceding “Hsq =”. The errors have been corrected in the HTML and PDF versions of the article.