Hamiltonian Implementation using Photonic Coupled Cavity Arrays