Arbitrary logical state preparation protocol. Top panel: The surface code is divided into 5 regions, the central data qubit, regions I, II, III, and IV. The logical operators Z ̂_L and X ̂_L intersect ...