The MIT team turned to chromium sulfur bromide, a two-dimensional material that acts as a magnetic semiconductor. Its structure allows researchers to switch between two magnetic states with precision.