Correction to: Nature Neuroscience, 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.