Example #1
0
 def test_is_molecular_term_out_of_order(self):
     op = FermionOperator(((0, 1), (2, 0), (1, 1), (3, 0)))
     self.assertTrue(op.is_molecular_term())
Example #2
0
 def test_is_molecular_term_three(self):
     op = FermionOperator(((0, 1), (2, 1), (4, 0)))
     self.assertFalse(op.is_molecular_term())
Example #3
0
 def test_is_molecular_term_downup(self):
     op = FermionOperator(((2, 0), (4, 1)))
     self.assertTrue(op.is_molecular_term())
Example #4
0
 def test_is_molecular_term_downup_badspin(self):
     op = FermionOperator(((2, 0), (3, 1)))
     self.assertFalse(op.is_molecular_term())
Example #5
0
 def test_is_molecular_term_FermionOperator(self):
     op = FermionOperator()
     self.assertTrue(op.is_molecular_term())