Efficient encoding of the 2D toric code logical state using local Clifford gates
Ivan H. C. Shum
TL;DR
Encoding the logical state of the $L\times L$ toric code is constrained by Lieb–Robinson bounds, but this work introduces a Heisenberg-picture, diagrammatic approach using only local CX and Hadamard gates to achieve a linear-depth circuit of depth $2L+1$. The core technique unitarily transforms the toric code Hamiltonian to a disjoint sum acting on $X$- and $Z$-type qubits via a unitary $U$ built from commuting CX layers, enabling the logical state to be prepared by applying $U^\dagger$ to a simple product state. A concrete construction (including code and visualization tools) shows the encoding depth and locality improvements over prior methods, with a gate count of $3L^2+2L-5$. This approach offers a scalable, locality-respecting method for toric-code state preparation and suggests avenues to further reduce depth toward linear scaling.
Abstract
An algorithm which encodes the $L\times L$ 2D toric code logical state with a circuit of depth $2L+1$, using only local controlled-NOT($CX$) and Hadamard($H$) gates, is presented.
