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)
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))
def creation_operator(self): """Returns the creation operator""" return op.creation(self.truncated_dim)