openfermion.transforms.jordan_wigner

Apply the Jordan-Wigner transform to a FermionOperator,

Used in the notebooks

Used in the tutorials

InteractionOperator, or DiagonalCoulombHamiltonian to convert to a QubitOperator.

Operators are mapped as follows: a_j^\dagger -> Z0 .. Z{j-1} (X_j - iY_j) / 2 a_j -> Z0 .. Z{j-1} (X_j + iY_j) / 2

transformed_operator An instance of the QubitOperator class.

Warning:

The runtime of this method is exponential in the maximum locality of the original FermionOperator.

TypeError Operator must be a FermionOperator, DiagonalCoulombHamiltonian, or InteractionOperator.