Apply a beam splitter transformation with mixing angle $\theta$ to a two-mode input state. Return the output state in the two-mode Fock basis.