Apply the Jordan-Wigner transform to a FermionOperator,
openfermion.transforms.jordan_wigner(
operator
)
Used in the notebooks
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
Returns |
transformed_operator
|
An instance of the QubitOperator class.
|
Warning |
The runtime of this method is exponential in the maximum locality
of the original FermionOperator.
|
Raises |
TypeError
|
Operator must be a FermionOperator,
DiagonalCoulombHamiltonian, or InteractionOperator.
|