openfermion.hamiltonians.sx_operator

Return the sx operator.

Main aliases

openfermion.hamiltonians.special_operators.sx_operator, openfermion.sx_operator

Sx=12ni=1(S++S)

n_spatial_orbitals number of spatial orbitals (n_qubits // 2).

operator FermionOperator

corresponding to the sx operator over n_spatial_orbitals.

The indexing convention used is that even indices correspond to spin-up (alpha) modes and odd indices correspond to spin-down (beta) modes.