Correction to: Nature Electronics https://doi.org/10.1038/s41928-022-00874-z. Published online 28 November 2022.

In the version of this article initially published, the schematic in Fig. 6a and b (inset) presented the bit line and word line arranged in parallel; the schematics have been updated in the HTML and PDF versions of this article to show them in the correct perpendicular arrangement.