Correction to: Nature https://doi.org/10.1038/s41586-022-05485-4 Published online 30 November 2022

In the version of this article initially published, the deposit listed in the Code availability section did not include licence information for previously published code; the section is now updated to read “Custom code is available at https://doi.org/10.5281/zenodo.8056588” in the HTML and PDF versions of the article.