q0.dat.data[:] += 0.01*np.random.randn(*q0.dat.shape)
However, when I try running it using mpirun on my mac it fails because the declaration of a random variable is not broadcast.
: operands could not be broadcast together with shapes (2500,) (2724,) (2500,)
ValueError: operands could not be broadcast together with shapes (2500,) (2908,) (2500,)