openfermion.ops.shift_decoder

Shifts the indices of a decoder by a constant.

decoder iterable

list of BinaryPolynomial; the decoder

shift_constant int

the qubit index that corresponds to the offset.

Returns (list): list of BinaryPolynomial shifted decoder