openfermion.transforms.jordan_wigner

Apply the Jordan-Wigner transform to a FermionOperator, InteractionOperator, or DiagonalCoulombHamiltonian to convert to a QubitOperator.

Used in the notebooks

Used in the tutorials

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.

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

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