Breakthrough in rare-earth magnetism promises more efficient quantum technologies