Statistical mechanics of a Hopfield neural-network model in a transverse field.