B now input of Hamiltonian solver function.