  We present a protocol for generating entanglement over long distances in a
two-dimensional quantum network based on the surface error-correction code.
This protocol requires a fixed number of quantum memories at each node of the
network and tolerates error rates of up to 1.67% in the quantum channels.
