コード例 #1
0
ファイル: boson.py プロジェクト: zingale/sympy
 def __new__(cls, alpha):
     return Ket.__new__(cls, alpha)
コード例 #2
0
ファイル: boson.py プロジェクト: zingale/sympy
 def __new__(cls, n):
     return Ket.__new__(cls, n)
コード例 #3
0
ファイル: boson.py プロジェクト: scopatz/sympy
 def __new__(cls, alpha):
     return Ket.__new__(cls, alpha)
コード例 #4
0
ファイル: boson.py プロジェクト: scopatz/sympy
 def __new__(cls, n):
     return Ket.__new__(cls, n)
コード例 #5
0
 def __new__(cls, n):
     if n not in [0, 1]:
         raise ValueError("n must be 0 or 1")
     return Ket.__new__(cls, n)
コード例 #6
0
ファイル: fermion.py プロジェクト: B-Rich/sympy
 def __new__(cls, n):
     if n not in [0, 1]:
         raise ValueError("n must be 0 or 1")
     return Ket.__new__(cls, n)