class_docstr: TShift(wires)
  The qutrit shift operator
  
  The construction of this operator is based on equation 1 from
  `Yeh et al. (2022) <https://arxiv.org/abs/2204.00552>`_.
  
  .. math:: TShift = \begin{bmatrix}
                      0 & 0 & 1 \\
                      1 & 0 & 0 \\
                      0 & 1 & 0
                  \end{bmatrix}
  
  **Details:**
  
  * Number of wires: 1
  * Number of parameters: 0
  
  Args:
      wires (Sequence[int] or int): the wire the operation acts on
class_docstr_tok: ["TShift","(","wires",")","The","qutrit","shift","operator","The","construction","of","this","operator","is","based","on","equation","1","from","`","Yeh","et","al",".","(","2022",")","<","https",":","\/\/arxiv.org\/abs\/2204.00552",">","`","_",".","..","math",":",":","TShift","=","\\begin","{","bmatrix","}","0","&","0","&","1","\\\\","1","&","0","&","0","\\\\","0","&","1","&","0","\\end","{","bmatrix","}","*","*","Details",":","*","*","*","Number","of","wires",":","1","*","Number","of","parameters",":","0","Args",":","wires","(","Sequence","[","int","]","or","int",")",":","the","wire","the","operation","acts","on"]
docstr: Eigenvalues of the operator in the computational basis (static method).
  
  If :attr:`diagonalizing_gates` are specified and implement a unitary :math:`U^{\dagger}`,
  the operator can be reconstructed as
  
  .. math:: O = U \Sigma U^{\dagger},
  
  where :math:`\Sigma` is the diagonal matrix containing the eigenvalues.
  
  Otherwise, no particular order for the eigenvalues is guaranteed.
  
  .. seealso:: :meth:`~.TShift.eigvals`
  
  Returns:
      array: eigenvalues
  
  **Example**
  
  >>> print(qml.TShift.compute_eigvals())
  [ -0.5+0.8660254j -0.5-0.8660254j 1. +0.j         ]
docstr_tok: ["Eigenvalues","of","the","operator","in","the","computational","basis","(","static","method",")",".","If",":","attr",":","`","diagonalizing_gates","`","are","specified","and","implement","a","unitary",":","math",":","`","U^","{","\\dagger","}","`",",","the","operator","can","be","reconstructed","as","..","math",":",":","O","=","U","\\Sigma","U^","{","\\dagger","}",",","where",":","math",":","`","\\Sigma","`","is","the","diagonal","matrix","containing","the","eigenvalues",".","Otherwise",",","no","particular","order","for","the","eigenvalues","is","guaranteed",".","..","seealso",":",":",":","meth",":","`","~.TShift.eigvals","`","Returns",":","array",":","eigenvalues","*","*","Example","*","*",">",">",">","print","(","qml.TShift.compute_eigvals","(",")",")","[","-0.5+0.8660254j","-0.5-0.8660254j","1",".","+0.j","]"]
code: def compute_eigvals():
      r"""Eigenvalues of the operator in the computational basis (static method).
  
      If :attr:`diagonalizing_gates` are specified and implement a unitary :math:`U^{\dagger}`,
      the operator can be reconstructed as
  
      .. math:: O = U \Sigma U^{\dagger},
  
      where :math:`\Sigma` is the diagonal matrix containing the eigenvalues.
  
      Otherwise, no particular order for the eigenvalues is guaranteed.
  
      .. seealso:: :meth:`~.TShift.eigvals`
  
      Returns:
          array: eigenvalues
  
      **Example**
  
      >>> print(qml.TShift.compute_eigvals())
      [ -0.5+0.8660254j -0.5-0.8660254j 1. +0.j         ]
      """
      return np.array([OMEGA, OMEGA**2, 1])
  
imports: import numpy
  from pennylane.operation import Operation, AdjointUndefinedError
  from pennylane.wires import Wires
label_desc: Use image node_id 2 for calling the TShift obj's underlying member method code with example usage: obj.compute_eigvals() and returns: np