Controlling the Effective Hamiltonian of a Driven Quantum Superconducting Circuit