Beispiel #1
0
 def test_outer_bra_bra(self, ket_d, ket_d2):
     c = outer(ket_d.H, ket_d2.H)
     assert isinstance(c, np.matrix)
     d = np.multiply(ket_d.H.T, ket_d2.H)
     assert_allclose(c, d)
Beispiel #2
0
 def test_outer_ket_ket(self, ket_d, ket_d2):
     c = outer(ket_d, ket_d2)
     assert isinstance(c, np.matrix)
     d = np.multiply(ket_d, ket_d2.T)
     assert_allclose(c, d)