openfermion.transforms.jordan_wigner

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

Main aliases

openfermion.jordan_wigner, openfermion.transforms.opconversions.jordan_wigner

Used in the notebooks

Operators are mapped as follows:

aj>Z0..Zj1(XjiYj)/2aj>Z0..Zj1(Xj+iYj)/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.