  We design a quantum circuit in IBM quantum computer that mimics the dynamics
of single photon in a coupled cavity system. By suitably choosing the gate
parameters in the quantum circuit, we could transfer an unknown qubit state
between the qubits. The condition for perfect state transfer is obtained by
solving the unitary time dynamics governed by the Hamiltonian of the coupled
cavity system. We then demonstrate the dynamics of entanglement between the
two-qubits and show violation of Bell's inequality in IBM quantum computer.
