A magnet device has main coils in a pair positioned facing each other to
form a static magnetic field space in between and external magnetic flux
shielding coils placed coaxially to the main coils. The external magnetic
flux shielding coils have a first coil group having a small coefficient
of coil coupling and a second coil group having a coefficient of coil
coupling greater than that of the first coil group. The first coil group
is connected in series to the second coil group. External magnetic flux
entering the magnetic field imaging space formed by main coils in a pair
positioned facing each other is effectively warded off.