openfermion.transforms.parity_code

{ }

The parity transform (arXiv:1208.5986) as binary code.

This code is very similar to the Jordan-Wigner transform, but with long update strings instead of parity strings. It does not save qubits: n_qubits = n_modes.

n_modes int

number of modes

Returns (BinaryCode): The parity transform BinaryCode