Use 'einsum' to evaluate inner products in phi_0