Encoding Hamiltonian circuits into multiplicative linear logic