Let be the number operator of a bosonic mode and an integer. A two-dimensional code has -fold rotation symmetry (Grimsmo, Combes and Baragiola) when the operator
preserves and acts on it as a logical operator. Consequently the rotation acts on as the identity.
Equivalently, in the Fock basis the logical basis states have the form
for some amplitudes : the code occupies only Fock states that are multiples of , with even multiples for and odd multiples for . A code of this kind can be generated from any "primitive" state by summing its rotated copies with signs or .
Consequences. The photon number modulo is zero on and can be measured without disturbing the encoded state. A loss of photons with shifts it to , so up to losses are detectable. In the conjugate picture the dual basis states are related by a rotation by , so resolving them requires distinguishing phases that close: increasing improves protection against loss and gain and reduces protection against dephasing rotations.
Examples. Two-component cat codes have ; four-component cat codes and the smallest binomial code, with Fock support and , have . The square-lattice GKP code is not of this form for general : its symmetry is a translation of phase space.