For consistency with QuditCode.get_logical_ops, if code is a CSSCode, then code.logical_ops() will return an array of shape (2, code.dimension, 2 * code.num_qudits), where the first half (second half) of the last axis indicates the support of X-type (Z-type) physical operators. In particular, the first half (second half) should be all zeros for Z-type (X-type) logical operators of a CSSCode.
For consistency with
QuditCode.get_logical_ops
, ifcode
is aCSSCode
, thencode.logical_ops()
will return an array of shape(2, code.dimension, 2 * code.num_qudits)
, where the first half (second half) of the last axis indicates the support of X-type (Z-type) physical operators. In particular, the first half (second half) should be all zeros for Z-type (X-type) logical operators of aCSSCode
.