  We present a protocol for transferring arbitrary continuous-variable quantum
states into a few discrete-variable qubits and back. The protocol is
deterministic and utilizes only two-mode Rabi-type interactions which are
readily available in trapped-ion and superconducting circuit platforms. The
inevitable errors caused by transferring an infinite-dimensional state into a
finite-dimensional register are suppressed exponentially with the number of
qubits. Furthermore, the encoded states exhibit robustness against noise, such
as dephasing and amplitude damping, acting on the qubits. Our protocol thus
provides a powerful and flexible tool for discrete-continuous hybrid quantum
systems.
