The application discloses a kind of
quantum torus code decoder and method, using the self-attention U-net
quantum error correction decoder obtained by training to decode torus code.SU‑NetQD is composed of two parts of low-level decoder and high-level decoder.The low-level decoder uses the extracted error syndrome as input and predicts
recovery chain operation, and the high-level decoder uses the
recovery chain predicted by the low-level decoder and the original error syndrome as input and predicts the logical error introduced by the low-level decoder.The decoder
decodes successfully when and only when the
recovery chain predicted by the low-level decoder can completely eliminate the error syndrome, and the logical error predicted by the high-level decoder conforms to the combined effect of the recovery chain and the original error.The application can efficiently and quickly implement the denoising function for torus code under complex
noise, maintain the original information of
quantum bits without interference, and perform better than the traditional MWPM decoder in various situations.