High-performance syndrome extraction circuits for quantum codes
We present a fast and effective framework for analysing and designing syndrome extraction circuits (SECs). Our approach is based on left--right circuits, a general SEC design that maintains low depth and avoids gate interleaving constraints by staggering $X$ and $Z$ stabiliser checks. Initially proposed for specific classes of codes, we generalise this construction to arbitrary CSS codes and optimise the circuit structure to achieve low qubit idling time, large effective distance, and reduced minimum-weight failure mechanisms. A key component of our framework is the formal notion of residual errors and their associated distance metrics, which form lightweight proxies for capturing error propagation and quantifying the potential harm of circuit-level errors. Applying our automated framework to diverse classes of codes, we observe consistent improvements in logical performance of up to an order of magnitude compared to existing single-ancilla SEC designs. Moreover, by directly applying these proxies, we prove that no non-interleaving SEC can achieve circuit distance $12$ for the gross code, and we identify an explicit circuit that we conjecture achieves distance $11$, exceeding previously known constructions.