コード例 #1
0
ファイル: state.py プロジェクト: asmeurer/sympy
 def __rmul__(self, other):
     """other*BraBase"""
     from sympy.physics.quantum.operator import OuterProduct
     if isinstance(other, KetBase):
         return OuterProduct(other, self)
     else:
         return Expr.__rmul__(self, other)
コード例 #2
0
ファイル: state.py プロジェクト: ajgpitch/sympsi
 def __rmul__(self, other):
     """other*BraBase"""
     from sympsi.operator import OuterProduct
     if isinstance(other, KetBase):
         return OuterProduct(other, self)
     else:
         return Expr.__rmul__(self, other)
コード例 #3
0
ファイル: state.py プロジェクト: asmeurer/sympy
 def __rmul__(self, other):
     """other*KetBase"""
     from sympy.physics.quantum.innerproduct import InnerProduct
     if isinstance(other, BraBase):
         return InnerProduct(other, self)
     else:
         return Expr.__rmul__(self, other)
コード例 #4
0
ファイル: state.py プロジェクト: ajgpitch/sympsi
 def __rmul__(self, other):
     """other*KetBase"""
     from sympsi.innerproduct import InnerProduct
     if isinstance(other, BraBase):
         return InnerProduct(other, self)
     else:
         return Expr.__rmul__(self, other)