A magnet for transporting a particle beam in a target magnet field may include a first set of coils and a second set of coils. According to some aspects, the first and second set of coils may be configured to generate a combined desired magnetic field within the bore and may be configured to generate a combined magnetic field weaker than the desired magnetic field outside the bore.