A symmetry-preserving and transferable representation for learning the Kohn-Sham density matrix | Synapse