Family of quantum error correcting codes
Inquantum information, thegnu code refers to a particular family ofquantum error correcting codes, with the special property of being invariant underpermutations of the qubits. Given integersg (thegap),n (the occupancy), andm (the length of the code), the two codewords are


where
are theDicke states consisting of a uniform superposition of all weight-k words onm qubits, e.g.

The real parameter
scales the length of the code. The number
needs to be at least 1. The length
, hence the name of the code. The distance of the code is the minimum of
and
. For
and
, thegnu code is capable of correcting
erasure errors,[1] ordeletion errors.[2] The code can also correct up to
corrupted qubits from the property of the distance.