示例#1
0
 def phi_operator(self) -> ndarray:
     """
     Returns
     -------
         Returns the phi operator in the LC harmonic oscillator basis
     """
     dimension = self.hilbertdim()
     return (op.creation(dimension) +
             op.annihilation(dimension)) * self.phi_osc() / math.sqrt(2)
示例#2
0
 def n_operator(self) -> ndarray:
     """
     Returns
     -------
         Returns the :math:`n = - i d/d\\phi` operator in the LC harmonic oscillator basis
     """
     dimension = self.hilbertdim()
     return 1j * (op.creation(dimension) - op.annihilation(dimension)) / (
         self.phi_osc() * math.sqrt(2))
示例#3
0
 def creation_operator(self):
     """Returns the creation operator"""
     return op.creation(self.truncated_dim)