  We propose a new Monte Carlo algorithm for the numerical study of general
lattice models in Hamiltonian form. The algorithm is based on an initial Ansatz
for the ground state wave function depending on a set of free parameters which
are dynamically optimized. The method is discussed in details and results are
reported from explicit simulations of U(1) lattice gauge theory in 1+1
dimensions.
