![]() |
The parity transform (arXiv:1208.5986) as binary code. This code is
openfermion.transforms.parity_code(
n_modes: int
) -> openfermion.ops.BinaryCode
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.
Args | |
---|---|
n_modes (int): number of modes |
Returns (BinaryCode): The parity transform BinaryCode