A version of the Aharonov-Bohm magnetic field for a Grushin subelliptic operator is introduced; then its quadratic form is shown to satisfy an improved Hardy inequality.