def test_transm_raise3lower0(self):
    term = jordan_wigner(FermionOperator(((3, 1), (0, 0))))
    self.assertEqual(term.terms[((0, 'X'), (1, 'Z'), (2, 'Z'), (3, 'Y'))], ((0.25 * 1) * (- 1j)))
    self.assertEqual(term.terms[((0, 'Y'), (1, 'Z'), (2, 'Z'), (3, 'Y'))], ((0.25 * 1j) * (- 1j)))
    self.assertEqual(term.terms[((0, 'Y'), (1, 'Z'), (2, 'Z'), (3, 'X'))], ((0.25 * 1j) * 1))
    self.assertEqual(term.terms[((0, 'X'), (1, 'Z'), (2, 'Z'), (3, 'X'))], ((0.25 * 1) * 1))
def test_transm_raise3lower0(self):
    term = jordan_wigner(FermionOperator(((3, 1), (0, 0))))
    self.assertEqual(term.terms[((0, 'X'), (1, 'Z'), (2, 'Z'), (3, 'Y'))], ((0.25 * 1) * (- 1j)))
    self.assertEqual(term.terms[((0, 'Y'), (1, 'Z'), (2, 'Z'), (3, 'Y'))], ((0.25 * 1j) * (- 1j)))
    self.assertEqual(term.terms[((0, 'Y'), (1, 'Z'), (2, 'Z'), (3, 'X'))], ((0.25 * 1j) * 1))
    self.assertEqual(term.terms[((0, 'X'), (1, 'Z'), (2, 'Z'), (3, 'X'))], ((0.25 * 1) * 1))