def test_transm_lower1(self):
    lowering = jordan_wigner(FermionOperator(((1, 0),)))
    correct_operators_x = ((0, 'Z'), (1, 'X'))
    correct_operators_y = ((0, 'Z'), (1, 'Y'))
    qtermx = QubitOperator(correct_operators_x, 0.5)
    qtermy = QubitOperator(correct_operators_y, 0.5j)
    self.assertEqual(lowering.terms[correct_operators_x], 0.5)
    self.assertEqual(lowering.terms[correct_operators_y], 0.5j)
    self.assertTrue(lowering.isclose((qtermx + qtermy)))
def test_transm_lower1(self):
    lowering = jordan_wigner(FermionOperator(((1, 0),)))
    correct_operators_x = ((0, 'Z'), (1, 'X'))
    correct_operators_y = ((0, 'Z'), (1, 'Y'))
    qtermx = QubitOperator(correct_operators_x, 0.5)
    qtermy = QubitOperator(correct_operators_y, 0.5j)
    self.assertEqual(lowering.terms[correct_operators_x], 0.5)
    self.assertEqual(lowering.terms[correct_operators_y], 0.5j)
    self.assertTrue(lowering.isclose((qtermx + qtermy)))