Theta-dependence of massive Schwinger model I've read in Coleman's paper on the massive Schwinger model (and in other papers on the same topic, like this one) that the model's Hamiltonian contains a topological $\theta$-term. However, if I write down the Lagrangian of the model (see p. 362 of Tong's lecture notes on gauge theory),
$$
\mathcal{L}= \frac{1}{2e^2}E_x^2 +\frac{\theta}{2\pi}E_x+i\bar{\psi}_xD_x\psi_x - i m \bar{\psi}_x\psi_x,
$$
and perform a Legendre transformation $$\mathcal{H}(E_x)=E_x\pi_x-\mathcal{L}$$ with
$$
\mathbf{\pi}_x=\frac{\partial \mathcal{L}}{\partial E_x}= \frac{1}{e^2}E_x+\frac{\theta}{2\pi},
$$
then the resulting Hamiltonian is independent of $\theta$:
$$
\mathcal{H}= \frac{1}{2e^2}E_x^2 -i\bar{\psi}_xD_x\psi_x + i m \bar{\psi}_x\psi_x.
$$
Now my question is: Is there any Hamiltonian formulation of the Schwinger model in terms of the electric field $E_x$, which is equivalent to the above Lagrangian formulation, while both formulations contain a $\theta$-term? This question is somewhat related to my previous question.
 A: The last expression written in the question is not yet the Hamiltonian. It is the energy function. Although it is numerically equal to the Hamiltonian, but it is expressed in terms of the electric field which is the time derivative of the vector potential $A_x(x)$. 
$$\mathcal{E}= \frac{1}{2e^2}E_x^2 -i\bar{\psi}_xD_x\psi_x + i m \bar{\psi}_x\psi_x$$
In a Hamiltonian, all the time derivatives of the canonical variables should be replaced by their expressions in terms of the canonical momenta by means of the Legendre transform.
Therefore,  the expression for the Hamiltonian density should be:
$$\mathcal{H}= \frac{ e^2}{2}(\pi_x - \frac{\theta}{2\pi})^2 -i\bar{\psi}_xD_x\psi_x + i m \bar{\psi}_x\psi_x$$
Now, the Hamiltonian is expressed in terms of the correct variables and the dependence on the theta parameter is explicit. 
This substitution is not just formal, because in the quantum theory, the canonical momentum is represented by the derivative of the canonical coordinate. (In our case, it is the functional derivative, because it is field theory), thus:
$$\mathbf{\hat{\pi}}_x(x)=i\hbar\frac{\delta}{\delta A_x(x)}$$
Thus:
$$\mathcal{\hat{H}}= \frac{ e^2}{2}(i\hbar\frac{\delta}{\delta A_x(x)} - \frac{\theta}{2\pi})^2 -i\hat{\bar{\psi}}_xD_x\hat{\psi}_x + i m \hat{\bar{\psi}}_x\hat{\psi}_x$$
Geometrically, the energy function is a function over the tangent bundle $TM$ of the configuration space, spanned be the coordinates and velocities, while the Hamiltonian is a function on the cotangent bundle $T^*M$, spanned by the canonical coordinates and momenta. This fact is thoroughly explained in Foundation of mechanics  by Abraham and Marsden (Chapter 3).
In $1+1$ dimensions, when the base manifold is the circle $S^1$, the effect of the theta term is manifested solely in the zero mode:
$$\phi(t) = \int_0^{2\pi R} A_x(x, t) dx$$
The Lagrangian, restricted to the zero mode is given on page 321 of Tong's lectures. This is an Aharonov-Bohm Lagrangian on a ring. It has a quantum mechanical theta term. The above Hamiltonian analysis was performed for this quantum mechanical problem by Tong and the Schrödinger equation was explicitly solved. 
