Local Hamiltonians in quantum computation