Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-022-01151-0, published online 30 August 2022.

In the version of this article initially published, the second sentence of the Acknowledgements omitted the text “and P. Dzialecka for contributing to the initial development of the pyRTAOI real-time all-optical control software.” The correction has been made to the HTML and PDF versions of the article.