  The all-photonic quantum repeater (APQR) is a promising repeater scheme to
realize long-distance quantum communication. For a practical APQR, an
indispensable requirement is the robustness of the repeater graph state (RGS)
against photon loss. We propose a new loss-tolerant scheme by applying the
generalized Shor code to RGS, which can be experimentally demonstrated with
current technology. Experimentally, we first prepare and verify the nine-qubit
Shor code. Then, by applying the generalized Shor code to APQR and preparing a
simplified encoded RGS with the structure of $1\times2$ based on the Shor code
state, the effectiveness of our loss-tolerant scheme and the loss tolerance of
the encoded RGS are respectively verified. Our results make an essential step
toward a practical APQR and enrich the research of quantum error correction
code.
