Correction to: Nature Nanotechnology https://doi.org/10.1038/s41565-019-0577-9, published online 9 December 2019.

In the version of this Letter originally published online, in Fig. 2e and Fig. 3j, “Spin density Bohr magneton (μB)” should have been “Spin density (μB)”, in Fig. 2m, each pair of angular brackets ‘〈 〉’ should have been a ket ‘| 〉’, and, in the caption for Extended Data Fig. 1, ‘n = n + 2’ should have been ‘n = n + 2’. These errors have been corrected in all versions of the Article.