  We propose an error correction procedure based on a cellular automaton, the
sweep rule, which is applicable to a broad range of codes beyond topological
quantum codes. For simplicity, however, we focus on the three-dimensional (3D)
toric code on the rhombic dodecahedral lattice with boundaries and prove that
the resulting local decoder has a non-zero error threshold. We also numerically
benchmark the performance of the decoder in the setting with measurement errors
using various noise models. We find that this error correction procedure is
remarkably robust against measurement errors and is also essentially
insensitive to the details of the lattice and noise model. Our work constitutes
a step towards finding simple and high-performance decoding strategies for a
wide range of quantum low-density parity-check codes.
