Module: openfermion.ops.operators.binary_code

Binary code class for Fermion-qubit mappings (arXiv:1712.07067)

Classes

class BinaryCode: The BinaryCode class provides a representation of an encoding-decoding pair for binary vectors of different lengths, where the decoding is allowed to be non-linear.

class BinaryCodeError: Common base class for all non-exit exceptions.

Functions

double_decoding(...): Concatenates two decodings

shift_decoder(...): Shifts the indices of a decoder by a constant.