At the end of my undergraduate quantum mechanics class, we looked at phonons. You can let $x_i$ be the position operator of an nth quantum harmonic oscillator, and couple the harmonic oscillators with a potential. The Hamiltonian looks something like: $$H=\sum_i \left(\frac{p_i^2}{2m}+\frac{1}{2} m \omega^2 x_i^2\right)+\sum_{i} \frac{1}{2}m\omega^2 (x_i-x_{i+1})^2$$
You can do the procedure of raising and lowering operators to find:
$$H=\sum_k \hbar \omega_k\left(a_k^\dagger a_k+\frac{1}{2}\right)$$
and even figure out that the ground state in the position basis looks something like the following (ignoring exact frequencies and normalization and all of that):
$$\langle x_1,\cdots,x_N|\psi\rangle=e^{-x_1^2-x_2^2-\cdots-x_N^2}$$ or equivalently,
$$|\psi\rangle=\int \mathrm d^N~ x e^{-x_1^2-x_2^2-\cdots-x_N^2}|x_1,\cdots,x_N\rangle$$
The $a_k^\dagger$ operators are interpreted as creating one phonon in the kth mode.
Taking the continuum limit, we've quantized the scalar wave equation. I want to write something like the following for the ground state: $$|\psi\rangle=\int \mathcal{D}[\phi] e^{-\int d^dy\phi(y)^2}|\phi\rangle$$
I'm studying elementary quantum field theory, and I'm finding it hard to get a straight answer as to whether that's a correct interpretation of a quantum field theory. For electrodynamics, I'd have commuting observables $\bf \vec{E}$ and $\bf \vec{B}$ at every point in space. (Commuting because I want them to form a complete basis of states). I could represent the field as superpositions of eigenvectors of these operators, and get something as above. If $E(y)$ and $B(y)$ are vector fields which are eigenvalues of the above operators at every point in space, that means I could imagine writing any quantum state of my quantized electrodynamics as something like:
$$|\psi\rangle=\int \mathcal{D}[(E,B)] f(E,B)|(E,B)\rangle$$
where the six components of the vector field $(E(y),B(y))$ play the same role as $\phi(y)$ did in the previous example, and as $(x_1,\cdots,x_N)$ did in the example before that. $f(E,B)$ would be a complex number which is a functional of the fields $E$ and $B$.
Sure, I expect ill-definedness and infinities and cut-offs necessary everywhere, but is this intuitively what is going on in defining quantum fields?