Searched refs:spin_algebra (Results 1 – 2 of 2) sorted by relevance
/dports/devel/py-qutip/qutip-4.6.2/qutip/tests/ |
H A D | test_piqs.py | 768 assert_array_equal(spin_algebra(2, "x")[0].full(), sx1) 769 assert_array_equal(spin_algebra(2, "x")[1].full(), sx2) 770 assert_array_equal(spin_algebra(2, "y")[0].full(), sy1) 771 assert_array_equal(spin_algebra(2, "y")[1].full(), sy2) 772 assert_array_equal(spin_algebra(2, "z")[0].full(), sz1) 773 assert_array_equal(spin_algebra(2, "z")[1].full(), sz2) 774 assert_array_equal(spin_algebra(2, "+")[0].full(), sp1) 775 assert_array_equal(spin_algebra(2, "+")[1].full(), sp2) 776 assert_array_equal(spin_algebra(2, "-")[0].full(), sm1) 780 assert_raises(TypeError, spin_algebra, 2, "q") [all …]
|
/dports/devel/py-qutip/qutip-4.6.2/qutip/ |
H A D | piqs.py | 765 def spin_algebra(N, op=None): function 867 sx, sy, sz = spin_algebra(N) 868 sp, sm = spin_algebra(N, "+"), spin_algebra(N, "-") 1033 [sx, sy, sz] = spin_algebra(N) 1034 sp, sm = spin_algebra(N, "+"), spin_algebra(N, "-")
|