This repository contains the code for the following article: Christopher J Kymn, Sonia Mazelet, Anthony Thomas, Denis Kleyko, E Paxon Frady, Friedrich T Sommer, Bruno A Olshausen, Binding in hippocampal-entorhinal circuits enables compositionality in cognitive maps, NeurIPS 2024.