Horseshoe magnet