idx = np.array(list(d.keys()))
vals = np.array(list(d.values()))
dims = idx.max(0) + 1
out = np.zeros(dims, dtype=vals.dtype)
out[idx[:, (0)], idx[:, (1)]] = vals
Converting dictionary with known indices to a multidimensional array